Estimate agent cost
estimate_costEstimate the monthly API cost of an AI agent or chatbot on one model. Easiest: pass model + preset (chatbot, rag, coding_agent, research_agent). Or give input_tokens, output_tokens and calls_per_day (plus optional steps_per_task, cached_percent); explicit numbers override the preset.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"model": "<model>"
},
"name": "estimate_cost"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| model | Yes | Model id like anthropic/claude-sonnet-5.5, or a name like "Grok 4.7" | |
| 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 | |
| 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) |