AI API Cost Calculator: Claude vs GPT vs Gemini
Prompts over ~100,000 tokens trigger long-context pricing at some providers. Haiku 5.5 is handled automatically; for others check the official page.
Monthly cost by model
| Model | Per request | Per month | Per year |
|---|
· Prices checked: October 25, 2026.
How does the calculator work?
For each model it multiplies your monthly requests by the cost of one request. One request costs the uncached input tokens at the normal input price, plus the cached input tokens at the cache-read price, plus the output tokens at the output price, all divided by one million. If you tick Batch, the total is multiplied by the provider's batch factor, which is 0.5 for all three providers today.
Prices are USD per million tokens, copied from the official pricing pages of Anthropic, OpenAI and Google. We show the standard tier for prompts under the long-context threshold, and switch Claude Haiku 5.5 to its higher price above 100,000 input tokens automatically.
What the estimate leaves out
- Cache writes. Anthropic charges 25 % more than normal input to write a cache entry. If your prompts change often, the real bill is a few percent higher than shown.
- Cache storage. Google bills context-cache storage per hour on top of cache reads.
- Reasoning tokens. "Thinking" models bill their reasoning as output tokens. Raise the output figure if you use extended thinking.
- Tools and search. Web search, code execution and other add-ons have their own fees.
- Promotional prices. Gemini 4 Argon and Gemini 3.8 Flash have introductory prices that double later. Use the checkbox to see the later price.
How to lower the number you see
Three levers move the bill most: choose the smallest model that passes your quality tests, cache every repeated prompt prefix, and send anything that can wait through the Batch API. Our AI API pricing comparison goes through each lever with worked examples, and this guide to spend limits shows how to stop a leaked key from running up a bill.
Keep exploring
Frequently asked questions
How much does an AI API cost per month?
It depends on volume and model. A support chatbot with 100,000 requests a month of about 1,500 input and 300 output tokens costs from a few dollars on small models to several hundred on frontier ones. Enter your own numbers above for an exact estimate.
What is a token?
A token is a chunk of text, roughly three quarters of an English word. Providers bill input tokens (your prompt) and output tokens (the answer) at different rates, with output usually several times more expensive.
What does prompt caching change?
When the start of your prompt repeats, such as a long system prompt or shared documents, cached input is billed at a fraction of the normal input price. Set the cache share slider to see the effect on every model at once.
Is the Batch API worth it?
If results can wait up to 24 hours, all three providers listed here give about 50 % off input and output tokens. It suits classification, summarising archives and evaluations, not live chat.
Are these prices up to date?
We check the official pricing pages of Anthropic, OpenAI and Google and date every update. This version was checked on 2026-10-25. Vendors change prices often, so confirm on the provider page before committing a budget.