Best AI Models for Coding (November 2026): Ranked by Price and Performance
The top AI coding models in November 2026, ranked by the Artificial Analysis Coding Agent Index and cost. Claude Opus 5.5 leads at 62. Gemini 4 Carbon and Claude Sonnet 5.5 score 59 at $2/$10, GPT-6.1 Sol 54. Full comparison with pricing.
· Updated · 16 min read

Claude Opus 5.5 is the best AI model for coding right now. It scores 62 on the Artificial Analysis Coding Agent Index, first of the eight models AA publishes, and costs $4/$20 per million tokens.
Two models sit three points behind it at half the per-token price. Gemini 4 Carbon (28 October) and Claude Sonnet 5.5 both score 59 at $2/$10, though Carbon's price is a 50% introductory offer and Google's list price is $4/$20. GPT-6.1 Sol scores 54 at $2/$10 and costs far less per task than any of them.
The price spread is still enormous. GPT-6 Astra lists at $10/$50. Claude Haiku 5.5 and Muse Ember list at $0.10/$0.50, a 100x gap. Picking the wrong model means burning money or getting worse code.
Update (November 12, 2026): Artificial Analysis replaced both indexes since our September version. The Coding Agent Index moved from v1.5 to v2.0 and the Intelligence Index from v4.3.2 to v5.0.1. Scores from the old versions can't be compared with the new ones, so every number below is new. AA publishes Coding Agent Index v2.0 for free for only eight models, which is why Claude Fable 5.2, the new leader on the Intelligence Index, isn't in the main ranking. You can check every number in our benchmark dashboard.
Both indexes are measured at each model's strongest setting, which is slower and far more expensive than how most people run these models. The cost column below is for each model's everyday setting (its strongest setting that answers within 45 seconds), with thinking tokens included. For a live ranking with an effort switch and monthly costs, see best AI model for coding.
The Full Rankings
| # | Model | Coding Agent Index | Intelligence (best) | Cost per AA task (everyday) | Price per 1M (in/out) |
|---|---|---|---|---|---|
| 1 | Claude Opus 5.5 | 62 | 59.1 | $2.45 (medium) | $4 / $20 |
| 2 | Gemini 4 Carbon | 59 | 60.0 | $6.59 (medium) | $2 / $10 (intro) |
| 2 | Claude Sonnet 5.5 | 59 | 54.5 | $1.64 (high) | $2 / $10 |
| 4 | GPT-6 Astra | 55 | 56.9 | $2.73 (medium) | $10 / $50 |
| 5 | GPT-6.1 Sol | 54 | 54.6 | $0.36 (medium) | $2 / $10 |
| 6 | Muse Wonder | 52 | 43.6 | $4.56 (high) | $4 / $20 |
| 7 | Mistral Large 4 | 48 | 26.1 | $2.06 (high) | $0.70 / $2.10 |
| 8 | Grok 4.7 | 47 | 35.5 | $2.92 (low) | $2 / $6 |
Only models with a published Coding Agent Index v2.0 score are ranked here. Cost per AA task is what Artificial Analysis spent per Intelligence Index task at that setting, thinking included, so use it to compare models with each other rather than as the price of a coding job. GPT-6.1 Sol costs about a seventh of Opus 5.5 per task and an eighteenth of Gemini 4 Carbon.
1. Claude Opus 5.5: Best Coding Model Overall
- Coding Agent Index: 62 (#1)
- Intelligence Index: 59.1 (#3)
- Pricing: $4.00 / $20.00 per 1M tokens ($0.20 cache reads)
- Context: 1M tokens
- Max output: 128K tokens
Opus 5.5 leads the Coding Agent Index by three points. On general intelligence it now sits behind Claude Fable 5.2 (64.6) and Gemini 4 Carbon (60.0), but neither has a higher published coding score.
Thinking is always on. You control depth with effort levels from low to max, and the score moves a lot with them: 59.1 at max, 57.4 at xhigh, 51.8 at high, 48.2 at medium, 34.8 at low. The default is medium. If you run hard refactors at the default, you're leaving points on the table. At high effort a full answer takes about 56 seconds, extra high about three minutes, and max about 13 minutes.
Best for: Hard bugs, multi-file refactors, long agent runs, architecture work. Run it at high in Claude Code for anything that matters, and at extra high for unattended runs.
2. Gemini 4 Carbon: Top Intelligence at a Mid Price
- Coding Agent Index: 59
- Intelligence Index: 60.0 (#2)
- Pricing: $2.00 / $10.00 per 1M tokens (introductory; list price $4 / $20)
- Context: 1,048,576 tokens
- Max output: 65,536 tokens
Carbon replaced Gemini 4 Argon on 28 October and scores higher than Opus 5.5 on the Intelligence Index for half the per-token price. Even at low effort it scores 54.2 and answers in about 9 seconds.
The catch is how much it thinks. AA spent $6.59 per task at medium and $7.76 at high, more than Opus 5.5 at the same settings, and that's at the intro price. At the $4/$20 list price, expect roughly double. Its 64K output limit is also half what Claude and GPT models allow.
Best for: Hard problems where you want a fast, strong answer and cost per task is secondary. Re-check the math when the intro price ends.
2. Claude Sonnet 5.5: Best Value From Anthropic
- Coding Agent Index: 59
- Intelligence Index: 54.5
- Pricing: $2.00 / $10.00 per 1M tokens
- Context: 1M tokens
- Max output: 128K tokens
Sonnet 5.5 ties Carbon on coding at the same price and costs much less per task at its everyday setting. At high effort it scores 41.5, answers in about 19 seconds and costs $1.64 per AA task. At max it scores 54.5, but takes over eight minutes per answer and costs about $10 per task.
Best for: Daily coding in Claude Code when Opus 5.5 is more than you need.
4. GPT-6 Astra: OpenAI's Top Coding Model
- Coding Agent Index: 55
- Intelligence Index: 56.9
- Pricing: $10.00 / $50.00 per 1M tokens
- Context: 1.05M tokens
- Max output: 128K tokens
Astra costs 2.5 times Opus 5.5 per token and scores 7 points lower on coding. Its strength is speed at medium effort: 51.6 in about 22 seconds, for $2.73 per AA task.
Best for: Teams on OpenAI who need its strongest model and quick answers.
5. GPT-6.1 Sol: Best Value Coding Agent
- Coding Agent Index: 54
- Intelligence Index: 54.6
- Pricing: $2.00 / $10.00 per 1M tokens
- Context: 1.05M tokens
- Max output: 128K tokens
GPT-6.1 Sol replaced GPT-6 Sol at the same price. It's one point behind Astra on coding for a fifth of the per-token price. At medium effort it scores 46.3, answers in about 18 seconds and costs $0.36 per AA task, the lowest of any ranked model by a wide margin.
Best for: Daily coding when you want a single model. Feature work. Agent loops that run all day.
6. Muse Wonder: Fast, but Priced Like Opus
- Coding Agent Index: 52
- Intelligence Index: 43.6
- Pricing: $4.00 / $20.00 per 1M tokens
- Context: 1,048,576 tokens
Meta's Muse Wonder (12 October) writes quickly, at about 136 tokens per second, and answers in about 34 seconds at high effort. It costs the same per token as Opus 5.5 and scores 10 points lower on coding, so it's hard to recommend for a coding workload.
Best for: Teams already on Meta's API that want its strongest model.
7. Mistral Large 4: Cheapest With a Coding Score
- Coding Agent Index: 48
- Intelligence Index: 26.1
- Pricing: $0.70 / $2.10 per 1M tokens
- Context: 1,048,576 tokens
- Max output: 262,144 tokens
Mistral Large 4 (29 October) is the cheapest model with a published Coding Agent score, and it codes far better than its general score suggests. Its low list price doesn't make it cheap per task, though: AA spent $2.06 per task at high effort, more than Sonnet 5.5 at its everyday setting.
Best for: Teams that want a European provider or a fallback outside the big three labs.
8. Grok 4.7: Slipped to Last
- Coding Agent Index: 47
- Intelligence Index: 35.5
- Pricing: $2.00 / $6.00 per 1M tokens
- Context: 500K tokens
Grok 4.7 was near the top of our September ranking. On the new versions of both indexes it's last of the eight. It thinks a lot even at low effort, where it scores 31.1 in about 15 seconds for $2.92 per AA task, and its 500K context window is half of most rivals.
Best for: Teams already on xAI's stack.
Other Coding Options Worth Knowing
These have no published Coding Agent Index v2.0 score, so test them on your own tasks first.
Claude Fable 5.2 ($8/$40)
The top model on the Intelligence Index at 64.6. At high effort it scores 61.8 and answers in about 36 seconds, for $9.08 per AA task. If your hardest bugs beat Opus 5.5, try it there.
GPT-6.1 Terra ($1/$5)
Scores 51.3 at max. At high effort it scores 42.4 in about 37 seconds for $0.26 per AA task, cheaper than GPT-6.1 Sol at medium for a few points less.
Claude Haiku 5.5 and Muse Ember ($0.10/$0.50)
The new budget pair. Haiku 5.5 scores 36.5 at max and 29.9 at high (about 33 seconds, $0.16 per task). Muse Ember scores 36.0 and answers in about 11 seconds for $0.14 per task. Both are good sub-agents for simple edits and lookups. GPT-6 Luna costs the same and scores 27.9, so it's no longer the one to pick.
DeepSeek V4.1 Flash ($0.30/$1.20)
Scores 32.6 at max, answers in about 17 seconds and costs $0.60 per AA task. Good for fast, simple edits.
Kimi K3.1 Pro ($2/$10)
Scores 46.5 but writes at about 31 tokens per second and takes about 85 seconds per answer. It replaced Kimi K3.
MiMo-V2.6-Pro ($0.43/$0.87) and GLM-5.3 ($1.40/$4.40)
The open-weight options. MiMo-V2.6-Pro scores 29.9 for $0.26 per AA task. GLM-5.3 scores 31.7 but costs about $5 per task.
Gemini 3.8 Flash ($0.75/$3.75)
Scores 30.8. It thinks a lot, so despite the low list price it costs $7.77 per AA task at high effort. Muse Ember scores more for under a fiftieth of that.
Models to Stop Using
- GPT-6 Sol: GPT-6.1 Sol replaced it at the same price.
- Claude Fable 5.1: Fable 5.2 scores 64.6 against 50.0 and costs less ($8/$40 against $10/$50).
- Gemini 4 Argon: Carbon replaced it at the same intro price and scores 60.0 against 50.4.
- Gemini 3.8 Flash: Google replaced it with Gemini 4 Hydrogen (12 November), which scores 53.9 on the Intelligence Index against 30.8 and costs less per task. AA hasn't published a Coding Agent score for Hydrogen yet.
- Kimi K3, Claude Sonnet 5 and Claude Opus 5: replaced by Kimi K3.1 Pro, Sonnet 5.5 and Opus 5.5. Opus 5 scores 44.2 on the new index against 59.1 for Opus 5.5, and costs more per token.
- GPT-5.6 Sol, Terra, and Luna: the GPT-6 and GPT-6.1 tiers replaced them.
Best Free AI Model for Coding
Inkling 2 Small (Free via OpenRouter)
Thinking Machines' model is free on OpenRouter and scores 30.6 on the Intelligence Index, above GPT-6 Luna. A full answer takes about 40 seconds, and there's no Coding Agent score yet.
For learning and experiments on non-critical tasks, you can't beat the price. Free tiers are rate-limited, so for anything steady, Muse Ember at $0.10/$0.50 is the better deal.
Cost Comparison: Real Numbers
List price leaves out thinking, which is billed as output. Here's what Artificial Analysis spent per Intelligence Index task at each model's everyday setting, thinking included:
| Model | Everyday setting | Cost per AA task | Score at that setting | Coding Agent Index |
|---|---|---|---|---|
| Claude Fable 5.2 | High | $9.08 | 61.8 | – |
| Gemini 3.8 Flash | High | $7.77 | 30.8 | – |
| Gemini 4 Carbon | Medium | $6.59 | 58.3 | 59 |
| GLM-5.3 | Max | $5.01 | 31.7 | – |
| Muse Wonder | High | $4.56 | 40.5 | 52 |
| Grok 4.7 | Low | $2.92 | 31.1 | 47 |
| GPT-6 Astra | Medium | $2.73 | 51.6 | 55 |
| Claude Opus 5.5 | Medium | $2.45 | 48.2 | 62 |
| Mistral Large 4 | High | $2.06 | 26.1 | 48 |
| Claude Sonnet 5.5 | High | $1.64 | 41.5 | 59 |
| DeepSeek V4.1 Flash | Max | $0.60 | 32.6 | – |
| GPT-6.1 Sol | Medium | $0.36 | 46.3 | 54 |
| GPT-6.1 Terra | High | $0.26 | 42.4 | – |
| MiMo-V2.6-Pro | Default | $0.26 | 29.9 | – |
| Claude Haiku 5.5 | High | $0.16 | 29.9 | – |
| Muse Ember | Max | $0.14 | 36.0 | – |
Counting thinking changes the order. Gemini 4 Carbon, Gemini 3.8 Flash and Grok 4.7 all look cheaper than Opus 5.5 on list price, and all cost more per task. Mistral Large 4 lists at a sixth of Opus 5.5's input price and costs nearly as much per task. GPT-6.1 Sol gives you 54 on coding for about a seventh of Opus 5.5's per-task cost. Our cost calculator runs these numbers for your own volume.
A tiered setup (Opus 5.5 for hard tasks, Muse Ember or Haiku 5.5 for simple ones) cuts the bill further. Per task, Ember costs about an eighteenth of Opus 5.5 at medium. Neither budget model has a coding score, so give them simple edits and lookups, and check their output on your own tasks before you route more to them.
The Coding Agent Index
The Artificial Analysis Coding Agent Index scores models running inside coding agent harnesses, such as Claude Code and Codex, on agentic coding. Version 2.0 is the equal-weight average of three benchmarks: FrontierCode v1.1, Terminal-Bench 4.0, and SWE-Atlas-QnA-AA (AA methodology). Scores from v1.5 and earlier use different benchmarks, so don't compare them with v2.0.
A model's general intelligence score doesn't tell you how well it works as a coding agent. Tool integration, function calling, and token efficiency all change the result. Mistral Large 4 is the clearest example: 26.1 on intelligence, 48 on coding. Grok 4.7 shows the same pattern, with 35.5 on intelligence and 47 on coding.
AA only publishes this index for free for eight agent and model pairs. Where a model has no score, we don't guess one.
How to Configure Your Agent
A balanced November 2026 config for agent setups:
{
agents: {
defaults: {
model: {
primary: "anthropic/claude-opus-5.5",
fallbacks: ["openrouter/openai/gpt-6.1-sol"]
},
subagents: {
model: "openrouter/meta/muse-ember",
maxConcurrent: 2
},
thinkingDefault: "medium",
maxConcurrent: 3
}
}
}
Opus 5.5 handles primary tasks at its default medium effort. Raise it to high or xhigh for the hard ones. GPT-6.1 Sol is the fallback, and Muse Ember handles sub-agent work. If you'd rather stay with Anthropic for sub-agents, Claude Haiku 5.5 costs the same.
Our Recommendation
For most developers in November 2026: Claude Opus 5.5 as your primary model, Muse Ember or Claude Haiku 5.5 as your sub-agent. Opus 5.5 has the top coding score, and the two budget models fill the cheap slot at $0.10/$0.50.
If Opus 5.5 is too much for your volume, GPT-6.1 Sol scores 54 on coding for about a seventh of the cost per task. Claude Sonnet 5.5 scores 59 at the same list price as Sol and costs more per task, but less than Opus 5.5. Gemini 4 Carbon scores 59 too, but thinks so much that it's the most expensive of the three per task.
If you're on a tight budget, Muse Ember handles simple coding work for about 14 cents per AA task and answers in about 11 seconds.
FAQ
What is the best AI model for coding in 2026?
Claude Opus 5.5. It scores 62 on the Artificial Analysis Coding Agent Index v2.0, first among the eight models AA publishes, and 59.1 on the Intelligence Index. Gemini 4 Carbon and Claude Sonnet 5.5 score 59 on coding at $2/$10. For value, GPT-6.1 Sol scores 54 and costs about $0.36 per AA task at medium effort, against $2.45 for Opus 5.5.
What is the cheapest AI model that's good for coding?
Mistral Large 4 at $0.70/$2.10 per million tokens is the cheapest model with a published Coding Agent Index score (48). For simple edits and sub-agents, Claude Haiku 5.5 and Muse Ember cost $0.10/$0.50 and score 36.5 and 36.0 on the Intelligence Index, though neither has a coding score yet. For free, Inkling 2 Small is available on OpenRouter.
Is there a good free AI model for coding?
Inkling 2 Small from Thinking Machines is free on OpenRouter and scores 30.6 on the Artificial Analysis Intelligence Index, above GPT-6 Luna. It's fine for simple tasks, boilerplate, and learning, but it has no Coding Agent score and free tiers are rate-limited. Muse Ember scores 36.0 for $0.10/$0.50 if you need more.
What models does Claude Code use?
Claude Code runs Anthropic's Claude models. Claude Opus 5.5 is the strongest coding option, with a Coding Agent Index v2.0 score of 62. Claude Sonnet 5.5 at $2/$10 is the cheaper one and scores 59. You can configure different models for different task types.
How do I reduce my AI coding costs?
Use a tiered model setup. Route complex tasks to Claude Opus 5.5 or GPT-6.1 Sol and simple tasks to Muse Ember, Claude Haiku 5.5 or DeepSeek V4.1 Flash. Our Cost Calculator can estimate your savings.
Model data sourced from Artificial Analysis Intelligence Index v5.0.1 and Coding Agent Index v2.0. Costs are what AA spent per Intelligence Index task at each model's everyday reasoning setting, thinking tokens included. Updated November 12, 2026. For the live version, see best AI model for coding. For the overall model rankings beyond coding, see our Best LLM in 2026 guide and LLM Leaderboard. For the GPT-5.6 tiers that GPT-6 replaced, see our GPT-5.6 Sol vs Terra vs Luna guide. For general-purpose AI agents (automations, knowledge work, not coding), see Grok Bot vs Hermes vs OpenClaw. For cost optimization, see how to reduce AI API costs. Use our Model Selector for personalized recommendations based on your workload.


