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)
Invest now in Acorns!!! 🚀
Join Acorns and get your $5 bonus!
Acorns is a micro-investing app that automatically invests your "spare change" from daily purchases into diversified, expert-built portfolios of ETFs. It is designed for beginners, allowing you to start investing with as little as $5. The service automates saving and investing. Disclosure: I may receive a referral bonus.
Invest now!!! Get Free equity stock (US, UK only)!
Use Robinhood app to invest in stocks. It is safe and secure. Use the Referral link to claim your free stock when you sign up!.
The Robinhood app makes it easy to trade stocks, crypto and more.
Webull! Receive free stock by signing up using the link: Webull signup.
More Related questions...
