Pricing verified Nov 2026 — List price

LLM API Cost Calculator — What You Actually Pay

Most cost calculators multiply tokens by the sticker price. Production workloads rarely pay sticker price — they pay the effective rate after cache hits, batch discounts and long-context tiering. This calculator applies all of them and ranks every model by real monthly cost.

Your workload

Set 0 if you don't use explicit caching.
How much of each prompt is a repeated prefix (system prompt, retrieved docs, catalogue).
Batch = async, up to 24h latency, ~50% off. Stacks with cache.

Presets

Paste a prompt to estimate its input tokens

Counted in your browser, nothing is uploaded. The estimate lands within about 5–10% of a real tokenizer, which is enough to price a workload.

0 words · 0 characters · ~0 tokens
Total / month—
Total / 1M requests—
Cheapest model—
vs. priciest—
LLM API models ranked by effective monthly cost for your workload
Model Provider Input $/M Cached $/M Write $/M Output $/M Cost / month Context

List prices per 1,000,000 tokens, verified November 2026. They exclude negotiated discounts, provisioned throughput, storage and fine-tuning fees. Cached and batch rates apply only in the modes that model them — switching mode re-prices every row rather than adjusting the total afterwards.

Cheapest LLM APIs in November 2026

Ranked by blended list price — three input tokens to one output token, roughly the mix of a chat or retrieval workload. Cached input and batch rates can pull the real bill lower again; the calculator above applies both. Every rate below was re-checked against the provider's own pricing page in November 2026.

Cheapest LLM APIs ranked by blended price per million tokens
#ModelProviderInput $/MCached $/MOutput $/MBlended $/M
1GPT-6 LunaOpenAI$0.10$0.010$0.50$0.20
2Claude Haiku 5.5Anthropic$0.10$0.010$0.50$0.20
3Mistral Small 4Mistral AI$0.15$0.015$0.60$0.26
4GPT-5.6 LunaOpenAI$0.20$0.020$1.20$0.45
5GPT-5.4 nanoOpenAI$0.20$0.020$1.25$0.46
6DeepSeek V4.1 FlashDeepSeek$0.30$0.0060$1.20$0.52
7Gemini 3.1 Flash-LiteGoogle$0.25$0.025$1.50$0.56
8Gemini 3.5 Flash-LiteGoogle$0.30$0.030$2.50$0.85
9Mistral Large 4Mistral AI$0.70$0.070$2.10$1.05
10Gemini 3.8 Flash promoGoogle$0.75$0.075$3.75$1.50
11Gemini 3.6 Flash promoGoogle$0.75$0.075$3.75$1.50
12Grok 4.3xAI$1.25$0.20$2.50$1.56

Five reseller-priced models — Meta's Llama family (sold through Together AI) and Alibaba's Qwen 3 family — are excluded from this ranking because neither vendor prints a per-token row we can currently confirm. They are still in the calculator and the full table above, flagged as unverified.

What 1,000 API requests cost

Most teams budget per 1,000 calls rather than per million tokens. The table below assumes 1,500 input tokens and 400 output tokens per request, with no caching and no batch discount, and pairs the cheapest model from each provider with the most expensive frontier tiers. Scale the figure by your own monthly volume to size a bill.

Cost of 1,000 API requests at 1,500 input and 400 output tokens each
ModelProviderInput $/MOutput $/M1,000 requests
GPT-6 LunaOpenAI$0.10$0.50$0.35
Claude Haiku 5.5Anthropic$0.10$0.50$0.35
Mistral Small 4Mistral AI$0.15$0.60$0.46
DeepSeek V4.1 FlashDeepSeek$0.30$1.20$0.93
Gemini 3.1 Flash-LiteGoogle$0.25$1.50$0.98
Grok 4.3xAI$1.25$2.50$2.88
GPT-5.6 SolOpenAI$4.00$20.00$14.00
Claude Opus 5Anthropic$5.00$25.00$17.50
GPT-5.5OpenAI$5.00$30.00$19.50
Claude Fable 5.2Anthropic$8.00$40.00$28.00
GPT-6 AstraOpenAI$10.00$50.00$35.00
Claude Fable 5.1Anthropic$10.00$50.00$35.00

Formula: 1,000 × ((1,500 ÷ 1,000,000 × input rate) + (400 ÷ 1,000,000 × output rate)). A prompt-heavy request costs far more than a chatty one, so replace the token counts with your own and re-run the calculator above.

