ModelRefs / Long-Context Model — AI Glossary

Long-Context Model — AI Glossary

A language model capable of processing context windows of 32K tokens or more, enabling whole-document and multi-file reasoning.

Overview

Long-context models (Gemini 1.5 Pro at 1M tokens, Claude 3.x at 200K, GPT-4o at 128K) extend usability to full codebases, books, and multi-hour transcripts. Challenges include quadratic attention cost (addressed via SWA, ring attention, FlashAttention-3), KV cache memory, and the 'lost-in-the-middle' retrieval gap.

Reference details

Topicarchitecture
Also known asextended context, long context window
Last reviewed2026-06-24

Example: The cost of just pasting everything in

A 200-page document is roughly 100K tokens. At $3 per million input tokens that is about $0.30 per question, every question, before any answer is generated. Retrieval over the same document sends perhaps 4K tokens for around $0.012. Long context is not free storage — you re-pay for the whole document on every single call.

100,000 tokens x $3 / 1,000,000 = $0.30 per question
  4,000 tokens x $3 / 1,000,000 = $0.012 per question  # ~25x cheaper

Commonly confused with

A large context window is not the same as reliable use of it. Advertised limits describe what the model accepts, not what it attends to evenly — recall commonly sags for material in the middle. A million-token window does not promise a million tokens of usable attention.

When to use it

Reach for it when:

  • The task genuinely needs the whole document at once — global summarisation, cross-references
  • Chunking would sever relationships the answer depends on
  • The corpus is small and stable enough that re-sending it is affordable

Reach for something else when:

  • The same corpus is queried repeatedly; you pay for it every time
  • Only a few passages are relevant — retrieval is cheaper and usually more accurate
  • The critical detail would land mid-context, where recall is weakest

Continue your research

Use these connected ModelRefs sections to compare alternatives, inspect implementation paths, and review the evidence and governance boundaries relevant to Long-Context Model — AI Glossary.

Frequently asked questions

What is Long-Context Model?

A language model capable of processing context windows of 32K tokens or more, enabling whole-document and multi-file reasoning.

Is Long-Context Model the same as extended context?

Yes — extended context, long context window are common aliases for Long-Context Model.

What concepts are related to Long-Context Model?

Closely related concepts include context window, sliding window attention, rope, kv cache.