LLM API Cost & Token Budget Estimator
Estimate monthly LLM API spend across Claude, GPT, Gemini, DeepSeek and Grok from your request volume and token sizes. Prices verified and editable.
Developers · Free · Last updated 2 October 2026
Usage parameters
Everything you send: system prompt, retrieved context, tool definitions and history. About 750 words ≈ 1,000 tokens.
The visible answer. Reasoning/thinking tokens are billed at this rate too, even though you never see them.
Monthly cost by model
The spread is 100× between GPT-6 Luna at $16.00 and GPT-6 Astra at $1,600.00 for identical traffic. That spread — not the absolute number — is the decision.
Defaults were read from each provider's pricing page on 2 October 2026. Prices change quietly — overtype them if you have a negotiated rate or a newer figure.
| Model | Provider | In /1M | Out /1M | Monthly |
|---|---|---|---|---|
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | $16.00 |
| DeepSeek FlashPeak rate — off-peak is $0.15 / $0.60 | DeepSeek | $0.30 | $1.20 | $42.00 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.50 | $45.00 | |
| Gemini 2.5 Flash | $0.30 | $2.50 | $68.00 | |
| Gemini 3.8 FlashIntro rate to 31 Dec 2026, then $1.50 / $7.50 | $0.75 | $3.75 | $120.00 | |
| Gemini 3.6 FlashIntro rate to 31 Dec 2026, then $1.50 / $7.50 | $0.75 | $3.75 | $120.00 | |
| DeepSeek V4 ProPeak rate — off-peak is $0.66 / $1.98 | DeepSeek | $1.32 | $3.96 | $158.40 |
| Claude Haiku 4.5 | Anthropic | $1.00 | $5.00 | $160.00 |
| Grok 4.7 | xAI | $2.00 | $6.00 | $240.00 |
| Claude Sonnet 5Derived from published cache-rate multipliers — confirm at sourceDerived figure — confirm at source | Anthropic | $2.00 | $10.00 | $320.00 |
| GPT-6.1 Sol | OpenAI | $2.00 | $10.00 | $320.00 |
| Claude Sonnet 4.6 | Anthropic | $3.00 | $15.00 | $480.00 |
| Claude Opus 5.5Fast mode is $8 / $40 | Anthropic | $4.00 | $20.00 | $640.00 |
| GPT-5.6 SolPromotional rate, at least through 21 Nov 2026 | OpenAI | $4.00 | $20.00 | $640.00 |
| GPT-6 AstraLong context is $20 / $75 | OpenAI | $10.00 | $50.00 | $1,600.00 |
Prices verified 2 October 2026
List price, standard tier, short context (≤200k tokens). DeepSeek figures are PEAK rates; off-peak is exactly half. Long-context, batch, priority and cached-input rates differ. Excludes per-call tool fees, retries, image/audio tokens and storage.
50,000 requests × (1,200 in + 400 out) = 60.00M input and 20.00M output tokens per month.
How the LLM API Cost Estimator works, and how to get more out of it
How token billing actually works
Providers bill per token, and a token is roughly four characters of English, or about 750 words per 1,000 tokens. The exact count depends on the content and the tokeniser, so treat word-based estimates as ±20% rather than precise.
The important structural fact is that input and output are priced differently, and output is usually several times more expensive. On the models in this table the output price runs between four and five times the input price. Input is processed in parallel during the prefill phase; output is generated one token at a time, auto-regressively, which is far more compute-intensive per token.
That single ratio drives most cost engineering. Anything you can move from output to input, or eliminate entirely, saves disproportionately — which is why shorter answers and better prompting usually beat switching models.
The two numbers people underestimate
Prompt length. A typical bare question is 50 to 200 tokens. The same question inside a real application — system prompt, retrieved documents, tool definitions and conversation history — commonly runs 1,500 to 8,000 tokens before the user's actual words. Applications do not get billed for the user's question; they get billed for everything they send alongside it.
Thinking tokens. Reasoning models generate intermediate tokens, and those are billed at the OUTPUT rate even though users never see them. Google states this explicitly for Gemini ('output price, including thinking tokens'). A reasoning model can therefore cost several times a plain chat model on identical visible output, and the only way to see it is to log reported token usage rather than estimating from response length.
About these prices, and how to keep them honest
Every price in the table was read from the provider's own pricing page on 2 October 2026, and each row links to the page it came from. The verification date is shown in the results, because a price table without a date is a guess wearing a suit.
Prices change quietly. Introductory rates expire — several Gemini Flash tiers step up materially on 1 January 2027, and OpenAI's promotional rate on GPT-5.6 Sol is guaranteed only to 21 November 2026. DeepSeek publishes peak and off-peak rates where off-peak is exactly half. Anthropic splits long-context and fast-mode pricing. So the calculator lets you overtype any input or output price with your own contract rate; the defaults are a starting point, not an authority.
One row is marked as derived rather than read: Claude Sonnet 5's input and output cells were blank in Anthropic's published table, so the figures shown are reconstructed from its three cache-rate multipliers, which independently imply a $2.00 input rate. It is flagged in the results so you can check it rather than trust it.
Discounts that change the answer completely
- Cached input. A cache hit typically costs a tenth of the standard input rate. Anthropic charges 1.25x for a 5-minute cache write and 2x for a 1-hour write, then 0.1x per read; OpenAI publishes a cached-input column at roughly 0.1x. A stable system prompt behind a cache is the single largest saving in most applications.
- Batch processing. Non-urgent work submitted in batch is discounted — Google publishes a straight 50% reduction, and OpenAI prices batch separately. Anything that does not need a live answer belongs in a batch.
- Service tiers. Priority and fast tiers cost more, sometimes double. Reserve them for genuinely latency-sensitive paths.
- Model routing. Sending every request to a frontier model is the most common way to overspend. Most production traffic is classification, extraction or short generation that a cheaper tier handles at a fraction of the cost.
Costs this estimator does not include
It models token spend for the request shape you describe. Real bills also carry:
- Tool and search fees, billed per call on top of tokens. OpenAI charges $10 per 1,000 web search calls plus the retrieved content as input tokens; Google gives 5,000 grounding requests a month then charges $14 per 1,000. An agent that searches on every request can spend more on search than on inference.
- Retries and failures. Rate-limited or malformed requests that are retried still cost tokens on the successful attempt.
- Image, audio and video tokens, which are priced on entirely different scales and are not comparable per token with text.
- Storage and compute outside the model — vector databases, container minutes for code execution, file storage for uploaded assets.
- Fine-tuning, which providers increasingly price separately from inference.
How to read the comparison table
The table ranks every model by total monthly cost for the traffic you described, and the spread is usually wide — often two orders of magnitude between the cheapest and the most capable option. That spread is the useful information.
Start from the required capability and work down, not from the cheapest model up. Decide what quality the task actually needs, pick the cheapest model that clears that bar, then use routing so only the requests that need more get more. A single model choice for an entire application is almost always either overpaying or underperforming on part of the traffic.
Before committing, put a hard monthly spend cap and alert thresholds in the provider dashboard. Runaway cost in an agent loop is a real failure mode, not a hypothetical one, and the caps are free.
Frequently asked questions
Why are output tokens more expensive than input tokens?
Input tokens are processed in parallel during the prefill phase, so the work is batched efficiently. Output tokens are generated one at a time, each depending on the last, which requires far more memory bandwidth and GPU time per token. The typical ratio in this table is four to five times.
How many tokens does a typical request use?
A bare question is 50 to 200 tokens. A real application request is usually 1,500 to 8,000 input tokens once the system prompt, retrieved context, tool definitions and conversation history are included. Estimate your actual prompt, not the user's question — that is where budgets go wrong.
What is prompt caching and how much does it save?
Providers store a frequently reused prompt prefix and serve it from cache at a fraction of the standard input rate — typically 0.1x. Anthropic charges 1.25x to write a 5-minute cache and 2x for a 1-hour cache, so caching pays for itself after a single read on short TTLs. It is usually the biggest single saving available.
Are these prices current?
Every default was read from the provider's own pricing page on 2 October 2026 and the date is shown in the results. Prices change quietly, so you can overtype any rate with your own contract price, and each row links to its source so you can re-check before relying on it.
Why does DeepSeek show higher prices than other cheap models?
Because the figures shown are its PEAK rates, which apply 01:00–04:00 and 06:00–10:00 UTC on weekdays. Off-peak, which covers all other hours including full weekends and Chinese public holidays, is exactly half — so DeepSeek Flash is $0.15 in and $0.60 out off-peak.
Do reasoning or thinking tokens cost extra?
They are billed as output tokens, at the output rate, even though you never see them. Google states this explicitly for Gemini. A reasoning model can therefore cost several times a plain model on identical visible output, so log reported token usage rather than estimating from response length.
Is streaming cheaper than a single response?
No. Providers bill on total tokens processed and generated, not on how they are delivered. Streaming changes latency and perceived speed, not cost.
How do I stop an agent loop running up a huge bill?
Set max_tokens on every request, set a hard monthly spend cap in the provider dashboard, and configure alert webhooks at 50%, 75% and 90% of budget. Then log token usage per request so a change in prompt size is visible before it reaches the invoice.