Skip to content
Everything *[NYC] 2026: see what we announced. →

Context window definition

A context window is the maximum amount of text, measured in tokens, that a language model can take into account in a single request. It covers everything sent to the model, including the system prompt, the conversation history, retrieved documents, tool definitions, and tool results, plus the response the model generates in that turn.


A diagram explaining Context window in terms of related concepts.

What counts toward a context window?

How is a context window measured in tokens?

Is a context window the same as a model's memory?

Why does a bigger context window not always give better answers?

How do you work within a context window?

Discover More with Sanity

Now that you've learned about context window, why not start exploring what Sanity has to offer? Dive into our platform and see how it can support your content needs.

Last updated: