WSWhat Scene?

Learn · AI fundamentals

What is a context window?

A context window is the maximum amount of text an AI model can hold in mind at once, counted in tokens. It includes your prompt, any documents you attach, the conversation so far, and the answer being written. Once you exceed it, the model loses track of the earliest content.

Context windows have grown fast. As of July 2026, frontier models commonly offer around one million tokens, enough to hold a large codebase or a stack of long documents in a single request. A few push well beyond that.

A bigger window isn't automatically better. Models can still lose focus in the middle of very long inputs, and every extra token costs money and time. Giving the model the right context often beats giving it the most.

Updated July 2026

Want this built, not just explained?