Use case · Coding

Cheapest coding LLMs

The cheapest models that hold up on SWE-bench, HumanEval, MBPP, LiveCodeBench. Ranked by price per 1M input tokens.

Models30
Cheapest$0.00
UpdatedDaily
What this page is
This page ranks every model with a credible coding benchmark score by the cheapest input token price. We include models with scores on SWE-bench, HumanEval, MBPP, LiveCodeBench, BigCodeBench. Open-source coding models (Qwen Coder, DeepSeek Coder, Codestral) dominate the cheap end. Premium reasoning models (Claude Opus, GPT-5) sit at the top of the price scale but win long-horizon agent tasks. Use this list to size cost before locking in a coding stack.

Models with meaningful coding benchmark scores, cheapest first.

#ModelIn $/1MOut $/1MType
1OpenAI logogpt-oss-120b (free)$0.00$0.00OSS
2OpenAI logogpt-oss-20b (free)$0.00$0.00OSS
3Cohere logoNorth Mini Code (free)$0.00$0.00OSS
4liquid logoLFM2.5-2.6B (free)$0.00$0.00Closed
5z-ai logoGLM 5.2$0.01$6.80OSS
6OpenAI logogpt-oss-20b$0.03$0.13OSS
7z-ai logoGLM 5.3 Flash$0.04$0.08Closed
8Inception logoMercury 2.5$0.04$0.15Closed
9DeepSeek logoDeepSeek V4 Flash 0731$0.04$0.30Closed
10OpenAI logoGPT-5 Nano$0.05$0.40Closed
11upstage logoSolar Mini 4$0.05$0.20Closed
12DeepSeek logoDeepSeek V4.1 Flash$0.05$0.57OSS
13ibm-granite logoGranite 4.2 8B$0.06$0.25Closed
14z-ai logoGLM 5.3$0.07$1.40Closed
15NVIDIA logoNemotron 3.5 Lightning$0.07$0.20Closed
16baidu logoERNIE 4.5 21B A3B Thinking$0.07$0.28OSS
17NVIDIA logoNemotron 3 Super$0.07$0.40OSS
18Google DeepMind logoGemma 4 26B A4B $0.08$0.10OSS
19Alibaba Qwen logoQwen3 32B$0.08$0.28OSS
20Google DeepMind logoGemma 3 27B$0.08$0.35OSS
21tencent logoHy3$0.08$0.33OSS
22xiaomi logoMiMo-V2-Flash$0.09$0.29OSS
23Alibaba Qwen logoQwen3 Next 80B A3B Instruct$0.09$1.10OSS
24Meta logoLlama 4 Scout$0.10$0.30OSS
25Alibaba Qwen logoQwen3.6 35B A3B$0.10$0.90OSS
26OpenAI logoGPT-6 Luna$0.10$0.50Closed
27Anthropic logoClaude Haiku 5.5$0.10$0.50Closed
28Alibaba Qwen logoQwen3 30B A3B Instruct 2507$0.10$0.30OSS
29stepfun logoStep 3.5 Flash$0.10$0.30OSS
30DeepSeek logoDeepSeek V4 Pro 0813$0.11$4.44Closed
Cheapest
gpt-oss-120b (free)
$0.00/M
$ per 1M input tokens
Why the gap

DeepSeek V4 Pro 0813 is roughly Infinityx the price of gpt-oss-120b (free). The premium pays for long-context agentic coding, higher SWE-bench Verified scores, and vendor reliability. For one-shot code gen or refactors, the cheap options deliver 80 to 95 percent of the quality.

Most expensive
DeepSeek V4 Pro 0813
$0.11/M
$ per 1M input tokens
gpt-oss-120b (free) at $0.00 per 1M input tokens is the cheapest model with a meaningful coding benchmark score. Check the full table above for 30 options ranked by price.