Enter opens the highlighted result. Esc closes.

Cost per solved task

DeepSeek V4 Flash 0731 leads
$0.01
models with a cost
77
median per solved task
$0.72

Cost per solved task · read December 4

DeepSeek V4 Flash 0731, the cheapest working answer

$0.01one attempt ÷ 88.8%solved = $0.01per solved task

On December 4, 2026, GPT-4.1 Mini costs $1.818 per solved SWE-bench Verified task and GPT-4.1 costs $0.37, although GPT-4.1 Mini's tokens are 5.0x cheaper. We can compute the number for 77 of 373 models.

A price list says what tokens cost. It does not say how many tokens a model burns on a task, or how often the attempt works. Both change what you pay for a result.

Cost per solved task against coding index

Left is cheaper, up is better. Each dot is one model with both numbers.

58 of 373 models have both numbers. Cost per solved task is on a log scale, so each gridline is two to two and a half times the one before.

Coding index, 0 to 100 2030405060708090 $0.01$0.02$0.05$0.1$0.2$0.5$1$2$5 Frontier Cost per solved task, USD, log scale. Cheaper is left.
  • OpenAI
  • Qwen
  • Google
  • Mistral AI
  • DeepSeek
  • Anthropic
  • MiniMax
  • Meta
  • Z.ai, Moonshot AI, xAI
  • Other makers
  • Faded: 1 benchmark. Solid: 2 or more.
  • Frontier: the best index available at or below each cost

Cheap is left, good is up. DeepSeek V4 Flash 0731, GLM 5.3 Flash, Kimi K2.5, Kimi K2.6, GLM 5.3, Muse Spark 1.1, Qwen3.8 27B and Claude Opus 5 sit on the frontier: nothing else is both cheaper and higher. Paying more does not move a model up: nothing that costs more than $1.33, the price of the highest score (77.4), beats 72.4. The dearest point, Mistral Medium 3.5 at $6.02, scores 43.4.

Cost per solved task and coding index for each model that has both
ModelMakerCost per solved taskIndexBenchmarks
DeepSeek V4 Flash 0731DeepSeek$0.0143.43
GLM 5.3 FlashZ.ai$0.0254.06
GPT-5.6 LunaOpenAI$0.0448.64
DeepSeek V4 Pro 0813DeepSeek$0.1051.95
Inkling SmallThinking Machines$0.1625.04
Gemini 3.1 Flash Lite PreviewGoogle$0.1840.92
Kimi K2.5Moonshot AI$0.2455.52
GLM 4.7Z.ai$0.2955.12
Grok 4.3xAI$0.3151.82
Kimi K2.6Moonshot AI$0.3563.42
Kimi K2.7 CodeMoonshot AI$0.3556.53
GLM 5.3Z.ai$0.3665.75
GPT-5OpenAI$0.3953.82
Qwen3.5-FlashQwen$0.4041.12
Gemini 3.5 Flash LiteGoogle$0.4158.42
GPT-5.6 TerraOpenAI$0.4260.85
Muse Spark 1.1Meta$0.4368.72
GPT-5.2-CodexOpenAI$0.4351.42
Claude Haiku 4.5Anthropic$0.5647.42
MiniMax M3MiniMax$0.5629.34
DeepSeek V4 Pro 0423DeepSeek$0.5735.34
GPT-5.3-CodexOpenAI$0.5958.62
GLM 5.1Z.ai$0.6063.52
MiniMax M2.5MiniMax$0.6255.12
Grok 4.5xAI$0.6247.24
GLM 5Z.ai$0.6356.32
Muse Spark 1.2Meta$0.6439.53
MiniMax M2.7MiniMax$0.6455.62
GPT-5.4 MiniOpenAI$0.7032.14
InklingThinking Machines$0.7627.96
Kimi K3Moonshot AI$0.8158.26
Grok 4.6xAI$0.8260.85
GLM 5.2Z.ai$0.8659.73
DeepSeek V3.2DeepSeek$0.9949.92
Gemini 3.1 Pro PreviewGoogle$0.9932.43
GPT-5.1OpenAI$1.0253.22
GPT-5.4OpenAI$1.0261.92
Claude Sonnet 4.5Anthropic$1.1653.12
Qwen3.6 PlusQwen$1.1959.02
GPT-5.6 SolOpenAI$1.2067.64
Gemini 3.5 FlashGoogle$1.2136.23
Qwen3.8 27BQwen$1.2672.23
Qwen3.8 Max (0902)Qwen$1.3264.15
Claude Opus 5Anthropic$1.3377.45
Claude Opus 4.5Anthropic$1.3762.62
Gemini 3.6 FlashGoogle$1.4961.73
Claude Opus 4.6Anthropic$1.5657.13
GPT-5.5OpenAI$1.6566.93
Claude Sonnet 4.6Anthropic$1.6854.63
Gemini 3.7 FlashGoogle$1.7848.94
Claude Sonnet 5Anthropic$1.8746.44
GPT-5.2OpenAI$1.9158.02
Claude Fable 5Anthropic$2.1672.45
Claude Opus 4.8Anthropic$2.1756.74
Gemini 3.8 FlashGoogle$2.7456.36
Claude Opus 4.7Anthropic$2.9565.73
Qwen3.7 MaxQwen$4.6959.32
Mistral Medium 3.5Mistral AI$6.0243.42

