1M-Token Context Windows: Making Long Context Pay Off

With 1M-token windows, should you put everything into one request? What long context can and can't do, how threshold-based whole-request pricing works, how the two vendors differ, and how caching, retrieval and chunking keep the bill in check.

3 min read

In 2026 most GPT-6 and GPT-5.x models offer a context window of about 1.05 million tokens, and recent Claude models offer one million. A whole code repository, a several-hundred-page contract or a year of meeting notes fits in one go.

But "it fits" and "it's worth it" are different things. Long context is billed differently from ordinary requests, and used carelessly it can double the bill.

Two different ideas

IdeaMeaningWhen exceeded
Context windowThe most input a model can process at onceThe request isn't run; 400 context_length_exceeded
Long-context thresholdThe boundary between price bandsThe request runs, but the whole request uses long-context prices

Plenty of people notice the window and miss the threshold.

How long context is priced

Some models' official price lists switch to a higher set of prices once a request's input exceeds a threshold. Three points:

  1. Whole-request pricing: above the threshold, every billable item of that request — uncached input, cache reads and writes, output — uses long-context prices, not just the excess.
  2. Cache counts as input: total input for the threshold = uncached input + cache reads + cache writes.
  3. Strictly greater: a total exactly at the threshold stays at normal prices.

For a model with a 272K threshold: 200K uncached input plus 100K cache reads is 300K in total, above the threshold, so the request's input, cache and output are all billed at long-context prices.

How the vendors differ

ModelThresholdNotes
GPT-6 and GPT-5.6 families272KStandard, Fast, Flex and other tiers all have long-context prices
GPT-5.5, GPT-5.4272KNo surcharge on Fast
GPT-5.5 Pro, GPT-5.4 Pro272KApplies to the tiers the vendor publishes
Claude Haiku 5.5100KStandard only
Other recent Claude models (Opus, Sonnet, Fable)NoneOne price set across the whole 1M window

So if your workload routinely needs hundreds of thousands of input tokens, factor the threshold into model choice alongside capability: for 400K-token inputs, surcharge-free Claude Opus and Sonnet have an edge.

What to watch for in capability

  • Longer isn't automatically more accurate: information buried in the middle of a very long context is harder for the model to find. Put the key instructions and question at the start or the end.
  • The output limit doesn't grow: input can reach 1M, but one response is still capped by max output (128K).
  • Latency grows with input: time to first token gets noticeably longer — stream in interactive use.

Four ways to control spend

1. Cache the large, unchanging part

Put the whole document at the start of the prompt and cache it; later questions about the same document are billed at the cache-read price. Cache reads still count toward the threshold — caching can't dodge long-context pricing — but it lets most of a very long input be billed at a lower unit price. See How prompt caching works.

2. Retrieve, then include

Many tasks don't need everything. Pick the relevant passages first — with retrieval or even simple keyword filtering — and keep input below the threshold. That is often both cheaper and more accurate than stuffing the context.

3. Process in chunks

Split a long document into sections, summarise each, then combine the conclusions. Each section stays below the threshold, the total is usually lower, and the sections can run in parallel.

4. Compact long sessions

When a coding agent's session keeps growing, use the client's built-in compaction or Responses' /v1/responses/compact to shorten the history, so every turn doesn't carry the full history past the threshold.

Checking a request yourself

APITotal input
Responsesusage.input_tokens (includes cache)
Chat Completionsusage.prompt_tokens (includes cache)
Messagesinput_tokens + cache_read_input_tokens + cache_creation_input_tokens

If the total exceeds the model's threshold, long-context prices apply. UnioAPI follows the official rules exactly — a surcharge where the vendor charges one and none where it doesn't. Thresholds and prices per model are in Long context and on the model pages.

Keep reading