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
1811.2$4.00$20.001M
2OpenAI: GPT-6 Astra
OpenAI
1780.2$10.00$50.001.1M
3Anthropic: Claude Sonnet 5.5
Anthropic
1773.7$2.00$10.001M
4OpenAI: GPT-6.1 Sol
OpenAI
1760.1$2.00$10.001.1M
5Anthropic: Claude Fable 5.1
Anthropic
1742.7$10.00$50.001M
6Anthropic: Claude Opus 5
Anthropic
1690.0$5.00$25.001M
7OpenAI: GPT-6 Sol
OpenAI
1685.9$2.00$10.001.1M
8Google: Gemini 4 Argon
Google
1678.0$2.00$10.001M
9Qwen3.8 Max
Alibaba
1673.2$2.00$6.001M
10Meta: Muse Spark 1.3
Meta
1658.5$1.25$4.251M
11MoonshotAI: Kimi K3
MoonshotAI
1655.3$0.45$15.001M
12Meta: Muse Wonder
Meta
1651.0$4.00$20.001M
13SpaceXAI: Grok 4.7
SpaceXAI
1640.2$2.00$6.00500K
14Xiaomi: MiMo-V2.6-Flash
Xiaomi
1635.1$0.14$0.281.1M
15Qwen3.8 Flash Next
AMDOpen weights
1633.2$0.15$0.47262K
16Tencent: Hy4 preview
Tencent
1631.6$0.83$2.501M
17Xiaomi: MiMo-V2.6-Pro
Xiaomi
1625.2$0.44$0.871.1M
18Anthropic: Claude Fable 5
Anthropic
1623.8$10.00$50.001M
19Z.ai: GLM 5.3
Z.ai
1621.2$0.08$4.801M
20DeepSeek: DeepSeek V4.1 Flash
DeepSeek
1618.5$0.01$0.891M
21SpaceXAI: Grok 4.6
SpaceXAI
1617.4$2.00$6.00500K
22OpenAI: GPT-5.6 Sol
OpenAI
1617.0$4.00$20.001.1M
23Z.ai: GLM 5.3 Flash
Z.ai
1606.0$0.04$0.901M
24Z.ai: GLM 5.2
Z.ai
1604.1$0.04$7.001M
25Qwen: Qwen3.8 27B
Qwen
1594.2$0.24$2.201M

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.