The context window is the maximum number of tokens a model can take into account in one request, covering the prompt, the conversation and, depending on the provider, the reply.
It is working memory for a single call, not long-term memory: anything you want the model to use has to be sent again every time.
Bigger windows let you send more material, but they are not free. Cost and latency grow with the amount you send, and models often use information in the middle of a very long context less reliably than information at the start or the end.
Common mistake. Treating a large window as permission to paste everything. Irrelevant text dilutes the relevant text and raises the bill.
In practice. Decide what each request really needs, retrieve only that, and trim old conversation turns. Measure answer quality at different context sizes before you pay for the largest one.
A token is the unit of text a model reads and writes: usually a word fragment, a whole short word or a punctuation mark. Providers count and bill in tokens, and context limits are measured in them. English averages roughly four characters per token, while Russian text usually needs more tokens per word.
Prompt caching is a provider feature that reuses the work done on the unchanging beginning of a prompt, so repeated prefixes are billed at a lower rate and answered faster. It only helps when stable content such as instructions and examples comes first and varies last. Minimum lengths and lifetimes differ between providers.
Chunking is splitting documents into pieces small enough to index and retrieve individually. The size and boundaries decide what search can find: too large and a chunk mixes topics, too small and it loses the context that makes it meaningful. Splitting along headings and list items usually beats fixed character counts.
Cite this page
Eldan Abdrashim. "Context window." Eldan.ai, 23 November 2026. https://eldan.ai/glossary/context-window.
The date you read it is added when you copy.
BibTeX
@online{abdrashim2026context,
author = {Eldan Abdrashim},
title = {Context window},
organization = {Eldan.ai},
date = {2026-11-23},
year = {2026},
month = nov,
url = {https://eldan.ai/glossary/context-window},
langid = {english}
}