Key improvements over Sonnet 4
Coding excellence
Claude Sonnet 4.5 is our best coding model to date, with significant improvements across the entire development lifecycle:- SWE-bench Verified performance: Advanced state-of-the-art on coding benchmarks
- Enhanced planning and system design: Better architectural decisions and code organization
- Improved security engineering: More robust security practices and vulnerability detection
- Better instruction following: More precise adherence to coding specifications and requirements
Extended thinking for optimal performance: 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:- Extended autonomous operation: Sonnet 4.5 can work independently for hours while maintaining clarity and focus on incremental progress. The model makes steady advances on a few tasks at a time rather than attempting everything at once. It provides fact-based progress updates that accurately reflect what has been accomplished.
- Context awareness: Claude now tracks its token usage throughout conversations, receiving updates after each tool call. This awareness helps prevent premature task abandonment and enables more effective execution on long-running tasks. See Context awareness for technical details and prompting guidance.
- Enhanced tool usage: The model more effectively uses parallel tool calls, firing off multiple speculative searches simultaneously during research and reading several files at once to build context faster. Improved coordination across multiple tools and information sources enables the model to effectively leverage a wide range of capabilities in agentic search and coding workflows.
- Advanced context management: Sonnet 4.5 maintains exceptional state tracking in external files, preserving goal-orientation across sessions. Combined with more effective context window usage and our new context management API features, the model optimally handles information across extended sessions to maintain coherence over time.
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:- Presentations and animations: Matches or exceeds Claude Opus 4.1 for creating slides and visual content
- Creative flair: Produces polished, professional output with strong instruction following
- First-try quality: Generates usable, well-designed content in initial attempts
New API features
Memory tool (Beta)
The new memory tool enables Claude to store and retrieve information outside the context window:- Building knowledge bases over time
- Maintaining project state across sessions
- Preserving effectively unlimited context through file-based storage
context-management-2025-06-27
Context editing
Claude Sonnet 4.5 introduces context editing for intelligent context management through automatic tool call clearing:Enhanced stop reasons
Claude Sonnet 4.5 introduces a newmodel_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.
Improved tool parameter handling
Claude Sonnet 4.5 includes 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.
Token count optimizations
Claude Sonnet 4.5 includes 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.Pricing and availability
Pricing
Claude Sonnet 4.5 maintains the same pricing as Sonnet 4:- Input: $3 per million tokens
- Output: $15 per million tokens
Availability
Claude Sonnet 4.5 is available on:- Claude API:
claude-sonnet-4-5-20250929
- Amazon Bedrock:
anthropic.claude-sonnet-4-5-20250929-v1:0
- Google Cloud Vertex AI:
claude-sonnet-4-5@20250929
Migration guide
If you’re currently using Claude Sonnet 4, upgrading to Sonnet 4.5 is straightforward:- Update your model name to
claude-sonnet-4-5-20250929
- Existing API calls will continue to work*
- Consider enabling new features:
- Memory tool for long-running agents
- Tool call clearing for better context management
temperature
and top_p
parameters to be specified. Please use only one.