LLM API pricing comparison

List prices per 1M tokens for 45 models from 6 providers, each checked against the provider's official pricing page.

Last verified: November 17, 2026 · 5 scheduled price changes · change log

Cheapest model per tier

TierCheapest modelInput / output per 1M1,000 requests × (2,000 in + 500 out)Models in tier
flagshipMistral Large 3 Mistral AI$0.50 / $1.50$1.7519
reasoningGrok 4.20 (Reasoning) xAI$1.25 / $2.50$3.751
midGemini 3.8 Flash Google price changes 2027-01-01$0.75 / $3.75$3.3812
smallMinistral 3 8B Mistral AI$0.15 / $0.15$0.3813

Ranked by the cost of the workload in the column header at standard rates (no caching or batch). Tags mark announced price changes.

All models

ModelProviderInputCached inputOutputBlended 3:1BatchContextLong-context tier
Claude Fable 5.1Anthropic$10.00$0.25$50.00$20.00−50%1Mnone
Claude Fable 5Anthropic$10.00$1.00$50.00$20.00−50%1Mnone
Claude Fable 5.2Anthropic$8.00$0.20$40.00$16.00−50%1Mnone
Claude Opus 5Anthropic$5.00$0.50$25.00$10.00−50%1Mnone
Claude Opus 4.8Anthropic$5.00$0.50$25.00$10.00−50%1Mnone
Claude Opus 5.5Anthropic$4.00$0.20$20.00$8.00−50%1Mnone
Claude Sonnet 4.6Anthropic$3.00$0.30$15.00$6.00−50%1Mnone
Claude Sonnet 5.5Anthropic$2.00$0.10$10.00$4.00−50%1Mnone
Claude Sonnet 5Anthropic$2.00$0.20$10.00$4.00−50%1Mnone
Claude Haiku 4.5Anthropic$1.00$0.10$5.00$2.00−50%200Knone
Claude Haiku 5.5Anthropic$0.10$0.01$0.50$0.20−50%1Mabove 100K
DeepSeek V4 ProDeepSeek$1.32$0.044$3.96$1.98—1Mnone
DeepSeek V4.1 FlashDeepSeek$0.30$0.006$1.20$0.52—1Mnone
Gemini 4 Carbon price changes 2026-12-01Google$2.00$0.10$10.00$4.00−50%1.05Mnone
Gemini 4 Argon price changes 2026-12-01Google$2.00$0.10$10.00$4.00−50%1.05Mnone
Gemini 3.1 Pro (Preview)Google$2.00$0.20$12.00$4.50−50%1.05Mabove 200K
Gemini 4 HydrogenGoogle$1.50$0.075$7.50$3.00−50%1.05Mnone
Gemini 3.8 Flash price changes 2027-01-01Google$0.75$0.075$3.75$1.50−50%1.05Mnone
Gemini 3.6 Flash price changes 2027-01-01Google$0.75$0.075$3.75$1.50−50%1.05Mnone
Gemini 3.5 Flash-LiteGoogle$0.30$0.03$2.50$0.85−50%1.05Mnone
Gemini 2.5 FlashGoogle$0.30$0.03$2.50$0.85−50%1.05Mnone
Gemini 3.1 Flash-LiteGoogle$0.25$0.025$1.50$0.56−50%1.05Mnone
Mistral Large 4Mistral AI$0.70$0.07$2.10$1.05−50%1Mnone
Mistral Large 3Mistral AI$0.50$0.05$1.50$0.75−50%256Knone
Mistral Medium 3.5Mistral AI$1.50$0.15$7.50$3.00−50%256Knone
CodestralMistral AI$0.30$0.03$0.90$0.45−50%128Knone
Mistral Small 4Mistral AI$0.15$0.015$0.60$0.26−50%256Knone
Ministral 3 8BMistral AI$0.15$0.015$0.15$0.15−50%256Knone
GPT-6 AstraOpenAI$10.00$1.00$50.00$20.00−50%1.05Mabove 272K
GPT-5.5OpenAI$5.00$0.50$30.00$11.25−50%1.05Mabove 272K
GPT-5.6 SolOpenAI$4.00$0.40$20.00$8.00−50%1.05Mabove 272K
GPT-5.4OpenAI$2.50$0.25$15.00$5.63−50%1.05Mabove 272K
GPT-6.1 SolOpenAI$2.00$0.10$10.00$4.00−50%1.05Mabove 272K
GPT-6 SolOpenAI$2.00$0.20$10.00$4.00−50%1.05Mabove 272K
GPT-5.6 TerraOpenAI$2.00$0.20$12.00$4.50−50%1.05Mabove 272K
GPT-6.1 TerraOpenAI$1.00$0.05$5.00$2.00−50%1.05Mabove 272K
GPT-5.4 miniOpenAI$0.75$0.075$4.50$1.69−50%400Knone
GPT-5.6 LunaOpenAI$0.20$0.02$1.20$0.45−50%1.05Mabove 272K
GPT-6 LunaOpenAI$0.10$0.01$0.50$0.20−50%1.05Mabove 272K
Grok 4.7xAI$2.00$0.50$6.00$3.00−20%500Kabove 200K
Grok 4.6xAI$2.00$0.50$6.00$3.00−20%500Kabove 200K
Grok 4.5xAI$2.00$0.30$6.00$3.00−20%500Kabove 200K
Grok 4.20 (Reasoning)xAI$1.25$0.20$2.50$1.56−20%1Mabove 200K
Grok 4.3xAI$1.25$0.20$2.50$1.56−20%1Mabove 200K
Grok Build 0.1xAI$1.00$0.20$2.00$1.25—256Kabove 200K

