Workload recommendation · code

Best models for coding

Which models are worth evaluating for coding work? Shortlist coding-capable models using published software-engineering benchmark records, tool support, and context.

Short answer. GPT-5.2-Codex ranks first under this page’s catalog-fit rules because 86.957% on Code Completion (+8.7 normalized benchmark points) and supports tool parameters. This is a shortlist for testing, not a live task-quality result.

Context window
400K
Input / 1M tokens
$1.75
Output / 1M tokens
$14.00
24 shown of 370 eligible candidatesCatalog snapshot Nov 27, 2026Derived from listed data

How this shortlist is ranked

The ranking is a transparent starting point derived from the public catalog, not a live evaluation. The rules stay visible so you can disagree with the weighting.

Published coding benchmark evidence. Tool parameters and reasoning controls. Context for the repository or task. Listed cost for repeated use.

  • Router availability is a separate pick and does not change the overall score.
  • Benchmark row counts are shown as evidence coverage and do not add quality points.
  • When a shared Coding or Software percentage benchmark group exists, its published score contributes up to 10 normalized points. Rows must match source dataset, benchmark, split, score unit, and evaluation group. Reasoning effort or serving configurations can still differ.
  • Require text input and output. Add 4 points for tool parameters, 3 for catalog reasoning support, and 3 for context of at least 100,000 tokens.
  • Selected benchmark group: Code Completion, Suite release Jun 25, 2026 · run date unavailable, covering 44 eligible models.

Scores are published benchmark evidence, not a live coding evaluation. Test edits, tool reliability, latency, and cost on your repository.

Ranked candidates

Positions are ordered by the catalog-fit score. Showing 24 of 370 eligible models.

PositionScore (points)ModelProviderRouter catalogContextInput / 1MOutput / 1MBenchmark rowsWhy includedEvidence
118.7GPT-5.2-CodexOpenAIUnverified400K$1.75$14.002386.957% on Code Completion (+8.7 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 400K-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
218.5Claude Opus 4.8AnthropicListed1M$5.00$25.003084.783% on Code Completion (+8.5 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
318.3Claude Fable 5.1AnthropicListed1M$10.00$50.004482.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
418.3Claude Opus 5AnthropicListed1M$5.00$25.003082.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
518.3GPT-5.5OpenAIListed1.05M$5.00$30.003082.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
618.3GPT-6.1 SolOpenAIUnverified1.05M$2.00$10.004482.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
718.3Kimi K3Moonshot AIListed1.05M$0.192$16.004482.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
818.0Claude Fable 5AnthropicListed1M$10.00$50.003080.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
918.0GLM 5.2Z.aiUnverified1.05M$0.62$2.422380.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1018.0GLM 5.3Z.aiUnverified1.05M$0.0699$1.403080.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1118.0GLM 5.3 FlashZ.aiUnverified1.05M$0.15$0.504480.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1218.0GPT-5.4OpenAIListed1.05M$2.50$15.003580.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1318.0Muse Spark 1.2MetaUnverified1.05M$1.25$4.253080.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1418.0Muse Spark 1.3MetaUnverified1.05M$1.25$4.254480.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1517.8Claude Opus 4.7AnthropicListed1M$5.00$25.002378.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1617.8Claude Sonnet 4.6AnthropicListed1M$3.00$15.003978.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1717.8Claude Sonnet 5AnthropicListed1M$2.00$10.003078.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1817.8DeepSeek V4 Pro 0813DeepSeekListed1.05M$0.0999$5.002378.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
1917.8Gemini 3.1 Pro PreviewGoogleUnverified1.05M$2.00$12.002378.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
2017.8Gemini 3.6 FlashGoogleUnverified1.05M$0.75$3.752378.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
2117.8Grok 4.7xAIUnverified500K$2.00$6.004478.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 500K-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
2217.8Muse Spark 1.1MetaUnverified1.05M$1.25$4.252378.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
2317.6Claude Opus 4.6AnthropicListed1M$5.00$25.002376.087% on Code Completion (+7.6 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25
2417.6Gemini 3.5 FlashGoogleUnverified1.05M$1.50$9.002376.087% on Code Completion (+7.6 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token contextCode CompletionUsed for rank · livebench-v1-20260625 · 2026-06-25

Best for different constraints

Overall starting point

GPT-5.2-Codex

86.957% on Code Completion (+8.7 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 400K-token context

Lowest listed token mix

ERNIE-5.5-Flash-Preview (free)

$0.00 for 1M input + 250K output tokens

Largest listed context

Grok 4.20

2M tokens

Router-listed option

Claude Opus 4.8

Exact model ID appears in the public Router catalog

The lowest listed token rates are a catalog price comparison. They do not establish cost per completed task or output quality.

Run this next

Run the same repository bug-fix and code-review tasks through each candidate. Compare build and test success, patch quality, latency, and total token cost.

Compare the shortlist

Pair pages show shared benchmark evidence and separate model-level records.

Evidence and limits

Model identity, capabilities, context, and listed rates come from the public model catalog. Benchmark rows link to the original result releases. Router availability matches the public Weave Router catalog. This page does not claim that a catalog ranking is a controlled head-to-head result.

Read the full methodology

Frequently asked questions

Which model ranks first for best models for coding?

GPT-5.2-Codex ranks first under this page’s catalog-fit rules because 86.957% on Code Completion (+8.7 normalized benchmark points) and supports tool parameters. This is a shortlist for testing, not a live task-quality result.

How is this workload ranking calculated?

Router availability is a separate pick and does not change the overall score. Benchmark row counts are shown as evidence coverage and do not add quality points. When a shared Coding or Software percentage benchmark group exists, its published score contributes up to 10 normalized points. Rows must match source dataset, benchmark, split, score unit, and evaluation group. Reasoning effort or serving configurations can still differ. Require text input and output. Add 4 points for tool parameters, 3 for catalog reasoning support, and 3 for context of at least 100,000 tokens. Selected benchmark group: Code Completion, Suite release Jun 25, 2026 · run date unavailable, covering 44 eligible models. Scores are fit points, not quality ratings.

Does the first result prove to be the best model for this workload?

Scores are published benchmark evidence, not a live coding evaluation. Test edits, tool reliability, latency, and cost on your repository.

Does Router-listed status confirm I can use the model?

It confirms only that the exact model ID appears in the public Weave Router catalog snapshot checked Nov 27, 2026. It does not establish plan, account, endpoint, or billing eligibility.