Price ranking
Cheapest AI models for coding
GPT-5 nano is the cheapest model on our list for code work, at $0.05 per million input tokens and $0.40 per million output tokens.
Checked (UTC) Anthropic API pricing ↗
Checked (UTC) OpenAI API pricing ↗
Checked (UTC) Google API pricing ↗
Checked (UTC) DeepSeek API pricing ↗
Checked (UTC) Mistral API pricing ↗
Prices checked by the AI Coding Prices team Sources How we check prices
Cost of a 300-line code file reviewed (4,000 tokens in, 1,200 out)
| Model | Provider | Input / 1M | Output / 1M | Cost per task | Checked |
|---|---|---|---|---|---|
| GPT-5 nano | OpenAI | $0.05 | $0.40 | $0.0007 | 30 Nov 2026 |
| Gemini 2.5 Flash-Lite | $0.10 | $0.40 | $0.0009 | 30 Nov 2026 | |
| Claude Haiku 5.5 | Anthropic | $0.10 | $0.50 | $0.0010 | 30 Nov 2026 |
| GPT-6 Luna | OpenAI | $0.10 | $0.50 | $0.0010 | 30 Nov 2026 |
| Mistral Small 4 | Mistral | $0.15 | $0.60 | $0.0013 | 28 Nov 2026 |
| Mistral Codestral | Mistral | $0.30 | $0.90 | $0.0023 | 28 Nov 2026 |
| DeepSeek Flash | DeepSeek | $0.30 | $1.20 | $0.0026 | 28 Nov 2026 |
| Gemini 3.1 Flash-Lite | $0.25 | $1.50 | $0.0028 | 30 Nov 2026 | |
| Mistral Large | Mistral | $0.50 | $1.50 | $0.0038 | 28 Nov 2026 |
| Gemini 3.5 Flash-Lite | $0.30 | $2.50 | $0.0042 | 30 Nov 2026 | |
| Gemini 2.5 Flash | $0.30 | $2.50 | $0.0042 | 30 Nov 2026 | |
| Gemini 3 Flash (preview) | $0.50 | $3 | $0.0056 | 30 Nov 2026 | |
| Gemini 3.8 Flash | $0.75 | $3.75 | $0.0075 | 30 Nov 2026 | |
| Gemini 3.6 Flash | $0.75 | $3.75 | $0.0075 | 30 Nov 2026 | |
| Gemini 2.5 Pro | $0.75 | $3.75 | $0.0075 | 30 Nov 2026 |
Cheapest paid plan with a coding tool
| Tool | Plan | Price a month | Checked |
|---|---|---|---|
| Cursor | Cursor + Grok Plus | $8 | 28 Nov 2026 |
| Codex | Codex on ChatGPT Go | $8 | 28 Nov 2026 |
| GitHub Copilot | GitHub Copilot Pro | $10 | 28 Nov 2026 |
| Claude Code | Claude Pro | $20 | 30 Nov 2026 |
Good to know
- This list ranks by price alone. It doesn't measure how well each model writes code, and the cheapest model may be the wrong one for hard problems.
- Decision-only models are left out because they can't write text. Prices are the standard tier, and long prompts can cost more on some models.
FAQ
What is the cheapest AI for coding?
GPT-5 nano at $0.05 in and $0.40 out per million tokens, which is $0.0007 for a 300-line code file reviewed (4,000 tokens in, 1,200 out).
What is the cheapest subscription for coding?
Cursor + Grok Plus at $8 a month. Free plans exist too: GitHub Copilot Free and Codex on ChatGPT Free.
Numbers come from each vendor's own pricing page. Vendors can change prices at any time, so check their page before you pay. How we count.