What a 1-Million-Token Request Actually Costs: Pricing the Long-Context Window
Filling a million-token context window costs $0.51–$16.24 depending on model and provider. Retrieval is roughly 300× cheaper when most tokens go unused.
One request that uses all 1 million tokens costs between $0.50 and $16.00 at the input layer alone, before the model writes a single word. The final bill depends on which model you pick, whether you hit a long-context pricing tier, and how much output you ask for.
Claude models and Gemini 4 Carbon
Claude Sonnet 5.5 costs $2.00 per 1M input tokens and $10.00 per 1M output tokens, with cache reads at $0.10 per 1M tokens (20× cheaper than a fresh read) and cache writes at $2.50 per 1M tokens for a 5-minute window, as of 2 December 2026. Its full 1M-token context window is billed at the standard rate. One 1M-token request with 4,000 tokens of output runs $2.00 + $0.04 = $2.04 total.
Claude Opus 5.5 costs $4.00 per million input tokens and $20.00 per million output tokens, with cache reads at $0.20 per million. A full window with 4,000 output tokens: $4.00 + $0.08 = $4.08 total.
Claude Haiku 5.5 costs $0.10 per 1M input tokens below 100K, but input prompts exceeding 100K tokens cost $0.50 per 1M (a 5× jump), and output costs $0.50 per 1M below 100K and $2.50 per 1M above. A 1M-token request with 4,000 output tokens hits the tier: $0.50 + $0.01 = $0.51 total. Haiku is not flat across the full window.
Claude Sonnet 4.6 costs $3.00 per 1M input and $15.00 per 1M output, with no long-context surcharge. A full window with 4,000 output tokens: $3.00 + $0.06 = $3.06 total.
Claude Fable 5.2 costs $8.00 per 1M input tokens and $40.00 per 1M output tokens, with a 1M-token context window. A full window with 4,000 output tokens: $8.00 + $0.16 = $8.16 total.
Gemini 4 Carbon costs $4.00 per 1M input tokens and $20.00 per 1M output tokens, with no long-context threshold. A full window with 4,000 output tokens: $4.00 + $0.08 = $4.08 total.
Models with pricing tiers
OpenAI’s GPT-6.2 Sol reprices at 272K input tokens: below that threshold, input costs $2.00 per 1M and output $10.00 per 1M; above it, input becomes $4.00 per 1M and output $15.00 per 1M. The entire request reprices, not just the overflow. A 1M-token request with 4,000 output tokens crosses the threshold, so: $4.00 + $0.06 = $4.06 total. Long-context cache writes cost $5.00 per 1M (30-minute) or $10.00 (12-hour).
Gemini 3.1 Pro (Preview) reprices at 200K input tokens: below that, input costs $2.00 per 1M and output $12.00 per 1M; above it, input becomes $4.00 per 1M and output $18.00 per 1M. The entire request reprices. A 1M-token request with 4,000 output tokens crosses the threshold, so: $4.00 + $0.072 = $4.072 total.
OpenAI’s GPT-6.2 Astra reprices at 272K input tokens: below that threshold, input costs $8.00 per 1M and output $40.00 per 1M; above it, input becomes $16.00 per 1M and output $60.00 per 1M. A 1M-token request with 4,000 output tokens crosses the threshold, so: $16.00 + $0.24 = $16.24 total.
The range and the cliff effect
Anthropic’s models except Haiku 5.5 charge a flat rate across the full window, so a filled window is straightforward multiplication. Haiku 5.5, OpenAI’s GPT-6.2 models and Gemini 3.1 Pro reprice the entire request as soon as you cross the tier threshold, making a 1M-token request cost two times (OpenAI, Gemini 3.1 Pro) to five times (Haiku 5.5) as much per input token as a request just below the cliff would.
| Model | Input (1M tokens) | Output (4K tokens) | Total |
|---|---|---|---|
| Claude Haiku 5.5 | $0.50 | $0.01 | $0.51 |
| Claude Sonnet 5.5 | $2.00 | $0.04 | $2.04 |
| Claude Sonnet 4.6 | $3.00 | $0.06 | $3.06 |
| OpenAI GPT-6.2 Sol (above 272K tier) | $4.00 | $0.06 | $4.06 |
| Gemini 3.1 Pro (above 200K tier, preview) | $4.00 | $0.072 | $4.072 |
| Gemini 4 Carbon | $4.00 | $0.08 | $4.08 |
| Claude Opus 5.5 | $4.00 | $0.08 | $4.08 |
| Claude Fable 5.2 | $8.00 | $0.16 | $8.16 |
| OpenAI GPT-6.2 Astra (above 272K tier) | $16.00 | $0.24 | $16.24 |
Prices as of 2 December 2026.
When to stuff the window versus retrieve
A full-context query on a 1-million-token knowledge base costs roughly $2–$4 per request on Claude Sonnet or Gemini Carbon. Retrieval-augmented generation pulling the same 3,000 relevant tokens costs about $0.006 per request. The gap widens as the corpus grows.
On a roughly 1-million-token knowledge base, retrieving only the relevant chunks instead of sending the whole archive can cost around 300 times less per query, depending on retrieval precision. Retrieval scales; long-context stuffing does not.
The tradeoff favors stuffing the window when the corpus is small and static—or when you need to reason across the entire dataset as a unit. For typical retrieval-style queries, RAG operates at a fraction of long-context costs.
Caching changes the economics when the same context repeats across requests. Claude Sonnet 5.5 cache reads cost $0.10 per 1M, 20 times cheaper than a fresh read. If you retrieve the same document or knowledge chunk ten times, caching pays for itself quickly. If you’re pulling a different document each time, you pay the full input cost each time, and the question remains: is retrieval cheaper than stuffing.
The practical choice for large corpora is usually a hybrid: retrieve the relevant subset, load it into a long-context request if needed, and let the model reason across it. That reserves the million-token window for cases where the full context genuinely matters.