Hands-On Benchmark

LLM Coding Cost Benchmark: Dated Runs and Exact Costs

The original thirteen-model July 2026 coding experiment is a dated cost and pass-count comparison, not a current model ranking. Ten configurations scored 9/9 on nine short functions. This page now also houses the later archive's filtering and unrounded cost calculation, kept separate from that original experiment. No model was rerun for this consolidation.

LLM coding cost benchmark - 13 models tested on usage-derived cost, speed and pass rate

What we tested

We gave 13 models the same nine coding tasks, executed every answer against hidden test cases, and recorded the measured cost, latency, and reasoning tokens for each call. This is a fresh, single-harness run in July 2026 — every model measured the same way, so the numbers are directly comparable. The line-up spans the closed frontier, the open-weights field, and the cheap coding specialists:

The nine tasks mix classic interview problems with edge-case-heavy parsing and stateful logic, so a model has to handle detail, not just recognise a pattern: two-sum (hash-map pairing), valid-parentheses (stack matching), merge-intervals (sort then merge), Roman-to-integer (subtractive notation), longest-common-subsequence (DP), nested-dict flatten (path-joined keys), top-k words (frequency with an alphabetical tiebreak), a token-bucket rate-limiter (stateful timing), and a CSV-line parser (quoted fields with escaped double-quotes). Each is given as a signature plus spec — no example tests — and graded only by running the code.

How this is sourced. Every model was called on identical prompts through an OpenAI-compatible endpoint (July 2026). Cost is real token usage × the model's list price, not a flat sticker figure. Every answer was executed against hidden tests in an isolated Python subprocess to score correctness, with a timeout guarding the stateful tasks. Full process and limitations: our testing methodology. Model catalog and pricing via OpenRouter.

Results: almost everyone passed

Ten of thirteen solved all nine. That is the real 2026 story: on bounded, well-specified coding tasks the frontier has converged, and a perfect score no longer separates a $8.83 model from a $0.10 one. The three misses were single slips, each on a different task:

ModelScoreMissed
Qwen3 Coder Next9/9—
DeepSeek V4-Flash9/9—
Mistral Medium 3.59/9—
MiniMax M39/9—
Nemotron 3 Ultra9/9—
Kimi K2.7-Code9/9—
Claude Sonnet 59/9—
GLM 5.29/9—
Claude Opus 4.89/9—
GPT-5.59/9—
DeepSeek V4-Pro8/9CSV parse (quoted fields)
Grok 4.38/9nested-dict flatten
StepFun 3.7 Flash8/9valid parentheses

There was no single task that broke everyone — the misses spread across three unrelated problems — which reads more like a one-off slip than a capability wall. Notably, the two priciest models (GPT-5.5, Claude Opus 4.8) and the two cheapest (Qwen3 Coder Next, DeepSeek V4-Flash) all landed on the same perfect 9/9.

Results: the 88x cost gap

Here is where the models stop looking alike. Same nine tasks, same score for most of them — wildly different bills. This is the measured cost to run all nine, scaled to 1,000 tasks:

Real cost per 1,000 coding tasks (13 models)Same 9 executed tasks · real tokens x list price · July 2026GPT-5.5$8.83Claude Opus 4.8$4.05StepFun 3.7 Flash$2.66GLM 5.2$1.99Grok 4.3$1.75Claude Sonnet 5$1.67Kimi K2.7-Code$1.34Nemotron 3 Ultra$1.07MiniMax M3$0.90Mistral Medium 3.5$0.87DeepSeek V4-Pro$0.74DeepSeek V4-Flash$0.13Qwen3 Coder Next$0.10
Chart: DataLLM Lab — usage-derived cost (token usage × list price) per 1,000 coding tasks, nine-task test, 13 models, July 2026. Qwen3 Coder Next (highlighted) is the cheapest of all thirteen — and scored a perfect 9/9, the same as GPT-5.5 at 88x the price.
ModelScore$/1,000 tasksAvg latencyReasoning tokens/task
Qwen3 Coder Next9/9$0.107.0s0
DeepSeek V4-Flash9/9$0.1314.5s568
DeepSeek V4-Pro8/9$0.7418.2s732
Mistral Medium 3.59/9$0.872.9s0
MiniMax M39/9$0.9013.4s623
Nemotron 3 Ultra9/9$1.078.1s373
Kimi K2.7-Code9/9$1.3410.4s272
Claude Sonnet 59/9$1.677.2s0
Grok 4.38/9$1.758.4s482
GLM 5.29/9$1.9912.3s559
StepFun 3.7 Flash8/9$2.6619.2s450
Claude Opus 4.89/9$4.056.1s0
GPT-5.59/9$8.8310.5s176
Methodology. $/1,000 tasks = (summed cost for 9 tasks ÷ 9) × 1,000, where each task's cost is real token usage × the model's list price. One run per model; pass/fail via executed code. Treat the ratios — not any single cent — as the signal. Full method: how we test.

Historical latency observations, not a causal experiment

In the original thirteen-model sample, Mistral Medium 3.5 had the lowest recorded mean at 2.9 seconds per task. Qwen3 Coder Next recorded 7.0 seconds and Sonnet 5 recorded 7.2 seconds. Those are the dated table's observations, not current service guarantees.

