AI coding models ranked by published benchmarks and price per task, featuring a coding laptop and comparison podium
Image: Saganote

Best AI Models for Coding in 2026: Ranked by Published Benchmarks and Price per Task

A dated ranking built from BenchLM scores, vendor-reported agent benchmarks, API prices, and the few cost-per-run figures that exist

TL;DR: On BenchLM's coding composite refreshed November 6, 2026, Claude Opus 5.5 ranks first at $4 and $20 per million tokens, Claude Sonnet 5.5 sits under one point behind at half the price, and open-weight DeepSeek V4.1 Flash trails by about 20 points at a fraction of the cost.

Picking the best AI for coding depends on whether a team weighs benchmark rank, price per task, or open weights, and the published numbers disagree on all three. BenchLM's November 6 coding leaderboard anchors the ranking below, blended with vendor-reported Terminal-Bench scores and the few cost-per-run figures that exist. Last updated November 7, 2026, with monthly refreshes planned.

The Ranking at a Glance

BenchLM ranks 157 models, and the table shows 13. Scores are BenchLM's own weighted coding composite, not a vendor claim, though the page does not label the source of most of the numbers behind it.

ModelBenchLM coding scoreInput / output price per million tokensNote
Claude Opus 5.582.8$4 / $20Top of the composite
Claude Sonnet 5.581.9$2 / $10Half the price of Opus 5.5
Gemini 4 Carbon81.3$2 / $10BenchLM marks the score as estimated
Claude Fable 5.176.6$10 / $50Highest list price in the table
GPT-6 Astra74.8$10 / $50Same list price as Fable 5.1
Gemini 4 Argon72.2$2 / $10Saganote reported limited access in October
Muse Wonder Full71.3Not listedSold through eligible Muse Code plans
GPT-6.1 Sol70.4$2 / $10Same price as Sonnet 5.5
GPT-5.6 Sol67.3$4 / $20Promotional price per Morph
DeepSeek V4.1 Flash 101763.3$0.30 / $1.20Open weights
GPT-5.562.4$5 / $30Older OpenAI model
Kimi K358.9$3 / $15Open weights
Grok 4.658.6$2 / $6Cheapest closed model in the table
Scatter chart of coding score against output price for 13 AI models

Sonnet 5.5 sits 0.9 points behind Opus 5.5. That gap costs half the price to close. Gemini 4 Carbon lands in the same tier at $2 and $10, though its score is an estimate, and Saganote's Gemini 4 Argon coding benchmarks report explains why Argon's listed price is hard to act on, since only a trusted-defender program had access on October 7.

How the Ranking Works

BenchLM describes its coding score as a weighted blend, with SWE-bench Pro and DeepSWE carrying the largest weights, and it tags evidence as Supported or Estimated. Weights were not read verbatim for this article. Four outside checks sit beside it, with limits.

  • Scale's SWE-bench Pro board: a public leaderboard with a standardized scaffold, but its newest entry dates from July 9, 2026
  • Vals AI's SWE-bench Verified: a bash-only harness where scores run from 88.6% to 97.0%, which Morph treats as saturated
  • Arena.ai's Frontend Code Arena: blind human votes, with a September 22 snapshot of GPT-6 Astra at 1793, Fable 5.1 at 1755, Opus 5 at 1691, and Kimi K3 at 1658
  • Artificial Analysis's Coding Agent Index: an equal-weight mean of FrontierCode v1.1, Terminal-Bench 4.0, and SWE-Atlas-QnA-AA with three attempts per task, though its scores are charts and were not readable here

Top Models for Agentic Coding

Terminal-Bench 4.0 changes the order. Claude Sonnet 5.5 scores above Opus 5.5 there, and every figure in the table below is vendor-reported, as Morph labels them, so independent checks would be needed to confirm any of it.

ModelTerminal-Bench 4.0Reported bySetting
Claude Sonnet 5.570.6%AnthropicNot stated
Claude Opus 5.566.4%Anthropicxhigh
GPT-6 Astra57.9%OpenAIhigh
Gemini 4 Argon57.4%GoogleNot stated
Claude Fable 5.155.8%AnthropicNot stated
Claude Opus 552.3%AnthropicNot stated
GPT-6.1 Terra50.3%OpenAIMax effort
Claude Haiku 5.539.2%AnthropicNot stated
Grok 4.738%xAIxhigh, Grok Build harness
DeepSeek V4.1 Flash31.2%DeepSeekMax

Cost claims come with a vendor caveat. Anthropic says Opus 5.5 matches GPT-6 Astra on Terminal-Bench 4.0 at about 40% of the cost, according to Morph, which makes it a vendor claim. Saganote's GPT-6.1 Terra report covers the Terra figure and its cost side, and the earlier Grok 4.5 vs Claude Fable 5 vs GPT-5.5 comparison shows how the same vendors compared in July.

SWE-bench Pro numbers need extra care. BenchLM lists 89.9% for Opus 5.5, but Morph says that figure comes from llm-stats alone and that Anthropic does not report SWE-bench Pro. Scale's independent board, with its standardized scaffold, topped out at 61.5% for Muse Spark 1.1 as of its newest entry on July 9.

Best Value Models

Token price is only half of cost. For a team shopping for the best AI for coding on a budget, cost per finished task matters more than the rate card, and published per-task numbers are thin. Gathered below is what exists, and most of it comes from Saganote's earlier reports.

