Claude · Best AI for
Best Claude model for writing code
Only Anthropic models, scored against every current AI on the same tests, so you can see which one to pick and how it stacks up.
Answer: Claude Opus 5.5 (87/100 · $8 per 1M tokens)

Claude Opus 5.5. It scores 87/100 for writing code, #3 among all 35 current models (the overall leader, GPT-6 Astra, scores 91).
All 11 Claude models for writing code
Score = share of all of today's AI models it beats on this job's tests (100 = best of all). Bar in coral = the overall #1, for reference.
- 1Claude Opus 5.5#3 of 35 overall · a few tests87
- 2Claude Opus 5#4 of 35 overall · a few tests86
- 3Claude Fable 5.1#5 of 35 overall · a few tests86
- 4Claude Fable 5#6 of 35 overall · a few tests82
- 5Claude Sonnet 5.5#7 of 35 overall · a few tests80
- 6Claude Opus 4.8#9 of 35 overall · a few tests65
- 7Claude Opus 4.7#11 of 35 overall · a few tests59
- 8Claude Haiku 5.5#12 of 35 overall · a few tests59
- 9Claude Opus 4.6#15 of 35 overall · a few tests57
- 10Claude Sonnet 5#18 of 35 overall · a few tests54
- 11Claude Sonnet 4.6#32 of 35 overall · a few tests26
Score, price and memory side by side
Cost per job = one long request (≈ 20K tokens read, 2K written), using list API prices.
| Model | Score | $ / 1M tokens | Cost per job | Memory | Released |
|---|---|---|---|---|---|
| Claude Opus 5.5 | 87 | $8 | $0.12 | 1M | Sep 2026 |
| Claude Opus 5 | 86 | $10 | $0.15 | 1M | Jul 2026 |
| Claude Fable 5.1 | 86 | $20 | $0.3 | 1M | Sep 2026 |
| Claude Fable 5 | 82 | $20 | $0.3 | 1M | Jun 2026 |
| Claude Sonnet 5.5 | 80 | $4 | $0.06 | 1M | Sep 2026 |
| Claude Opus 4.8 | 65 | $10 | $0.15 | 1M | May 2026 |
| Claude Opus 4.7 | 59 | $10 | $0.15 | 1M | Apr 2026 |
| Claude Haiku 5.5 | 59 | $0.2 | $0.003 | 1M | Oct 2026 |
| Claude Opus 4.6 | 57 | $10 | $0.15 | 1M | Feb 2026 |
| Claude Sonnet 5 | 54 | $4 | $0.06 | 1M | Jun 2026 |
| Claude Sonnet 4.6 | 26 | $6 | $0.09 | 1M | Feb 2026 |
Quick answers
Which Claude model is best for writing code?
Claude Opus 5.5. It scores 87/100 for writing code, #3 among all 35 current models (the overall leader, GPT-6 Astra, scores 91).
About Claude Opus 5.5 →What's the runner-up?
Claude Opus 5, scoring 86 at $10 per million tokens.
See the details →Which is the best value?
Claude Sonnet 5.5: it scores 80 (vs 87 for Claude Opus 5.5) and costs $4 per million tokens instead of $8.
See the details →How does it compare with the overall best for writing code?
GPT-6 Astra scores 91 vs 87, but costs about 2.5× as much per token.
Best AI for writing code →How are these ranked?
Each model's score is the share of current AI models it beats on the writing code tests, weighted towards newer and harder tests. Only Anthropic models, scored against every current AI on the same tests, so you can see which one to pick and how it stacks up.
How scores work →More ways to pick for writing code
Claude for other jobs
24 jobs · scores update automatically from public test results · data as of November 21, 2026