A beginner's guide to context windows
The difference between tokens, context, output limits, and what actually gets truncated.
Updated Jul 03, 2026 · Reviewed by PromptCostLab
Token and pricing information changes frequently. Use this guide for planning and verify model-specific limits and prices with the provider before production billing.
What a context window contains
A context window is the model-readable information available for one request. It can contain system instructions, the current user message, conversation history, retrieved documents, tool definitions and results, and space for the response. It is not simply a maximum prompt length.
What happens when context grows
An application may reject the request, truncate older messages, reduce the requested output, or silently remove information depending on its implementation. Silent truncation is especially risky because the answer can look confident while important evidence or instructions have disappeared.
How to manage long conversations
Summarize older turns, retain decisions and unresolved questions, and retrieve detailed history only when relevant. For document workflows, send selected evidence rather than an entire archive. For agent systems, keep tool outputs concise and store full artifacts outside the prompt.
- Reserve output space.
- Summarize old conversation turns.
- Retrieve only relevant document chunks.
- Remove repeated tool output.
- Track worst-case context usage.
Choosing a larger context model
A larger window is useful when the task genuinely requires more source material, but it can increase cost and encourage weak retrieval habits. First improve prompt assembly and retrieval. Then compare models if the optimized request still needs more capacity.
Prices, token behavior, and model limits change. These primary provider docs are the right place to verify the details before shipping.