AI API Cost Calculator
Estimate per-request, monthly, and annual AI API spend from token volume. Compare leading LLMs with the same workload assumptions.
LLM cost by model
Change any input above and the estimates recalculate instantly in your browser.
| Model | Input | Output | Per request | 30 days | 1 year |
|---|
Informational estimate only. Provider pricing can include caching, batch processing, tool calls, regional pricing, and other rules not represented here.
How the calculator works.
Input cost = input tokens ÷ 1,000,000 × published input rate. Output cost uses the same formula with the published output rate.
Monthly and annual estimates simply scale the per-request result by request volume.
LLM API cost questions
How is monthly API cost calculated?
The per-request token estimate is multiplied by your requests per day and 30 days.
Are caching and batch discounts included?
No. V2 compares standard text-token rates so the baseline stays simple and comparable.
Why can output dominate cost?
Many providers price generated tokens higher than input tokens, so long answers can become the main cost driver.