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.
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) |