---
title: "Context window"
url: https://eldan.ai/glossary/context-window
canonical: https://eldan.ai/glossary/context-window
locale: en
language: en
published: 2026-11-23
updated: 2026-11-23
author: "Eldan Abdrashim"
cite_as: "Eldan Abdrashim. \"Context window.\" Eldan.ai, 23 November 2026. https://eldan.ai/glossary/context-window."
---

# Context window

> 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.

## Related terms

- [Token](https://eldan.ai/glossary/token)
- [Prompt caching](https://eldan.ai/glossary/prompt-caching)
- [Chunking](https://eldan.ai/glossary/chunking)

## Used in

- [Tool Calling From Scratch](https://eldan.ai/tutorials/tool-calling-from-scratch)
