search_models
Query the OpenRouter model registry using criteria such as capabilities, context length, pricing, or provider to discover suitable AI models.
Instructions
Queries the OpenRouter.ai model registry, filtering by various criteria like capabilities, pricing, or provider. Use this to discover models suitable for specific needs. Returns a list of matching model metadata objects.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | (Optional) Limits the number of matching models returned in the response. Must be between 1 and 50. Defaults to 10. | |
| query | No | (Optional) A text query string to search within model names, descriptions, and provider details. | |
| provider | No | (Optional) Restricts the search to models offered by a specific provider ID (e.g., "openai", "anthropic"). | |
| capabilities | No | (Optional) An object specifying required model capabilities. | |
| maxPromptPrice | No | (Optional) Filters for models whose price for processing 1,000 prompt tokens is less than or equal to this value. | |
| maxContextLength | No | (Optional) Filters for models that support at most the specified context window size (in tokens). | |
| minContextLength | No | (Optional) Filters for models that support at least the specified context window size (in tokens). | |
| maxCompletionPrice | No | (Optional) Filters for models whose price for generating 1,000 completion tokens is less than or equal to this value. |