Best AI model for writing & editing code

General programming: writing functions, refactoring, explaining code, debugging. Ranked by Arena text / coding, priced against live API rates. 45 models have a published score on this board.

Capability published 2026-10-22 · pricing retrieved 2026-10-25

Most capable
Claude Opus 5.5
Anthropic
$8.00 / 1M blended
100% of leader strength
anthropic/claude-opus-5.5
Best value
Gemini 4 Argon
Google
$4.00 / 1M blended
98% of leader strength · 50% cheaper
google/gemini-4-argon
Budget
DeepSeek V4 Flash 0731
DeepSeek
$0.07 / 1M blended
75% of leader strength · 99% cheaper
deepseek/deepseek-v4-flash-0731
Best for agents
Gemini 4 Argon
Google
$4.00 / 1M blended
98% of leader strength · 50% cheaper
google/gemini-4-argon

Top 25 models for writing & editing code

Rows marked frontier are Pareto-optimal — nothing we track is both stronger and cheaper. "Strength" rescales the board so 100% = parity with the leader.

#ModelProviderScoreStrength$/1MContextTools
1 Claude Opus 5.5
anthropic/claude-opus-5.5
Anthropic 1545 100% $8.001M tools
2 Gemini 4 Argon
google/gemini-4-argon
Google 1539 98% $4.001.048576M tools
3 Claude Opus 5
anthropic/claude-opus-5
Anthropic 1533 96% $10.001M tools
4 Claude Fable 5.1
anthropic/claude-fable-5.1
Anthropic 1531 96% $20.001M tools
5 Claude Fable 5
anthropic/claude-fable-5
Anthropic 1518 92% $20.001M tools
6 Claude Sonnet 5.5
anthropic/claude-sonnet-5.5
Anthropic 1510 90% $4.001M tools
7 GLM 5.3 Flash
z-ai/glm-5.3-flash
Z.ai (Zhipu) 1508 89% $0.241.048576M tools
8 Kimi K3
moonshotai/kimi-k3
Moonshot AI 1508 89% $2.881.048576M tools
9 Gemini 3.8 Flash
google/gemini-3.8-flash
Google 1508 89% $1.661.048576M tools
10 Qwen3.8 Max (0902)
qwen/qwen3.8-max-0902
Qwen (Alibaba) 1503 88% $3.001M tools
11 DeepSeek V4.1 Flash
deepseek/deepseek-v4.1-flash
DeepSeek 1501 88% $0.271.048576M tools
12 Gemini 3.7 Flash
google/gemini-3.7-flash
Google 1501 87% $1.501.048576M tools
13 GLM 5.3
z-ai/glm-5.3
Z.ai (Zhipu) 1498 86% $0.411.048576M tools
14 Gemini 3.6 Flash
google/gemini-3.6-flash
Google 1491 85% $1.501.048576M tools
15 Claude Opus 4.8
anthropic/claude-opus-4.8
Anthropic 1491 84% $10.001M tools
16 GPT-6 Astra
openai/gpt-6-astra
OpenAI 1489 84% $20.001.05M tools
17 Kimi K2.6
moonshotai/kimi-k2.6
Moonshot AI 1488 84% $1.34262K tools
18 GLM 5.2
z-ai/glm-5.2
Z.ai (Zhipu) 1487 83% $1.771.048576M tools
19 GLM 5.1
z-ai/glm-5.1
Z.ai (Zhipu) 1486 83% $2.15205K tools
20 Kimi K2.5
moonshotai/kimi-k2.5
Moonshot AI 1484 83% $1.00262K tools
21 Claude Sonnet 5
anthropic/claude-sonnet-5
Anthropic 1483 82% $4.001M tools
22 Qwen3.8 27B
qwen/qwen3.8-27b
Qwen (Alibaba) 1483 82% $0.781M tools
23 GPT-6.1 Sol
openai/gpt-6.1-sol
OpenAI 1482 82% $4.001.05M tools
24 Grok 4.5
x-ai/grok-4.5
xAI 1474 80% $3.00500K tools
25 Qwen3.7 Plus
qwen/qwen3.7-plus
Qwen (Alibaba) 1473 80% $0.561M tools

Capability: Arena leaderboard dataset (CC-BY-4.0), Arena text / coding, published 2026-10-22. Pricing: OpenRouter, retrieved 2026-10-25. (input x 3 + output x 1) / 4.

What this measures: Human pairwise preference votes. Measures perceived answer quality on this category, not correctness on a fixed test set. For each model this is the probability it beats the board leader in a head-to-head human vote — 0.50 means a dead tie and is the best possible value.

Get this as JSON

curl -s https://agentleaderboards.com/api/v1/route/coding.json | jq .picks

No key, open CORS, refreshed daily. Set your own budget and constraints →

Other tasks