Cheapest models for a workload
cheapest_models_forRank models by monthly cost for a workload. Use a preset (chatbot, rag, coding_agent, research_agent) or give token numbers.
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": "cheapest_models_for"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | How many to return (default 5, max 20) | |
| preset | No | Optional workload preset that fills in token defaults: chatbot, rag, coding_agent, research_agent. Explicit numbers override it. | |
| input_tokens | No | Input tokens per call/step | |
| popular_only | No | Only well-known models (default true) | |
| calls_per_day | No | Calls (or agent tasks) per day | |
| output_tokens | No | Output tokens per call/step | |
| cached_percent | No | Share of input billed at the cached price, 0-100 (default 50 if steps_per_task>1, else 0) | |
| steps_per_task | No | Model calls per task for multi-step agents (default 1) | |
| reasoning_ratio | No | Hidden reasoning tokens per output token, billed at the output price, on reasoning-capable models only (default: the preset's value, 0.9 for agent presets and custom workloads, 0 for chatbot; 0 excludes reasoning) |