What this LLM token price estimator actually computes

The same question gets asked four different ways: how much does this LLM API cost, what is the model cost per million tokens, what will my token cost be at a given request volume, and which price estimator can be trusted. This page answers all four, because the answer is the same number every time — the only inputs that change it are the cached share, the batch flag and whether your prompt crosses a long-context threshold.

Set your four workload numbers above and the estimator recomputes every model in the table, sorted by cost per month. Nothing is estimated behind an email gate, and there is no account to create.

How the cost is actually calculated

Total cost is the sum of four independently billed line items, multiplied by your request volume:

Uncached inputtokens ÷ 1e6 × inputRate
Cached inputtokens ÷ 1e6 × cachedRate
Cache writetokens ÷ 1e6 × writeRate
Outputtokens ÷ 1e6 × outputRate

The part most calculators skip is the cache write premium. Anthropic bills a 5-minute cache write at 1.25× the input rate and a 1-hour write at 2×. A caching strategy only pays off if you write once and read many times — roughly 20 reads to 1 write breaks even on a 5-minute TTL, more on a 1-hour TTL. Google bills cached context storage separately per MTok-hour rather than per token, so it does not appear as a per-token write rate here.

Long-context tiers

Quoting a single price per model is misleading if your prompts are large. This calculator switches rates automatically when your input size crosses a provider's threshold:

ProviderThresholdEffect above threshold
OpenAI (GPT-5.6 / GPT-6 / GPT-5.5 / GPT-5.4)272K input tokensInput 2× · Cached 2× · Output 1.5×
Google (Gemini Pro)200K input tokensInput 2× · Output 1.5×
xAI (Grok)200K input tokensInput 2× · Output 2×
Anthropic (Claude 5 / Opus / Sonnet)—Flat rate across the full 1M window, no surcharge

Claude's flat 1M window is a real advantage for whole-document workloads: a 900K-token request bills at the same per-token rate as a 9K one. On the same workload, OpenAI's tiering roughly doubles the effective rate.

How to cut your bill

1. Route by task, not by brand

Matching the model tier to the job is a bigger lever than switching vendors. Classification, extraction, routing and first-pass support belong on a budget tier. Tier 2 of the table above will beat your flagship on most of those jobs without a meaningful quality drop.

2. Cache a stable prefix

Any workload where requests share a system prompt, a policy document or a product catalogue should cache it. Cache reads bill at roughly 10% of list on OpenAI, Anthropic and Google, and about 2% on DeepSeek.

3. Push offline work to batch

Batch halves both input and output. Combined with a cache hit, cached input inside a batch request can land near 5% of list. This is the single largest available reduction for evaluation runs, nightly summaries and bulk enrichment.

4. Remember reasoning tokens bill as output

Thinking and reasoning tokens are billed at the output rate, and output runs 3–6× input across every vendor. Heavy deliberation, not prompt size, is what usually dominates an agent bill. If output price is your problem, the fix is prompting and model choice — not caching.

Deciding when to switch

Run the numbers before you migrate. The pattern most teams land on is a two-model setup rather than a single choice, and the split is almost always the same:

Two things that look like cost savings and usually are not:

And one that usually is: if your input is large and repetitive, the long-context tier is a bigger line item than the model choice. Compare the same workload at 150K and 400K tokens in the calculator above and read the difference before you optimise anything else.

Frequently asked

How do I calculate LLM API costs?

Multiply each token category by its own rate per million, then by monthly request volume. Input, cached input, cache writes and output are four separate line items. See the formula table above.

Does prompt caching actually reduce costs?

Yes — a cache read bills at roughly 10% of the standard input rate on OpenAI, Anthropic and Google, and around 2% on DeepSeek. Output is never discounted by caching. Because writes carry a premium, caching only wins when the same prefix is reused many times.

What is the difference between batch and real-time calls?

Batch requests are accepted asynchronously and return within up to 24 hours in exchange for roughly 50% off both input and output. Batch stacks with caching. DeepSeek publishes no batch tier, so it is excluded from batch rankings rather than being shown at $0.

Why does my bill jump with long context?

OpenAI applies long-context rates above 272K input tokens, roughly doubling input and raising output 1.5×. Google tiers above 200K on Pro models. Anthropic charges flat across 1M. The calculator applies these thresholds based on your actual input size.

Are these the same prices as a ChatGPT subscription?

No. ChatGPT and Claude subscriptions are separate flat-rate products and do not include API access. API access is billed per token with no platform fee or minimum.

