Context window

Also called: context length, context size, context limit

Filed under AI & modern tech

What Context window means in practice

Think of it as the model’s working desk, not its long-term memory. Each time you send a message, the app passes the relevant text back into the window; the model has no other view of the conversation.

You see the term on model spec sheets, written as a token count such as 128K or 1M. As of late 2026, leading models offer windows of roughly 400,000 to 1 million tokens through their APIs, while older and smaller models often sit between 128,000 and 200,000.

One nuance: a bigger window does not mean the model uses everything in it equally well. Research has found that models can miss details buried in the middle of long inputs.

When a long chat grows past the context window, the app drops or summarises the earliest messages, and the model stops seeing them.

Used in a sentence: The contract was too long for the context window, so we split it into sections.

Often confused with

Memory
Memory features save facts between conversations and feed them back in later. The context window is only what the model can see in the current request.
Max output tokens
The output limit caps how long one reply can be. It is usually much smaller than the context window, and the reply’s tokens count toward the window too.
Training data
Training data shaped the model before release. The context window holds what you give it now; adding text there does not retrain the model.

What is a context window in AI? →

How it works, examples, and common questions, explained in plain English.

Common questions

What does “128K context” mean?

It means the model can handle about 128,000 tokens in one request, input and output combined. In English that is roughly 96,000 words, or a few hundred pages of plain text, though code, tables and other languages use more tokens.

What happens when you go over the context window?

It depends on the app. An API usually returns an error. Chat apps often drop or summarise the oldest messages without telling you, which is why a long conversation can seem to forget early details.

Sources and further reading

  1. Context windows — Anthropic
  2. Lost in the Middle: How Language Models Use Long Contexts (Liu et al., 2023) — arXiv

Read more