Claude Sonnet 4
anthropic-claude-sonnet-4
Balanced Claude model for coding, analysis, agent workflows, and cost control
Specification
most-agreed values
Context
1M
Max output
64K
Released
2025-05-22
Knowledge cutoff
2025-03-31
Retires
—
Open weights
no
Input
text, image, pdf
Output
text
Price
US dollars per million tokens · most-agreed
Input
$3.00
Output
$15.00
Cache read
$0.30
Cache write
$3.75
Quality
7 benchmarks · 3 sources
Composite
66th
percentile of 334 scored models
Rank
113 / 334
±0.05 sd
Evidence
7 × 3
3 or more benchmarks, from 2 or more sources
Effort range
11.6
points between effort settings
coding64th2/3 bench
reasoning80th1/4 bench
math53rd4/7 bench
By reasoning effort
every setting placed on the same scale as the leaderboard
| Setting | Composite | Benchmarks behind it |
|---|---|---|
| 32k | 82nd | 3 |
| 16k | 69th | 2 |
| 59k | 64th | 3 |
Every score
one row per source and configuration — nothing averaged away
| Benchmark | Score | Configuration | Source | Run |
|---|---|---|---|---|
| MATH level 5 | 84.4 ±1.0 | default | Epoch AI | 2025-05-22 |
| Aider polyglot | 61.3 | 32k · aider diff | Aider | 2025-05-24 |
| GPQA diamond | 78.3 ±2.9 | 32k | Epoch AI | 2025-05-22 |
| ↳ | 77.8 ±2.7 | 59k | Epoch AI | 2025-05-26 |
| ↳ | 75.8 ±3.1 | 16k | Epoch AI | 2025-05-22 |
| ↳ | 66.7 ±3.4 | default | Epoch AI | 2025-05-22 |
| Settings differ by 11.6 points on this benchmark. | ||||
| SWE-Bench verified | 65.9 | default · Harness AI · 2 runs | SWE-bench | — |
| OTIS Mock AIME 2024-2025 | 71.1 ±6.8 | 32k | Epoch AI | 2025-05-22 |
| ↳ | 68.9 ±7.0 | 59k | Epoch AI | 2025-05-23 |
| ↳ | 53.3 ±7.5 | 16k | Epoch AI | 2025-05-22 |
| ↳ | 28.9 ±6.8 | default | Epoch AI | 2025-05-22 |
| Settings differ by 42.2 points on this benchmark. | ||||
| FrontierMath-Tier-4-2025-07-01 | 0.0 ±0.0 | default · 2 runs | Epoch AI | 2025-07-01 |
| ↳ | 0.0 ±0.0 | 59k | Epoch AI | 2025-07-01 |
| FrontierMath-v1 | 2.1 ±1.2 | default · 2 runs | Epoch AI | 2025-07-04 |
The leading figure for a benchmark is the median across its configurations, so one heroic high-effort run cannot set the number.
Available from 1 host
| Host | In $/M | Out $/M | Cache rd | Cache wr | Context | Output | Retires |
|---|---|---|---|---|---|---|---|
| digitalocean | $3.00 | $15.00 | $0.30 | $3.75 | 1M | 64K | — |