USD per 1M tokens. Standard tier, prompts below any long-context threshold. Click a column header to sort.

"Blended 3:1" weights input three times as heavily as output, a rough mix for chat and RAG traffic. Agents and batch jobs have very different mixes, so use the calculator or the use-case guides for real workloads. Machine-readable data: /prices.json.

How LLM API pricing works

Every provider here bills input tokens (your prompt, system prompt, tool definitions and conversation history) and output tokens (what the model generates, including reasoning or thinking tokens) at separate prices quoted per 1 million tokens:

cost = input tokens × input price ÷ 1,000,000 + output tokens × output price ÷ 1,000,000

Per single token the numbers get very small: $0.75 per 1M input tokens is $0.00000075 per token. Output costs more than input on 44 of the 45 models here; the median output price is 5× the input price (range 1× to 8.3×), so output-heavy workloads such as long-form generation or agents with long reasoning are priced mostly by the output column.

Worked example. Gemini 3.8 Flash costs $0.75 input and $3.75 output per 1M tokens. One request with 2,000 input and 500 output tokens:

The same 1,000 requests on other models

ModelTierInput / output per 1MPer request1,000 requestsWith batch API
Mistral Large 3 Mistral AI cheapest in tierflagship$0.50 / $1.50$0.0018$1.75$0.88
Mistral Large 4 Mistral AIflagship$0.70 / $2.10$0.0024$2.45$1.22
DeepSeek V4 Pro DeepSeekflagship$1.32 / $3.96$0.0046$4.62—
Grok 4.7 xAIflagship$2.00 / $6.00$0.0070$7.00$5.60
Gemini 4 Carbon Google price changes 2026-12-01flagship$2.00 / $10.00$0.0090$9.00$4.50
Claude Fable 5.2 Anthropicflagship$8.00 / $40.00$0.04$36.00$18.00
GPT-6 Astra OpenAIflagship$10.00 / $50.00$0.04$45.00$22.50
Grok 4.20 (Reasoning) xAI cheapest in tierreasoning$1.25 / $2.50$0.0037$3.75$3.00
Gemini 3.8 Flash Google cheapest in tier price changes 2027-01-01mid$0.75 / $3.75$0.0034$3.38$1.69
Grok 4.3 xAImid$1.25 / $2.50$0.0037$3.75$3.00
Gemini 4 Hydrogen Googlemid$1.50 / $7.50$0.0067$6.75$3.38
Mistral Medium 3.5 Mistral AImid$1.50 / $7.50$0.0067$6.75$3.38
Claude Sonnet 5.5 Anthropicmid$2.00 / $10.00$0.0090$9.00$4.50
GPT-6.1 Sol OpenAImid$2.00 / $10.00$0.0090$9.00$4.50
Ministral 3 8B Mistral AI cheapest in tiersmall$0.15 / $0.15$0.00038$0.38$0.19
Claude Haiku 5.5 Anthropicsmall$0.10 / $0.50$0.00045$0.45$0.23
GPT-6 Luna OpenAIsmall$0.10 / $0.50$0.00045$0.45$0.23
Mistral Small 4 Mistral AIsmall$0.15 / $0.60$0.00060$0.60$0.30
DeepSeek V4.1 Flash DeepSeeksmall$0.30 / $1.20$0.0012$1.20—
Gemini 3.5 Flash-Lite Googlesmall$0.30 / $2.50$0.0019$1.85$0.93
Grok Build 0.1 xAIsmall$1.00 / $2.00$0.0030$3.00—

The newest model from each provider in each tier, plus each tier's cheapest. Standard rates, no prompt caching. Change tokens, caching and volume in the calculator, or count your prompt's tokens with the token counter.

Cached input and batch discounts by provider

ProviderCached input (share of input price)Cache writeBatch discountOther
Anthropic2.5%–10%1.25× input50%
OpenAI5%–10%1.25× input (8 of 11 models)50%
Google5%–10%no separate price50%
xAI15%–25%no separate price20% (5 of 6 models)
DeepSeek2%–3.3%no separate price—Off-peak hours: 50% off
Mistral AI10%no separate price50%

