Find the cheapest LLM APIs
llm_cheapest_modelsThe cheapest models that meet your constraints, ranked by price. Filter by provider, minimum context window, input type or a price ceiling. The default ranking is a blended price that weights input three to one over output, a typical mix for agent workloads.
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": "llm_cheapest_models"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many models to return, 1 to 25. Default 10. | |
| sort_by | No | What to rank by. Default blended. | |
| modality | No | An input type the model must accept. | |
| provider | No | Provider name such as OpenAI, Anthropic, Google, DeepSeek or Mistral. | |
| min_context_tokens | No | Smallest acceptable context window, in tokens. | |
| max_input_usd_per_million_tokens | No | Price ceiling for input, US dollars per million tokens. |