Free tool·no account · nothing leaves your browser

LLM pricing calculator

Pick the models you are choosing between, describe one request, and see what it costs per request, per day, and per month. 35 models across nine providers, at rates checked August 2026.

One request
60%

Monthly figures assume 30 days. Long-context tiers are applied automatically where the provider publishes them, and flagged where it does not. Cache writes and batch discounts are not: see how pricing works for what each is worth.

01 · The rate card

Every rate, and where it came from.

Prices are US dollars per million tokens, read off each provider's own live pricing page on 19 August 2026. Cache reads are the discounted rate for content the provider has already processed. A dash means the provider publishes no rate for that column, and the calculator bills those tokens at the full input rate rather than inventing a discount.

Thirty-five models, nine providers, US dollars per million tokens. checked 19 aug 2026
API pricing per million tokens by model, verified 19 August 2026
Model Input Cache read Output Context
Anthropic pricing page
Claude Fable 5$10$1$501M
Claude Opus 5$5$0.50$251M
Claude Opus 4.8$5$0.50$251M
Claude Opus 4.7$5$0.50$251M
Claude Opus 4.6$5$0.50$251M
Claude Sonnet 5$2$0.20$101M
Claude Sonnet 4.6$3$0.30$151M
Claude Haiku 4.5$1$0.10$5200K
Cache reads are 0.1x input on every Claude model. Cache writes are 1.25x input for a five-minute cache and 2x for a one-hour cache. The $2 / $10 rate on Sonnet 5 launched as introductory pricing and is now the standard price: the scheduled rise to $3 / $15 on 1 September 2026 was cancelled.
OpenAI pricing page
GPT-5.6 Sol$5$0.50$301.05M
GPT-5.6 Terra$2$0.20$121.05M
GPT-5.6 Luna$0.20$0.02$1.201.05M
GPT-5.4$2.50$0.25$15
GPT-4o$2.50$1.25$10
GPT-4o mini$0.15$0.075$0.60
o3$2$0.50$8
o4-mini$1.10$0.275$4.40
Caching is automatic on the GPT-5.6 family and there is no separate cache-write charge on the published table. Long-context requests bill at a surcharge: GPT-5.6 Sol goes to $10 input and $45 output. GPT-4o's cached rate is 0.5x input, not the 0.1x the newer models get.
Google pricing page
Gemini 3.1 Pro Preview$2$0.20$121.05M
Gemini 3.7 Flash$0.75$0.075$3.75
Gemini 3.6 Flash$0.75$0.075$3.75
Gemini 3.5 Flash$1.50$0.15$9
Gemini 3 Flash Preview$0.50$0.05$3
Gemini 3.1 Pro is tiered: prompts over 200K tokens bill at $4 input, $0.40 cached, $18 output. The $0.75 / $3.75 rate on 3.7 and 3.6 Flash holds through 31 December 2026 and doubles to $1.50 / $7.50 on 1 January 2027, so an annual budget built on today's number will be wrong by half. Google's caching also carries a storage charge of $1 per million tokens per hour on top of the cache-read rate, which is not in the column above and not in the calculator: unlike Anthropic's, a Gemini cache costs money while it merely sits there.
xAI pricing page
Grok 4.6$2$0.50$6500K
Grok 4.5$2$0.30$6500K
Grok 4.3$1.25$0.20$2.501M
Every Grok rate above applies at 200K prompt tokens or fewer. Above 200K, all three double.
DeepSeek pricing page
DeepSeek V4 Pro$1.32$0.044$3.961M
DeepSeek V4 Flash$0.44$0.014$1.321M
Peak rates. Peak is 01:00 to 04:00 and 06:00 to 10:00 UTC; every other hour is off-peak at exactly half of these numbers. A batch job you can schedule is a 50 percent discount for free.
Moonshot pricing page
Kimi K3$3$0.30$151.05M
Kimi K2.7 Code$0.95$0.19$4262K
Z.ai pricing page
GLM-5.3$1.40$0.26$4.40
GLM-5.2$1.40$0.26$4.40
GLM-4.7$0.60$0.11$2.20
GLM-4.7-FlashX$0.07$0.01$0.40
Alibaba and open weights
Qwen3.8 Max Model Studio$2$0.25$61M
Qwen3.5 397B Together$0.60$0.35$3.60
Llama 3.3 70B Together$1.04$1.04
Qwen3.8 Max is the International (Singapore) endpoint; the Beijing endpoint is materially cheaper for the same model. Open-weight models have no single price: the two Together rows are what one host charges, and a different host will quote a different number for identical weights.
02 · How API pricing works

Five multipliers sit between the rate card and your invoice.

The headline number is per million tokens, but almost nothing you actually send is billed at exactly that rate. Here is every modifier that moves the total, and roughly how much each one is worth.

Input and output are different products

Every provider bills the tokens you send and the tokens the model writes at separate rates, and output is always the expensive one. Input is read in a single parallel pass over the whole prompt. Output has to be generated one token at a time, each one a full forward pass through the model, and that serial work cannot be batched the way reading can. The ratio lands between 3x and 6x almost everywhere: Claude Sonnet 5 is $2 in and $10 out, GPT-5.6 Sol is $5 in and $30 out, Gemini 3.1 Pro is $2 in and $12 out.