Cached input is what you pay when the start of a prompt matches a recent request and the provider serves it from cache; where a cache-write price is listed, the first request that stores the prefix pays that rate instead of the normal input price. "No separate price" means cache writes bill as normal input. Batch discounts apply to the whole request, input and output. Exact terms (cache lifetime, storage fees, which endpoints qualify) are in each model's billing notes and on the provider's page. See the guides for how much caching saves on agent and RAG workloads.

Long-context price thresholds

These models bill the whole request at a higher rate once the prompt exceeds the threshold. All other models here keep one price across their full context window.

ProviderPrompt aboveInput priceOutput priceModels
Anthropic100K tokens5×5×Claude Haiku 5.5
Google200K tokens2×1.5×Gemini 3.1 Pro (Preview)
OpenAI272K tokens2×1.5×GPT-6 Astra, GPT-6.1 Sol, GPT-6.1 Terra, GPT-6 Luna, GPT-6 Sol, GPT-5.6 Sol, GPT-5.6 Terra, GPT-5.6 Luna, GPT-5.5, GPT-5.4
xAI200K tokens2×2×Grok 4.7, Grok 4.6, Grok 4.5, Grok 4.3, Grok 4.20 (Reasoning), Grok Build 0.1

Scheduled and possible price changes

The table above shows prices in effect on 2026-11-17. Full history on the price changes page (RSS).

Cheapest models by output price

  1. Ministral 3 8B (Mistral AI): $0.15 in / $0.15 out
  2. Claude Haiku 5.5 (Anthropic): $0.10 in / $0.50 out
  3. GPT-6 Luna (OpenAI): $0.10 in / $0.50 out
  4. Mistral Small 4 (Mistral AI): $0.15 in / $0.60 out
  5. Codestral (Mistral AI): $0.30 in / $0.90 out
  6. GPT-5.6 Luna (OpenAI): $0.20 in / $1.20 out
  7. DeepSeek V4.1 Flash (DeepSeek): $0.30 in / $1.20 out
  8. Gemini 3.1 Flash-Lite (Google): $0.25 in / $1.50 out
  9. Mistral Large 3 (Mistral AI): $0.50 in / $1.50 out
  10. Grok Build 0.1 (xAI): $1.00 in / $2.00 out

Sources

Standard list prices in USD: no enterprise discounts, priority tiers or regional surcharges. Each model page links its own source and verification date. Head-to-head pages: model comparisons.

FAQ

What is the cheapest LLM API?

By list price, the cheapest model tracked here is Ministral 3 8B (Mistral AI) at $0.15 input and $0.15 output per 1M tokens: 1,000 requests × (2,000 in + 500 out) costs $0.38. Cheapest per tier on the same workload: flagship Mistral Large 3 ($1.75), reasoning Grok 4.20 (Reasoning) ($3.75), mid Gemini 3.8 Flash ($3.38), small Ministral 3 8B ($0.38). Prices verified 2026-11-17. The cheapest model is not always the cheapest per finished task, so test a shortlist on your own inputs.

How is LLM API pricing calculated?

Providers bill input (prompt) tokens and output (generated) tokens separately, each at a price per 1M tokens: cost = input tokens × input price / 1,000,000 + output tokens × output price / 1,000,000. For example, Gemini 3.8 Flash charges $0.75 input and $3.75 output, so a request with 2,000 input and 500 output tokens costs $0.0015 + $0.001875 = $0.003375. Output is priced higher than input on 44 of the 45 models here (median 5× the input price). Reasoning or thinking tokens are billed as output.

Do cached tokens cost less?

Yes. All 6 providers tracked here list a cached-input price, between 2% and 25% of the normal input price depending on provider and model. Anthropic lists a cache-write price of 1.25× input on all 11 models; OpenAI lists a cache-write price of 1.25× input on 8 of 11 models. Caching only helps when the same prompt prefix is re-sent, as in agents, chat history and repeated questions over one document.

What does batch pricing mean?

A batch API accepts many requests at once and returns results asynchronously instead of in real time. In exchange the price drops: Anthropic 50% off, OpenAI 50% off, Google 50% off, xAI 20% off, Mistral AI 50% off. No batch discount is listed for DeepSeek, which instead discounts off-peak hours by 50%. Batch suits classification, extraction and evaluation jobs that do not need an immediate answer.

What is long-context pricing?

Some models bill the whole request at a higher rate once the prompt passes a threshold: Anthropic above 100K tokens (5× input, 5× output, 1 model); Google above 200K tokens (2× input, 1.5× output, 1 model); OpenAI above 272K tokens (2× input, 1.5× output, 10 models); xAI above 200K tokens (2× input, 2× output, 6 models). Other models tracked here keep one price across their full context window.