ModelFit
Any input typeVerified 2026-12-0230 eligible models

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.

Context 35%Input price 25%Output price 20%Output limit 20%

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

AI models for coding: 30 eligible models with fit score, input price, output price, context, task total and Value Score
RankModelFitInput / 1MOutput / 1MContextTask totalValue ScoreEvidenceTools
1DeepSeek V4.1 FlashDeepSeek92/100$0.051$0.5671.05M$0.292597/1006/6core0/3policyCostFit
2GLM 5.3Z.ai88/100$0.0699$1.41.05M$0.587890/1006/6core0/3policyCostFit
3GLM 5.3 FlashZ.ai83/100$0.0356$0.08151.05M$0.1099100/1006/6core0/3policyCostFit
4DeepSeek V4 Pro 0813DeepSeek78/100$0.111$4.31.05M$1.5679/1006/6core0/3policyCostFit
5Llama 4 ScoutMeta77/100$0.1$0.31.31M$0.3386/1006/6core0/3policyCostFit
6MiniMax M3MiniMax77/100$0.3$1.21.05M$1.0869/1006/6core0/3policyCostFit
7Kimi K3.1 ProMoonshot AI72/100$0.253$8.81.05M$3.2572/1006/6core0/3policyCostFit
8Muse Spark 1.3Meta69/100$1.25$4.251.05M$4.2752/1006/6core0/3policyCostFit
9DeepSeek V4 Pro 0423DeepSeek68/100$0.8349$1.541.05M$2.4659/1006/6core0/3policyCostFit
10Mistral Large 4Mistral AI67/100$0.7$2.11.05M$2.3162/1006/6core0/3policyCostFit
11Qwen3.8 27BAlibaba (Qwen)63/100$0.06$1.961.02M$0.73293/1006/6core0/3policyCostFit
12Gemini 4 HydrogenGoogle63/100$1.5$7.51.05M$5.8541/1006/6core3/3policyCostFit
13Claude Haiku 5.5Anthropic60/100$0.1$0.51M$0.3983/1006/6core3/3policyCostFit
14Qwen3.8 FlashAlibaba (Qwen)60/100$0.15$0.471M$0.50176/1006/6core0/3policyCostFit
15GPT-6.1 TerraOpenAI57/100$1$51.05M$3.9055/1006/6core3/3policyCostFit
16Gemini 4 NeonGoogle55/100$3$151.05M$11.7017/1006/6core3/3policyCostFit
17Gemini 4 CarbonGoogle53/100$4$201.05M$15.6014/1006/6core3/3policyCostFit
18Grok 4.3xAI49/100$1.25$2.51M$3.7548/1006/6core0/3policyCostFit
19GPT-6.2 SolOpenAI49/100$2$101.05M$7.8031/1006/6core3/3policyCostFit
20Llama 4 MaverickMeta41/100$0.35$1524K$1.1462/1006/6core0/3policyCostFit
21Devstral 2 2512Mistral AI40/100$0.4$2262K$1.5638/1006/6core0/3policyCostFit
22GPT-6.2 Astra ProOpenAI40/100$8$401.05M$31.200/1006/6core3/3policyCostFit
23Qwen4 MaxAlibaba (Qwen)39/100$1.43$4.281M$4.7045/1006/6core0/3policyCostFit
24Kimi K2.7 CodeMoonshot AI38/100$0.63$3.5262K$2.5624/1006/6core0/3policyCostFit
25Command A+Cohere34/100$0.3$1.5192K$1.1734/1006/6core0/3policyCostFit
26Grok 4.7xAI31/100$2$6500K$6.607/1006/6core0/3policyCostFit
27Claude Sonnet 5.5Anthropic29/100$2$101M$7.8028/1006/6core3/3policyCostFit
28Nova Pro 1.0Amazon27/100$0.8$3.2300K$2.8821/1006/6core2/3policyCostFit
29Mistral Medium 3.5Mistral AI26/100$1.5$7.5262K$5.853/1006/6core0/3policyCostFit
30Claude Opus 5.5Anthropic24/100$4$201M$15.607/1006/6core3/3policyCostFit
Price vs context for the 30 models eligible for codingx: input price / 1M (log) · y: context tokens (log) · radius: output price / 1M
Price vs context for the 30 models eligible for codingScatter plot of 30 models. Cheaper input prices sit on the left, larger context windows sit higher, and a larger dot means a higher output price per 1M tokens. A text list of the same values follows the chart.200K500K1M$0.05$0.1$0.2$0.5$1$2$5$10Input price per 1M tokens (USD, log scale)Context window (tokens, log scale)DeepSeek V4.1 Flash: $0.051 input / 1M, 1.05M context, $0.567 output / 1MGLM 5.3: $0.0699 input / 1M, 1.05M context, $1.4 output / 1MGLM 5.3 Flash: $0.0356 input / 1M, 1.05M context, $0.0815 output / 1MDeepSeek V4 Pro 0813: $0.111 input / 1M, 1.05M context, $4.3 output / 1MLlama 4 Scout: $0.1 input / 1M, 1.31M context, $0.3 output / 1MMiniMax M3: $0.3 input / 1M, 1.05M context, $1.2 output / 1MKimi K3.1 Pro: $0.253 input / 1M, 1.05M context, $8.8 output / 1MMuse Spark 1.3: $1.25 input / 1M, 1.05M context, $4.25 output / 1MDeepSeek V4 Pro 0423: $0.8349 input / 1M, 1.05M context, $1.54 output / 1MMistral Large 4: $0.7 input / 1M, 1.05M context, $2.1 output / 1MQwen3.8 27B: $0.06 input / 1M, 1.02M context, $1.96 output / 1MGemini 4 Hydrogen: $1.5 input / 1M, 1.05M context, $7.5 output / 1MClaude Haiku 5.5: $0.1 input / 1M, 1M context, $0.5 output / 1MQwen3.8 Flash: $0.15 input / 1M, 1M context, $0.47 output / 1MGPT-6.1 Terra: $1 input / 1M, 1.05M context, $5 output / 1MGemini 4 Neon: $3 input / 1M, 1.05M context, $15 output / 1MGemini 4 Carbon: $4 input / 1M, 1.05M context, $20 output / 1MGrok 4.3: $1.25 input / 1M, 1M context, $2.5 output / 1MGPT-6.2 Sol: $2 input / 1M, 1.05M context, $10 output / 1MLlama 4 Maverick: $0.35 input / 1M, 524K context, $1 output / 1MDevstral 2 2512: $0.4 input / 1M, 262K context, $2 output / 1MGPT-6.2 Astra Pro: $8 input / 1M, 1.05M context, $40 output / 1MQwen4 Max: $1.43 input / 1M, 1M context, $4.28 output / 1MKimi K2.7 Code: $0.63 input / 1M, 262K context, $3.5 output / 1MCommand A+: $0.3 input / 1M, 192K context, $1.5 output / 1MGrok 4.7: $2 input / 1M, 500K context, $6 output / 1MClaude Sonnet 5.5: $2 input / 1M, 1M context, $10 output / 1MNova Pro 1.0: $0.8 input / 1M, 300K context, $3.2 output / 1MMistral Medium 3.5: $1.5 input / 1M, 262K context, $7.5 output / 1MClaude Opus 5.5: $4 input / 1M, 1M context, $20 output / 1M
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.

Open this scenario in the cost calculator

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

Machine-readable copy: text · CSV · Markdown

Why these models rank here

  1. 1No input modality is mandatory for this task, so all 30 records enter the ranking.
  2. 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.
  3. 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.
  4. 4Maximum output carries 20%. The five leaders allow 16K to 944K output tokens per request.
  5. 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 version

Tools for this task

Tools whose category matches this task. Prices are the vendor's published plan and do not include model inference.

All AI tools

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.

AI models for coding: ranked by recorded facts · ModelFit