AI models for coding
Repository context, multi-file edits and long agent loops. Context and output ceiling carry most of the weight; price matters once an agent runs the same prompt many times.
Decision table
Rank by fit, task total, context or Value Score. Filters only remove rows; they never change a fit score.
Showing 30 of 30 eligible models.
Sort: Fit score · Task total, low to high · Context, largest first · Value Score
| Rank | Model | Fit | Input / 1M | Output / 1M | Context | Task total | Value Score | Evidence | Tools |
|---|---|---|---|---|---|---|---|---|---|
| 1 | DeepSeek V4.1 FlashDeepSeek | 92/100 | $0.051 | $0.567 | 1.05M | $0.2925 | 97/100 | 6/6core0/3policy | CostFit |
| 2 | GLM 5.3Z.ai | 88/100 | $0.0699 | $1.4 | 1.05M | $0.5878 | 90/100 | 6/6core0/3policy | CostFit |
| 3 | GLM 5.3 FlashZ.ai | 83/100 | $0.0356 | $0.0815 | 1.05M | $0.1099 | 100/100 | 6/6core0/3policy | CostFit |
| 4 | DeepSeek V4 Pro 0813DeepSeek | 78/100 | $0.111 | $4.3 | 1.05M | $1.56 | 79/100 | 6/6core0/3policy | CostFit |
| 5 | Llama 4 ScoutMeta | 77/100 | $0.1 | $0.3 | 1.31M | $0.33 | 86/100 | 6/6core0/3policy | CostFit |
| 6 | MiniMax M3MiniMax | 77/100 | $0.3 | $1.2 | 1.05M | $1.08 | 69/100 | 6/6core0/3policy | CostFit |
| 7 | Kimi K3.1 ProMoonshot AI | 72/100 | $0.253 | $8.8 | 1.05M | $3.25 | 72/100 | 6/6core0/3policy | CostFit |
| 8 | Muse Spark 1.3Meta | 69/100 | $1.25 | $4.25 | 1.05M | $4.27 | 52/100 | 6/6core0/3policy | CostFit |
| 9 | DeepSeek V4 Pro 0423DeepSeek | 68/100 | $0.8349 | $1.54 | 1.05M | $2.46 | 59/100 | 6/6core0/3policy | CostFit |
| 10 | Mistral Large 4Mistral AI | 67/100 | $0.7 | $2.1 | 1.05M | $2.31 | 62/100 | 6/6core0/3policy | CostFit |
| 11 | Qwen3.8 27BAlibaba (Qwen) | 63/100 | $0.06 | $1.96 | 1.02M | $0.732 | 93/100 | 6/6core0/3policy | CostFit |
| 12 | Gemini 4 HydrogenGoogle | 63/100 | $1.5 | $7.5 | 1.05M | $5.85 | 41/100 | 6/6core3/3policy | CostFit |
| 13 | Claude Haiku 5.5Anthropic | 60/100 | $0.1 | $0.5 | 1M | $0.39 | 83/100 | 6/6core3/3policy | CostFit |
| 14 | Qwen3.8 FlashAlibaba (Qwen) | 60/100 | $0.15 | $0.47 | 1M | $0.501 | 76/100 | 6/6core0/3policy | CostFit |
| 15 | GPT-6.1 TerraOpenAI | 57/100 | $1 | $5 | 1.05M | $3.90 | 55/100 | 6/6core3/3policy | CostFit |
| 16 | Gemini 4 NeonGoogle | 55/100 | $3 | $15 | 1.05M | $11.70 | 17/100 | 6/6core3/3policy | CostFit |
| 17 | Gemini 4 CarbonGoogle | 53/100 | $4 | $20 | 1.05M | $15.60 | 14/100 | 6/6core3/3policy | CostFit |
| 18 | Grok 4.3xAI | 49/100 | $1.25 | $2.5 | 1M | $3.75 | 48/100 | 6/6core0/3policy | CostFit |
| 19 | GPT-6.2 SolOpenAI | 49/100 | $2 | $10 | 1.05M | $7.80 | 31/100 | 6/6core3/3policy | CostFit |
| 20 | Llama 4 MaverickMeta | 41/100 | $0.35 | $1 | 524K | $1.14 | 62/100 | 6/6core0/3policy | CostFit |
| 21 | Devstral 2 2512Mistral AI | 40/100 | $0.4 | $2 | 262K | $1.56 | 38/100 | 6/6core0/3policy | CostFit |
| 22 | GPT-6.2 Astra ProOpenAI | 40/100 | $8 | $40 | 1.05M | $31.20 | 0/100 | 6/6core3/3policy | CostFit |
| 23 | Qwen4 MaxAlibaba (Qwen) | 39/100 | $1.43 | $4.28 | 1M | $4.70 | 45/100 | 6/6core0/3policy | CostFit |
| 24 | Kimi K2.7 CodeMoonshot AI | 38/100 | $0.63 | $3.5 | 262K | $2.56 | 24/100 | 6/6core0/3policy | CostFit |
| 25 | Command A+Cohere | 34/100 | $0.3 | $1.5 | 192K | $1.17 | 34/100 | 6/6core0/3policy | CostFit |
| 26 | Grok 4.7xAI | 31/100 | $2 | $6 | 500K | $6.60 | 7/100 | 6/6core0/3policy | CostFit |
| 27 | Claude Sonnet 5.5Anthropic | 29/100 | $2 | $10 | 1M | $7.80 | 28/100 | 6/6core3/3policy | CostFit |
| 28 | Nova Pro 1.0Amazon | 27/100 | $0.8 | $3.2 | 300K | $2.88 | 21/100 | 6/6core2/3policy | CostFit |
| 29 | Mistral Medium 3.5Mistral AI | 26/100 | $1.5 | $7.5 | 262K | $5.85 | 3/100 | 6/6core0/3policy | CostFit |
| 30 | Claude Opus 5.5Anthropic | 24/100 | $4 | $20 | 1M | $15.60 | 7/100 | 6/6core3/3policy | CostFit |
Text list of the plotted models (30)
- DeepSeek V4.1 Flash: $0.051 input / 1M · 1.05M context · $0.567 output / 1M
- GLM 5.3: $0.0699 input / 1M · 1.05M context · $1.4 output / 1M
- GLM 5.3 Flash: $0.0356 input / 1M · 1.05M context · $0.0815 output / 1M
- DeepSeek V4 Pro 0813: $0.111 input / 1M · 1.05M context · $4.3 output / 1M
- Llama 4 Scout: $0.1 input / 1M · 1.31M context · $0.3 output / 1M
- MiniMax M3: $0.3 input / 1M · 1.05M context · $1.2 output / 1M
- Kimi K3.1 Pro: $0.253 input / 1M · 1.05M context · $8.8 output / 1M
- Muse Spark 1.3: $1.25 input / 1M · 1.05M context · $4.25 output / 1M
- DeepSeek V4 Pro 0423: $0.8349 input / 1M · 1.05M context · $1.54 output / 1M
- Mistral Large 4: $0.7 input / 1M · 1.05M context · $2.1 output / 1M
- Qwen3.8 27B: $0.06 input / 1M · 1.02M context · $1.96 output / 1M
- Gemini 4 Hydrogen: $1.5 input / 1M · 1.05M context · $7.5 output / 1M
- Claude Haiku 5.5: $0.1 input / 1M · 1M context · $0.5 output / 1M
- Qwen3.8 Flash: $0.15 input / 1M · 1M context · $0.47 output / 1M
- GPT-6.1 Terra: $1 input / 1M · 1.05M context · $5 output / 1M
- Gemini 4 Neon: $3 input / 1M · 1.05M context · $15 output / 1M
- Gemini 4 Carbon: $4 input / 1M · 1.05M context · $20 output / 1M
- Grok 4.3: $1.25 input / 1M · 1M context · $2.5 output / 1M
- GPT-6.2 Sol: $2 input / 1M · 1.05M context · $10 output / 1M
- Llama 4 Maverick: $0.35 input / 1M · 524K context · $1 output / 1M
- Devstral 2 2512: $0.4 input / 1M · 262K context · $2 output / 1M
- GPT-6.2 Astra Pro: $8 input / 1M · 1.05M context · $40 output / 1M
- Qwen4 Max: $1.43 input / 1M · 1M context · $4.28 output / 1M
- Kimi K2.7 Code: $0.63 input / 1M · 262K context · $3.5 output / 1M
- Command A+: $0.3 input / 1M · 192K context · $1.5 output / 1M
- Grok 4.7: $2 input / 1M · 500K context · $6 output / 1M
- Claude Sonnet 5.5: $2 input / 1M · 1M context · $10 output / 1M
- Nova Pro 1.0: $0.8 input / 1M · 300K context · $3.2 output / 1M
- Mistral Medium 3.5: $1.5 input / 1M · 262K context · $7.5 output / 1M
- Claude Opus 5.5: $4 input / 1M · 1M context · $20 output / 1M
Cost assumption: 12,000 input tokens and 1,500 output tokens per request, 200 requests. 12K input tokens of repository context and 1.5K output tokens per request.
Value Score is the percentile of context window divided by input price per 1M tokens across the 30 models in this catalog. It measures context bought per dollar of input price and is not a quality score. Rank follows the selected sort order.
Top models as text
The same ranking as plain text, for readers that do not render the table or chart above. Fit scores come from recorded price, context and output limits, not answer quality. Verified 2026-12-02.
# ModelFit rankings: AI models for coding # Task: coding · 30 eligible models · verified 2026-12-02 # Fit scores use recorded price, context and output limits only, not answer quality. 1. DeepSeek V4.1 Flash — fit 92/100, task total $0.2925, 1.05M context, value 97/100 2. GLM 5.3 — fit 88/100, task total $0.5878, 1.05M context, value 90/100 3. GLM 5.3 Flash — fit 83/100, task total $0.1099, 1.05M context, value 100/100 4. DeepSeek V4 Pro 0813 — fit 78/100, task total $1.56, 1.05M context, value 79/100 5. Llama 4 Scout — fit 77/100, task total $0.33, 1.31M context, value 86/100 6. MiniMax M3 — fit 77/100, task total $1.08, 1.05M context, value 69/100 7. Kimi K3.1 Pro — fit 72/100, task total $3.25, 1.05M context, value 72/100 8. Muse Spark 1.3 — fit 69/100, task total $4.28, 1.05M context, value 52/100 9. DeepSeek V4 Pro 0423 — fit 68/100, task total $2.46, 1.05M context, value 59/100 10. Mistral Large 4 — fit 67/100, task total $2.31, 1.05M context, value 62/100 Source: https://modelfit.wallboardcalc.com/en/tasks/coding
Why these models rank here
- 1No input modality is mandatory for this task, so all 30 records enter the ranking.
- 2Context window carries 35% of the score. The five leaders offer 1.05M to 1.31M tokens, about 1,613 to 2,016 pages at an estimated 650 tokens per page.
- 3Input price carries 25% and output price 20%. Across the five leaders, input ranges from $0.0356 to $0.111 per 1M tokens and output from $0.0815 to $4.3.
- 4Maximum output carries 20%. The five leaders allow 16K to 944K output tokens per request.
- 5Scores are percentile ranks of those recorded fields. Ties break on lower input price, then a larger context window. Answer quality, latency, throughput and rate limits are not collected, so they are not scored.
What to check before choosing
- Price compounds when an agent loops: the same repository context is resent on every step.
- Whole-file rewrites need room in the output ceiling, not just the context window.
- A larger context window does not guarantee that the model uses the middle of a long file.
Boundaries of this ranking
The fit score orders recorded price, context, output limit and modality eligibility under this task's weights. It does not measure answer quality, latency, throughput or rate limits. Region and retention are transcribed only where an official page was read, and this ranking does not filter on them.
Adjust budget and context in the finderMarkdown versionTools for this task
Tools whose category matches this task. Prices are the vendor's published plan and do not include model inference.
- CursorTool plan From $8/mo+ DeepSeek V4.1 Flash at $0.0015 per request (model only)Price this pair in the cost calculator
- GitHub CopilotTool plan From $10/mo+ DeepSeek V4.1 Flash at $0.0015 per request (model only)Price this pair in the cost calculator
- Claude CodeTool plan From $20/mo+ DeepSeek V4.1 Flash at $0.0015 per request (model only)Price this pair in the cost calculator
- WindsurfTool plan From $20/mo+ DeepSeek V4.1 Flash at $0.0015 per request (model only)Price this pair in the cost calculator
coding: questions
+Which model ranks first for coding?
DeepSeek V4.1 Flash scores 92/100 on the recorded facts for this task. It costs $0.051 per 1M input tokens and $0.567 per 1M output, with a 1,048,576-token context window. The score reflects price, context and output limits under this task's weights; it is not an answer-quality rating.
+How is the coding ranking calculated?
Each model gets a percentile rank on context window (35%), input price (25%), output price (20%) and maximum output (20%). The weighted sum is shown as a 0–100 fit score. The same inputs always produce the same order.
+What does one coding task cost?
The page assumes 12,000 input tokens and 1,500 output tokens per request, repeated 200 times. DeepSeek V4.1 Flash totals $0.2925 on that scenario, while the cheapest eligible model on input price, GLM 5.3 Flash, is at $0.0356 per 1M input tokens. 12K input tokens of repository context and 1.5K output tokens per request.
+Which models are excluded from coding?
No input modality is required for this task, so every record is eligible. Other tasks do enforce a modality, such as file input for long documents or audio for transcription.
+Does this ranking measure answer quality?
No. This release has no benchmark scores, latency measurements or rate-limit data. The ranking only orders records by price, context window, maximum output and modality eligibility. A higher score is not a claim that answers are better.
+Can I add a budget or context requirement?
Yes. The finder at /en/finder lets you pick this task, set a maximum input price and a minimum context window, and returns the same ranking with those filters applied. The URL preserves the inputs, so the shortlist can be shared.