context-windows changedbuild-with-claude/context-windows
Nearest release: v2.1.332, published 3 hours before this site recorded the change. Shown because the two are within 24 hours of each other. Nothing here says the release caused the edit.
Recorded here
Lines+21added
Lines−9removed
From line
35
where the diff opens
First seen
14 Aug 2026
this site's first read of the page
Recorded edits15to this page, all time
The whole hunk
from line 35, old and new numbered
/
from line 35
3535
3636## Context window sizes by model
3737
38Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, Claude Opus 4.6, Claude Sonnet 5.5, Claude Sonnet 5, Claude Sonnet 4.6, Claude Haiku 5.5, and [Claude Mythos Preview](https://anthropic.com/glasswing) have a 1M-token context window. A single request to any of them can generate up to 128k output tokens (`max_tokens`). Other Claude models, including Claude Sonnet 4.5 (deprecated), have a 200k-token context window.
38These models have a 1M-token context window:
3939
40* Claude Fable 5.2, Claude Fable 5.1, and Claude Fable 5
41* Claude Mythos 5.2, Claude Mythos 5.1, Claude Mythos 5, and [Claude Mythos Preview](https://anthropic.com/glasswing)
42* Claude Opus 5.5, Claude Opus 5, Claude Opus 4.8, Claude Opus 4.7, and Claude Opus 4.6
43* Claude Sonnet 5.5, Claude Sonnet 5, and Claude Sonnet 4.6
44* Claude Haiku 5.5
45
46Other Claude models have a 200k-token context window.
47
48A single Messages API request to a model with a 1M-token context window can generate up to 128k output tokens (`max_tokens`).
49
4050For every model with a 1M-token context window, 1M is the default: you don’t need a beta header, and long-context requests are billed at [standard pricing](https://platform.claude.com/docs/en/about-claude/pricing#long-context-pricing), except on Claude Haiku 5.5, where prompts over 100,000 tokens cost more.
4151
4252A single request can include up to 600 images or PDF pages (100 for models with a 200k-token context window). If you send many images or large documents, you might reach [request size limits](https://platform.claude.com/docs/en/api/overview#request-size-limits) before the token limit.
4353
44See the [All models](https://platform.claude.com/docs/en/models/overview#all-models) table for a list of context window sizes by model.
54See the [All models](https://platform.claude.com/docs/en/models/overview#all-models) table for context window sizes and output limits by model.
4555
4656## The context window with thinking
4757
from line 118
108118 * The API uses cryptographic signatures to verify thinking block authenticity.
109119
110120<Note>
111 Most current Claude models support [interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking), which lets Claude think between tool calls, including after it receives tool results. It is automatic on models with adaptive thinking; Claude Opus 4.5, Claude Sonnet 4.5 (deprecated), and earlier Claude 4 models require the `interleaved-thinking-2025-05-14` beta header, and Claude Haiku 4.5 does not support it.
112
113 For more information about using tools with thinking, see [Thinking with tool use](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use).
121 [Interleaved thinking](https://platform.claude.com/docs/en/build-with-claude/thinking#interleaved-thinking) lets Claude think between tool calls, including after it receives tool results. It is automatic when a request uses adaptive thinking. With manual extended thinking, support depends on the model: see [Interleaved thinking in manual mode](https://platform.claude.com/docs/en/build-with-claude/extended-thinking#interleaved-thinking).
114122</Note>
115123
124For more information about using tools with thinking, see [Thinking with tool use](https://platform.claude.com/docs/en/build-with-claude/thinking#thinking-with-tool-use).
125
116126To reduce the context consumed by the tool definitions themselves, see [Manage tool context](https://platform.claude.com/docs/en/agents-and-tools/tool-use/manage-tool-context), or defer tool definitions with the [tool search tool](https://platform.claude.com/docs/en/agents-and-tools/tool-use/tool-search-tool).
117127
118128## Context awareness
119129
120Claude Sonnet 5, Claude Sonnet 4.6, Claude Sonnet 4.5 (deprecated), and Claude Haiku 4.5 have **context awareness:** these models track their remaining context window (their “token budget”) throughout a conversation. This lets the model manage long-running tasks against the space that remains rather than guess how many tokens are left. Context awareness is automatic: there is nothing for you to enable, and you never send the tags shown in this section yourself. The API injects them.
130Only Claude Sonnet 4.5 and Claude Haiku 4.5 have **context awareness:** these models track their remaining context window throughout a conversation. This lets the model manage long-running tasks against the space that remains rather than guess how many tokens are left. Context awareness is automatic: there is nothing for you to enable, and you never send the tags shown in this section yourself. The API injects them.
121131
132No other model receives these tags. To give a model an explicit budget, use [task budgets](https://platform.claude.com/docs/en/build-with-claude/task-budgets) on a [model that supports them](https://platform.claude.com/docs/en/build-with-claude/task-budgets#feature-support). Task budgets are in beta.
133
134Claude Sonnet 4.5 is deprecated on [Anthropic-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview). For its retirement date and recommended replacement, see [Model deprecations](https://platform.claude.com/docs/en/about-claude/model-deprecations#2026-09-30-claude-sonnet-4-5-model). [Partner-operated platforms](https://platform.claude.com/docs/en/about-claude/model-deprecations#overview) set their own retirement schedules.
135
122136### How it works
123137
124138In the system prompt of every request, the API gives Claude its total context window:
from line 141
127141<budget:token_budget>200000</budget:token_budget>
128142```
129143
130The budget matches the context window available to your request: 1M tokens for Claude Sonnet 5 and Claude Sonnet 4.6, and 200k tokens for Claude Sonnet 4.5 (deprecated) and Claude Haiku 4.5. The examples in this section show a model with a 200k-token context window.
144This token budget matches the context window available to your request: 200k tokens on both models.
131145
132146After each tool call, the API gives Claude an update on its remaining capacity:
133147
from line 150
136150```
137151
138152Image tokens are included in these budgets.
139
140Claude Opus 4.7 and later Opus models, Claude Sonnet 5.5, Claude Fable 5.2, Claude Mythos 5.2, Claude Fable 5.1, Claude Mythos 5.1, Claude Fable 5, Claude Mythos 5, and Claude Haiku 5.5 don’t receive these injected tags. On these models, you can give the model an explicit budget with [task budgets](https://platform.claude.com/docs/en/build-with-claude/task-budgets), which are in beta.
141153
142154<Tip>
143155 For agents that span multiple sessions, design your state artifacts so that context recovery is fast when a new session starts. The [memory tool’s multisession pattern](https://platform.claude.com/docs/en/agents-and-tools/tool-use/memory-tool#multisession-software-development-pattern) walks through a concrete approach. See also [Effective harnesses for long-running agents](https://www.anthropic.com/engineering/effective-harnesses-for-long-running-agents).
No line in this hunk matches that.