AI API Cost Calculator
Estimate monthly AI API costs from provider, model, requests per day, average input tokens, average output tokens, cached ratio, and days per month. Start from the defaults to see daily, monthly, and yearly cost immediately.
If you searched for an AI API cost calculator, start here: the calculator turns token prices into business spend before showing price-table details.
Scenario templates
Start from a realistic workload instead of a blank token form. Templates only preload values, so you can still edit everything after loading.
Article generation
Long-form writing with moderately sized prompts and substantial output.
Customer support
Short multi-turn support replies with high daily traffic and reusable system prompts.
RAG Q&A
Retrieval-heavy prompts where context dominates cost and cache can matter.
Code completion
Interactive coding assistance with medium prompts and short outputs.
Batch summarization
Offline bulk summarization where batch mode and cache reuse are both realistic.
Current workload summary
Default estimate result
Current winner: OpenAI · GPT-5 Nano
Cost Breakdown
GPT-5 Nano is the lowest monthly-cost option at USD 144.6, saving USD 116.4 per month (44.6%) versus GPT-4o Mini.
Cheaper Alternatives
Request details
Show request details
{
"modelCodes": ["gpt-4o-mini", "gpt-4o", "gpt-5-nano"],
"inputTokens": 2000,
"outputTokens": 1000,
"dailyRequests": 10000,
"activeDays": 30,
"cacheHitRatio": 0.20,
"useBatch": false,
"monthlyBudget": null,
"displayCurrencyCode": "USD"
}
Token estimate helper
Useful when you know document size before you know request tokens.
Estimate only. Default assumptions: 1 token ~= 0.75 English words, 1 token ~= 1.5 Chinese characters, 1 page ~= 500 English words.
How the calculator interprets inputs
- `Cached ratio` discounts only the cached share of input tokens.
- `Batch discount` applies only when the stored snapshot lists a batch ratio for that model.
- `Budget fit` means the maximum monthly requests you can afford with the exact request shape above.
Share and export
Scenario, workload inputs, selected models, display currency, and budget stay in the current query string. You can share this exact AI API Cost Calculator state by URL or export the current estimate as CSV.
Estimated results
Monthly cost stays sorted low to high. Daily, monthly, yearly, and breakdown fields answer the workload cost before price-table details.
| Model | Daily cost | Monthly cost | Yearly cost | Delta vs winner | Cost breakdown | 1k requests | Blend / 1M | Savings / month | Budget status | Budget fit |
|---|---|---|---|---|---|---|---|---|---|---|
|
GPT-5 Nano
gpt-5-nano
OpenAI
Updated Jun 1, 22:05
Fallback source
PricePerToken OpenAI
Currency USD
Fallback snapshot from PricePerToken because OpenAI official pricing pages currently return an anti-bot challenge to server-side crawlers. Source updated at 2026-06-01T08:31:54.240890Z.
Cache saves $5.40
No batch savings
|
$4.82 | $144.60 | $1735.20 |
Current winner
Lowest monthly cost in this scenario
|
Input $0.0001
Output $0.0004
Cached input $0.0000
|
$0.482 | $0.138 |
$5.40
cache + batch combined
|
Set budget or use a comparable display currency
|
Set budget to see fit
|
|
GPT-4o Mini
gpt-4o-mini
OpenAI
Updated Jun 1, 22:05
Fallback source
PricePerToken OpenAI
Currency USD
Fallback snapshot from PricePerToken because OpenAI official pricing pages currently return an anti-bot challenge to server-side crawlers. Source updated at 2026-06-01T08:31:54.241240Z.
Cache saves $9.00
No batch savings
|
$8.70 | $261.00 | $3132.00 |
$116.40
more per month than the winner
|
Input $0.0002
Output $0.0006
Cached input $0.0000
|
$0.870 | $0.263 |
$9.00
cache + batch combined
|
Set budget or use a comparable display currency
|
Set budget to see fit
|
|
GPT-4o
gpt-4o
OpenAI
Updated Jun 1, 22:05
Fallback source
PricePerToken OpenAI
Currency USD
Fallback snapshot from PricePerToken because OpenAI official pricing pages currently return an anti-bot challenge to server-side crawlers. Source updated at 2026-06-01T08:31:54.241391Z.
Cache saves $150.00
No batch savings
|
$145.00 | $4350.00 | $52200.00 |
$4205.40
more per month than the winner
|
Input $0.0040
Output $0.010
Cached input $0.0005
|
$14.50 | $4.38 |
$150.00
cache + batch combined
|
Set budget or use a comparable display currency
|
Set budget to see fit
|
Estimate only. Actual billing may differ by tokenizer behavior, cache hit rate, and provider rules.