File: whats-new-claude-4-5.md | Updated: 11/15/2025
Agent Skills are now available! Learn more about extending Claude's capabilities with Agent Skills .
English
Search...
Ctrl K
Search...
Navigation
Models & pricing
What's new in Claude 4.5
Home Developer Guide API Reference Model Context Protocol (MCP) Resources Release Notes
On this page
Claude 4.5 introduces two models designed for different use cases:
Coding excellence
Claude Sonnet 4.5 is our best coding model to date, with significant improvements across the entire development lifecycle:
Claude Sonnet 4.5 performs significantly better on coding tasks when extended thinking is enabled. Extended thinking is disabled by default, but we recommend enabling it for complex coding work. Be aware that extended thinking impacts prompt caching efficiency . See the migration guide for configuration details.
Agent capabilities
Claude Sonnet 4.5 introduces major advances in agent capabilities:
Context awareness is available in Claude Sonnet 4, Sonnet 4.5, Haiku 4.5, Opus 4, and Opus 4.1.
Communication and interaction style
Claude Sonnet 4.5 has a refined communication approach that is concise, direct, and natural. It provides fact-based progress updates and may skip verbose summaries after tool calls to maintain workflow momentum (though this can be adjusted with prompting). For detailed guidance on working with this communication style, see Claude 4 best practices .
Creative content generation
Claude Sonnet 4.5 excels at creative content tasks:
Claude Haiku 4.5 represents a transformative leap for the Haiku model family, bringing frontier capabilities to our fastest model class:
Near-frontier intelligence with blazing speed
Claude Haiku 4.5 delivers near-frontier performance matching Sonnet 4 at significantly lower cost and faster speed:
Extended thinking capabilities
Claude Haiku 4.5 is the first Haiku model to support extended thinking, bringing advanced reasoning capabilities to the Haiku family:
Extended thinking must be enabled explicitly by adding a thinking parameter to your API requests. See the Extended thinking documentation
for implementation details.
Claude Haiku 4.5 performs significantly better on coding and reasoning tasks when extended thinking is enabled. Extended thinking is disabled by default, but we recommend enabling it for complex problem-solving, coding work, and multi-step reasoning. Be aware that extended thinking impacts prompt caching efficiency . See the migration guide for configuration details.
Available in Claude Sonnet 3.7, Sonnet 4, Sonnet 4.5, Haiku 4.5, Opus 4, and Opus 4.1.
Context awareness
Claude Haiku 4.5 features context awareness, enabling the model to track its remaining context window throughout a conversation:
This is the first Haiku model with native context awareness capabilities. For prompting guidance, see Claude 4 best practices .
Available in Claude Sonnet 4, Sonnet 4.5, Haiku 4.5, Opus 4, and Opus 4.1.
Strong coding and tool use
Claude Haiku 4.5 delivers robust coding capabilities expected from modern Claude models:
Haiku 4.5 is designed for use cases that demand both intelligence and efficiency:
Memory tool (Beta)
The new memory tool enables Claude to store and retrieve information outside the context window:
Copy
tools=[\
{\
"type": "memory_20250818",\
"name": "memory"\
}\
]
This allows for:
Available in Claude Sonnet 4, Sonnet 4.5, Haiku 4.5, Opus 4, and Opus 4.1. Requires beta header
: context-management-2025-06-27
Context editing
Use context editing for intelligent context management through automatic tool call clearing:
Copy
response = client.beta.messages.create(
betas=["context-management-2025-06-27"],
model="claude-sonnet-4-5", # or claude-haiku-4-5
max_tokens=4096,
messages=[{"role": "user", "content": "..."}],
context_management={
"edits": [\
{\
"type": "clear_tool_uses_20250919",\
"trigger": {"type": "input_tokens", "value": 500},\
"keep": {"type": "tool_uses", "value": 2},\
"clear_at_least": {"type": "input_tokens", "value": 100}\
}\
]
},
tools=[...]
)
This feature automatically removes older tool calls and results when approaching token limits, helping manage context in long-running agent sessions.
Available in Claude Sonnet 4, Sonnet 4.5, Haiku 4.5, Opus 4, and Opus 4.1. Requires beta header
: context-management-2025-06-27
Enhanced stop reasons
Claude 4.5 models introduce a new model_context_window_exceeded stop reason that explicitly indicates when generation stopped due to hitting the context window limit, rather than the requested max_tokens limit. This makes it easier to handle context window limits in your application logic.
Copy
{
"stop_reason": "model_context_window_exceeded",
"usage": {
"input_tokens": 150000,
"output_tokens": 49950
}
}
Improved tool parameter handling
Claude 4.5 models include a bug fix that preserves intentional formatting in tool call string parameters. Previously, trailing newlines in string parameters were sometimes incorrectly stripped. This fix ensures that tools requiring precise formatting (like text editors) receive parameters exactly as intended.
This is a behind-the-scenes improvement with no API changes required. However, tools with string parameters may now receive values with trailing newlines that were previously stripped.
Example:
Copy
// Before: Final newline accidentally stripped
{
"type": "tool_use",
"id": "toolu_01A09q90qw90lq917835lq9",
"name": "edit_todo",
"input": {
"file": "todo.txt",
"contents": "1. Chop onions.\n2. ???\n3. Profit"
}
}
// After: Trailing newline preserved as intended
{
"type": "tool_use",
"id": "toolu_01A09q90qw90lq917835lq9",
"name": "edit_todo",
"input": {
"file": "todo.txt",
"contents": "1. Chop onions.\n2. ???\n3. Profit\n"
}
}
Token count optimizations
Claude 4.5 models include automatic optimizations to improve model performance. These optimizations may add small amounts of tokens to requests, but you are not billed for these system-added tokens.
The following features were introduced in Claude 4 and are available across Claude 4 models, including Claude Sonnet 4.5 and Claude Haiku 4.5.
New refusal stop reason
Claude 4 models introduce a new refusal stop reason for content that the model declines to generate for safety reasons:
Copy
{"id":"msg_014XEDjypDjFzgKVWdFUXxZP",
"type":"message",
"role":"assistant",
"model":"claude-sonnet-4-5",
"content":[{"type":"text","text":"I would be happy to assist you. You can "}],
"stop_reason":"refusal",
"stop_sequence":null,
"usage":{"input_tokens":564,"cache_creation_input_tokens":0,"cache_read_input_tokens":0,"output_tokens":22}
}
When using Claude 4 models, you should update your application to handle refusal stop reasons
.
Summarized thinking
With extended thinking enabled, the Messages API for Claude 4 models returns a summary of Claude’s full thinking process. Summarized thinking provides the full intelligence benefits of extended thinking, while preventing misuse. While the API is consistent across Claude 3.7 and 4 models, streaming responses for extended thinking might return in a “chunky” delivery pattern, with possible delays between streaming events.
Summarization is processed by a different model than the one you target in your requests. The thinking model does not see the summarized output.
For more information, see the Extended thinking documentation .
Interleaved thinking
Claude 4 models support interleaving tool use with extended thinking, allowing for more natural conversations where tool uses and responses can be mixed with regular messages.
Interleaved thinking is in beta. To enable interleaved thinking, add the beta header
interleaved-thinking-2025-05-14 to your API request.
For more information, see the Extended thinking documentation .
Behavioral differences
Claude 4 models have notable behavioral changes that may affect how you structure prompts:
Communication style changes
Instruction following
Claude 4 models are trained for precise instruction following and require more explicit direction:
For comprehensive guidance on working with these models, see Claude 4 prompt engineering best practices .
Updated text editor tool
The text editor tool has been updated for Claude 4 models with the following changes:
text_editor_20250728str_replace_based_edit_toolundo_edit command is no longer supportedThe str_replace_editor text editor tool remains the same for Claude Sonnet 3.7.
If you’re migrating from Claude Sonnet 3.7 and using the text editor tool:
Copy
# Claude Sonnet 3.7
tools=[\
{\
"type": "text_editor_20250124",\
"name": "str_replace_editor"\
}\
]
# Claude 4 models
tools=[\
{\
"type": "text_editor_20250728",\
"name": "str_replace_based_edit_tool"\
}\
]
For more information, see the Text editor tool documentation .
Updated code execution tool
If you’re using the code execution tool, ensure you’re using the latest version code_execution_20250825, which adds Bash commands and file manipulation capabilities. The legacy version code_execution_20250522 (Python only) is still available but not recommended for new implementations. For migration instructions, see the Code execution tool documentation
.
Pricing
Claude 4.5 models maintain competitive pricing:
| Model | Input | Output | | --- | --- | --- | | Claude Sonnet 4.5 | $3 per million tokens | $15 per million tokens | | Claude Haiku 4.5 | $1 per million tokens | $5 per million tokens |
For more details, see the pricing documentation .
Third-party platform pricing
Starting with Claude 4.5 models (Sonnet 4.5 and Haiku 4.5), AWS Bedrock and Google Vertex AI offer two endpoint types:
This regional pricing applies to both Claude Sonnet 4.5 and Claude Haiku 4.5. The Claude API (1P) is global by default and unaffected by this change. The Claude API is global-only (equivalent to the global endpoint offering and pricing from other providers). For implementation details and migration guidance:
Availability
Claude 4.5 models are available on:
| Model | Claude API | Amazon Bedrock | Google Cloud Vertex AI |
| --- | --- | --- | --- |
| Claude Sonnet 4.5 | claude-sonnet-4-5-20250929 | anthropic.claude-sonnet-4-5-20250929-v1:0 | claude-sonnet-4-5@20250929 |
| Claude Haiku 4.5 | claude-haiku-4-5-20251001 | anthropic.claude-haiku-4-5-20251001-v1:0 | claude-haiku-4-5@20251001 |
Also available through Claude.ai and Claude Code platforms.
Breaking changes and migration requirements vary depending on which model you’re upgrading from. For detailed migration instructions, including step-by-step guides, breaking changes, and migration checklists, see Migrating to Claude 4.5 . The migration guide covers the following scenarios:
Best practices
--------------
Learn prompt engineering techniques for Claude 4.5 models
Model overview
--------------
Compare Claude 4.5 models with other Claude models
Migration guide
---------------
Upgrade from previous models
Was this page helpful?
YesNo
Choosing a model Migrating to Claude 4.5
Assistant
Responses are generated using AI and may contain mistakes.