# AI models for coding

Canonical: https://modelfit.wallboardcalc.com/en/tasks/coding
Verified: 2026-12-02
License: CC BY 4.0 with attribution to ModelFit (https://modelfit.wallboardcalc.com/en/methodology)

## Summary

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.

## Weights

- Context: 35%
- Input price: 25%
- Output price: 20%
- Maximum output: 20%
- Required input: none

## Ranked models

| Rank | Model | Fit | Input / 1M | Context | Task total |
| ---: | --- | ---: | ---: | ---: | ---: |
| 1 | DeepSeek V4.1 Flash | 92/100 | $0.051 | 1,048,576 | $0.2925 |
| 2 | GLM 5.3 | 88/100 | $0.0699 | 1,048,576 | $0.5878 |
| 3 | GLM 5.3 Flash | 83/100 | $0.0356 | 1,048,576 | $0.1099 |
| 4 | DeepSeek V4 Pro 0813 | 78/100 | $0.111 | 1,048,576 | $1.56 |
| 5 | Llama 4 Scout | 77/100 | $0.1 | 1,310,720 | $0.33 |

Cost scenario: 12,000 input + 1,500 output tokens per request, 200 requests. 12K input tokens of repository context and 1.5K output tokens per request.

The fit score ranks recorded price, context and output limits under the task weights; it is not an answer-quality rating.

## Why these models rank here

No input modality is mandatory for this task, so all 30 records enter the ranking.

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

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

Maximum output carries 20%. The five leaders allow 16K to 944K output tokens per request.

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

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

Answer quality, latency and throughput are not collected. Rate limits are vendor/tier-level. Region and retention are transcribed only where an official page was read.

## FAQ

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