list_models
Discover and filter available AI models by provider, modality, category, price, and context length, with sorting and pagination for browsing the OpenRouter catalog.
Instructions
List available models with optional filtering and pagination. Returns max 50 models by default to stay within token limits.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "list_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | Maximum number of models to return (default: 50, max: 200) | |
| offset | No | Number of models to skip for pagination (default: 0) | |
| sort_by | No | Sort results by field | |
| category | No | Filter by category (e.g., programming, chat) | |
| modality | No | Filter by input modality (text, image, audio, video) | |
| provider | No | Filter by provider (e.g., anthropic, openai, google) | |
| sort_order | No | Sort order | asc |
| min_context_length | No | Minimum context length required | |
| max_price_per_1m_tokens | No | Maximum price per 1M input tokens (USD) |