AI API cost calculator
Estimate AI token spend using request volume, average input tokens, average output tokens, and cached prompt share. The preset rates are planning examples, so swap in your live vendor prices before making budget commitments.
Estimated monthly spend
Estimated daily average: $0.00
Total monthly input
Total monthly output
Cached monthly input
Input spend
Output spend
Cached input spend
Planning assumptions matter. Long answers, retries, tool calls, and fallback flows can increase real production bills.
How this calculator works
Monthly spend is calculated from total input tokens, total output tokens, and the percentage of input tokens assumed to be cached. Each category is multiplied by a per-million token rate and then summed into a monthly estimate.
This makes the tool useful for product planning, vendor comparison, and finance conversations before usage data becomes available.
What to check next
- Compare the estimate against a premium model and a lower-cost model.
- Stress-test output-heavy use cases like customer support or report generation.
- Read Hidden costs of AI APIs to catch non-token budget drivers.