LLM cost estimator
An LLM feature’s bill is three numbers multiplied together: tokens per request, price per token and requests per day. This calculator does the multiplication for every model at once, so you can see which part of the bill matters and what a cheaper model would save.
Anthropic Claude Sonnet 5.5 costs $2,700 a month; Alibaba Qwen3.7 Flash would cost $37.50, 99% less.
Inputs
System prompt, history, retrieved documents and the user’s message.
Prompt prefix read from the provider’s cache, such as a long system prompt reused on every call.
Include reasoning tokens if the model bills them as output.
Every model, cheapest first
| Model | In / out per 1M | Per request | Per month |
|---|---|---|---|
| Alibaba · Small · Cheapest | $0.03 / $0.13 | $0.0001 | $37.50 |
| Amazon · Small | $0.035 / $0.14 | $0.0001 | $42.00 |
| Cohere · Small | $0.0375 / $0.15 | $0.0002 | $45.00 |
| Amazon · Small | $0.06 / $0.24 | $0.0002 | $72.00 |
| Mistral · Small | $0.10 / $0.10 | $0.0003 | $75.00 |
| Mistral · Small | $0.15 / $0.15 | $0.0004 | $112.50 |
| Anthropic · Small | $0.10 / $0.50 | $0.0005 | $135.00 |
| OpenAI · Small | $0.10 / $0.50 | $0.0005 | $135.00 |
| Mistral · Small | $0.20 / $0.20 | $0.0005 | $150.00 |
| Alibaba · Small | $0.15 / $0.47 | $0.0005 | $160.50 |
| Zhipu AI · Small | $0.15 / $0.50 | $0.0005 | $165.00 |
| Mistral · Small | $0.15 / $0.60 | $0.0006 | $180.00 |
| Cohere · Small | $0.15 / $0.60 | $0.0006 | $180.00 |
| MiniMax · Small | $0.15 / $0.60 | $0.0006 | $180.00 |
| DeepSeek · Small | $0.30 / $1.20 | $0.0012 | $360.00 |
| MiniMax · Flagship | $0.30 / $1.20 | $0.0012 | $360.00 |
| Google · Small | $0.25 / $1.50 | $0.0013 | $375.00 |
| Alibaba · Mid | $0.40 / $1.60 | $0.0016 | $480.00 |
| Mistral · Mid | $0.50 / $1.50 | $0.0018 | $525.00 |
| Google · Small | $0.30 / $2.50 | $0.0019 | $555.00 |
| Amazon · Small | $0.30 / $2.50 | $0.0019 | $555.00 |
| Amazon · Mid | $0.80 / $3.20 | $0.0032 | $960.00 |
| Google · Mid | $0.75 / $3.75 | $0.0034 | $1,013 |
| Google · Mid | $0.75 / $3.75 | $0.0034 | $1,013 |
| OpenAI · Small | $0.75 / $4.50 | $0.0038 | $1,125 |
| xAI · Mid | $1.25 / $2.50 | $0.0038 | $1,125 |
| DeepSeek · Flagship | $1.32 / $3.96 | $0.0046 | $1,386 |
| Zhipu AI · Flagship | $1.40 / $4.40 | $0.005 | $1,500 |
| Zhipu AI · Mid | $1.40 / $4.40 | $0.005 | $1,500 |
| Mistral · Flagship | $1.50 / $7.50 | $0.0068 | $2,025 |
| xAI · Flagship | $2.00 / $6.00 | $0.007 | $2,100 |
| Alibaba · Flagship | $2.00 / $6.00 | $0.007 | $2,100 |
| Anthropic · Mid | $2.00 / $10.00 | $0.009 | $2,700 |
| OpenAI · Mid | $2.00 / $10.00 | $0.009 | $2,700 |
| Google · Flagship | $2.00 / $10.00 | $0.009 | $2,700 |
| Moonshot AI · Flagship | $2.00 / $10.00 | $0.009 | $2,700 |
| Moonshot AI · Flagship | $3.00 / $15.00 | $0.0135 | $4,050 |
| Anthropic · Flagship | $4.00 / $20.00 | $0.018 | $5,400 |
| OpenAI · Mid | $5.00 / $30.00 | $0.025 | $7,500 |
| Anthropic · Flagship | $10.00 / $50.00 | $0.045 | $13,500 |
| OpenAI · Flagship | $10.00 / $50.00 | $0.045 | $13,500 |
What it shows
This calculator does the multiplication for every model at once, so you can see which part of the bill matters and what a cheaper model would save. Prices are the providers’ published list prices per million tokens, checked on the date shown under the tool, and each model links to its price page.
It models the discounts that change architecture decisions: prompt caching, batch APIs, long-context price tiers and routing easy requests to a smaller model.
How to read it
- “Per month” is the cost of one request times requests per day times 30 days.
- “Input”, “Cached input” and “Output” show where the money goes. Output tokens usually cost several times more than input tokens.
- “Cached share” is the part of each prompt the provider reads from its prompt cache, such as a fixed system prompt. It is billed at the cache price where one is listed.
- Some models charge a higher rate for the whole request once input passes a threshold. The tool applies it and says so.
- Turn on the batch API to see batch prices where a provider lists them. It trades latency for a lower price.
- The table ranks every model for the same workload. Select a model name to make it the main model.
- Routing sends a share of requests to a cheaper model. The saving is only real if that model answers them well enough, so check with evals.
Questions
Why is output more expensive than input?
Providers price output tokens higher than input tokens for almost every model in the table. Input tokens are processed in parallel; output tokens are generated one at a time, each needing a pass through the model.
What is prompt caching?
When many requests start with the same prefix, such as a long system prompt or a shared document, the provider can reuse its work on that prefix and bill those tokens at a lower cached-input price. Put the parts that don’t change at the start of the prompt so they can be cached.
When should I use a batch API?
When nobody is waiting for the answer: evaluations, backfills, nightly summaries, labelling. Batch requests finish later in exchange for a lower price where the provider offers one.
Are these prices current?
They are list prices checked on the date shown under the tool. Providers change prices, add regional rates and run promotions, so confirm on the linked pricing page before you commit to a budget.
What isn’t included?
Taxes, regional price differences, priority or flex tiers, cache-write fees, fine-tuning, embeddings, image or audio pricing and any negotiated discounts.
Sources
Explore further
- LiteLLM model pricesCommunity-maintained prices and context windows for hundreds of models, in one JSON file.
Last updated
More tools
All tools- estimatorAgent run cost estimatorCost of an agent run by model, steps and prompt caching, with context growth and the step where the window fills.Open tool
- estimatorVector index memory plannerRAM for a vector index by type, element size and replicas, with a breakdown of vectors, links, ids and codebooks.Open tool
- calculatorRetrieval metrics calculatorGrade a ranked list and see precision, recall, hit rate, MRR, average precision and nDCG react to each move.Open tool