Source: OpenRouter, LiveBench, Aider polyglot leaderboard, SWE-bench (swebench.com), LMArena WebDev, Vals AI boards. Fetched December 4, 2026.

The formula

Cost of one attempttokens used × price per token Share solvedattempts that pass the tests Cost per solved taskwhat a working answer costs

The cost of an attempt is tokens used times the price per token. So three things decide the result, the price, the tokens a model spends, and how often it gets the task right. A price list shows only the first.

A worked example: GPT-4.1 and GPT-4.1 Mini

  1. Price. GPT-4.1 Mini charges $1.60 per million output tokens against $8.00, 5.0x less. Its input price is 5.0x less as well.
  2. Cost of one attempt. SWE-bench Verified, as swebench.com publishes it, gives what a run spent on one task, $0.1463 for GPT-4.1 and $0.4352 for GPT-4.1 Mini. The cheaper model's attempt costs 3.0x more. Since each token costs 5.0x less, it must be spending about 15 times the billed token volume.
  3. Pass rate. GPT-4.1 resolves 39.6% of tasks and GPT-4.1 Mini 23.9%, so GPT-4.1 succeeds 1.7x as often.
  4. Divide. $0.1463 divided by 0.3958 is $0.37. $0.4352 divided by 0.2394 is $1.818.
GPT-4.1 against GPT-4.1 Mini on price and on cost per solved task
GPT-4.1 GPT-4.1 Mini Difference
Output price per Mtok $8.00 $1.60 5.0x lower
Tasks solved, SWE-bench Verified 39.6% 23.9% 1.7x lower
Cost of one attempt $0.1463 $0.4352 3.0x higher
Cost per solved task4.9x higher $0.37 $1.818 4.9x higher

The attempt costs 3.0x more and succeeds 1.7x less often, which compounds to 4.9x. The model that is 5.0x cheaper on the price list is 4.9x dearer per working answer.

How this differs from Artificial Analysis

Artificial Analysis publishes a Cost per Task, which its site describes as the weighted average cost in USD per Intelligence Index task. That is spend per task the model is given, not per task it solves. Ours is spend per task the model solves: the cost of one attempt divided by the share of attempts that succeed.

The two diverge when pass rates differ. On the cost of one attempt, GPT-4.1 Mini is 3.0x the price of GPT-4.1. Per solved task it is 4.9x, because it also fails more often. A model that is cheap per attempt and fails often looks good on a per-task-given number and bad on ours, and ours is the one that matches what you pay for working code.

