Home / Guides / Context window vs price: which models give the most context per dollar

Context window vs price: which models give the most context per dollar

A bigger context window lets you send whole documents, but it is not free. Here is how window size lines up with the price you pay.

By Piotr Olszewski · Nov 19, 2026 · prices as of Nov 22, 2026

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.

ModelContext (tokens)Input $ / 1MOutput $ / 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.

#ModelCost per taskText scoreTokens in / outBasis
1Z.ai logo
GLM 5.3 FlashZ.ai
0.07¢$0.66 / 1,000
147612,995 / 1,814measured best value
2DeepSeek logo
DeepSeek V4.1 FlashDeepSeek
0.10¢$1.04 / 1,000
147612,970 / 1,992measured
3OpenAI logo
GPT-6 LunaOpenAI
0.16¢$1.57 / 1,000
144112,987 / 533measured
4Anthropic logo
Claude Haiku 5.5Anthropic
0.22¢$2.20 / 1,000
142518,004 / 790measured
5Alibaba Qwen logo
Qwen3.8 FlashAlibaba Qwen
0.32¢$3.21 / 1,000
-13,119 / 2,642measured
6OpenAI logo
GPT-5.4 NanoOpenAI
0.33¢$3.26 / 1,000
140112,987 / 533estimated
7Mistral logo
Mistral Small 4Mistral
0.33¢$3.31 / 1,000
-13,373 / 2,170estimated
8Z.ai logo
GLM 5.3Z.ai
0.34¢$3.45 / 1,000
148112,995 / 1,814estimated 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.

#ModelCost per taskText scoreTokens in / outBasis
1Z.ai logo
GLM 5.3 FlashZ.ai
0.03¢$0.30 / 1,000
14763,714 / 1,971measured best value
2OpenAI logo
GPT-6 LunaOpenAI
0.05¢$0.54 / 1,000
14413,690 / 338measured
3DeepSeek logo
DeepSeek V4.1 FlashDeepSeek
0.09¢$0.93 / 1,000
14763,696 / 3,750measured
4OpenAI logo
GPT-5.4 NanoOpenAI
0.12¢$1.16 / 1,000
14013,690 / 338estimated
5Anthropic logo
Claude Haiku 5.5Anthropic
0.14¢$1.44 / 1,000
14255,184 / 1,849measured
6Alibaba Qwen logo
Qwen3.8 FlashAlibaba Qwen
0.19¢$1.92 / 1,000
-3,751 / 2,886measured
7Mistral logo
Mistral Small 4Mistral
0.25¢$2.48 / 1,000
-3,772 / 3,191estimated
8Meta logo
Llama 4 MaverickMeta
0.26¢$2.60 / 1,000
13273,807 / 1,266estimated

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:

ModelSummarize PDFRAG answer
GPT-6 Luna0.16¢0.05¢
GPT-6.1 Sol3.1¢1.2¢
Claude Sonnet 5.54.5¢2.7¢
Claude Opus 5.58.9¢5.5¢
Claude Fable 5.122¢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.

Sources