Definition
Context window
Also called: context length, context size, context limit
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.
Example
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.
Full guide
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
Read more
- What are tokens in AI?
Tokens are the small chunks of text that AI language models read and write, usually a whole short word, part of a longer word, or a punctuation mark. In English, one token averages about four characters or three-quarters of a word. Tokens matter because AI pricing, speed, and context-window limits are all measured in them.
- How many tokens is 1,000 words?
1,000 English words is roughly 1,300 to 1,400 tokens. The common rule of thumb, from OpenAI’s guidance, is that one token is about three-quarters of a word, or about four characters of English text. Exact counts vary by model, language and content type, so use a tokenizer or token-counting API when precision matters.
- AI token counter (free tool)
Paste any text to count tokens exactly, see how it splits, and estimate what it costs to send to an AI model.