Models - TypeScript SDK
Models method reference
The TypeScript SDK and docs are currently in beta. Report issues on GitHub.
Overview
Model information endpoints
Available Operations
- count - Get total count of available models
- list - List all models and their properties
- listForUser - List models filtered by user provider preferences, privacy settings, and guardrails
count
Get total count of available models
Example Usage
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<models.ModelsCountResponse>
Errors
list
List all models and their properties
Example Usage
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<models.ModelsListResponse>
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
Standalone function
The standalone function version of this method:
Parameters
Response
Promise<models.ModelsListResponse>