# Best models for coding
Canonical: https://weaveos.com/models/best/coding
Question: Which models are worth evaluating for coding work?
Catalog snapshot: Nov 27, 2026.
Methodology: https://weaveos.com/models/methodology.

## 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.

## Decision criteria
- Published coding benchmark evidence
- Tool parameters and reasoning controls
- Context for the repository or task
- Listed cost for repeated use

## Ranking rules
- 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.

## Ranked candidates
Showing 24 of 370 eligible candidates. No top-score tie was found in this snapshot.
Scores prioritize the named workload constraint. A shared benchmark score is added only when multiple candidates have rows with the same source dataset, benchmark, split, score unit, and evaluation group. Benchmark row counts and Router presence do not change the overall score. Reasoning effort or serving configurations can still differ.

| Rank | Score | Model | Provider | Router catalog | Context | Input / 1M | Output / 1M | Benchmark rows | Why it is included | Evidence |
| ---: | ---: | --- | --- | --- | ---: | ---: | ---: | ---: | --- | --- |
| 1 | 18.7 | [GPT-5.2-Codex](https://weaveos.com/models/openai--gpt-5.2-codex) | OpenAI | Unverified | 400K | $1.75 | $14.00 | 23 | 86.957% on Code Completion (+8.7 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 400K-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 2 | 18.5 | [Claude Opus 4.8](https://weaveos.com/models/anthropic--claude-opus-4.8) | Anthropic | Listed | 1M | $5.00 | $25.00 | 30 | 84.783% on Code Completion (+8.5 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 3 | 18.3 | [Claude Fable 5.1](https://weaveos.com/models/anthropic--claude-fable-5.1) | Anthropic | Listed | 1M | $10.00 | $50.00 | 44 | 82.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 4 | 18.3 | [Claude Opus 5](https://weaveos.com/models/anthropic--claude-opus-5) | Anthropic | Listed | 1M | $5.00 | $25.00 | 30 | 82.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 5 | 18.3 | [GPT-5.5](https://weaveos.com/models/openai--gpt-5.5) | OpenAI | Listed | 1.05M | $5.00 | $30.00 | 30 | 82.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 6 | 18.3 | [GPT-6.1 Sol](https://weaveos.com/models/openai--gpt-6.1-sol) | OpenAI | Unverified | 1.05M | $2.00 | $10.00 | 44 | 82.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 7 | 18.3 | [Kimi K3](https://weaveos.com/models/moonshotai--kimi-k3) | Moonshot AI | Listed | 1.05M | $0.192 | $16.00 | 44 | 82.609% on Code Completion (+8.3 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 8 | 18.0 | [Claude Fable 5](https://weaveos.com/models/anthropic--claude-fable-5) | Anthropic | Listed | 1M | $10.00 | $50.00 | 30 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 9 | 18.0 | [GLM 5.2](https://weaveos.com/models/z-ai--glm-5.2) | Z.ai | Unverified | 1.05M | $0.62 | $2.42 | 23 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 10 | 18.0 | [GLM 5.3](https://weaveos.com/models/z-ai--glm-5.3) | Z.ai | Unverified | 1.05M | $0.0699 | $1.40 | 30 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 11 | 18.0 | [GLM 5.3 Flash](https://weaveos.com/models/z-ai--glm-5.3-flash) | Z.ai | Unverified | 1.05M | $0.15 | $0.50 | 44 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 12 | 18.0 | [GPT-5.4](https://weaveos.com/models/openai--gpt-5.4) | OpenAI | Listed | 1.05M | $2.50 | $15.00 | 35 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 13 | 18.0 | [Muse Spark 1.2](https://weaveos.com/models/meta--muse-spark-1.2) | Meta | Unverified | 1.05M | $1.25 | $4.25 | 30 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 14 | 18.0 | [Muse Spark 1.3](https://weaveos.com/models/meta--muse-spark-1.3) | Meta | Unverified | 1.05M | $1.25 | $4.25 | 44 | 80.435% on Code Completion (+8.0 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 15 | 17.8 | [Claude Opus 4.7](https://weaveos.com/models/anthropic--claude-opus-4.7) | Anthropic | Listed | 1M | $5.00 | $25.00 | 23 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 16 | 17.8 | [Claude Sonnet 4.6](https://weaveos.com/models/anthropic--claude-sonnet-4.6) | Anthropic | Listed | 1M | $3.00 | $15.00 | 39 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 17 | 17.8 | [Claude Sonnet 5](https://weaveos.com/models/anthropic--claude-sonnet-5) | Anthropic | Listed | 1M | $2.00 | $10.00 | 30 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 18 | 17.8 | [DeepSeek V4 Pro 0813](https://weaveos.com/models/deepseek--deepseek-v4-pro-0813) | DeepSeek | Listed | 1.05M | $0.0999 | $5.00 | 23 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 19 | 17.8 | [Gemini 3.1 Pro Preview](https://weaveos.com/models/google--gemini-3.1-pro-preview) | Google | Unverified | 1.05M | $2.00 | $12.00 | 23 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 20 | 17.8 | [Gemini 3.6 Flash](https://weaveos.com/models/google--gemini-3.6-flash) | Google | Unverified | 1.05M | $0.75 | $3.75 | 23 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 21 | 17.8 | [Grok 4.7](https://weaveos.com/models/x-ai--grok-4.7) | xAI | Unverified | 500K | $2.00 | $6.00 | 44 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 500K-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 22 | 17.8 | [Muse Spark 1.1](https://weaveos.com/models/meta--muse-spark-1.1) | Meta | Unverified | 1.05M | $1.25 | $4.25 | 23 | 78.261% on Code Completion (+7.8 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 23 | 17.6 | [Claude Opus 4.6](https://weaveos.com/models/anthropic--claude-opus-4.6) | Anthropic | Listed | 1M | $5.00 | $25.00 | 23 | 76.087% on Code Completion (+7.6 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |
| 24 | 17.6 | [Gemini 3.5 Flash](https://weaveos.com/models/google--gemini-3.5-flash) | Google | Unverified | 1.05M | $1.50 | $9.00 | 23 | 76.087% on Code Completion (+7.6 normalized benchmark points); supports tool parameters; catalog lists reasoning support; 1.05M-token context | [Code Completion](https://livebench.ai/v1/table_2026_06_25.csv) (used for rank; livebench-v1-20260625; 2026-06-25) |

## Best for different constraints
| Constraint | Candidate | Basis |
| --- | --- | --- |
| Overall starting point | [GPT-5.2-Codex](https://weaveos.com/models/openai--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)](https://weaveos.com/models/baidu--ernie-5.5-flash-preview-free) | $0.00 for 1M input + 250K output tokens |
| Largest listed context | [Grok 4.20](https://weaveos.com/models/x-ai--grok-4.20) | 2M tokens |
| Router-listed option | [Claude Opus 4.8](https://weaveos.com/models/anthropic--claude-opus-4.8) | Exact model ID appears in the public Router catalog |

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

## Sources
- [Model catalog](https://openrouter.ai/api/v1/models)
- [Weave Router catalog](https://router.weaveos.com/v1/router/models?scope=catalog)

## 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.

## 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.

Markdown: https://weaveos.com/models/best/coding/index.md