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$1.28Closed
6OpenAI logogpt-oss-20b$0.02$0.09OSS
7OpenAI logogpt-oss-120b$0.04$0.17OSS
8inception logoMercury 2.5$0.04$0.15Closed
9Alibaba Qwen logoQwen3 30B A3B Instruct 2507$0.05$0.19OSS
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
13NVIDIA logoNemotron 3.5 Lightning$0.06$0.16Closed
14Google DeepMind logoGemma 4 26B A4B $0.07$0.23OSS
15baidu logoERNIE 4.5 21B A3B Thinking$0.07$0.28OSS
16Google DeepMind logoGemma 3 27B$0.08$0.45OSS
17NVIDIA logoNemotron 3 Super$0.08$0.45OSS
18Alibaba Qwen logoQwen3 32B$0.08$0.28OSS
19Google DeepMind logoGemma 4 31B$0.09$0.34OSS
20xiaomi logoMiMo-V2-Flash$0.09$0.29OSS
21Alibaba Qwen logoQwen3 235B A22B Instruct 2507$0.09$0.55OSS
22Alibaba Qwen logoQwen3 Next 80B A3B Instruct$0.09$1.10OSS
23upstage logoSolar Pro 4$0.09$0.36Closed
24OpenAI logoGPT-6 Luna$0.10$0.50Closed
25Meta logoLlama 4 Scout$0.10$0.30OSS
26Alibaba Qwen logoQwen3.5-9B$0.10$0.15OSS
27stepfun logoStep 3.5 Flash$0.10$0.30OSS
28Alibaba Qwen logoQwen3 8B$0.12$0.46OSS
29Alibaba Qwen logoQwen3 Coder Next$0.12$0.80OSS
30tencent logoHy3$0.13$0.53Closed
Cheapest
gpt-oss-120b (free)
$0.00/M
$ per 1M input tokens
Why the gap

Hy3 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
Hy3
$0.13/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.