API cost calculator

Estimate AI API cost per request and across a workload using input, cached input and output tokens. Enter custom rates or start with a model preset.

USD rates per million tokens

Estimated cost

Per request
$0.007575
All requests
$0.7575
Uncached input
$0.003
Cached input
$0.000075
Output
$0.0045

Breakdown per request, in US dollars.

Preset checked 1 December 2026. Provider pricing

How to estimate token costs for an API request

Enter the tokens for an average request, then multiply by the number of requests. Cached input is part of your input total and uses its own rate. Rates are measured in US dollars per million tokens.

Use the tier and processing mode that apply to your request. Tool calls, taxes, cache writes and batch discounts can change an invoice. Edit the preset rates to reflect a quoted tier or use custom rates for another provider.

Pair this calculator with the Token counter to measure real prompt sizes before scaling a workload from a few test calls to thousands of daily runs.

Common questions

How is cached input counted in the total cost?

Cached input tokens are treated as a discounted portion of your total input tokens rather than added on top, so uncached input tokens use the standard input rate and cached tokens use the lower cache rate.

Can I enter pricing for models not listed in the presets?

Yes. You can edit any of the input, cached input or output per-million-token rates directly to model custom agreements, batch tiers or other AI providers.