Estimates token usage and monthly cost for AI features from prompt sizes, request volumes and caching, so you can compare model options before you build.
🔒 Runs in your browser. Your data never leaves this device.
~/apps/llm-cost-estimatorruns in your browser · nothing uploaded
Start from a typical workload
System prompt + history + retrieved context + the question
Include reasoning/thinking tokens: they are billed as output
30 for always-on, ~22 for business days
A stable system prompt or document that is reused gets cheap cache-hit pricing
Providers
Count tokens from sample text, or add your own rates
Stays in your browser and isn’t added to the share link. Roughly 4 characters per token.
Use this for negotiated rates, Azure OpenAI, Bedrock or Vertex pricing, or a model not listed.
Cheapest: Claude Haiku 5.5$20.28 a month ($243 a year) for 180M input and 24M output tokens a month. Cheaper isn’t always better: test quality on your own prompts before you choose.
USD per million tokens at standard pay-as-you-go rates, last checked December 2026. Not included: cache-write surcharges (Anthropic charges 1.25× input to write a 5-minute cache), Gemini cache storage per hour, tool and search fees, images and audio, regional or data-residency uplifts, and priority tiers. Tokenisers differ, so the same text can be a different number of tokens on each model (newer Claude models produce about 30% more). Prices change often: check the sources before you commit a budget: Anthropic: Claude pricing, OpenAI: API pricing, Google: Gemini API pricing.
Compare 13 modelsCurrent Claude, GPT and Gemini models side by side, cheapest first, with a bar chart of monthly cost.
Caching and batchModels prompt caching and the 50% batch discount, which often change the answer more than the model does.
Long-context pricingSwitches to the higher rates automatically when a request goes over a model’s long-context threshold.
Your own ratesAdd negotiated, Azure, Bedrock or Vertex prices, and count tokens from a sample prompt without it leaving your browser.
How to use it
Pick a typical workload or enter your own token counts
Input includes the system prompt, history and any retrieved documents.
Set requests per day and days per month
Set how much input is cached and whether you can use batch
Compare the monthly costs and export the CSV
Then test quality on your own prompts before choosing.
Questions people ask
How many tokens is a word?
In English, a token is roughly four characters or three-quarters of a word, so 1,000 words is about 1,300 tokens. Code and other languages vary, and each provider’s tokeniser is different.
Why are output tokens more expensive?
Output is generated one token at a time, which uses far more compute than reading input. Output is typically four to eight times the input price, and reasoning or thinking tokens are billed as output.
What is prompt caching?
If the start of your prompt (such as a long system prompt or document) is the same across requests, providers can cache it and charge a small fraction of the input price for those tokens on later requests.
When should I use the batch API?
For work that doesn’t need an instant answer, such as overnight summaries or classification backlogs. Results come back within 24 hours at about half the price.
Found this useful? Share it with your team. The link includes your current result.
Both Azure and AWS keep five addresses in every subnet. On small subnets that is a big share of your space. Here is how to size subnets so you don’t have to rebuild them later.