Author's Description
Claude Sonnet 4 significantly enhances the capabilities of its predecessor, Sonnet 3.7, excelling in both coding and reasoning tasks with improved precision and controllability. Achieving state-of-the-art performance on SWE-bench (72.7%), Sonnet 4 balances capability and computational efficiency, making it suitable for a broad range of applications from routine coding tasks to complex software development projects. Key enhancements include improved autonomous codebase navigation, reduced error rates in agent-driven workflows, and increased reliability in following intricate instructions. Sonnet 4 is optimized for practical everyday use, providing advanced reasoning capabilities while maintaining efficiency and responsiveness in diverse internal and external scenarios. Read more at the [blog post here](https://www.anthropic.com/news/claude-4)
Key Specifications
Supported Parameters
This model supports the following parameters:
Features
This model supports the following features:
Performance Summary
Anthropic's Claude Sonnet 4, released May 22, 2025, demonstrates a strong balance of capability and efficiency, particularly excelling in coding and reasoning tasks. It achieves state-of-the-art performance on SWE-bench (72.7%) and boasts exceptional reliability with a 100% success rate across all benchmarks, indicating consistent and usable responses. While its speed performance is competitive, ranking in the 41st percentile, its pricing tends to be at premium levels (11th percentile). Key strengths include perfect accuracy in Hallucinations and Ethics benchmarks, showcasing robust truthfulness and adherence to ethical principles. It also exhibits high accuracy in Coding (93.0%), General Knowledge (99.8%), and Mathematics (93.0%), indicating strong foundational and advanced problem-solving abilities. Its Reasoning capabilities are also notable at 88.0% accuracy. A potential area for improvement is Instruction Following, where it achieved 66.0% accuracy, though still performing above average. Sonnet 4 is optimized for practical everyday use, offering advanced reasoning and reduced error rates in agent-driven workflows.
Model Pricing
Current Pricing
Feature | Price (per 1M tokens) |
---|---|
Prompt | $3 |
Completion | $15 |
Input Cache Read | $0.3 |
Input Cache Write | $3.75 |
Price History
Available Endpoints
Provider | Endpoint Name | Context Length | Pricing (Input) | Pricing (Output) |
---|---|---|---|---|
Google
|
Google | anthropic/claude-4-sonnet-20250522 | 1M | $3 / 1M tokens | $15 / 1M tokens |
Google
|
Google | anthropic/claude-4-sonnet-20250522 | 1M | $3 / 1M tokens | $15 / 1M tokens |
Amazon Bedrock
|
Amazon Bedrock | anthropic/claude-4-sonnet-20250522 | 200K | $3 / 1M tokens | $15 / 1M tokens |
Anthropic
|
Anthropic | anthropic/claude-4-sonnet-20250522 | 1M | $3 / 1M tokens | $15 / 1M tokens |
Google
|
Google | anthropic/claude-4-sonnet-20250522 | 1M | $3 / 1M tokens | $15 / 1M tokens |
Benchmark Results
Benchmark | Category | Reasoning | Strategy | Free | Executions | Accuracy | Cost | Duration |
---|
Other Models by anthropic
|
Released | Params | Context |
|
Speed | Ability | Cost |
---|---|---|---|---|---|---|---|
Anthropic: Claude Sonnet 4.5 | Sep 29, 2025 | — | 1M |
Text input
Image input
File input
Text output
|
★★ | ★★★★★ | $$$$$ |
Anthropic: Claude Opus 4.1 | Aug 05, 2025 | — | 200K |
Text input
Image input
File input
Text output
|
★★ | ★★★★★ | +$$$$$ |
Anthropic: Claude Opus 4 | May 22, 2025 | — | 200K |
Text input
Image input
File input
Text output
|
★★ | ★★★★★ | +$$$$$ |
Anthropic: Claude 3.7 Sonnet | Feb 24, 2025 | — | 200K |
Text input
Image input
File input
Text output
|
★★★ | ★★★★★ | $$$$$ |
Anthropic: Claude 3.5 Haiku | Nov 03, 2024 | — | 200K |
Text input
Image input
Text output
|
★★★★ | ★★★ | $$$$ |
Anthropic: Claude 3.5 Haiku (2024-10-22) | Nov 03, 2024 | — | 200K |
Text input
Image input
File input
Text output
|
★★★★ | ★★★ | $$$$ |
Anthropic: Claude 3.5 Sonnet | Oct 21, 2024 | ~400B | 200K |
Text input
Image input
File input
Text output
|
★★★ | ★★★★ | $$$$$ |
Anthropic: Claude 3.5 Sonnet (2024-06-20) | Jun 19, 2024 | ~400B | 200K |
Text input
Image input
File input
Text output
|
★★★★ | ★★★★ | $$$$$ |
Anthropic: Claude 3 Haiku | Mar 12, 2024 | ~20B | 200K |
Text input
Image input
Text output
|
★★★★★ | ★★★ | $$$ |
Anthropic: Claude 3 Sonnet Unavailable | Mar 04, 2024 | ~200B | 200K |
Text input
Image input
Text output
|
★★★★ | ★★★★ | $$$$$ |
Anthropic: Claude 3 Opus | Mar 04, 2024 | ~2T | 200K |
Text input
Image input
Text output
|
★★★ | ★★★★ | +$$$$$ |
Anthropic: Claude v2 Unavailable | Nov 21, 2023 | 137B | 200K |
Text input
Text output
|
★★ | ★★★★ | +$$$$$ |
Anthropic: Claude v2.1 Unavailable | Nov 21, 2023 | 137B | 200K |
Text input
Text output
|
★★ | ★★★★ | +$$$$$ |
Anthropic: Claude v2.0 Unavailable | Jul 27, 2023 | 137B | 100K |
Text input
Text output
|
★★★ | ★★★★ | +$$$$$ |