AI / Claude Models Basics Interview Questions
What is a context window and what are the context window sizes for current Claude models?
A context window is the total number of tokens (words, punctuation, code, etc.) that a model can process in a single request — encompassing the system prompt, all conversation history, tool definitions, and the model's own output. If you exceed the context window, older content must be removed or the request will fail.
| Model | Context window | Max output tokens |
|---|---|---|
| Claude Fable 5 | 1 million tokens | 128,000 tokens |
| Claude Opus 4.8 | 1 million tokens | 128,000 tokens |
| Claude Sonnet 5 | 1 million tokens | 128,000 tokens |
| Claude Haiku 4.5 | 200,000 tokens | 64,000 tokens |
Key facts:
- The 1M token context window is the default for Fable 5, Opus 4.8, and Sonnet 5 — no beta header is needed and it is billed at standard pricing
- Claude Haiku 4.5 has a smaller 200k token window and 64k max output
- On the Message Batches API, Opus 4.8, Opus 4.7, Opus 4.6, Sonnet 5, and Sonnet 4.6 support up to 300k output tokens using the
output-300k-2026-03-24beta header - A single request can include up to 600 images/PDF pages (100 for 200k models)
More Related questions...