Two Anthropic models
Claude Opus 4.8 vs Claude Sonnet 5
Claude Opus 4.8 wins 12 jobs · Claude Sonnet 5 wins 2
Claude Opus 4.8 wins 12 of 14 jobs, Claude Sonnet 5 wins 2. Claude Sonnet 5 is about 2.5× cheaper per token.

Pick Claude Opus 4.8 for
writing code, fixing bugs in real code, building websites and apps, algorithms and speed-ups, math, science, puzzles and tricky thinking, knowing facts, predicting the future, creative writing, everyday chat and understanding pictures and video
$10 per 1M tokens
Pick Claude Sonnet 5 for
long jobs on its own and using tools
$4 per 1M tokens
Job by job
Score = share of today's AI models each one beats on that job's tests (100 = best of all).
- Writing code6554
- Fixing bugs in real code4836
- Building websites and apps7368
- Algorithms and speed-ups8173
- Math7757
- Science7972
- Puzzles and tricky thinking7463
- Knowing facts7035
- Predicting the future8527
- Long jobs on its own5259
- Using tools4153
- Creative writing8170
- Everyday chat7967
- Understanding pictures and video7558
Specs and price
| Claude Opus 4.8 | Claude Sonnet 5 | |
|---|---|---|
| Maker | Anthropic | Anthropic |
| Overall rank | #23 | #36 |
| Price, reading (per 1M tokens) | $5 | $2 |
| Price, writing (per 1M tokens) | $25 | $10 |
| Memory (context window) | 1M | 1M |
| Longest reply | 128K | 128K |
| Reads images | yes | yes |
| Thinking mode | yes | yes |
| Open weights | no | no |
| Released | May 28, 2026 | June 30, 2026 |
| Tests taken | 41 | 30 |
What everyday jobs cost
At list API prices. Chat apps on a monthly plan don't charge per job.
| Job | Claude Opus 4.8 | Claude Sonnet 5 |
|---|---|---|
| Read a 300-page book and answer | $0.618 | $0.247 |
| Fix a bug in a mid-size codebase | $1.20 | $0.48 |
| 1,000 customer-support chats | $45.00 | $18.00 |
Every test both took (30)
Claude Opus 4.8 is ahead on 25, Claude Sonnet 5 on 5. Raw scores as published.
| Test | Claude Opus 4.8 | Claude Sonnet 5 |
|---|---|---|
| LMArena Text | 1462 | 1442 |
| GPQA Diamond | 91.0% | 90.5% |
| OTIS Mock AIME 2024-2025 | 98.3% | 94.7% |
| DTBench | 94.9% | 92.5% |
| CritPt | 20.9% | 16.9% |
| LMCA | 57.5% | 50.0% |
| SciCode | 53.5% | 54.3% |
| ALE-Bench | 1564 | 1463 |
| WeirdML | 82.9% | 69.0% |
| LMArena Vision | 1294 | 1272 |
| SimpleBench | 64.8% | 60.6% |
| WebDev Arena | 1559 | 1537 |
| Chess Puzzles | 52.0% | 45.0% |
| SimpleQA Verified | 53.0% | 33.7% |
| FrontierMath Tiers 1–3 (v2) | 80.0% | 65.6% |
| ForecastBench | 66.0% | 62.9% |
| Mystery Game Puzzles | 36.0% | 35.0% |
| ProofBench | 69.0% | 77.0% |
| FrontierMath Tier 4 (v2) | 56.1% | 29.3% |
| Vending-Bench 2 | $5,787 | $6,378 |
| APEX-Agents | 48.9% | 54.5% |
| FrontierCode | 46.5% | 42.7% |
| GeoBench | 81.0% | 74.0% |
| MirrorCode | 65.6% | 63.3% |
| Blueprint-Bench 2 | 14.5% | 24.9% |
| GSO-Bench | 47.1% | 37.3% |
| GBAEval | 70.9% | 65.3% |
| DeepSWE | 59.0% | 53.8% |
| Surface Evolver Bench | 87.5% | 60.0% |
| BTF-3 | 0.132 | 0.142 |
Quick answers
Is Claude Opus 4.8 better than Claude Sonnet 5?
Claude Opus 4.8 wins 12 of 14 jobs, Claude Sonnet 5 wins 2. Claude Sonnet 5 is about 2.5× cheaper per token.
Is Claude Opus 4.8 or Claude Sonnet 5 better for writing code?
Claude Opus 4.8: 65 vs 54.
See the details →Is Claude Opus 4.8 or Claude Sonnet 5 better for math?
Claude Opus 4.8: 77 vs 57.
See the details →Is Claude Opus 4.8 or Claude Sonnet 5 better for long jobs on its own?
Claude Sonnet 5: 59 vs 52.
See the details →Is Claude Opus 4.8 or Claude Sonnet 5 better for creative writing?
Claude Opus 4.8: 81 vs 70.
See the details →Is Claude Opus 4.8 or Claude Sonnet 5 better for understanding pictures and video?
Claude Opus 4.8: 75 vs 58.
See the details →Which is cheaper, Claude Opus 4.8 or Claude Sonnet 5?
Claude Sonnet 5: $4 vs $10 per million tokens (3 parts reading to 1 part writing).
Which is newer?
Claude Sonnet 5, released June 30, 2026.