The experiment did not isolate network, load, implementation or internal reasoning as causes. A reported zero reasoning-token field does not establish that no internal deliberation occurred, or explain why an endpoint was faster. Preserve the measurement without claiming a causal result the harness did not test.

Reported reasoning usage has an observability limit

The original table records approximately 732 reasoning tokens per task for DeepSeek V4-Pro and 623 for MiniMax M3. Other rows expose zero. These are fields reported through the tested route, not a complete trace of each model's internal work.

Use the provider's reported billable input and output counts at the captured rates for the historical calculation. Do not add a reasoning subcount to an output total that already includes it. Missing categories cannot be reconstructed from a latency number or an architecture label.

What the small test can and cannot establish

Ten of the original thirteen configurations passed all nine short functions. That is a saturated score on this task set, not proof that general coding quality converged or that the answers were identical.

The harness did not evaluate repository edits, tool calls, multi-turn recovery, long context or a production routing policy. It used one scored attempt per task; familiar problems may also overlap training material. Do not use a nine-task tie as a broad failure-rate estimate.

The useful result is a dated record of pass counts, usage-derived base costs and elapsed time under the stated settings. The methodology supplies the shared contract. Workload selection requires a separate acceptance set.

The October 3 archive is a different, larger cohort

The original thirteen-model July experiment above stays intact. A later published archive contains 110 entries: 96 not marked excluded, 78 with a complete 9/9, and 75 paid complete configurations after three free entries are removed. They span different run and price dates. This is not a new simultaneous 110-model experiment.

The former nine-task cheapest-model page is consolidated here. Its useful contribution is the filter and exact cost calculation, not another claim that a perfect score ranks general capability.

Calculate before rounding the display

derived USD per 1,000 tasks =
  (suite input tokens * captured input rate per million
   + suite output tokens * captured output rate per million) / 9,000

Solar Mini 4's 1,009 input and 938 output tokens at the October 2 rates of $0.05/$0.20 give $0.02645. Fugu Ultra v2's September 15 captured rates and recorded 60,645/7,011 tokens give $57.061666.... Dividing rounded displays $57.06 by $0.03 produces the old 1,902x figure; unrounded amounts produce approximately 2,157.34x. Neither is a savings guarantee or a new quality result.

Keep incomplete, excluded and free configurations outside the paid complete comparison. The following selected archive rows retain their own dates; they do not replace the original thirteen-row cohort:

Cost rankModelDerived cost / 1k tasksPriced onMean latencySpeed rank
1Solar Mini 4$0.032026-10-022s1
2MiMo-V2.6-Flash$0.042026-10-025s25
3Ling 3.0 Flash VL$0.072026-09-154.4s16
4DeepSeek V3.2$0.082026-07-307.1s38
5Qwen3 Coder Next$0.12026-07-177s37
8Qwen3 Coder$0.132026-10-022.7s6
9GPT-6 Luna$0.162026-10-024.9s23
11Devstral 2512$0.232026-10-022.1s2
13GLM-5.3-Flash$0.342026-08-3124.9s71
18GPT-5.4 Mini$0.532026-07-302.3s3
34Claude Sonnet 5.5$1.952026-10-023.4s9
48Claude Opus 5.5$4.032026-10-024.8s20
55MiMo-V2.6-Pro-UltraSpeed$4.82026-10-022.5s5
66Claude Fable 5.1$8.092026-09-156.8s36
68GPT-6 Astra$8.192026-09-155.6s28
72Qwen3.8 Max Prime$12.412026-10-0215.5s62
74GPT-6 Astra Pro$35.442026-09-158.4s43
75Fugu Ultra v2$57.062026-09-1523.7s70

Download the offline archive arithmetic kit. It contains the decimal calculation, a dated copy of the public evidence and tests. It never fetches prices or calls a model. Costs are normalized from nine tasks and omit billing categories absent from the source; they are not invoices.

Evaluate routing as a third configuration

A cheaper baseline followed by escalation is a proposed workflow, not a measured outcome of this one-shot benchmark. If you evaluate it, count the initial failed attempt, escalation call, tool work, retries and review time. Compare completed work against all-baseline and all-frontier configurations under the same acceptance tests.

Do not carry a July model ID or a historical token rate into a new integration without checking current support. Use the routing guide for route behavior and the provider's current contract for charges. This page does not establish an 88x production saving or an agent-quality winner.

FAQ

Are the original thirteen models the same cohort as the later archive?

No. The original July experiment and the later 110-entry archive are separate dated cohorts. The archive has 75 paid complete 9/9 configurations after filtering.

Were 1,000 tasks run for each model?

No. The complete configurations contain nine tasks. Costs are normalized from recorded usage at dated rates, not invoices for 1,000 executions.

Why does rounding change the historical cost ratio?

Dividing rounded displays can lose substantial precision at very low costs. Calculate from original token counts and historical rates, then round the final value.

Does a perfect score establish equal agent capability?

No. The short single-function test does not cover repository edits, tool loops, long context or multi-turn recovery.

Written by

Prepared with AI assistance. This revision checks documentation, consolidates dated records and tests offline examples. It does not claim new model, integration or hardware runs.