What is the cheapest AI model that is good at coding?

Updated 2026-11-23 with live prices and published benchmarks.

Short answer

Qwen3 Coder 30B A3B Instruct is the cheapest model scoring over 60% on SWE-bench Verified (60.4%), at about $1.58 a month for a typical coding agent. The top scorer, Claude Sonnet 5.5 (79.2%), costs about $48.60.

Coding models with a published SWE-bench result, cheapest first

Coding agent workload: 15M input and 3M output tokens a month, 40% cached. Only models that support tool calling and score 60%+ are listed.

ModelSWE-bench VerifiedCoding agent / month
Qwen3 Coder 30B A3B Instruct
Alibaba Qwen
60.4%$1.58
DeepSeek V3.2 Exp
DeepSeek
70.0%$4.06
DeepSeek V3.2
DeepSeek
70.0%$4.26
MiniMax M2.5
MiniMax
75.8%$5.46
GLM 4.6
Zhipu GLM
68.2%$11.10
Kimi K2.5
Moonshot
70.8%$12.90
Gemini 3 Flash Preview
Google
75.8%$13.80
Kimi K2 Thinking
Moonshot
63.4%$13.80
Kimi K2 0905
Moonshot
71.2%$13.80
GLM 5
Zhipu GLM
72.8%$19.80
Claude Haiku 4.5
Anthropic
66.6%$24.60
GPT-5.1
OpenAI
66.0%$42.00

How to choose

SWE-bench Verified measures how many real GitHub issues a model fixes with an agent harness, so it is the closest public signal to day-to-day coding work. Agents re-read large parts of a codebase, so prompt caching matters: check each model's cached-input price on its page.

Find the best coding model for your budgetAll models: coding agent cost

Questions

What is the cheapest good coding AI model?

Qwen3 Coder 30B A3B Instruct: 60.4% on SWE-bench Verified for about $1.58 a month as a coding agent.

Which benchmark should I use for coding models?

SWE-bench Verified: it measures how many real GitHub issues a model resolves, which is closer to everyday coding than puzzle-style tests.

How much does an AI coding agent cost per month?

For 15M input and 3M output tokens a month, from about $1.58 to $48.60 depending on the model.

Prices from OpenRouter; scores from Artificial Analysis, LMArena and SWE-bench Verified where published. How we get our numbers · All guides