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

Claude Haiku 5.5 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
Claude Haiku 5.5
$0.10/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.