Best AI for coding
Writing new code, debugging, refactoring, and reviewing pull requests.
Coding has become the single most important task for production AI. Agents commit code. IDEs rely on models for tab completion, multi-file edits, and test generation. The cost of a wrong answer compounds — a model that hallucinates an API gets wedged into a codebase and quietly ships.
What matters: correctness on held-out tests (SWE-bench, LiveCodeBench), diff-style edit fidelity, tool-use fluency (shell, file I/O, search), and the ability to reason about a large context without losing the plot. Speed matters too — autocomplete needs to fire in under 400ms to feel natural.
Our coding rank weights SWE-bench Verified (60%), multi-file edit accuracy (25%), and tool-use reliability (15%). If you're building an autonomous coding agent, weight reasoning and tool-use more heavily. For interactive autocomplete, speed becomes the deciding factor.
Full rankings
All 16 models, scored for coding
| # | Model | Provider | Task score | $/in | $/out | Context |
|---|---|---|---|---|---|---|
| 01 | Claude Opus 4.7 | AAnthropic | 83.5% | $5.00 | $25.00 | 1M |
| 02 | GPT-5.5 | OOpenAI | 80.6% | $5.00 | $30.00 | 1.1M |
| 03 | Claude Opus 4.6 | AAnthropic | 78.7% | $5.00 | $25.00 | 1M |
| 04 | GPT-5.4 | OOpenAI | 76.9% | $2.50 | $15.00 | 1.1M |
| 05 | MoonshotAI: Kimi K2.6 | MMoonshotAI | 76.7% | $0.730 | $3.49 | 262K |
| 06 | Gemini 3 Flash Preview | GGoogle | 75.4% | $0.500 | $3.00 | 1.0M |
| 07 | Claude Sonnet 4.6 | AAnthropic | 75.2% | $3.00 | $15.00 | 1M |
| 08 | GPT-5.2 | OOpenAI | 73.8% | $1.75 | $14.00 | 400K |
| 09 | GPT-5 | OOpenAI | 73.6% | $1.25 | $10.00 | 400K |
| 10 | GPT-5.1 | OOpenAI | 68.0% | $1.25 | $10.00 | 400K |
| 11 | GPT-5 Mini | OOpenAI | 64.7% | $0.250 | $2.00 | 400K |
| 12 | o3 | OOpenAI | 62.3% | $2.00 | $8.00 | 200K |
| 13 | Qwen: Qwen3.6 Plus | QQwen | 57.9% | $0.325 | $1.95 | 1M |
| 14 | Gemini 2.5 Pro | GGoogle | 57.6% | $1.25 | $10.00 | 1.0M |
| 15 | GPT-4.1 | OOpenAI | 48.5% | $2.00 | $8.00 | 1.0M |
| 16 | GPT-4o | OOpenAI | 31.0% | $2.50 | $10.00 | 128K |
Pricing — top 5 for coding
The best AI for coding changes every month.
We'll email you when rankings shift, new models hit the top 5, or pricing cuts reshuffle the value leaders.