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
3OpenAI logogpt-oss-120b$0.04$0.18OSS
4Alibaba Qwen logoQwen3 30B A3B Instruct 2507$0.05$0.19OSS
5OpenAI logoGPT-5 Nano$0.05$0.40Closed
6baidu logoERNIE 4.5 21B A3B Thinking$0.07$0.28OSS
7Google DeepMind logoGemma 3 27B$0.08$0.16OSS
8Alibaba Qwen logoQwen3 32B$0.08$0.28OSS
9xiaomi logoMiMo-V2-Flash$0.09$0.29OSS
10Alibaba Qwen logoQwen3 235B A22B Instruct 2507$0.09$0.10OSS
11Alibaba Qwen logoQwen3 Next 80B A3B Instruct$0.09$1.10OSS
12Alibaba Qwen logoQwen3 Next 80B A3B Thinking$0.10$0.78OSS
13Meta logoLlama 4 Scout$0.10$0.30OSS
14stepfun logoStep 3.5 Flash$0.10$0.30OSS
15Alibaba Qwen logoQwen3 8B$0.12$0.46OSS
16Alibaba Qwen logoQwen3 30B A3B Thinking 2507$0.13$1.56OSS
17tencent logoHunyuan A13B Instruct$0.14$0.57OSS
18Alibaba Qwen logoQwen3 235B A22B Thinking 2507$0.15$1.50OSS
19Meta logoLlama 4 Maverick$0.15$0.60OSS
20minimax logoMiniMax M2.5$0.15$0.90OSS
21meituan logoLongCat Flash Chat$0.20$0.80OSS
22DeepSeek logoDeepSeek V3.2$0.21$0.32OSS
23OpenAI logoGPT-5 Mini$0.25$2.00Closed
24minimax logoMiniMax M2$0.26$1.02OSS
25Alibaba Qwen logoQwen3.6 Plus$0.33$1.95OSS
26moonshotai logoKimi K2.5$0.38$2.02OSS
27Alibaba Qwen logoQwen3.5 397B A17B$0.39$2.45OSS
28DeepSeek logoDeepSeek V3.2 Speciale$0.40$1.20OSS
29z-ai logoGLM 4.7$0.40$1.75OSS
30OpenAI logoGPT-4.1 Mini$0.40$1.60Closed
Cheapest
gpt-oss-120b (free)
$0.00/M
$ per 1M input tokens
Why the gap

DeepSeek V3.2 Speciale 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 V3.2 Speciale
$0.40/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.