OptimToken All guides

Context windows: what a million tokens costs to fill

Published 2026-09-20 · Prose last reviewed 2026-10-20 · Figures recomputed nightly from the 2026-11-04 catalogue snapshot

A FinOps guide by OptimNow · prices from the live OptimToken catalogue

A context window is advertised as a capability: 1M tokens, 400K, 200K. The number says what the model will accept and nothing about what filling it costs, and the two facts are published in different places. An input rate is quoted per 1M tokens, so for any model that accepts a 1,000,000-token prompt, the published input price is the price of one full-length request. Nothing has to be multiplied. Every figure below comes from the 2026-11-04 catalogue snapshot and is recomputed nightly.

What one million tokens costs

On that snapshot, 118 of the 301 priced models accept a prompt of 1,000,000 tokens or more. Filling that prompt once costs $0.006 on GLM 5.2 and $30.00 on GPT-5.5 Pro. That is 5,000x across models sold on the same advertised capability. The median is $0.75. The cheap end is Wafer's rate for a build quantized to fp4, one of 24 hosts selling GLM 5.2; Z.AI's own input rate is $1.40.

Reviewed against the catalogue on 2026-10-20. At publication, on the 2026-09-20 snapshot, 89 of 265 models accepted the prompt and the fill ran from $0.03 to $30.00, a 1,000x spread. On the 2026-11-04 snapshot it is 118 of 301, from $0.006 to $30.00, 5,000x. The dear end held; the cheap end is whichever host lists the lowest input rate that day, so the spread moves with it.

Take $0.01 of input per request as the budget line. It is an assumption chosen to stand for one interactive call, not a figure measured from any deployment. At that budget GLM 5.2 gives you 166.7% of a 1,000,000-token prompt and GPT-5.5 Pro gives you 0.03%.

What $0.01 of input buys, as a share of a 1M-token prompt What $0.01 of input buys, as a share of a 1M-token prompt GLM 5.2 166.7% GLM 5.3 Flash 37.2% Qwen3.7 Flash 33.3% DeepSeek V4.1 Flash 22.2% GPT-6 Astra 0.10% GPT-6 Astra Pro 0.10% GPT-5.5 Pro 0.03% GPT-5.4 Pro 0.03%
What $0.01 of input buys, as a share of a 1M-token prompt What $0.01 of input buys, as a share of a 1M-token prompt GLM 5.2 166.7% GLM 5.3 Flash 37.2% Qwen3.7 Flash 33.3% DeepSeek V4.1 Flash 22.2% GPT-6 Astra 0.10% GPT-6 Astra Pro 0.10% GPT-5.5 Pro 0.03% GPT-5.4 Pro 0.03%
The 4 cheapest and 4 dearest of the 118 models accepting a 1,000,000-token prompt. The bars at the foot are drawn at a minimum width; the printed figure is the value.

OpenRouter publishes an exact context_length for every model and the OptimToken table rounds it for display. The models labelled 1M are not all the same size. The label covers 1,000,000, 1,048,576 (220, the value most model makers ship), 1,050,000 and 1,310,720. A cost computed by multiplying the label would be wrong by up to 24% on the last of those.

Every figure on this page is anchored to exactly 1,000,000 tokens. That prompt fits every model counted here, because the rounded label only carries an M suffix from 1,000,000 upward, and its cost is the published input rate with no arithmetic applied.

The second read is where the bill is decided

A long context is rarely read once. Agent loops, multi-turn chat and document Q&A re-send the accumulated history on every call, and it is billed as input each time. Per token, input is the cheaper side: across the 301 priced models here, output costs 4.0x input at the median. That price signal is why teams look at the output rate first, and why the input line is the one that grows with conversation length.

Prompt caching is the published lever. A cache-read rate charges a fraction of the input price for tokens already held in the cache. Among the 118 models accepting a 1M prompt, 106 publish one, at a median 90% off the input rate.

Models publishing a cache-read price, by advertised context window Models publishing a cache-read price, by advertised context window Under 100K 5 / 24 100K to 250K 46 / 75 250K to 1M 58 / 84 1M and above 106 / 118
Models publishing a cache-read price, by advertised context window Models publishing a cache-read price, by advertised context window Under 100K 5 / 24 100K to 250K 46 / 75 250K to 1M 58 / 84 1M and above 106 / 118
The pale bar is every priced model in the band, the dark bar is the subset publishing a cache-read rate. Bands are read off the rounded window label, which is precise enough to sort a model into a band.

