LLM Cost Calculator
This LLM cost calculator shows what an AI feature would cost each month on every major model. Enter how many requests you expect and how many tokens go in and come out of each one. The table then ranks more than 200 models from Anthropic, OpenAI, Google and others by monthly cost. Prices are read from a public model list each time this site is rebuilt, and everything is calculated in your browser.
Prices read from OpenRouter's public model list on December 4, 2026.
This is an estimate, not a quote. Taxes, credits, discounts and custom contracts are not included, and the provider's own pricing page always takes precedence.
1,000 tokens are roughly 750 English words. The cached share is only applied to models that publish a cache price.
| Model | Input / 1M | Output / 1M | Context | Monthly cost |
|---|
How to use the LLM cost calculator
Start with the four fields at the top. Enter the number of requests per month, the input tokens of one request and the output tokens of one request. The LLM cost calculator updates the whole table as you type. The two cards above it show the cheapest and the most expensive model for that workload. After that, read the two cards to see the range you are working in.
Next, narrow the list. Click a provider to filter, type a name into the search box, or sort by newest. Click any row to pin that model, and a card appears with its monthly, yearly and per-request cost. You can pin up to six models, and your numbers are remembered on this device. In addition, the LLM cost calculator keeps your pinned models between visits.
Who uses it
Developers use it before they pick a model for a new feature. Product managers use it to put a cost per user into a business case. Agencies use the LLM cost calculator in proposals, and finance teams use it to check whether an invoice matches the usage. As a result, the LLM cost calculator often settles a debate about which model to use.
How an LLM cost calculator works out the bill
Language models are billed by the token. A token is a piece of a word, and a thousand tokens are roughly 750 English words. Every model has two prices: one for the tokens you send, called input, and one for the tokens it writes, called output.
The formula is simple. The calculator multiplies your input tokens by the input price and your output tokens by the output price. Then it adds the two and multiplies the sum by the number of requests. Prices are quoted per million tokens, so small numbers add up quickly.
In addition, many providers charge less for input that was sent before and is read from a cache. If you enter a cached share, the calculator applies the cache price to that part, but only for models that publish one. For example, a long system prompt that never changes is a good candidate for caching.
What makes the bill grow
Output is the expensive side. On most models an output token costs several times as much as an input token. A feature that writes long answers therefore costs far more than one that classifies a text with a single word.
However, input grows quietly. A chat sends the whole conversation again with every turn, and an agent that calls tools sends its instructions and all earlier results each time. The tenth step of a task can carry ten times the tokens of the first.
Retries count as well. A request that fails validation and runs again is paid twice. So measure real traffic for a few days before you trust an estimate, and enter the averages you actually see. Therefore, come back to the LLM cost calculator whenever your traffic changes.
Ways to lower the cost Finally, review the choice every few months, because new models arrive often.
First, match the model to the task. Sorting, tagging and extracting data rarely need a flagship model. Pin a small and a large model in the LLM cost calculator and look at the gap. It is often a factor of twenty or more.
Next, shorten what you send. Trim the system prompt, summarise old turns of a conversation and send only the documents that matter. Then keep the stable part of the prompt at the front, so that the provider's cache can reuse it.
Finally, limit the output. Ask for a list or a JSON object and set a maximum length. To see how long your prompt really is, paste it into our word counter. If you run open models on Cloudflare, the Workers AI pricing calculator covers those. Meanwhile, keep an eye on retries, because they are easy to miss.
Where the LLM cost calculator gets its prices
The prices come from the public model list of OpenRouter, a service that offers many providers behind one interface and publishes each model's list price per token. This site reads that list several times a day, each time it is rebuilt.
The note above the calculator shows the date. If the list cannot be read, the site falls back to the last copy it saved and shows that older date. After 45 days a warning appears, so you always know how fresh the numbers are.
Even so, a list price is not your invoice. Batch discounts, volume agreements, taxes and extra fees for tools such as web search are not included, and some providers charge more for very long prompts. For a binding figure, check the provider's own pricing page. However, for a first estimate a list price is exactly what you need.
Need a tool like this built for your business?
We build fast, private web tools and apps that run in the browser. That includes calculators, booking widgets and internal dashboards.
Talk to us about a web toolFrequently Asked Questions
Is the LLM cost calculator free?
Yes. It is free, with no account and no limit on use.
What is a token?
A piece of text, usually part of a word. A thousand tokens are roughly 750 English words.
Where do the prices come from?
From OpenRouter's public model list, which this site reads each time it is rebuilt.
How often are prices updated?
Several times a day. The note above the calculator shows the date.
Why is output more expensive than input?
Writing text takes more computing than reading it, so providers charge more for output tokens.
LLM cost calculator: more questions
Does it include batch or volume discounts?
No. It uses list prices, so your real bill can be lower.
Which providers are covered?
Anthropic, OpenAI, Google, xAI, Mistral, DeepSeek, Meta, Qwen, Amazon, Cohere and several more.
How do I count my tokens?
Most providers report token counts with every response. As a rule of thumb, divide the word count by 0.75.
Are my numbers sent anywhere?
No. The calculation runs in your browser, and your figures stay on your device.
Can I compare several models?
Yes. Click up to six rows to pin them and compare their monthly and yearly cost.