Cost per task: code edit
6,000 tokens of files and instructions in, a 1,500-token diff out. Cost = input tokens × input price + output tokens × output price. “With caching” assumes three-quarters of the input is served from the prompt cache at the provider's cache-read price.
As of 25 Oct 2026, BenchLeader ranks Gemma 4 E4B first on the Cost per task: code edit board at $0.0003, ahead of Llama 3.1 8B ($0.0003) and Qwen3.5-4B ($0.0004).
287 models · data as of 25 Oct 2026
- 1Gemma 4 E4B (thinking)$0.0003
- 2Llama 3.1 8B$0.0003
- 3Qwen3.5-4B (thinking)$0.0004
- 4Granite 4.2 3B$0.0004
- 5Gemma 4 E2B (thinking)$0.0004
- 6LFM2 24B A2B$0.0004
- 7Mistral Small 3$0.0004
- 8NVIDIA Nemotron Nano 9B v2 (thinking)$0.0005
- 9Sarvam 105B (high)$0.0005
- 10Nova Micro$0.0005
- 11DeepSeek-R1-0528-Qwen3-8B$0.0005
- 12Gemma 3 12B$0.0005
- 13Llama 3-8B$0.0005
- 14Gemma 3 4B$0.0005
- 15Llama 3.2 1B Instruct$0.0005
287 of 287
| # | ||||
|---|---|---|---|---|
| 1 | $0.450 | – | 65.3 | |
| 2 | $0.450 | – | 63.3 | |
| 3 | $0.270 | – | 59.8 | |
| 4 | $0.270 | – | 42.4 | |
| 5 | $0.270 | – | 39.7 | |
| 6 | $0.240 | – | 53.7 | |
| 7 | $0.203 | $0.142 | 56.4 | |
| 8 | $0.203 | $0.142 | 55.0 | |
| 9 | $0.203 | – | 39.2 | |
| 10 | $0.180 | $0.146 | 53.1 | |
| 11 | $0.135 | $0.091 | 70.5 | |
| 12 | $0.135 | $0.095 | 70.4 | |
| 13 | $0.135 | $0.095 | 69.3 | |
| 14 | $0.105 | – | 40.9 | |
| 15 | $0.075 | $0.055 | 66.1 | |
| 16 | $0.075 | – | 58.0 | |
| 17 | $0.068 | $0.047 | 68.8 | |
| 18 | $0.068 | $0.047 | 63.3 | |
| 19 | $0.068 | $0.047 | 63.2 | |
| 20 | $0.068 | $0.047 | 62.7 | |
| 21 | $0.068 | $0.047 | 59.9 | |
| 22 | $0.054 | $0.037 | 72.6 | |
| 23 | $0.054 | $0.038 | 68.0 | |
| 24 | $0.054 | $0.037 | 67.5 | |
| 25 | $0.042 | – | 40.2 | |
| 26 | $0.041 | $0.028 | 64.8 | |
| 27 | $0.041 | $0.028 | 58.1 | |
| 28 | $0.041 | – | 58.0 | |
| 29 | $0.041 | $0.028 | 57.1 | |
| 30 | $0.041 | $0.028 | 53.2 | |
| 31 | $0.041 | – | 51.5 | |
| 32 | $0.041 | – | 46.3 | |
| 33 | $0.037 | $0.027 | 64.7 | |
| 34 | $0.034 | $0.025 | 45.3 | |
| 35 | $0.032 | $0.024 | 63.8 | |
| 36 | $0.032 | $0.024 | 60.7 | |
| 37 | $0.032 | $0.024 | 59.4 | |
| 38 | $0.030 | $0.022 | 64.4 | |
| 39 | $0.030 | $0.022 | 60.5 | |
| 40 | $0.030 | $0.024 | 43.9 | |
| 41 | $0.030 | – | 41.8 | |
| 42 | $0.027 | $0.018 | 70.7 | |
| 43 | $0.027 | $0.018 | 69.9 | |
| 44 | $0.027 | $0.018 | 69.4 | |
| 45 | New | $0.027 | $0.019 | 66.9 |
| 46 | $0.027 | $0.019 | 66.4 | |
| 47 | $0.027 | $0.019 | 60.1 | |
| 48 | $0.026 | $0.017 | 60.6 | |
| 49 | $0.024 | $0.017 | 59.5 | |
| 50 | $0.024 | $0.017 | 48.3 | |
| 51 | $0.024 | – | 42.2 | |
| 52 | $0.024 | – | 26.0 | |
| 53 | $0.022 | $0.016 | 63.1 | |
| 54 | $0.022 | $0.017 | 57.9 | |
| 55 | $0.022 | $0.017 | 57.7 | |
| 56 | $0.022 | $0.017 | 57.5 | |
| 57 | $0.022 | $0.017 | 56.3 | |
| 58 | $0.022 | $0.017 | 53.9 | |
| 59 | $0.022 | – | 50.5 | |
| 60 | $0.021 | $0.014 | 64.2 |
Cite as: BenchLeader, “Cost per task: code edit”, data as of 25 Oct 2026, https://www.benchleader.com/leaderboards/cost-code-edit.