Cost formula
Agent cost per task = sum over steps of (input tokens at step / 1M × input price) + (output tokens at step / 1M × output price) + tool API costs; Monthly = tasks per month × average cost per task
Calculator
Model multi-step agents: system instructions, tool rounds, tool-result tokens, and growing context—then compare two models for the same workload.
Agent run cost
$2,317.95$0.2318 / run
8 tool calls · peak context ~14,330 tokens
Workload
Growing context: each tool result is re-sent on later turns.
Cascade
How input growth, cache, and output stack into the run bill.
Cheaper for this agent: GPT-5 mini · delta $2,103.19
Planning model for tool-calling agents with growing context. Real agents vary by framework, retries, and tool payload size. Pricing snapshot updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Estimate spend for multi-step agents that call tools, accumulate context, and loop until a task completes. Each tool round adds input tokens from growing history plus output tokens from reasoning and tool calls. Agent workloads often cost 5–20x a single chat turn—model steps explicitly before enabling autonomous loops.
Agent cost per task = sum over steps of (input tokens at step / 1M × input price) + (output tokens at step / 1M × output price) + tool API costs; Monthly = tasks per month × average cost per task
Agents trade capability for unpredictable token growth. A demo that completes in three steps may average eight in production, multiplying cost without changing the per-token price.
Tool definitions and call/response JSON consume input and output tokens in the LLM context. External tool APIs (search, databases) add separate infrastructure cost not included here.
Start with your p95 step count from evals, not the happy-path demo. Planning on averages underestimates spend for long-tail complex tasks.
No. CentsPerToken uses approximate list prices and your supplied assumptions. Real agent cost varies widely by task complexity and model behavior.
Yes. Static system prompts and tool schemas are ideal cache candidates. Model a realistic cache hit rate to avoid overstating input cost.