Models - Go SDK
Models - Go SDK
Models method reference
The Go SDK and docs are currently in beta. Report issues on GitHub.
Overview
Model information endpoints
Available Operations
- List - List all models and their properties
- Count - Get total count of available models
- ListForUser - List models filtered by user provider preferences, privacy settings, and guardrails
List
List all models and their properties
Example Usage
Parameters
Response
*components.ModelsListResponse, error
Errors
Count
Get total count of available models
Example Usage
Parameters
Response
*components.ModelsCountResponse, error
Errors
ListForUser
List models filtered by user provider preferences, privacy settings, and guardrails. If requesting through eu.openrouter.ai/api/v1/... the results will be filtered to models that satisfy EU in-region routing.
Example Usage
Parameters
Response
*components.ModelsListResponse, error