Overview
Model information endpointsAvailable Operations
- Get - Get a model by its slug
- 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
Get
Returns full details for a single model identified by its author and slug (e.g. openai/gpt-4). Supports variant suffixes (e.g. openai/gpt-4:free) and resolves known slug aliases.Example Usage
Parameters
Response
*components.ModelResponse, errorErrors
List
List all models and their propertiesExample Usage
Parameters
Response
*components.ModelsListResponse, errorErrors
Count
Get total count of available modelsExample Usage
Parameters
Response
*components.ModelsCountResponse, errorErrors
ListForUser
List models filtered by user provider preferences, privacy settings, and guardrails. If requesting througheu.openrouter.ai/api/v1/... the results will be filtered to models that satisfy EU in-region routing.