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
5DeepSeek logoDeepSeek V4 Flash 0731$0.02$0.64Closed
6OpenAI logogpt-oss-20b$0.02$0.09OSS
7z-ai logoGLM 5.2$0.02$7.00OSS
8z-ai logoGLM 5.3$0.03$4.80Closed
9OpenAI logogpt-oss-120b$0.04$0.17OSS
10inception logoMercury 2.5$0.04$0.15Closed
11Alibaba Qwen logoQwen3 30B A3B Instruct 2507$0.05$0.19OSS
12OpenAI logoGPT-5 Nano$0.05$0.40Closed
13upstage logoSolar Mini 4$0.05$0.20Closed
14ibm-granite logoGranite 4.2 8B$0.06$0.25Closed
15Google DeepMind logoGemma 4 26B A4B $0.07$0.23OSS
16baidu logoERNIE 4.5 21B A3B Thinking$0.07$0.28OSS
17NVIDIA logoNemotron 3.5 Lightning$0.07$0.20Closed
18Google DeepMind logoGemma 3 27B$0.08$0.45OSS
19NVIDIA logoNemotron 3 Super$0.08$0.45OSS
20Alibaba Qwen logoQwen3 32B$0.08$0.28OSS
21Google DeepMind logoGemma 4 31B$0.09$0.34OSS
22xiaomi logoMiMo-V2-Flash$0.09$0.29OSS
23Alibaba Qwen logoQwen3 235B A22B Instruct 2507$0.09$0.55OSS
24Alibaba Qwen logoQwen3 Next 80B A3B Instruct$0.09$1.10OSS
25upstage logoSolar Pro 4$0.09$0.36Closed
26OpenAI logoGPT-6 Luna$0.10$0.50Closed
27Anthropic logoClaude Haiku 5.5$0.10$0.50Closed
28Meta logoLlama 4 Scout$0.10$0.30OSS
29Alibaba Qwen logoQwen3.5-9B$0.10$0.15OSS
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.