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
9OpenAI logoGPT-5 Nano$0.05$0.40Closed
10upstage logoSolar Mini 4$0.05$0.20Closed
11DeepSeek logoDeepSeek V4 Flash 0731$0.06$0.18Closed
12ibm-granite logoGranite 4.2 8B$0.06$0.15Closed
13z-ai logoGLM 5.3$0.07$1.40Closed
14NVIDIA logoNemotron 3.5 Lightning$0.07$0.20Closed
15baidu logoERNIE 4.5 21B A3B Thinking$0.07$0.28OSS
16NVIDIA logoNemotron 3 Super$0.07$0.40OSS
17Google DeepMind logoGemma 4 26B A4B $0.08$0.26OSS
18Alibaba Qwen logoQwen3 32B$0.08$0.28OSS
19Google DeepMind logoGemma 3 27B$0.08$0.35OSS
20xiaomi logoMiMo-V2-Flash$0.09$0.29OSS
21Alibaba Qwen logoQwen3 Next 80B A3B Instruct$0.09$1.10OSS
22Meta logoLlama 4 Scout$0.10$0.30OSS
23Alibaba Qwen logoQwen3.6 35B A3B$0.10$0.90OSS
24OpenAI logoGPT-6 Luna$0.10$0.50Closed
25Anthropic logoClaude Haiku 5.5$0.10$0.50Closed
26Alibaba Qwen logoQwen3 30B A3B Instruct 2507$0.10$0.30OSS
27stepfun logoStep 3.5 Flash$0.10$0.30OSS
28Alibaba Qwen logoQwen3.5-9B$0.11$0.16OSS
29DeepSeek logoDeepSeek V4 Pro 0813$0.11$4.44Closed
30Alibaba Qwen logoQwen3 8B$0.12$0.46OSS
Cheapest
gpt-oss-120b (free)
$0.00/M
$ per 1M input tokens
Why the gap

Qwen3 8B 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
Qwen3 8B
$0.12/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.