How accurate are these prices?

Every figure is transcribed from the provider's own published pricing page and carries a verification date shown in the table. LLM pricing changes frequently — several rates here are promotional and time-limited — so treat this as a dated snapshot and confirm against the official page before you sign a contract. The table marks promotional rates and expired promotions explicitly. Two providers, Meta (via Together AI) and Alibaba Cloud, no longer publish per-token rows we can confirm, so those five models are labelled unverified rather than presented as fact.

Every rate below traces to one of these pages. If a number here disagrees with the source, the source wins — tell us and we will correct it. The full audit trail, including what changed in the November 2026 review, is on the methodology section of the about page.

OpenAI14 models · batch API · long-context tier above 272K input tokens
Anthropic9 models · cache writes carry a premium · two cache-hit multipliers in use
Google9 models · Gemini 3.x and 4.x tiers · no >200K surcharge on Flash models
xAI3 models · Grok tiers · long-context tier above 200K input tokens
DeepSeek2 models · no published batch tier · off-peak rates are half
Meta3 models (3 unverified) · reseller pricing · no current per-token row published unverified
Alibaba3 models (3 unverified) · legacy Qwen 3 rates · no current per-token row published unverified
Mistral AI2 models · Large 4 and Small 4 list prices
How much do 1 million LLM tokens cost?

It depends entirely on which tokens and which model. On a mid-tier model, 1M input tokens typically cost between $0.15 and $0.60, while 1M output tokens cost roughly four times more. At the cheap end, a small model starts near $0.02 per million; at the expensive end, a frontier reasoning model reaches $15 or more. The single clearest lever is output: it is billed at a premium and you can usually reduce it more easily than you can reduce input.

How much do 1,000 LLM API requests cost?

At 1,500 input tokens and 400 output tokens per request, 1,000 requests cost $0.35 on GPT-6 Luna, $2.63 on Gemini 3.8 Flash and $35.00 on Claude Fable 5.1 — list prices in November 2026, before caching or batch discounts. Add caching and a batch tier and the same 1,000 requests can fall by more than half. The spread is roughly 100x, which is why the per-request token count matters more than the headline rate.

Is there a free LLM cost estimator, or an API I can call?

Both, and they return the same numbers. This page is the free estimator — no account, no trial, no emailed report. There is no calculation API that will run a calculation for you, but every rate on this page is also published as a flat, documented JSON dataset at /data/pricing.json, so you can read the same numbers programmatically instead of scraping a table. That file is generated directly from this page's own model data on every build, so the two can never drift apart. If you would rather do the arithmetic yourself, the formula table above and the rates in the model table are all you need — it is four multiplications.

How do I estimate the cost of my own LLM usage before I ship it?

Start from a single real request, not from a token guess. Log one production prompt and one response, count their tokens, and multiply by expected monthly requests. Then stress two variables: what happens if your prompt doubles, and what happens if 40% of it becomes a cached prefix. Those two tests usually move the total more than switching providers does.

Use the data without scraping this page

Everything above is also published as machine-readable files. They are generated from this page's own model data during the build, which means a rate can never appear in one place and contradict the other. If you are writing an article, generating a model comparison, or feeding an LLM, use these instead of copy-pasting the table.

/data/pricing.json All 45 models as flat JSON with documented field names, the verification date, and every long-context and batch tier. Safe to cite.
/llms.txt A short plain-text map of this site for language models that read it before answering.

Rates carry a verification date and several are promotional. If you cite a number, cite the date with it — LLM pricing moves often enough that an undated figure is worth very little.

Sources & verification

Prices verified: November 2026 ·Sources: OpenAI Anthropic Google xAI

TokenMeter is not affiliated with OpenAI, Anthropic, Google, xAI or DeepSeek. Model names and prices are the property of their respective owners. This tool runs entirely in your browser — no request, token count or calculation leaves your device.

Browse pricing by model

Provider price hubs: OpenAI · Anthropic · Google Gemini · xAI Grok · DeepSeek · Meta Llama · Alibaba Qwen · Mistral AI

Directories: All 45 models ranked by price · 214 head-to-head comparisons · Recent price changes

Best for: Cheapest LLM API · Largest context window · Lowest output price · Best for RAG

Free tools: Token converters and cost calculators · Words to tokens · Cost of 1,000 words

Every page is generated from the same dataset this calculator uses, so the rates can never disagree.