Beta
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.19OSS
4OpenAI logoGPT-5 Nano$0.05$0.40Closed
5Alibaba Qwen logoQwen3 8B$0.05$0.40OSS
6baidu logoERNIE 4.5 21B A3B Thinking$0.07$0.28OSS
7Alibaba Qwen logoQwen3 235B A22B Instruct 2507$0.07$0.10OSS
8Google DeepMind logoGemma 3 27B$0.08$0.16OSS
9Meta logoLlama 4 Scout$0.08$0.30OSS
10Alibaba Qwen logoQwen3 30B A3B Thinking 2507$0.08$0.40OSS
11Alibaba Qwen logoQwen3 32B$0.08$0.24OSS
12xiaomi logoMiMo-V2-Flash$0.09$0.29OSS
13Alibaba Qwen logoQwen3 30B A3B Instruct 2507$0.09$0.30OSS
14Alibaba Qwen logoQwen3 Next 80B A3B Instruct$0.09$1.10OSS
15Alibaba Qwen logoQwen3 Next 80B A3B Thinking$0.10$0.78OSS
16stepfun logoStep 3.5 Flash$0.10$0.30OSS
17minimax logoMiniMax M2.5$0.12$0.99OSS
18tencent logoHunyuan A13B Instruct$0.14$0.57OSS
19Alibaba Qwen logoQwen3 235B A22B Thinking 2507$0.15$1.50OSS
20Meta logoLlama 4 Maverick$0.15$0.60OSS
21meituan logoLongCat Flash Chat$0.20$0.80OSS
22OpenAI logoGPT-5 Mini$0.25$2.00Closed
23minimax logoMiniMax M2$0.26$1.00OSS
24DeepSeek logoDeepSeek V3.2$0.26$0.38OSS
25moonshotai logoKimi K2.5$0.38$1.72OSS
26z-ai logoGLM 4.6$0.39$1.90OSS
27z-ai logoGLM 4.7$0.39$1.75OSS
28Alibaba Qwen logoQwen3.5 397B A17B$0.39$2.34OSS
29DeepSeek logoDeepSeek V3.2 Speciale$0.40$1.20OSS
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.