search_models
Find and filter AI models by provider, pricing, context length, and capabilities like vision, function calling, or JSON mode to match your specific requirements.
Instructions
Search and filter OpenRouter.ai models based on various criteria
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| query | No | Optional search query to filter by name, description, or provider | |
| provider | No | Filter by specific provider (e.g., "anthropic", "openai", "cohere") | |
| minContextLength | No | Minimum context length in tokens | |
| maxContextLength | No | Maximum context length in tokens | |
| maxPromptPrice | No | Maximum price per 1K tokens for prompts | |
| maxCompletionPrice | No | Maximum price per 1K tokens for completions | |
| capabilities | No | Filter by model capabilities | |
| limit | No | Maximum number of results to return (default: 10) |
Input Schema (JSON Schema)
{
"properties": {
"capabilities": {
"description": "Filter by model capabilities",
"properties": {
"functions": {
"description": "Requires function calling capability",
"type": "boolean"
},
"json_mode": {
"description": "Requires JSON mode capability",
"type": "boolean"
},
"tools": {
"description": "Requires tools capability",
"type": "boolean"
},
"vision": {
"description": "Requires vision capability",
"type": "boolean"
}
},
"type": "object"
},
"limit": {
"description": "Maximum number of results to return (default: 10)",
"maximum": 50,
"minimum": 1,
"type": "number"
},
"maxCompletionPrice": {
"description": "Maximum price per 1K tokens for completions",
"type": "number"
},
"maxContextLength": {
"description": "Maximum context length in tokens",
"type": "number"
},
"maxPromptPrice": {
"description": "Maximum price per 1K tokens for prompts",
"type": "number"
},
"minContextLength": {
"description": "Minimum context length in tokens",
"type": "number"
},
"provider": {
"description": "Filter by specific provider (e.g., \"anthropic\", \"openai\", \"cohere\")",
"type": "string"
},
"query": {
"description": "Optional search query to filter by name, description, or provider",
"type": "string"
}
},
"type": "object"
}