Using the AI Agent Cost Calculator
Add up the tokens and paid tool calls across every step in a typical attempt. Enter 0.1 additional attempts per workflow if you expect one retry for every ten workflows.
Worked example
At the example rates, tokens cost 0.016 and tools cost 0.004 per attempt. With 1.1 attempts per workflow and 10,000 workflows, the monthly estimate is 220.
Example inputs
- Workflows per month
- 10000
- Input tokens per attempt
- 4000
- Output tokens per attempt
- 1000
- Cost per million input tokens
- 2
- Cost per million output tokens
- 8
- Paid tool calls per attempt
- 2
- Cost per tool call
- 0.002
- Average additional attempts per workflow
- 0.1
Example result
- Total monthly cost
- 220
- Input token cost
- 88
- Output token cost
- 88
- Tool call cost
- 44
- Cost per workflow
- 0.022
- Monthly attempts
- 11,000
Method and assumptions
Multiply the cost of one attempt by one plus the average additional attempts, then scale by monthly workflows.
Model billable usage
The starting rates are illustrative. For cost estimates, use your provider’s billing units, region and plan, and keep all prices in the same currency.
Common question
How should I model retries that stop early?
The calculator charges each attempt equally. Use average token and tool usage across all attempts if retries often finish early or skip steps.