The largest context windows in my price data are 1,050,000 tokens, and several models offer that for under $1 of input per 1M tokens. Filling a window once costs the model's input price on every token you send, so context size alone does not tell you what a long prompt costs. For a single 20-page document, my measurements show that answering from 5 retrieved documents was cheaper than sending the whole PDF for every model that appears in both tasks.
Context size and input price, ranked
I sorted the featured models by context window first, then by list input price per 1M tokens. Prices are as of 2026-11-19, in USD.
| Model | Context (tokens) | Input $ / 1M | Output $ / 1M |
|---|---|---|---|
| GPT-6 Luna (OpenAI) | 1,050,000 | $0.10 | $0.50 |
| MiMo-V2.6-Pro (Xiaomi) | 1,050,000 | $0.43 | $0.87 |
| GPT-6.1 Sol (OpenAI) | 1,050,000 | $2.00 | $10.00 |
| GPT-6 Astra (OpenAI) | 1,050,000 | $10.00 | $50.00 |
| DeepSeek V4.1 Flash (DeepSeek) | 1,048,576 | $0.30 | $1.20 |
| Mistral Large 4 (Mistral) | 1,048,576 | $0.70 | $2.10 |
| Gemini 3.8 Flash (Google) | 1,048,576 | $0.82 | $4.12 |
| Claude Haiku 5.5 (Anthropic) | 1,000,000 | $0.10 | $0.50 |
| Qwen3.8 Flash (Alibaba Qwen) | 1,000,000 | $0.15 | $0.47 |
| Claude Sonnet 5.5 (Anthropic) | 1,000,000 | $2.00 | $10.00 |
| Claude Opus 5.5 (Anthropic) | 1,000,000 | $4.00 | $20.00 |
| Claude Fable 5.1 (Anthropic) | 1,000,000 | $10.00 | $50.00 |
| Llama 4 Maverick (Meta) | 524,288 | $0.35 | $1.00 |
| Grok 4.7 (xAI) | 500,000 | $2.00 | $6.00 |
| Nemotron 3 Ultra (NVIDIA) | 262,144 | $0.50 | $2.20 |
| Command A+ (Cohere) | 192,000 | $0.30 | $1.50 |
What stands out:
- GPT-6 Luna has the largest window and the lowest input price in the top tier. It lists $0.10 per 1M input tokens at 1,050,000 tokens, against $2.00 for GPT-6.1 Sol and $10.00 for GPT-6 Astra at the same size.
- Claude Haiku 5.5 matches that input price. It also lists $0.10 per 1M input tokens, with a 1,000,000-token window.
- Context size and price do not move together. Claude Fable 5.1 has a 1,000,000-token window at $10.00 per 1M input tokens. MiMo-V2.6-Pro has a larger window at $0.43.
- Smaller windows are not always cheaper. Grok 4.7 has 500,000 tokens at $2.00. Command A+ has 192,000 tokens at $0.30.
Filling the window once is rarely what you do in practice. The input price matters most when you call a model repeatedly with the same large prompt, or send one very large document.
What a full document costs
The more useful question is how much of the window you actually need. I measured two tasks that show the difference.
The first is PDF summary. It sends a 20-page PDF, 10,023 words of J. S. Mill's On Liberty, in one prompt. The median across all 330 models is 0.84¢ per task.
| # | Model | Cost per task | Text score | Tokens in / out | Basis | |
|---|---|---|---|---|---|---|
| 1 | GLM 5.3 FlashZ.ai | 0.07¢$0.66 / 1,000 | 1476 | 12,995 / 1,814 | measured best value | |
| 2 | DeepSeek V4.1 FlashDeepSeek | 0.10¢$1.04 / 1,000 | 1476 | 12,970 / 1,992 | measured | |
| 3 | GPT-6 LunaOpenAI | 0.16¢$1.57 / 1,000 | 1441 | 12,987 / 533 | measured | |
| 4 | Claude Haiku 5.5Anthropic | 0.22¢$2.20 / 1,000 | 1425 | 18,004 / 790 | measured | |
| 5 | Qwen3.8 FlashAlibaba Qwen | 0.32¢$3.21 / 1,000 | - | 13,119 / 2,642 | measured | |
| 6 | GPT-5.4 NanoOpenAI | 0.33¢$3.26 / 1,000 | 1401 | 12,987 / 533 | estimated | |
| 7 | Mistral Small 4Mistral | 0.33¢$3.31 / 1,000 | - | 13,373 / 2,170 | estimated | |
| 8 | GLM 5.3Z.ai | 0.34¢$3.45 / 1,000 | 1481 | 12,995 / 1,814 | estimated best value |
The second is RAG answer. The model answers from 5 retrieved documents instead of the whole PDF. The median across all 330 models is 0.53¢ per task.
| # | Model | Cost per task | Text score | Tokens in / out | Basis | |
|---|---|---|---|---|---|---|
| 1 | GLM 5.3 FlashZ.ai | 0.03¢$0.30 / 1,000 | 1476 | 3,714 / 1,971 | measured best value | |
| 2 | GPT-6 LunaOpenAI | 0.05¢$0.54 / 1,000 | 1441 | 3,690 / 338 | measured | |
| 3 | DeepSeek V4.1 FlashDeepSeek | 0.09¢$0.93 / 1,000 | 1476 | 3,696 / 3,750 | measured | |
| 4 | GPT-5.4 NanoOpenAI | 0.12¢$1.16 / 1,000 | 1401 | 3,690 / 338 | estimated | |
| 5 | Claude Haiku 5.5Anthropic | 0.14¢$1.44 / 1,000 | 1425 | 5,184 / 1,849 | measured | |
| 6 | Qwen3.8 FlashAlibaba Qwen | 0.19¢$1.92 / 1,000 | - | 3,751 / 2,886 | measured | |
| 7 | Mistral Small 4Mistral | 0.25¢$2.48 / 1,000 | - | 3,772 / 3,191 | estimated | |
| 8 | Llama 4 MaverickMeta | 0.26¢$2.60 / 1,000 | 1327 | 3,807 / 1,266 | estimated |
The input token counts explain much of the gap. GPT-6 Luna used 12,987 input tokens to summarize the PDF and 3,690 for the RAG answer. Claude Sonnet 5.5 used 18,004 and 5,184. Part of the Claude figure comes from tokenization: Anthropic's tokenizer produced 1.39 times the tokens of OpenAI's for the same English text.
Costs for models that appear in both tasks:
| Model | Summarize PDF | RAG answer |
|---|---|---|
| GPT-6 Luna | 0.16¢ | 0.05¢ |
| GPT-6.1 Sol | 3.1¢ | 1.2¢ |
| Claude Sonnet 5.5 | 4.5¢ | 2.7¢ |
| Claude Opus 5.5 | 8.9¢ | 5.5¢ |
| Claude Fable 5.1 | 22¢ | 14¢ |
RAG was cheaper for every model in both lists. Some of these figures are estimated rather than measured, so treat small gaps with caution.
When RAG is cheaper than stuffing context
In my runs, retrieval won because it cut the input a lot. Reasoning tokens are billed as output, and they made up a large share of several RAG runs. Mistral Small 4, for example, used 2,981 reasoning tokens on the RAG task. Retrieval still came out ahead.
Two rules follow:
- Use the full window when the whole document is the answer. Summaries of a single document, or tasks that depend on the order of the text, need everything. Expect the PDF summary cost.
- Use retrieval when the answer lives in a few passages. Question answering over a large corpus needs only the relevant parts. Expect the RAG answer cost.
A large window is a capability, not a reason to fill it. A 1,050,000-token window lets you send a long document. It does not make that the cheapest way to answer a question about it.
Limits of this comparison
The task costs come from one run per task with default settings, through OpenRouter, with output capped at 16,000 tokens. Prices are list prices. Real bills can differ with caching, batch discounts or volume deals. The 20-page PDF is a small input compared with a 1,000,000-token window, so these results say little about the break-even on much larger corpora.
For the full method, see methodology. To estimate your own workload, use the calculator. You can also compare GPT-6 Luna and Claude Sonnet 5.5, or look at chatbot answer costs for short prompts.
FAQ
Which model gives the most context for the least input price?
GPT-6 Luna and Claude Haiku 5.5 both list $0.10 per 1M input tokens. GPT-6 Luna has the larger window at 1,050,000 tokens, against 1,000,000 for Claude Haiku 5.5.
Is a bigger context window always more expensive to use?
No. Cost depends on how many tokens you send and the model's price per token, not on window size. A model with a huge window is cheap if you send a small prompt.
When should I use RAG instead of putting the whole document in the prompt?
Use RAG when the answer depends on a few passages rather than the whole text. In my runs, the RAG task cost less than the full-PDF summary for every model that appears in both tasks.