LLM API Cost Calculator
Estimate what your AI feature will cost per month on OpenAI, Anthropic and Google, including prompt caching and batch discounts.
🔒 Everything is calculated in your browser. Your numbers never leave your device.
How it works
- Pick a preset that looks like your app, or type your own traffic.
- Set the average input and output tokens per request. Not sure? Paste a sample prompt in the estimator.
- Add the share of input that hits the prompt cache, and switch on Batch if results can wait up to 24 hours.
- Compare the monthly cost of every model, sorted from cheapest to most expensive.
Why input and output are priced differently
Providers charge several times more for output tokens than for input tokens, because generating text is more expensive than reading it. Apps that write long answers (agents, content generation) are dominated by output cost; apps that read long documents (RAG, summarization) are dominated by input cost.
How prompt caching changes the bill
When the beginning of your prompt repeats between requests (system prompt, tool definitions, a long document), providers can serve it from cache at up to 90–97% off. A chatbot with a large fixed system prompt can often cut its input bill in half with caching alone.
Frequently asked questions
How accurate is this calculator?
It uses each provider's published list price per million tokens and the date they were last verified is shown above the chart. Your real invoice can differ because of long-context surcharges, regional pricing, taxes or negotiated discounts.
What is a token?
A token is a chunk of text of roughly 4 characters in English (about ¾ of a word). 1,000 tokens is about 750 English words. Spanish and code usually need a few more tokens per word.
Does batch processing work with caching?
Yes. All three providers offer 50% off for batch jobs, and cache-read discounts still apply on top. The calculator applies both.
Which model is the cheapest?
For most workloads the budget tiers (GPT-6 Luna, Claude Haiku 5.5, Gemini Flash-Lite) cost less than a tenth of the flagships. Use the table to compare quality tiers side by side.