88 models ranked by quality score, sorted by rank with pricing and best-value picks.
Verdict
For code generation, use Claude Opus 5.5 for quality or Claude Haiku 4.5 for cost. The quality gap between #1 and #2 is 5 points.
Rankings
Claude Opus 5.5 ranks #1 for code generation with a confidence score of 79/100.
Claude Haiku 4.5 is the best value for code generation at $1.00/$5.00 per million tokens with a confidence of 72/100.
Confidence scores are a third-party benchmark snapshot from week 26 of 2026. This snapshot is 17 weeks old, so treat the scores as directional and validate against your own evals.
Per-call cost for the highest-ranked models on this task.
Claude Opus 5.5 cost calculator
79/100 · $4.00 / $20.00 per MTok
Claude Fable 5.1 cost calculator
74/100 · $10.00 / $50.00 per MTok
Claude Opus 5 cost calculator
72/100 · $5.00 / $25.00 per MTok
Claude Fable 5 cost calculator
72/100 · $10.00 / $50.00 per MTok
Claude Sonnet 5 cost calculator
68/100 · $2.00 / $10.00 per MTok
Claude Haiku 4.5 cost calculator
72/100 · $1.00 / $5.00 per MTok
Comparisons show estimated costs at list price. The dashboard reveals your real spend and savings.