Cheapest AI model for coding

Top pick: GLM-5.3 Flash (Together) (Together) at about $5.50/mo for an example 20M input + 5M output tokens per month. Needs tier ≥2; 17 of 25 models qualify. Prices last checked 2026-10-13.

Cheapest qualifying models, ranked

#ModelProviderInput $/MOutput $/MContextTierExample $/movs top pick
1GLM-5.3 Flash (Together)Together$0.15$0.5—2$5.50Top pick
2GPT-OSS 120B (Groq)Groq$0.15$0.61310722$6.00+$0.50/mo
3DeepSeek V4.1 FlashDeepSeek$0.3$1.210000002$12.00+$6.50/mo
4Mistral Large 3Mistral$0.5$1.5—2$17.50+$12.00/mo
5Mistral Large 4Mistral$0.68$2.0910000003$24.05+$18.55/mo

Caveat: Coding quality varies a lot by language and repo size; run your own tests before switching.

How the example bill is computed

We assume 20M input and 5M output tokens per month and multiply by each model's standard per-1M-token price. For the top pick, GLM-5.3 Flash (Together) (Together): (20M × $0.15) + (5M × $0.5) = $5.50 per month (prices checked 2026-10-13).

Tiers 1–4 are our own rough capability judgment (1 = light, 4 = frontier), not a benchmark. This job needs tier ≥2, so only those models are ranked (17 of 25 qualify). Standard pay-as-you-go text prices only: no batch or cached-input discounts. Cost only, not quality; different tokenizers count the same text differently.

Related head-to-head comparisons

Other jobs: Simple Q&A / chat · Long documents · Hard reasoning. See every model on the full price table or estimate your own bill with the savings calculator.

Weekly "AI price drops" email

Placeholder only — this form collects nothing.