Price ranking

Cheapest AI models for coding

Quick answer

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)

ModelProviderInput / 1MOutput / 1MCost per taskChecked
GPT-5 nanoOpenAI$0.05$0.40$0.000730 Nov 2026
Gemini 2.5 Flash-LiteGoogle$0.10$0.40$0.000930 Nov 2026
Claude Haiku 5.5Anthropic$0.10$0.50$0.001030 Nov 2026
GPT-6 LunaOpenAI$0.10$0.50$0.001030 Nov 2026
Mistral Small 4Mistral$0.15$0.60$0.001328 Nov 2026
Mistral CodestralMistral$0.30$0.90$0.002328 Nov 2026
DeepSeek FlashDeepSeek$0.30$1.20$0.002628 Nov 2026
Gemini 3.1 Flash-LiteGoogle$0.25$1.50$0.002830 Nov 2026
Mistral LargeMistral$0.50$1.50$0.003828 Nov 2026
Gemini 3.5 Flash-LiteGoogle$0.30$2.50$0.004230 Nov 2026
Gemini 2.5 FlashGoogle$0.30$2.50$0.004230 Nov 2026
Gemini 3 Flash (preview)Google$0.50$3$0.005630 Nov 2026
Gemini 3.8 FlashGoogle$0.75$3.75$0.007530 Nov 2026
Gemini 3.6 FlashGoogle$0.75$3.75$0.007530 Nov 2026
Gemini 2.5 ProGoogle$0.75$3.75$0.007530 Nov 2026

Cheapest paid plan with a coding tool

ToolPlanPrice a monthChecked
CursorCursor + Grok Plus$828 Nov 2026
CodexCodex on ChatGPT Go$828 Nov 2026
GitHub CopilotGitHub Copilot Pro$1028 Nov 2026
Claude CodeClaude Pro$2030 Nov 2026

Good to know

Price your own prompt

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.