LLM API Cost Calculator: Claude, OpenAI, Gemini, DeepSeek
Work out what an LLM API will cost you: pick any of 358 models from Claude, OpenAI, Gemini, DeepSeek and more, enter your tokens and requests, and see the cost per request, per day and per month at today's prices.
Prices in US dollars per 1 million tokens, from OpenRouter's live list. Last checked Mon, 23 Nov 2026 10:01 UTC.
Your cost
- Per request —
- Per day —
- Per month (30 days) —
The same job on the cheapest models
| Model | Per month |
|---|
Example costs on popular models
The same four jobs on the newest model from each of the big labs, so you can sanity-check the calculator.
| Job | Claude Fable 5.2 | GPT-6.2 Astra Pro | Gemini 4 Neon | DeepSeek V4.1 Flash 1017 | Grok 4.7 |
|---|---|---|---|---|---|
| One chatbot reply 1,500 tokens in, 400 out | $0.03 | $0.03 | $0.01 | $0.00093 | $0.0054 |
| Summarise a 30-page report 20,000 tokens in, 1,000 out | $0.20 | $0.20 | $0.07 | $0.0072 | $0.05 |
| 1,000 customer-support replies 2,000 tokens in and 400 out, 1,000 times | $32.00 | $32.00 | $12.00 | $1.08 | $6.40 |
| A chat app with 1,000 replies a day for a month 30,000 replies of 1,500 in and 400 out | $840 | $840 | $315 | $27.90 | $162 |
How the calculator works
For each request it adds input tokens × input price, cached tokens × cached price and output tokens × output price, using prices per million tokens from OpenRouter, refreshed every 30 minutes. Reasoning models also bill their hidden thinking as output, so leave room for that in the output box. To learn what counts as a token, read what are tokens in AI.
Compare every model's price
This page covers one slice. The LLM API pricing table lists all 360 models side by side, refreshed every 30 minutes, with a filter to find any model fast.
New to LLM APIs?
Start with what an LLM API is, then how tokens work and how to get an API key. When you're ready to write code, see how to use an LLM API in Python, and to keep bills down read prompt caching explained and how to cut LLM API costs. Want it free? See the free LLM API guide.
Questions
How do I calculate LLM API cost?
Cost = input tokens × input price + output tokens × output price, with prices per million tokens divided by 1,000,000. Multiply by how many requests you make. Cached input, if your provider supports it, is charged at the lower cached price.
How many tokens is my text?
In English, one token is about four characters or three quarters of a word, so 1,000 words is roughly 1,300 tokens. Use the words box in the calculator to convert.
How much does the Claude API cost per month?
For a chat app with 1,000 replies a day (1,500 tokens in and 400 out each), Claude Fable 5.2 would cost about $840 a month at today's prices.
Are these prices exact?
They are OpenRouter's live prices, which pass through what each provider charges. Your real bill also depends on how long the model's answers are, reasoning tokens, and any caching or batch discounts.
Get this in your inbox at 7am
One free email each morning with the AI repos, models and stories that are picking up speed, including new free models. Your own time zone, no spam.