Cheapest AI APIs
The 30 cheapest coding models right now, ranked by lowest input price across every host that serves them.
| # | Model | Cheapest host | Input $/MTok | Output $/MTok | Hosts | SWE-bench | Save |
|---|---|---|---|---|---|---|---|
| 1 | GPT-5.4 Nano | Azure | $0.20 | $1.25 | 2 | 69.8% | |
| 2 | Gemini 3.1 Flash Lite Preview | Google AI Studio | $0.25 | $1.50 | 2 | 62.8% | |
| 3 | GPT-5 Mini | OpenAI | $0.25 | $2.00 | 2 | 60.8% | |
| 4 | MiniMax M2.1 | AtlasCloud | $0.29 | $0.95 | 6 | 74.8% | −26% |
| 5 | MiniMax M2.7 | Minimax | $0.30 | $1.20 | 1 | 73.8% | |
| 6 | Qwen3.6 Plus | Alibaba | $0.33 | $1.95 | 1 | 73.4% | |
| 7 | Kimi K2.5 | Chutes | $0.38 | $1.72 | 15 | 70.0% | −42% |
| 8 | GLM 4.7 | Chutes | $0.39 | $1.75 | 11 | 69.4% | −74% |
| 9 | Devstral 2 2512 | Mistral | $0.40 | $2.00 | 1 | 62.8% | |
| 10 | Gemini 3 Flash Preview | Google AI Studio | $0.50 | $3.00 | 2 | 75.0% | |
| 11 | Kimi K2 0711 | Novita | $0.57 | $2.30 | 1 | 60.2% | |
| 12 | GLM 5 | GMICloud | $0.72 | $0.60 | 16 | 71.4% | −41% |
| 13 | GPT-5.4 Mini | Azure | $0.75 | $4.50 | 2 | 73.0% | |
| 14 | GLM 5.1 | Chutes | $0.95 | $3.15 | 13 | 76.4% | −45% |
| 15 | Claude Haiku 4.5 | Amazon Bedrock | $1.00 | $5.00 | 3 | 66.6% | |
| 16 | GPT-5.1 | Azure | $1.25 | $10.00 | 2 | 69.8% | |
| 17 | GPT-5 | Azure | $1.25 | $10.00 | 2 | 69.0% | |
| 18 | Gemini 2.5 Pro | Google AI Studio | $1.25 | $10.00 | 2 | 54.4% | |
| 19 | GPT-5.3-Codex | OpenAI | $1.75 | $14.00 | 2 | 78.0% | |
| 20 | GPT-5.2-Codex | Azure | $1.75 | $14.00 | 2 | 72.4% | |
| 21 | GPT-5.2 | Azure | $1.75 | $14.00 | 2 | 75.8% | |
| 22 | Gemini 3.1 Pro Preview | Google AI Studio | $2.00 | $12.00 | 2 | 78.8% | |
| 23 | GPT-5.4 | Azure | $2.50 | $15.00 | 2 | 78.2% | |
| 24 | Claude Sonnet 4.6 | Anthropic | $3.00 | $15.00 | 4 | 77.4% | |
| 25 | Claude Sonnet 4.5 | Google AI Studio | $3.00 | $15.00 | 3 | 70.0% | |
| 26 | Claude Opus 4.6 | Amazon Bedrock | $5.00 | $25.00 | 4 | 78.2% | |
| 27 | Claude Opus 4.5 | Anthropic | $5.00 | $25.00 | 3 | 76.4% |
Looking for flat-rate plans instead? See the AI Deals page for every subscription plan worth knowing about.