What a 1M-Token Context Window Actually Costs
Million-token context windows went from party trick to table stakes — 93 of the models we track now offer 400K+ windows, topping out at 1.1M. The marketing says "fit your whole codebase in the prompt." The invoice says something else: the window is free, filling it is not — and most apps refill it far more often than anyone plans for. Live numbers below, updated 2026-08-23.
The price of filling the big windows, once
| Model | Context | Input /1M | Fill it once | Fill it cached |
|---|---|---|---|---|
| xAI Grok 4.20 Multi-Agent | 2M | $1.25 | $2.50 | $0.4 |
| xAI Grok 4.20 | 2M | $1.25 | $2.50 | $0.4 |
| DeepSeek DeepSeek V4 Flash 0731 | 1.3M | $0.08 | $0.1049 | $0.021 |
| Meta Llama 4 Scout | 1.3M | $0.1 | $0.1311 | — |
| OpenAI GPT-5.5 Pro | 1.1M | $30.00 | $31.50 | — |
| OpenAI GPT-5.4 Pro | 1.1M | $30.00 | $31.50 | — |
| OpenAI GPT-5.5 | 1.1M | $5.00 | $5.25 | $0.525 |
| OpenAI GPT-5.4 | 1.1M | $2.50 | $2.63 | $0.2625 |
The spread is the story: a full window costs anywhere from $0.1049 (DeepSeek V4 Flash 0731) to $31.50 (GPT-5.5 Pro) — per request. Estimate what your own documents weigh in tokens with the token counter before you commit to a stuff-everything-in-context architecture.
The multiplier nobody budgets: you refill it every turn
LLM APIs are stateless — each conversation turn re-sends the whole context and bills it again (the mechanics are in how LLM API pricing works). With small prompts that's noise. With 500K tokens of codebase in context, a 20-turn working session on GPT-5.6 Sol is 20 × ~$1.00 ≈ $20.00 of input alone — before the model writes a single line of output. Long context turns the resend mechanic from a rounding error into the bill.
Long context vs RAG: the honest math
The same flagship answering from retrieved snippets (~6,000 tokens) costs ~$0.012 per turn — roughly 83× cheaper than keeping half the window loaded. That gap compounds with every turn and every user, which is why retrieval survived every "RAG is dead" headline. Where long context genuinely earns its price:
- Global reasoning: cross-document contradictions, whole-codebase refactors, "what's missing from this contract" — tasks where retrieval's narrow view fails.
- One-shot analyses: a single deep read of a big corpus, where building a retrieval pipeline costs more engineering time than the tokens save.
- Stable-context agents with caching: if the big prefix never changes mid-session, cached rates (75–90% off — see the cached column above) make it defensible. Model the real bill in the RAG calculator or the chatbot calculator, which simulates the growing-history resend.
Four rules for using big windows without a big bill
- Pay for what the task needs, not what the window allows. The window is a ceiling, not a target — trim, summarize old turns, and retrieve where possible.
- Cache the immutable bulk. Put documents and code first in the prompt (stable prefix = cacheable), keep the changing conversation at the end — the caching guide covers per-provider TTLs.
- Mind the mid-tier trap: some vendors charge a higher input rate above a context threshold — check the model's page before assuming one flat rate.
- Re-check prices monthly: long-context pricing is where vendors compete hardest right now — the table above updates daily, and the cheapest-APIs ranking shows who's undercutting whom.