In the under 100K band, 5 of 24 models publish a cache-read price, against 106 of 118 at 1M and above. Model makers selling a large window mostly also sell the discount that makes re-reading it affordable. That is a pattern in the 2026-11-04 snapshot, not a policy any model maker has stated, and it is measured on published rate cards rather than on negotiated ones.

Worked example: 10 reads of the same context

The 10 reads are an assumption, not a measurement. They stand for one document held across a short agent run or a chat session that keeps referring back to it. The first read is billed at the input rate in every case, because there is nothing cached yet.

ModelWindowFill onceCache read10 reads, no cache10 reads, cached
GLM 5.2 1M $0.006 $0.005 $0.06 $0.051 (−15%)
Gemini 3.8 Flash 1M $0.75 $0.075 $7.50 $1.42 (−81%)
Qwen3.5-Flash 1M $0.065 not published $0.65 $0.65 (no cache rate)
GPT-5.5 Pro 1M $30.00 not published $300.00 $300.00 (no cache rate)

Prices are per 1M tokens, which at this prompt size is per request. Compare GLM 5.2 and GPT-5.5 Pro side by side for the full rate cards, output and cache rates included.

Where the discount is not available

Of the 118 models accepting a 1M prompt, 12 publish no cache-read rate at all. For those the tenth read costs what the first did. The dearest of them, GPT-5.5 Pro, fills at $30.00, so 10 reads is $300.00 with no published discount to apply.

The cheap end has the same gap. Qwen3.5-Flash fills a 1,000,000-token prompt for $0.065 and publishes no cache rate either. Across 10 reads it costs $0.65, which is less than what 73 of the 106 models with a published cache rate charge over the same 10 reads. A missing cache rate is a reason to run the arithmetic, not a reason to drop the model.

What to do with this

Context selection is a cost decision as much as a quality one. The levers below come from OptimNow's FinOps practice library and apply from the first production workload, not only at scale:

These matter most where one workload sends large prompts repeatedly. On an estate at Crawl maturity, with no per-feature cost allocation in place, measure the average prompt size before optimising it. The practice library lists an average prompt size above the design estimate as a detection signal in its own right, and that measurement comes before any lever.

Pull the average input tokens per request for your largest AI feature from last month's usage export and multiply by the published input rate for the model it runs on. If that figure sits above your output spend, the window is your cost driver.

Figures on this page come from the 2026-11-04 price snapshot and rebuild nightly.

The FinOps reasoning behind this guide comes from OptimNow's open-source practice library: github.com/OptimNow/cloud-finops-skills. If you want your own prompt sizes and cache rates measured against the models you already run, OptimNow runs that review.

Questions this guide answers

How much does it cost to fill a 1M-token context window?

Exactly the model's published input price per 1M tokens, because a 1,000,000-token prompt is one million input tokens. On the 2026-11-04 OptimToken catalogue snapshot, that runs from $0.006 on GLM 5.2 to $30.00 on GPT-5.5 Pro: a 5,000x spread across the 118 models that accept the prompt, with a median of $0.75.

How many LLMs accept a 1,000,000-token prompt?

On the 2026-11-04 OptimToken catalogue snapshot, 118 of the 301 priced text models advertise a context window of 1M tokens or more. The rounded label covers real windows from 1,000,000 up to 1,310,720 tokens, so every figure in this guide is anchored to exactly 1,000,000 tokens.

Does prompt caching make a long context cheaper to re-read?

Where a cache-read rate is published, yes. Of the 118 models with a 1M window, 106 publish one on the 2026-11-04 OptimToken catalogue snapshot, at a median 90% off the input price. The first read is always billed at the full input rate; only re-reads of the same prefix get the cache rate.

Which 1M-context models publish no cache-read price?

Of the 118 models accepting a 1M prompt, 12 publish no cache-read rate on the 2026-11-04 OptimToken catalogue snapshot, so for them every re-read is billed at the full input price. They include the dearest window in the catalogue, GPT-5.5 Pro at $30.00 per full prompt, so 10 reads of the same context cost $300.00 with no discount to apply.

These are list prices.

Your real cost also depends on caching and batching, negotiated discounts, marketplace agreements, and the contracts you already have. OptimNow audits exactly that.

Get a FinOps review

Data snapshot: 2026-11-04 · Compare all models · Cloud compute pricing · All guides