Free calculator · Runs in your browser
AI API Cost Calculator
An AI API cost calculator is a way to turn token usage into a budget. Compare 44 text models from OpenAI, Anthropic, Google, xAI, DeepSeek, Mistral and Llama hosts, check the cost per 1,000 calls, and see what 12 months of growth could cost.
Prices last checked Nov 2026 (19 November 2026) · USD · Text tokens only
01 / Your workload
What will you send to the API?
Daily usage assumes 30 days per month. Include system prompts and chat history in input tokens, and billed thinking tokens in output.
02 / Compare the bill
Same workload. Different costs.
Lowest estimated cost in this view
Loading calculator…
$0.00 / month
Eight lowest-cost options in this view
Bar length uses the selected cost period. Exact values are also in the table.
| Model | Provider / host | Input / 1M | Output / 1M | Monthly cost ↓ | Pricing source / notes |
|---|
Price is not a quality score. The highlight only identifies the lowest token-cost estimate for this workload and filter. All ties are marked. Availability and context limits vary by model.
03 / Plan for growth
What if your call volume grows?
Choose a model and a monthly growth rate. Month 1 uses your starting workload; each later month compounds the call volume. The forecast holds today’s rates constant, including promotional rates. It does not predict price changes.
See the 12-month breakdown
| Month | Estimated calls | Estimated cost (USD) |
|---|
The calculation
How do the numbers work?
The cost is the number of calls multiplied by the cost of the tokens in each call.
Calls × ((input tokens × input price + output tokens × output price) ÷ 1,000,000)At $1 per million input tokens and $2 per million output tokens, 1,000 input tokens plus 500 output tokens costs $0.002 per call. At 10,000 calls, that is $20 per month.
This estimates standard uncached text usage, not your final invoice. It excludes batch and cache discounts, tax, credits, storage, images, audio and tool charges. DeepSeek uses peak cache-miss prices. Check the source links before you commit to a provider.
Time-sensitive: Gemini 2.5 Pro and Flash have December 1, 2026 routing changes. Gemini 4 Carbon and Gemini 3.8 Flash have promotional rates that expire. Those rows include the details. This calculator does not switch rates automatically with the calendar.

About the creator
Jitendra Vaswani
AI SEO Expert & LLM Expert. Jitendra’s work with 1,400+ clients in 28 countries informs the practical tools he builds for marketers and publishers. Use this calculator to compare the token bill, then test the model on your actual work.
Before you pick a model
AI API cost questions
How is AI API cost calculated?
Multiply the calls by the cost of the input and output tokens: calls × ((input tokens × input price + output tokens × output price) ÷ 1,000,000). Prices here are US dollars per million tokens. A call with 1,000 input tokens and 500 output tokens at $1 and $2 per million costs $0.002.
What does the annual cost include?
The annual view is 12 times the starting monthly cost, with no growth. The separate growth projection compounds your call volume each month over 12 months, starting with your current volume in month 1. A daily input uses 30 days per month.
Are these live prices or a billing quote?
Neither. Prices last checked Nov 2026 (19 November 2026). This is a manually maintained snapshot of standard text API rates, not a live pricing feed or a billing quote. Follow each model’s source link to confirm availability and current terms before spending money.
Are caching, reasoning and tool fees included?
Caching discounts, batch discounts, taxes, free credits, audio, images, storage, search and other tool fees are excluded. Include billed reasoning or thinking tokens in your average output token estimate. DeepSeek uses peak cache-miss rates here. Different tokenizers can produce different token counts for the same text.
Does the cheapest model give the best result?
No. Cheapest means the lowest estimated token bill among the models in your current provider filter. Test task accuracy, latency, context limits and reliability before choosing a model. Long prompts may also exceed a model’s context window; this calculator is not a compatibility checker.
What happens when a model has long-context pricing?
The calculator automatically applies the listed higher input and output rates for Gemini 2.5 Pro above 200,000 input tokens, Claude Haiku 5.5 above 100,000, and Grok at 200,000 or more. The table shows the effective rates for your input. Other context, region or account-specific charges may differ.
