Updated November 2026
Best AI models for coding in 2026
The strongest models for writing, refactoring, and debugging code, ranked by independent coding benchmarks.
Ranking
Top 20, ranked by coding index
Ranked by the Artificial Analysis Coding Index, which aggregates several independent coding evaluations.
- 1
Claude Fable 5.1Anthropic · $10 in / $50 out · 1M context80.7
- 2
GPT-5.6 SolOpenAI · $4 in / $20 out · 1.05M context78.3
- 3
Claude Opus 5Anthropic · $5 in / $25 out · 1M context78
- 4
GPT-6 AstraOpenAI · $10 in / $50 out · 1.05M context76.9
- 5
GPT-5.6 TerraOpenAI · $2 in / $12 out · 1.05M context76.7
- 6
Claude Fable 5Anthropic · $10 in / $50 out · 1M context76.5
- 7
Gemini 3.8 FlashGoogle · $0.83 in / $4.13 out · 1.05M context76.3
- 8
Qwen3.8 Max (0902)Qwen · $2 in / $6 out · 1M context76.2 - 9
Gemini 3.7 FlashGoogle · $0.75 in / $3.75 out · 1.05M context76.1
- 10
Grok 4.6xAI · $2 in / $6 out · 500K context75.9
- 11
Muse Spark 1.3Meta · $1.25 in / $4.25 out · 1.05M context75.8
- 12
GPT-5.5OpenAI · $5 in / $30 out · 1.05M context74.9
- 13
GLM 5.3Z.ai · $0.07 in / $1.40 out · 1.05M context74.8
- 14
Claude Opus 4.8Anthropic · $5 in / $25 out · 1M context74.3
- 15
Claude Opus 4.7Anthropic · $5 in / $25 out · 1M context73.6
- 16
Grok 4.5xAI · $2 in / $6 out · 500K context72.4
- 17
Muse Spark 1.2Meta · $1.25 in / $4.25 out · 1.05M context72.2
- 18
Kimi K3Moonshot AI · $0.19 in / $16 out · 1.05M context72
- 19
Qwen3.8 2.4T A95BQwen · $2 in / $6 out · 1.05M context71.9 - 20
Claude Sonnet 5Anthropic · $2 in / $10 out · 1M context71.5
Head to head
How the top models compare
Detailed comparisons between the models on this list.
GPT-6 Astra vs Claude Fable 5.1
OpenAI vs Anthropic
See comparisonGPT-6 Astra vs Claude Fable 5
OpenAI vs Anthropic
See comparisonClaude Fable 5.1 vs Claude Fable 5
Anthropic vs Anthropic
See comparisonClaude Fable 5.1 vs GPT-5.6 Sol
Anthropic vs OpenAI
See comparisonGPT-5.6 Sol vs Claude Fable 5
OpenAI vs Anthropic
See comparisonClaude Fable 5.1 vs Claude Opus 5
Anthropic vs Anthropic
See comparisonMore rankings
Best models for other jobs
The leader changes with the job. See how these same models rank for something else.
Smartest AI models
The models with the highest general intelligence scores, covering reasoning, math, science, and knowledge.
- 1
Claude Fable 5.264.6
- 2
GPT-6.2 Astra62.1
- 3
Gemini 4 Neon61.4
Cheapest AI models
The cheapest AI models for everyday chat, ranked by price per million tokens. See input and output prices side by side, plus the cheapest models that still deliver good quality.
- 1
DeepSeek V4.1 Flash 1017$0.07 - 2
DeepSeek V4 Flash 0731$0.11 - 3
Claude Haiku 5.5$0.20
Best long-context AI models
Models that can read entire codebases, books, or long document sets in a single prompt.
- 1
Grok 4.202M tokens
- 2
Llama 4 Scout1.31M tokens
- 3
GPT-6.2 Astra1.05M tokens
FAQ
Frequently asked questions
What is the best AI model for coding?
Claude Fable 5.1 from Anthropic ranks first with coding index of 80.7. GPT-5.6 Sol is second at 78.3.
How are these models ranked?
Ranked by the Artificial Analysis Coding Index, which aggregates several independent coding evaluations.
Can I use more than one of these models?
Yes. Shortcut Chat sends one prompt to several models at once, so you can run the top models on this list side by side and keep the best answer.
Use the top models together.
Send one prompt to multiple models on this list at once, see the answers side by side, and take the best part from each.