Applications
AI agent run cost estimator
Cost of an agent loop where each step re-reads the growing transcript: steps, tool results and output per step.
With steps per run 12, system and tools tokens 4,000 tokens, tool result tokens per step 1,500 tokens, output tokens per step 300 tokens, model claude-sonnet-5-5, runs per month 3,000, the cost per run is $0.0916 at list prices read 2026-11-01.
Cost per run
Read from vendor pricing pages on 2026-11-01. Arithmetic on list prices, not advice or a quote.
Saving and exports come with Pro, $9 a month. What is in it. The calculator itself is free.
How it works
Agents are chatbots that talk to tools: the transcript grows every step and is re-sent every step, so cost is quadratic in step count. Caching the transcript and keeping tool results short are the two biggest savings.
The formula
step n input = system + (n - 1) * (tool_result + output); everything but the newest tool result is cacheable; output per step is billed as output
Worked example
Inputs
- Steps per run
- 12
- System and tools tokens
- 4,000 tokens
- Tool result tokens per step
- 1,500 tokens
- Output tokens per step
- 300 tokens
- Model
- claude-sonnet-5-5
- Cache the transcript
- Yes
- Runs per month
- 3,000
Result
- Cost per run
- $0.0916
- Monthly cost
- $274.89
- Input tokens per run
- 166,800 tokens
- Final context tokens
- 23,800 tokens
Sources
- developers.openai.com/api/docs/pricing (read 2026-11-01)
- platform.claude.com/docs/en/about-claude/pricing (read 2026-11-01)
- ai.google.dev/gemini-api/docs/pricing (read 2026-11-01)
Prices read from each vendor's own pricing page on 2026-11-01; the page may have changed since. This is arithmetic on published list prices, not advice or a quote. Check the vendor's page before committing a budget.
Questions
What about parallel tool calls?
Related tools
Chatbot monthly cost estimator
Monthly cost of a chat assistant where every turn re-sends the conversation so far.
RAG monthly cost estimator
Monthly cost of a retrieval-augmented answer flow: query embedding, retrieved chunks in the prompt, and the generated answer.
AI cost per user calculator
AI cost per active user a month, gross margin at your price, and the break-even price for an AI feature.