Skip to content

Best LLMs for Coding

The best LLMs for coding are ranked here by their scores on coding benchmarks — measuring code generation, bug fixing, and software-engineering ability. A higher score means stronger performance on programming tasks. Pair benchmark strength with context window (for large codebases) and price when choosing a coding model.

Ranked list (top 25)

#ModelCoding scoreInput / 1MOutput / 1MContext
1Anthropic: Claude Opus 5.5
Anthropic
1809.8$4.00$20.001M
2OpenAI: GPT-6 Astra
OpenAI
1773.3$10.00$50.001.1M
3Anthropic: Claude Sonnet 5.5
Anthropic
1769.7$2.00$10.001M
4OpenAI: GPT-6.1 Sol
OpenAI
1750.6$2.00$10.001.1M
5Anthropic: Claude Fable 5.1
Anthropic
1745.8$10.00$50.001M
6MoonshotAI: Kimi K3.1 Pro
MoonshotAI
1694.6$2.00$10.001M
7Anthropic: Claude Opus 5
Anthropic
1690.5$5.00$25.001M
8Google: Gemini 4 Argon
Google
1679.2$2.00$10.001M
9OpenAI: GPT-6 Sol
OpenAI
1678.2$2.00$10.001.1M
10Qwen3.8 Max
Alibaba
1675.9$2.00$6.001M
11OpenAI: GPT-6.1 Terra
OpenAI
1672.7$1.00$5.001.1M
12DeepSeek: DeepSeek V4.1 Flash
DeepSeek
1665.0$0.05$0.501M
13MoonshotAI: Kimi K3
MoonshotAI
1656.4$0.19$15.001M
14Meta: Muse Spark 1.3
Meta
1656.2$1.25$4.251M
15Meta: Muse Wonder
Meta
1652.1$4.00$20.001M
16SpaceXAI: Grok 4.7
SpaceXAI
1637.5$2.00$6.00500K
17Xiaomi: MiMo-V2.6-Flash
Xiaomi
1637.2$0.14$0.281.1M
18Tencent: Hy4 preview
Tencent
1631.1$0.83$2.501M
19Qwen3.8 Flash Next
AMDOpen weights
1628.3$0.00$0.00262K
20Xiaomi: MiMo-V2.6-Pro
Xiaomi
1625.4$0.44$0.871.1M
21Anthropic: Claude Fable 5
Anthropic
1624.1$10.00$50.001M
22Z.ai: GLM 5.3
Z.ai
1622.8$0.07$1.401M
23SpaceXAI: Grok 4.6
SpaceXAI
1616.4$2.00$6.00500K
24OpenAI: GPT-5.6 Sol
OpenAI
1615.8$4.00$20.001.1M
25Z.ai: GLM 5.3 Flash
Z.ai
1606.7$0.05$0.071M

Prices are per 1M tokens (USD); confirm with the provider. Updated regularly.

More LLM rankings

Frequently asked questions

What is the best LLM for coding?

Based on coding benchmark scores, Anthropic: Claude Opus 5.5 ranks at the top in our dataset. See the full ranking above.

How are coding LLMs ranked?

Models are ranked by their score on coding-category benchmarks (such as code generation and software-engineering tasks). Higher scores indicate stronger coding ability.

Does context window matter for coding?

Yes — a larger context window lets a model see more of your codebase at once, which helps with multi-file edits and understanding project-wide context. Balance benchmark score with context size.