Cheapest LLM per solved coding task
- models qualify
- 77
Cost per solved task · read December 4
Cheapest output, $ per million tokens
- Solar Mini 4.5 $0.04
- S Llama 3 8B Lunaris $0.05
- Gemma 3 4B $0.075
- Mistral Small 3 $0.08
- Reka Edge $0.10
- Ministral 3 3B 2512 $0.10
- Ling 3.0 Flash $0.1215
- P Ternary Bonsai 2 9B $0.13
As of December 4, 2026, DeepSeek V4 Flash 0731 solves a SWE-bench Verified task for $0.01, the lowest of the 77 models where that cost can be computed, ahead of Z.ai GLM 5.3 Flash ($0.02) and OpenAI GPT-5.6 Luna ($0.04).
The full best LLM for coding ranking combines this benchmark with others.
| Rank | Model | Cost per solved task | Evidence | SWE-bench resolved | Coding index | Output $/Mtok |
|---|---|---|---|---|---|---|
| 1 | DeepSeek V4 Flash 0731 DeepSeek | $0.01 | 88.8% | 43.4 | $0.28 | |
| 2 | GLM 5.3 Flash Z.ai | $0.02 | 92.0% | 54.0 | $0.50 | |
| 3 | GPT-5.6 Luna OpenAI | $0.04 | 93.0% | 48.6 | $1.20 | |
| 4 | Ling 3.0 Flash inclusionAI | $0.05 | 65.2% | Not enough data | $0.1215 | |
| 5 | Nemotron 3.5 Lightning NVIDIA | $0.06 | 52.8% | Not enough data | $0.20 | |
| 6 | GPT-5 Mini OpenAI | $0.08 | 60.8% | Not enough data | $2.00 | |
| 7 | DeepSeek V4 Pro 0813 DeepSeek | $0.10 | 96.4% | 51.9 | $3.96 | |
| 8 | GPT-5 Nano OpenAI | $0.109 | 34.8% | Not benchmarked | $0.40 | |
| 9 | GPT-5.4 Nano OpenAI | $0.14 | 69.8% | Not enough data | $1.25 | |
| 10 | T Inkling Small Thinking Machines | $0.16 | 82.2% | 25.0 | $1.20 | |
| 11 | $0.18 | 62.8% | 40.9 | $1.50 | ||
| 12 | Kimi K2.5 Moonshot AI | $0.24 | 70.0% | 55.5 | $2.75 | |
| 13 | GLM 4.7 Z.ai | $0.29 | 69.4% | 55.1 | $2.20 | |
| 14 | Grok 4.3 xAI | $0.31 | 71.4% | 51.8 | $2.50 | |
| 15 | Kimi K2.6 Moonshot AI | $0.35 | 76.2% | 63.4 | $4.00 | |
| 16 | Kimi K2.7 Code Moonshot AI | $0.35 | 78.2% | 56.5 | $4.00 | |
| 17 | GLM 5.3 Z.ai | $0.36 | 95.4% | 65.7 | $4.40 | |
| 18 | GPT-4.1 OpenAI | $0.37 | 39.6% | Not benchmarked | $8.00 | |
| 19 | Gemini 3 Flash Preview Google | $0.37 | 75.0% | Not enough data | $3.00 | |
| 20 | GPT-5 OpenAI | $0.39 | 69.0% | 53.8 | $10.00 |
How this list is built
Generated from the dataset on every refresh. Nobody picks the order by hand.
Every model with a cost per solved SWE-bench Verified task: what one attempt costs, divided by the share of tasks the model resolves. Cheapest first. A model without a published attempt cost is not on the list.
- OpenRouter, fetched
- SWE-bench (swebench.com), fetched
- Vals AI boards, fetched