The practical consequence is that two workloads with the same token count can cost very differently. A summarizer that reads 50,000 tokens and writes 500 is cheap. A code generator that reads 5,000 and writes 4,000 is not, even though it moved a tenth as many tokens. Estimate the two halves separately or the answer will be wrong by an order of magnitude.

Cached input is the biggest lever you control

When you send the same prefix twice, the provider can reuse the work it already did. Anthropic prices a cache read at 0.1x the input rate on every Claude model, and OpenAI does the same on the GPT-5.6 family. On a coding agent that carries the same system prompt, tool definitions, and repository context into every turn, that prefix is often 80 to 95 percent of the prompt, so caching takes most of your input bill to a tenth.

Writing to the cache costs more than a plain input token, which is the part people miss. Anthropic charges 1.25x input for a five-minute cache and 2x for a one-hour cache. A five-minute cache therefore pays for itself after a single read, and a one-hour cache after two. The failure mode is a cold loop: restarting a session per task pays the write premium every time and never collects the read discount, which is exactly the leak Continuum Scan looks for.

Long-context surcharges are a cliff, not a slope

Several providers charge a premium once a single request crosses a prompt-size threshold, and the premium applies to the whole request, not just the tokens past the line. Gemini 3.1 Pro doubles from $2 to $4 input above 200K tokens. Every Grok 4.x model uses its standard tier at 200K prompt tokens or fewer and doubles above 200K. GPT-5.6 Sol goes from $5 / $30 to $10 / $45 on a long-context request. Anthropic is the exception: Claude 4.6 and later carry the full 1M window at standard pricing, so a 900K-token request bills at the same per-token rate as a 9K one.

This turns context management into a pricing decision. A prompt that sits at 195K tokens and one that sits at 205K are 2x apart on most providers, so a retrieval step that trims context can be worth more than switching models.

Batch and off-peak discounts are free money for async work

If a job does not need an answer in the next few seconds, it should not be paying interactive rates. Anthropic's Batch API is 50 percent off both input and output, and it stacks with caching. DeepSeek does the same thing on a clock instead of an endpoint: peak hours are 01:00 to 04:00 and 06:00 to 10:00 UTC, and every other hour is exactly half price. Nightly evals, backfills, and classification runs are the obvious candidates.

Reasoning tokens bill as output, and tokenizers differ

Thinking or reasoning tokens are charged at the output rate even though you never see most of them. An effort dial left at maximum for routine work is billed in full, which is why the same prompt can cost three times more on one setting than another with an identical visible answer.

Finally, a token is not a fixed amount of text and not the same across families. Claude Opus 4.7 introduced a new tokenizer, shared by Opus 4.8, Opus 5 and Fable 5, that produces roughly 30 percent more tokens for the same input than earlier Claude models. Comparing two models on price per million tokens alone therefore understates the newer Claude models slightly, because the same document is more tokens. Count your real prompt against the model you plan to use: our token counter gives a fast estimate, and each provider publishes an exact endpoint.

03 · Questions

Fine print.

The answers that change what you should actually do.

Input is read in one parallel pass. Output is produced one token at a time, each requiring a full forward pass, so a provider cannot batch it the same way. Anthropic, OpenAI, Google and xAI all price output at roughly three to six times input. Budget the two halves separately: a workload that reads a lot and writes little is far cheaper than its total token count suggests.

A cache read costs 10 percent of the input rate on every Claude model and on the GPT-5.6 family. Cache writes cost more than plain input: 1.25x for Anthropic's five-minute cache, 2x for the one-hour cache. So a five-minute cache pays for itself after one read and a one-hour cache after two. Warm agent loops hit the cache constantly, which is where the entire saving lives. Cold loops that restart per task pay the write premium and collect nothing.

Usually, if you code with agents every day. A flat plan prepays a token volume that would cost considerably more metered, and on a plan one extra turn costs nothing at the margin. The number that decides it is your real monthly token volume, priced at the rates on this page. Continuum Scan reads that off your own machine in one command and splits it into what is prepaid and what is a metered card charge.

Every row was read off the provider's own live pricing page on 19 August 2026, and each provider group links back to its source. Rates move in both directions: Claude Sonnet 5's introductory $2 / $10 became permanent, Gemini 3.7 Flash doubles on 1 January 2027, and DeepSeek charges half rate outside peak hours. Follow the source link before you commit a budget to any single number.

04 · Stop estimating

A calculator guesses.
Your logs know.

This page prices a request you described. Continuum's usage analytics prices the requests you actually made: it reads the Claude Code and Codex history already on your machine and breaks the bill down by repo, model, and day. If you would rather not manage provider keys at all, hosted inference starts at $25 a month with a flat weekly allowance. If you are comparing API spend against your own GPUs, use the open-model TCO calculator.

free app · your own keys · nothing leaves your machine