AI-generated image: Large purple rectangle with small cyan square in center, circuit board pattern in background
Image generated by AI

Do You Actually Need a Million-Token Context Window

I turned down a request to just stuff a customer’s whole knowledge base into every prompt. The math didn’t survive the conversation.

The request made sense on the surface. Modern context windows are enormous now, so why build a retrieval pipeline at all when you can hand the model everything and let it figure out what’s relevant. The answer is that the model doesn’t figure out what’s relevant for free, it reads every one of those tokens on every single request, and you pay for every read.

What a million tokens actually looks like

Gemini 3.1 Pro, released 19 February 2026, ships a 1,048,576 token input window and a 65,536 token output limit, across three thinking levels. That’s not a marketing number, you can genuinely hand it a large document and have it reason across the whole thing in one pass. It’s also expensive the moment you use it as a default setting instead of a deliberate decision.

The arithmetic

Say your support corpus is 500,000 tokens, a few hundred documents. Stuff the whole thing into every request as context. Using Opus 5’s published input rate, which launched 24 July 2026 at $5 per million input tokens, that’s $2.50 of input cost before the model has read a single word of the actual question. Run that 200 times a day, a modest support bot’s real volume, and the input bill alone is $500 a day, something like $15,000 a month, before output tokens, and before you’ve asked a single question the corpus didn’t already answer for free the first time you indexed it.

Retrieval instead. Pull the three or four passages actually relevant to the question, call it 3,000 tokens, and the same 200 requests a day cost about $3 a day for input. Three dollars against fifteen thousand isn’t a rounding difference. It’s two different businesses running the same feature.

And that’s input alone. Opus 5’s output rate is $25 per million tokens, five times the input rate, so any answer the model writes after reasoning over a bloated context is charged at the more expensive number too. A verbose response over a corpus-stuffed prompt pays the penalty twice, once on the way in and once on the way out.

If you must send a large fixed context repeatedly, ask your provider whether it supports caching context that repeats across requests, some charge less for a context that was already seen than for one arriving fresh every time. That softens the arithmetic above. It does not reverse it. Retrieval that sends 3,000 relevant tokens still beats caching 500,000 tokens you didn’t need in the first place.

Where the big window earns its keep

Long context is a real capability, not a gimmick, in a few genuine cases, and it’s worth naming them honestly instead of treating the whole idea as suspect:

  • A single document reasoned over end to end. A contract where clause 40 modifies clause 4, a research paper whose argument depends on page 3 and page 60 at once. Chunking breaks exactly the connection you need.
  • A codebase-wide refactor. A small window literally cannot represent the dependency graph across a real codebase, so the model is reasoning with information missing, not information it chose to ignore.
  • A task where chunk boundaries destroy the answer. Anything where the fact you need spans the exact place a retrieval system would have cut the document in two.

Where it’s a shortcut

Most retrieval problems are not actually “we need to reason over everything at once.” They’re “we haven’t built retrieval yet, and dumping the whole corpus into context is faster than building it this week.” That’s sometimes a fair trade for a prototype, a demo, a proof of concept you’re showing three people on Friday. It’s borrowed time either way, the bill doesn’t know it’s a prototype, and it keeps charging the full rate every single request until somebody builds the retrieval step that was always going to be necessary.

The tell that you’re in this second case rather than the first: if you can describe, in one sentence, which part of the corpus actually answers a given question, a retrieval system could have found that part for a few thousand tokens instead of paying for all of it. The million-token window isn’t earning its cost, it’s covering for a system you haven’t built yet. Build the retrieval step before the second month’s invoice arrives, not after.

None of this is a routing problem, and I want to be honest about what my own product does and doesn’t fix here. Smart Inference picks the cheapest healthy provider for a given request, and that’s real money saved on the rate you pay per token. It does not fix a prompt that carries 400,000 tokens of context it didn’t need. The prompt is the bill. A router changes the rate, not the volume.

Ask what the corpus is actually for before you ask which model can hold it.