Models - Python SDK
Models method reference
The Python SDK and docs are currently in beta. Report issues on GitHub.
(models)
Overview
Model information endpoints
Available Operations
- count - Get total count of available models
- list - List all models and their properties
- list_for_user - List models filtered by user provider preferences, privacy settings, and guardrails
count
Get total count of available models
Example Usage
Parameters
Response
components.ModelsCountResponse
Errors
list
List all models and their properties
Example Usage
Parameters
Response
Errors
list_for_user
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.