01What is AI Cost Calculator?
AI Cost Calculator puts several language models side by side for the same workload and shows what each would cost per request, per day and per 30-day month. You start with three numbers: input tokens per request, output tokens per request and requests per day. Then you build a comparison table by adding rows and picking a model in each. The list covers current Claude, GPT and Gemini models, and every price comes from the vendors' own pricing pages, with the date they were checked and links to those pages printed under the table. Two settings change the bill a lot and are now part of the calculation. The first is prompt caching. If your requests repeat a long system prompt, a set of tool definitions or a document, the provider can serve that repeated prefix from a cache at a much lower price. You enter what share of input tokens is served from the cache and what share is written to it. Anthropic and OpenAI charge a little more than the normal input rate to write to the cache and much less to read from it; Google charges a reduced rate for cached tokens and bills explicit cache storage by the hour. The table shows each model's cached-input and cache-write price next to its normal rates. Where a vendor page did not give a price that could be checked, the cell says n/a and those tokens are counted at the normal input rate rather than at a guessed discount. The second setting is batch mode. All three vendors offer an asynchronous batch API at half the standard price, including cached tokens, in exchange for results that arrive later instead of right away. Tick the box and every row is recalculated at batch rates. Long prompts can move some models onto higher long-context rates. When your input crosses that threshold, the affected prices are marked with an asterisk and the higher cache prices for that tier are used too. A green summary names the cheapest of the models you picked, and the Copy button gives you a plain-text version of the comparison with your cache and batch settings attached. Nothing you type leaves your browser. The result is an estimate from list prices: it leaves out regional surcharges, priority or fast tiers, cache storage fees and taxes, so check your provider's usage dashboard once real traffic is flowing.
Developers choosing between models, engineering managers budgeting AI features, and founders estimating what an LLM product will cost to run with caching and batch jobs in the mix. The tool runs entirely in your browser, so your data never leaves your device.
02How to use AI Cost Calculator
- Enter input tokens per request, output tokens per request and requests per day
- Set the percentage of input served from cache and the percentage written to cache, and tick Batch mode if the work can wait
- Change the model in each table row, or click Add Model for another row
- Read the cached and cache-write prices, cost per request, daily cost and 30-day cost for each row
- Check the cheapest-model summary, then click Copy to take the figures and settings with you
03Worked examples
- Input:
1,000 input tokens, 500 output tokens, 100 requests/day; default models - Result:
Claude Sonnet 5.5: $21.00/mo ($0.0070/req) GPT-6.1 Sol: $21.00/mo ($0.0070/req) Gemini 3.8 Flash: $7.87/mo ($0.0026/req) - Prices as listed in the tool on 21 November 2026; a month is counted as 30 days.
- Input:
Same usage with Claude Haiku 5.5 - Result:
Claude Haiku 5.5: $1.05/mo ($0.00035/req) - Input:
Claude Sonnet 5.5, 1,000 in / 500 out, 100/day, Input served from cache (%) = 80 - Result:
Claude Sonnet 5.5: $16.44/mo ($0.0055/req) - Caching only discounts input, and here output (500 tokens at $10 per 1M) is most of the bill, so 80% cache hits save about 22%.
- Input:
Claude Sonnet 5.5, 1,000 in / 500 out, 100/day, Batch mode (async, 50% off) - Result:
Claude Sonnet 5.5: $10.50/mo ($0.0035/req) - Input:
GPT-6.1 Sol, 1,000 output tokens, 10 requests/day, input 272,000 vs 272,001 tokens - Result:
272,000: $166.20/mo ($0.554/req) 272,001: $330.90/mo ($1.10/req) - Above 272K input tokens the whole request is billed at the long-context rate ($4 / $15 per 1M), so one extra token roughly doubles the cost.
- Input:
Gemini 3.8 Flash, 1,000 in / 500 out, 100/day, Input written to cache (%) = 50 - Result:
Gemini 3.8 Flash: $7.87/mo ($0.0026/req) - No cache-write price is listed for this model, so cached-write tokens are billed at the normal input rate and the total doesn't change.
04Common use cases
- Working out how much prompt caching saves a support chatbot that resends the same long system prompt on every turn
- Comparing the monthly cost of a nightly document-classification job on standard versus batch pricing
- Checking how cost changes when a long-document feature pushes prompts over a long-context price tier
- Choosing between a small and a flagship model for the same workload before running quality tests
- Putting a dated monthly estimate, with its pricing sources, into a budget or planning document
05Tips
- Caching only pays off for a prefix that repeats within the cache lifetime; a cache write costs more than plain input, so a prompt that is never reused costs more with caching turned on.
- Put stable content such as instructions, tool schemas and reference documents at the start of the prompt and changing content at the end, so the cached prefix stays identical between requests.
- Batch mode suits jobs that can wait, such as evaluations, backfills and bulk tagging; it is not a fit for anything a user is waiting on.
- Output is priced several times higher than input on every model listed, so capping reply length often saves more than caching does.
06Related concepts
Prompt caching, Batch API, Token pricing, Long-context pricing, LLM API cost.
Frequently Asked Questions
What is AI Cost Calculator?
AI Cost Calculator is a free, browser-based developer tool on AIDToolStack. Estimate and compare API costs across current Claude, GPT and Gemini models. It requires no installation or sign-up and works entirely in your browser.
Is AI Cost Calculator free to use?
Yes. No sign-up, no fees and no usage cap.
Does AI Cost Calculator store my data?
No. It runs in your browser; nothing is uploaded.
Related calculators on PrimeCalcPro
More calculators from our sister site, each with the formula and a worked example.