The two also rest on different tasks. Theirs is built on the Intelligence Index, ours on SWE-bench Verified, so we do not set one beside the other figure for figure.

Their own description of the metric is on artificialanalysis.ai.

All 77 models with the number, cheapest first

DeepSeek V4 Flash 0731 is cheapest at $0.01. Vals AI prints the cost of one attempt to the cent, so a number this small is approximate. inclusionAI Ling 3.0 Flash has the lowest output price of the 77 at $0.1215 per million tokens, yet DeepSeek V4 Flash 0731, at $0.28, is the cheapest per solved task. A price list and a bill rank models differently.

Models ranked by cost per solved SWE-bench Verified task
# Model Cost per solved task One attempt Resolved Board Output $/Mtok Evidence Index
1 DeepSeek V4 Flash 0731 $0.01 $0.01 88.8% Vals AI $0.28 43.4
2 Z.ai GLM 5.3 Flash $0.02 $0.02 92.0% Vals AI $0.50 54.0
3 OpenAI GPT-5.6 Luna $0.04 $0.04 93.0% Vals AI $1.20 48.6
4 inclusionAI Ling 3.0 Flash $0.05 $0.03 65.2% Vals AI $0.1215 Not benchmarked
5 NVIDIA Nemotron 3.5 Lightning $0.06 $0.03 52.8% Vals AI $0.20 Not benchmarked
6 OpenAI GPT-5 Mini $0.08 $0.05 60.8% Vals AI $2.00 Not benchmarked
7 DeepSeek V4 Pro 0813 $0.10 $0.10 96.4% Vals AI $3.96 51.9
8 OpenAI GPT-5 Nano $0.109 $0.0381 34.8% swebench.com $0.40 Not benchmarked
9 OpenAI GPT-5.4 Nano $0.14 $0.10 69.8% Vals AI $1.25 Not benchmarked
10 Thinking Machines Inkling Small $0.16 $0.13 82.2% Vals AI $1.20 25.0
11 Google Gemini 3.1 Flash Lite Preview $0.18 $0.11 62.8% Vals AI $1.50 40.9
12 MoonshotAI Kimi K2.5 $0.24 $0.17 70.0% Vals AI $2.75 55.5
13 Z.ai GLM 4.7 $0.29 $0.20 69.4% Vals AI $2.20 55.1
14 SpaceXSI Grok 4.3 $0.31 $0.22 71.4% Vals AI $2.50 51.8
15 MoonshotAI Kimi K2.6 $0.35 $0.27 76.2% Vals AI $4.00 63.4
16 MoonshotAI Kimi K2.7 Code $0.35 $0.27 78.2% Vals AI $4.00 56.5
17 Z.ai GLM 5.3 $0.36 $0.34 95.4% Vals AI $4.40 65.7
18 OpenAI GPT-4.1 $0.37 $0.1463 39.6% swebench.com $8.00 Not benchmarked
19 Google Gemini 3 Flash Preview $0.37 $0.28 75.0% Vals AI $3.00 Not benchmarked
20 OpenAI GPT-5 $0.39 $0.27 69.0% Vals AI $10.00 53.8
21 Qwen3.5-Flash $0.40 $0.26 64.4% Vals AI $0.26 41.1
22 Google Gemini 3.5 Flash Lite $0.41 $0.31 75.0% Vals AI $2.50 58.4
23 OpenAI GPT-5.6 Terra $0.42 $0.40 95.4% Vals AI $12.00 60.8
24 Meta Muse Spark 1.1 $0.43 $0.35 82.0% Vals AI $4.25 68.7
25 OpenAI GPT-5.2-Codex $0.43 $0.31 72.4% Vals AI $14.00 51.4
26 OpenAI gpt-oss-120b $0.51 $0.17 33.6% Vals AI $0.50 Not benchmarked
27 Anthropic Claude Haiku 4.5 $0.56 $0.37 66.6% Vals AI $5.00 47.4
28 MiniMax M3 $0.56 $0.42 75.0% Vals AI $1.20 29.3
29 DeepSeek V4 Pro 0423 $0.57 $0.44 77.4% Vals AI $2.716 35.3
30 OpenAI o3 $0.571 $0.3337 58.4% swebench.com $8.00 Not benchmarked
31 OpenAI GPT-5.3-Codex $0.59 $0.46 78.0% Vals AI $14.00 58.6
32 Z.ai GLM 5.1 $0.60 $0.46 76.4% Vals AI $4.40 63.5
33 MiniMax M2.5 $0.62 $0.46 74.2% Vals AI $1.20 55.1
34 SpaceXSI Grok 4.5 $0.62 $0.54 86.6% Vals AI $6.00 47.2
35 Z.ai GLM 5 $0.63 $0.45 71.4% Vals AI $3.20 56.3
36 Meta Muse Spark 1.2 $0.64 $0.55 86.6% Vals AI $4.25 39.5
37 MiniMax M2.7 $0.64 $0.47 73.8% Vals AI $1.80 55.6
38 OpenAI GPT-5.4 Mini $0.70 $0.51 73.0% Vals AI $4.50 32.1
39 SpaceXSI Grok 4.20 $0.72 $0.52 72.2% Vals AI $2.50 Not benchmarked
40 Thinking Machines Inkling $0.76 $0.59 77.6% Vals AI $5.00 27.9
41 Mistral Large 3 2512 $0.77 $0.32 41.4% Vals AI $1.50 Not benchmarked
42 MoonshotAI Kimi K3 $0.81 $0.76 93.4% Vals AI $15.00 58.2
43 SpaceXSI Grok 4.6 $0.82 $0.78 95.6% Vals AI $6.00 60.8
44 Z.ai GLM 5.2 $0.86 $0.71 82.8% Vals AI $4.40 59.7
45 OpenAI GPT-5.1-Codex $0.892 $0.5889 66.0% swebench.com $10.00 Not benchmarked
46 DeepSeek V3.2 $0.99 $0.67 67.6% Vals AI $0.42 49.9
47 Google Gemini 3.1 Pro Preview $0.99 $0.78 78.8% Vals AI $12.00 32.4
48 OpenAI GPT-5.1 $1.02 $0.71 69.8% Vals AI $10.00 53.2
49 OpenAI GPT-5.4 $1.02 $0.80 78.2% Vals AI $15.00 61.9
50 Anthropic Claude Sonnet 4.5 $1.16 $0.81 70.0% Vals AI $15.00 53.1
51 Mistral Devstral 2 2512 $1.19 $0.75 62.8% Vals AI $2.00 Not benchmarked
52 Qwen3.6 Plus $1.19 $0.87 73.4% Vals AI $1.95 59.0
53 OpenAI GPT-5.6 Sol $1.20 $1.15 96.2% Vals AI $30.00 67.6
54 Google Gemini 3.5 Flash $1.21 $0.95 78.8% Vals AI $9.00 36.2
55 Qwen3.8 27B $1.26 $1.08 86.0% Vals AI $2.55 72.2
56 Meta Llama 4 Scout $1.276 $0.1156 9.1% swebench.com $0.30 Not benchmarked
57 Qwen3.6 27B $1.30 $0.91 70.0% Vals AI $2.70 Not benchmarked
58 Qwen3.8 Max (0902) $1.32 $1.13 85.6% Vals AI $6.00 64.1
59 Anthropic Claude Opus 5 $1.33 $1.29 97.0% Vals AI $25.00 77.4
60 Qwen3.5 Plus 2026-04-20 $1.35 $0.96 71.2% Vals AI $1.80 Not benchmarked
61 Anthropic Claude Opus 4.5 $1.37 $1.05 76.4% Vals AI $25.00 62.6
62 Google Gemini 3.6 Flash $1.49 $1.19 79.6% Vals AI $3.75 61.7
63 Meta Llama 4 Maverick $1.491 $0.3137 21.0% swebench.com $1.00 Not benchmarked
64 Anthropic Claude Opus 4.6 $1.56 $1.22 78.2% Vals AI $25.00 57.1
65 OpenAI GPT-5.5 $1.65 $1.36 82.6% Vals AI $30.00 66.9
66 Anthropic Claude Sonnet 4.6 $1.68 $1.30 77.4% Vals AI $15.00 54.6
67 Google Gemini 3.7 Flash $1.78 $1.44 80.8% Vals AI $3.75 48.9
68 OpenAI GPT-4.1 Mini $1.818 $0.4352 23.9% swebench.com $1.60 Not benchmarked
69 Anthropic Claude Sonnet 5 $1.87 $1.49 79.6% Vals AI $10.00 46.4
70 OpenAI GPT-5.2 $1.91 $1.45 75.8% Vals AI $14.00 58.0
71 Anthropic Claude Fable 5 $2.16 $2.05 95.0% Vals AI $50.00 72.4
72 Anthropic Claude Opus 4.8 $2.17 $1.92 88.6% Vals AI $25.00 56.7
73 Cohere Command A $2.69 $0.21 7.8% Vals AI $10.00 Not benchmarked
74 Google Gemini 3.8 Flash $2.74 $2.19 80.0% Vals AI $3.75 56.3
75 Anthropic Claude Opus 4.7 $2.95 $2.42 82.0% Vals AI $25.00 65.7
76 Qwen3.7 Max $4.69 $3.23 68.8% Vals AI $4.425 59.3
77 Mistral Medium 3.5 $6.02 $4.00 66.4% Vals AI $7.50 43.4

