modelgrep

Best Anthropic Models for Coding

Quick answer · Updated June 2026

Claude Fable 5 is the best Anthropic model for coding, with a 62.0 Artificial Analysis Coding Index across benchmarks like SWE-bench and SciCode. Claude Opus 4.8 (56.7) and Claude Opus 4.7 (52.5) round out the top three.

62.0Coding
64.9Intelligence
$10.00Input /M
1MContext

AI models ranked by the Artificial Analysis Coding Index, measuring real-world software engineering ability across benchmarks like SWE-bench, SciCode and terminal tasks. The best LLMs for code generation, debugging and agentic development.

  1. 1A
    claude-fable-5
    ReasoningToolsJSON+164.9 intel · $10.00/M · 1M ctx
    62.0
    Coding
  2. 2A
    claude-opus-4.8
    ReasoningToolsJSON+161.4 intel · $5.00/M · 59 t/s
    56.7
    Coding
  3. 3A
    claude-opus-4.7
    ReasoningToolsJSON+157.3 intel · $5.00/M · 63 t/s
    52.5
    Coding
  4. 4A
    claude-opus-4.6
    ReasoningToolsJSON+152.9 intel · $5.00/M · 41 t/s
    48.1
    Coding
  5. 5A
    claude-sonnet-4.6
    ReasoningToolsJSON+142.6 intel · $3.00/M · 47 t/s
    43.0
    Coding
  6. 6A
    claude-opus-4.5
    ReasoningToolsJSON+143.1 intel · $5.00/M · 60 t/s
    42.9
    Coding
  7. 7A
    claude-opus-4.1
    ReasoningToolsJSON+1$15.00/M · 27 t/s · 2.1s ttft
    36.5
    Coding
  8. 8A
    claude-opus-4
    ReasoningToolsVision$15.00/M · 10 t/s · 2.3s ttft
    34.0
    Coding
  9. 9A
    claude-sonnet-4.5
    ReasoningToolsJSON+137.1 intel · $3.00/M · 46 t/s
    33.5
    Coding
  10. 10A
    claude-sonnet-4
    ReasoningToolsVision33.0 intel · $3.00/M · 49 t/s
    30.6
    Coding
  11. 11A
    claude-haiku-4.5
    ReasoningToolsJSON+131.0 intel · $1.00/M · 82 t/s
    29.6
    Coding
  12. 12A
    claude-3.5-haiku
    ToolsVision18.7 intel · $0.800/M · 35 t/s
    10.7
    Coding
  13. 13A
    claude-3-haiku
    ToolsVision12.3 intel · $0.250/M · 68 t/s
    6.7
    Coding

Frequently asked

What is the best Anthropic model for coding?

Claude Fable 5 is the best Anthropic model for coding, with a 62.0 Artificial Analysis Coding Index across benchmarks like SWE-bench and SciCode. Claude Opus 4.8 (56.7) and Claude Opus 4.7 (52.5) round out the top three.

What's a good alternative to Claude Fable 5?

Claude Opus 4.8 (56.7) is the closest alternative on this metric, followed by Claude Opus 4.7 (52.5). See the full ranking above for the tradeoffs.

How many Anthropic models are there?

modelgrep tracks 16 Anthropic models with live benchmarks, speed, latency and per-provider pricing, led on intelligence by Claude Fable 5. 13 of them qualify for this ranking.

More Anthropic rankings

All rankings