Skip to content
benchtopia
  • Fetching the field guide…

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.

  1. 1Claude Opus 5.5#3 of 35 overall · a few tests87
  2. 2Claude Opus 5#4 of 35 overall · a few tests86
  3. 3Claude Fable 5.1#5 of 35 overall · a few tests86
  4. 4Claude Fable 5#6 of 35 overall · a few tests82
  5. 5Claude Sonnet 5.5#7 of 35 overall · a few tests80
  6. 6Claude Opus 4.8#9 of 35 overall · a few tests65
  7. 7Claude Opus 4.7#11 of 35 overall · a few tests59
  8. 8Claude Haiku 5.5#12 of 35 overall · a few tests59
  9. 9Claude Opus 4.6#15 of 35 overall · a few tests57
  10. 10Claude Sonnet 5#18 of 35 overall · a few tests54
  11. 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.

ModelScore$ / 1M tokensCost per jobMemoryReleased
Claude Opus 5.587$8$0.121MSep 2026
Claude Opus 586$10$0.151MJul 2026
Claude Fable 5.186$20$0.31MSep 2026
Claude Fable 582$20$0.31MJun 2026
Claude Sonnet 5.580$4$0.061MSep 2026
Claude Opus 4.865$10$0.151MMay 2026
Claude Opus 4.759$10$0.151MApr 2026
Claude Haiku 5.559$0.2$0.0031MOct 2026
Claude Opus 4.657$10$0.151MFeb 2026
Claude Sonnet 554$4$0.061MJun 2026
Claude Sonnet 4.626$6$0.091MFeb 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