Attempt cost is what the benchmark run spent when it ran. List price is today's price on OpenRouter, so the two can drift apart for a model whose price has changed.

Why only 77 of 373 models

Two boards we read publish what one SWE-bench Verified attempt cost. Vals AI runs current models on one shared harness and gives the cost for 70 of ours; swebench.com fills in 7 that Vals AI has not run. The cost and the pass rate always come from the same board, never one from each. Between them the two list 86 models from our catalog: 9 have a pass rate and no cost, and the remaining 287 have no entry on either.

Aider also publishes a run cost, for 15 models, but only 5 of them overlap with the 77 above, and a different benchmark means different tasks and a different price per task. We do not combine them and we do not estimate. Every other model shows "Not computable" with the reason on its own page.

What it does not tell you

The tasks are GitHub issues from open source Python projects. Your work will use more or fewer tokens, so use the number to compare models with each other, not to forecast a bill. For a forecast, enter your own volumes in the cost calculator. Open the cost calculator

Questions about cost per solved task

What is cost per solved task?
It is the cost of one attempt divided by the share of attempts that succeed. On December 4, 2026, we could compute it for 77 of 373 models, using what one SWE-bench Verified attempt cost and the share of tasks resolved, both from one board: Vals AI for 70 models, swebench.com for 7 more.
Why can a cheaper model cost more per answer?
Because the price per token is one of three factors. A cheaper model can spend more tokens on each attempt and fail more often, and both raise what a working answer costs. The worked example on this page shows it step by step.
Which model has the lowest cost per solved task?
DeepSeek V4 Flash 0731, at $0.01 per solved SWE-bench Verified task on December 4, 2026. Vals AI prints the cost of one attempt to the cent, so a number this small is approximate. Only 77 models have the number, so a model missing from the list is unmeasured, not worse.
How is cost per solved task different from Artificial Analysis's Cost per Task?
Theirs averages spend per task a model is given, on their Intelligence Index. Ours divides spend by the share of SWE-bench Verified tasks the model solves, so frequent failure makes a model dearer.