AI Agent Cost Calculator
- Estimated monthly total (USD)
- $1,194.36
- Variable cost per started task
- $0.119436
- Cost per successful task
- $0.132707
- Expected successes per month
- 9,000
Monthly cost breakdown
- Uncached input · first attempts
- $440.00
- Cached input · first attempts
- $44.00
- Output · first attempts
- $192.00
- Tool fees · first attempts
- $400.00
- All extra retry costs
- $118.36
- Other monthly costs
- $0.00
Retry costs include extra input, output and tool fees. They are separate from first attempts to avoid double counting. Displayed amounts are rounded.
- Expected model calls per month
- 88,800
- Input tokens per month
- 488,400,000
- Output tokens per month
- 26,640,000
- Monthly savings from cache reads
- $439.56
- Expected attempts per step
- 1.11
Step-by-step context and cost
Input is for the first attempt of each step. Costs include expected retries and tools, but exclude monthly overhead.
| Step | Input tokens | Step cost (USD) | Running total (USD) |
|---|---|---|---|
| 1 | 2,000 | $0.010656 | $0.010656 |
| 2 | 3,000 | $0.011877 | $0.022533 |
| 3 | 4,000 | $0.013098 | $0.035631 |
| 4 | 5,000 | $0.014319 | $0.04995 |
| 5 | 6,000 | $0.01554 | $0.06549 |
| 6 | 7,000 | $0.016761 | $0.082251 |
| 7 | 8,000 | $0.017982 | $0.100233 |
| 8 | 9,000 | $0.019203 | $0.119436 |
Example prices are illustrative, not a live model rate card. Results are planning estimates in USD.
Every task is budgeted for all steps, even if it fails. Retries use the same context and repeat tool fees. Cache misses use the regular input rate. Add cache-write/storage charges to other costs; tiered pricing, taxes and early stops are not inferred.
How it works
Enter monthly task volume and the number of model calls in a workflow. Estimate the first prompt and the history retained after each step, then set retry limits and final task success. Add your input, cache-read and output rates, paid tool fees and monthly overhead. The estimate updates as you type; expand the step table to see how context accumulates.
Example
With the example inputs, 8 steps consume 44,000 input tokens before retries. A 10% retry probability and at most 2 retries give 1.11 expected attempts per step. At 10,000 tasks per month, the total is $1,194.36. With 90% final success, 9,000 successful tasks cost about $0.132707 each, including failed work.
Frequently asked questions
Why do more steps increase input costs so quickly?
Retained history is sent again on later calls. Each step adds context, so total input grows quadratically with step count when history grows by a constant amount. Context growth already includes retained output and tool results; the calculator does not add them twice. Set growth to zero for fixed-size context, and budget any summarization calls separately.
How are retries, caching and successful tasks modeled?
Retries are capped extra attempts at each step, with the same token and tool costs. Final business success is entered separately. Cost per success divides the entire monthly bill, including failed tasks and overhead, by expected successes. Cache share is an effective share of billed input, not an automatic guarantee that a prompt is eligible for caching. Use measured usage and your provider's rates for a closer estimate.
Calculation method
I is input tokens per task before retries; N is steps; B is first-step input; G is retained context added per step. A is expected attempts per step, p is retry probability as a fraction, and R is the maximum retries. Variable task cost sums input, output and tools, multiplied by A. Monthly total adds fixed costs; cost per success divides that total by expected successful tasks.
Related tools
Protein per Dollar Calculator
Compare food prices and calories for 25 g of protein.
Tile and Flooring Calculator
Enter floor area and individual tile dimensions in meters.
Electricity Cost Calculator
Enter average appliance power, daily hours, days and your price per kWh.
Fuel Cost Calculator
Use kilometers, liters per 100 km and price per liter.
Break-Even Calculator
Enter fixed costs, sale price and variable cost in one currency.
Unit Price Calculator
Compare two packages using the same quantity unit and currency.