EvidenceFigureSource and limit
FrontierSWE v2 average cost per runOpus 5.5 $98.87, Gemini 4 Argon $129.36 over 10.6 hours, GPT-6 Astra $1,029.65Proximal via OrcaRouter, as reported by Saganote on October 7; cache hit rates were low in a non-production setup
Artificial Analysis cost per task, Intelligence IndexGPT-6.1 Terra $0.40 against $1.40 for GPT-5.6 TerraGeneral tasks, not only coding, at max effort
Artificial Analysis cost per task, Intelligence IndexMistral Large 4 $1.13 at standard price, about $0.57 at launch discountCompared with DeepSeek V4.1 Flash at $0.27 and GLM-5.3-Flash at $0.25
SWE-bench Pro output tokens per taskGrok 4.5 15,954 against 67,020 for Claude Opus 4.8xAI's announcement, older models
Output tokens per taskArgon about 62,000 against about 27,000 for GPT-6 AstraArtificial Analysis, as reported by Saganote

Sonnet 5.5 is the clearest value pick. That model scores within a point of Opus 5.5 on BenchLM at half the list price and tops the vendor-reported Terminal-Bench table. Cheaper tiers trade rank for price, with Claude Haiku 5.5 listed at $0.10 and $0.50 and a 39.2% Terminal-Bench score.

Prices move, so confirm them elsewhere. Saganote's AI API pricing comparison and AI pricing guide list current rates, and teams that want to try models without paying can start with the free AI tools guide. One low-priced option for long-running agents is Grok 4.6 at $2 per million tokens.

Open-Weight Options

  • DeepSeek V4.1 Flash 1017: open weights at 63.3 on BenchLM, listed at $0.30 and $1.20 with a 1M context, and the top open-weight row in BenchLM's coding table
  • Kimi K3: open weights at 58.9, listed at $3 and $15
  • Ling 3.1 Flash: open weights at an estimated 58.3 with a 262K context, and BenchLM's link text describes MIT-licensed FP8 weights
  • GLM-5.2: MIT-licensed weights released June 13, 2026, with a Terminal-Bench 2.1 score of 81.0 against 85.0 for Opus 4.8, in an older benchmark version than the table above

License terms need checking model by model. DeepSeek and Kimi licenses were not stated on the pages read, so their model cards are the place to check commercial terms. Saganote's GLM-5.2 report covers that model in detail, and its Mistral Large 4 report says weights were planned for the end of October, so a refresh should check whether they shipped.

What Benchmarks Miss

  • Versions get mixed: Terminal-Bench 2.0, 2.1, 3.0, and 4.0 appear on different pages, and Morph says Gemini 3.8 Flash scores 89.4% on 2.1 but 19.1% on 4.0, both vendor-reported
  • Vendor claims dominate: the Terminal-Bench 4.0 and CursorBench 4.0 numbers above come from the vendors, while Scale's board, Vals AI, Arena.ai, and Artificial Analysis are independent
  • Effort settings differ: Morph lists Opus 5.5 at xhigh in its table but says Anthropic's headline numbers run at max effort
  • Names and prices conflict: Morph calls a tier GPT-6 Luna at $0.10 and $0.50 while BenchLM lists GPT-5.6 Luna at $0.20 and $1.20, and Saganote's own pricing table lists GPT-5.6 Sol at $5 and $30 as of September 2
  • Fallbacks exist: Artificial Analysis lists Opus 5.5 with default fallback, and Morph says it can fall back to Opus 5 on some tasks
Rankings and prices change quickly

Morph describes a GPT-5.6 Sol promotion through at least November 21 and an introductory Gemini 3.8 Flash price through December 31, so a table from one week can mislead the next. Treat the date stamp as part of the data.

How to Test Models on Real Repositories

No public leaderboard matches a team's own code. A short test on real repositories is the fastest way to find the best AI for coding for that specific work, because published benchmarks measure other people's code.

  1. Pick five to ten tasks from the team's own backlog, including a few that were hard to finish.
  2. Run each model through the same agent harness at the same effort level.
  3. Repeat each task five times, as Saganote's Argon report advises, since single runs vary.
  4. Record total cost per task, including retries and cached tokens.
  5. Count output tokens, because verbose models cost more per task at the same price.
  6. Score by accepted changes, not by whether the code ran.
  7. Repeat monthly, since prices and model versions change.

Tooling matters as much as the model. Saganote's Claude Code vs Codex vs Cursor vs Copilot comparison and the Copilot, Cursor, and Tabnine guide cover how the editors differ, and Saganote's Muse Wonder coding benchmarks report says third-party DeepSWE runs exist for Muse Wonder Full without quoting scores, so those results are the next entry to watch.

Frequently Asked Questions

What is the best AI model for coding right now?
On BenchLM's November 6 composite, Claude Opus 5.5 ranks first at 82.8, ahead of Sonnet 5.5 at 81.9 and Gemini 4 Carbon at an estimated 81.3. Orders differ by benchmark.
Which coding model is the best value?
On published figures Sonnet 5.5 scores within a point of Opus 5.5 at $2 and $10 per million tokens. Cost-per-run data is thin, so a team test settles it.
Is there a good open-weight coding model?
DeepSeek V4.1 Flash 1017 is the top open-weight row in BenchLM's coding table at 63.3, about 20 points behind the leader. Kimi K3, Ling 3.1 Flash, and GLM-5.2 are other options.
Are SWE-bench scores still useful?
Verified scores are saturated, running from 88.6% to 97.0% on Vals AI's board. Pro and Terminal-Bench results depend on the harness and version.
How often does the ranking change?
New models and promotions arrive monthly, and Saganote plans a refresh each month with a dated snapshot.

Share this
Waqas Ahmad

About Author

Waqas Ahmad

Waqas Ahmad is a technology writer at Saganote and a software professional with more than a decade of experience in the software industry. He primarily writes about artificial intelligence, AI products, developer tools, software development, and emerging technologies.