Cheapest AI model for coding

Cheapest code-generation models ranked by $/1M tokens.

Token Price Index › Browse › Coding

16 models matched for coding tasks. Cheapest right now: Cohere: North Mini Code (free) at Free blended $/M. Sorted cheapest-first, updated daily.

Subscribe — $9/mo
ModelContextInput $/MOutput $/MBlended $/M
Cohere: North Mini Code (free)free
cohere
256,000FreeFreeFree
Qwen: Qwen3 Coder 30B A3B Instruct
qwen
262,144$0.070/M$0.280/M$0.122/M
Mistral: Codestral 2508 (batch)cache
mistralai
256,000$0.150/M$0.450/M$0.225/M
Qwen: Qwen3 Coder Nextcache
qwen
262,144$0.120/M$0.800/M$0.290/M
Qwen: Qwen3 Coder Flashcache
qwen
1,000,000$0.195/M$0.975/M$0.390/M
Mistral: Codestral 2508cache
mistralai
256,000$0.300/M$0.900/M$0.450/M
Qwen: Qwen3 Coder 480B A35Bcache
qwen
262,144$0.300/M$1.00/M$0.475/M
OpenAI: GPT-5.1-Codex-Minivisioncache
openai
400,000$0.250/M$2.00/M$0.688/M
Qwen2.5 Coder 32B Instruct
qwen
32,768$0.660/M$1.00/M$0.745/M
Mistral: Devstral 2 2512cache
mistralai
262,144$0.400/M$2.00/M$0.800/M
ByteDance Seed: Seed-2.0-Codevision
bytedance-seed
262,144$0.500/M$3.00/M$1.12/M
MoonshotAI: Kimi K2.7 Codevisioncache
moonshotai
262,144$0.671/M$3.35/M$1.34/M
OpenAI: GPT-5.1-Codex-Maxvisioncache
openai
400,000$1.25/M$10.00/M$3.44/M
OpenAI: GPT-5.1-Codexvisioncache
openai
400,000$1.25/M$10.00/M$3.44/M
OpenAI: GPT-5.3-Codexvisioncache
openai
400,000$1.75/M$14.00/M$4.81/M
OpenAI: GPT-5.2-Codexvisioncache
openai
400,000$1.75/M$14.00/M$4.81/M

Frequently asked questions

How many coding models are listed?
There are 16 models matching this filter right now, pulled live from the OpenRouter public API and updated daily.
How often does pricing change?
AI model prices change frequently — sometimes weekly. Token Price Index rebuilds this page daily from the OpenRouter API so you always see current prices. Subscribe for price-drop email alerts.
How is the blended cost calculated?
Blended = (3 × input cost + output cost) / 4. This weights input 3:1 over output, reflecting a typical read-heavy workload. Sort by input or output $/M if your workload differs.
How can I get alerted when a coding model price drops?
Token Price Index Pro emails you the moment any model you follow gets cheaper — for $9/mo. No more manually checking provider pricing pages.

Get price-drop alerts for models you use

$9/mo · cancel anytime

Pro subscribers get emailed the instant a model they track drops in price, plus a weekly cheapest-per-task digest and full CSV/JSON export.

Subscribe — $9/mo
Data: OpenRouter public model API, normalized to $/1M tokens. Blended = (3×input + output)/4. Generated 19 Oct 2026 22:00 UTC. Prices change often — confirm on the provider before committing spend.