Cheapest chat APIs
Every chat model with a published price, ranked by blended cost for a typical mix of input and output tokens.
Current leader: Gemini Exp 1114 (Google Gemini). Refreshed 2026-10-28 12:57 UTC.
| # | Model | Provider | Input $/1M | Output $/1M | Cached $/1M | Context |
|---|---|---|---|---|---|---|
| 1 | Gemini Exp 1114 | Google Gemini | free | free | — | 1.0M |
| 2 | Gemini Exp 1206 | Google Gemini | free | free | — | 2.1M |
| 3 | Gemma 3 27b It | Google Gemini | free | free | — | 131K |
| 4 | Gemma 4 26b A4b It | Google Gemini | free | free | — | 262K |
| 5 | Gemma 4 31b It | Google Gemini | free | free | — | 262K |
| 6 | Learnlm 1.5 Pro Experimental | Google Gemini | free | free | — | 33K |
| 7 | Labs Leanstral 1 5 | Mistral AI | free | free | — | 262K |
| 8 | Labs Leanstral 1 5 1 | Mistral AI | free | free | — | 262K |
| 9 | Gemma 2b It Lora | Cloudflare Workers AI | free | free | — | 8K |
| 10 | Mistral 7b Instruct V0.2 Lora | Cloudflare Workers AI | free | free | — | 15K |
| 11 | Llama 2 7b Chat Hf Lora | Cloudflare Workers AI | free | free | — | 8K |
| 12 | Gemma 7b It Lora | Cloudflare Workers AI | free | free | — | 4K |
| 13 | Codegeex4 | Ollama | free | free | — | 33K |
| 14 | Codegemma | Ollama | free | free | — | 8K |
| 15 | Codellama | Ollama | free | free | — | 4K |
| 16 | Deepseek Coder V2 Base | Ollama | free | free | — | 8K |
| 17 | Deepseek Coder V2 Instruct | Ollama | free | free | — | 33K |
| 18 | Deepseek Coder V2 Lite Base | Ollama | free | free | — | 8K |
| 19 | Deepseek Coder V2 Lite Instruct | Ollama | free | free | — | 33K |
| 20 | Deepseek V3.1:671b Cloud | Ollama | free | free | — | 164K |
| 21 | GPT Oss:120b Cloud | Ollama | free | free | — | 131K |
| 22 | GPT Oss:20b Cloud | Ollama | free | free | — | 131K |
| 23 | Internlm2 5 20b Chat | Ollama | free | free | — | 33K |
| 24 | Llama2 | Ollama | free | free | — | 4K |
| 25 | Llama2 Uncensored | Ollama | free | free | — | 4K |
| 26 | Llama2:13b | Ollama | free | free | — | 4K |
| 27 | Llama2:70b | Ollama | free | free | — | 4K |
| 28 | Llama2:7b | Ollama | free | free | — | 4K |
| 29 | Llama3 | Ollama | free | free | — | 8K |
| 30 | Llama3.1 | Ollama | free | free | — | 8K |
| 31 | Llama3:70b | Ollama | free | free | — | 8K |
| 32 | Llama3:8b | Ollama | free | free | — | 8K |
| 33 | Mistral | Ollama | free | free | — | 8K |
| 34 | Mistral 7B Instruct V0.1 | Ollama | free | free | — | 8K |
| 35 | Mistral 7B Instruct V0.2 | Ollama | free | free | — | 33K |
| 36 | Mistral Large Instruct 2407 | Ollama | free | free | — | 66K |
| 37 | Mixtral 8x22B Instruct V0.1 | Ollama | free | free | — | 66K |
| 38 | Mixtral 8x7B Instruct V0.1 | Ollama | free | free | — | 33K |
| 39 | Orca Mini | Ollama | free | free | — | 4K |
| 40 | Qwen3 Coder:480b Cloud | Ollama | free | free | — | 262K |
| 41 | Vicuna | Ollama | free | free | — | 2K |
| 42 | Ternary Bonsai 27B | Together AI | free | free | — | 262K |
| 43 | Qwen2.5 Coder 7B | Nebius | $0.01 | $0.03 | — | 33K |
| 44 | Qwen2.5 Coder 3B Instruct | Nscale | $0.01 | $0.03 | — | — |
| 45 | Qwen2.5 Coder 7B Instruct | Nscale | $0.01 | $0.03 | — | — |
| 46 | Llama 3.2 3B Instruct | DeepInfra | $0.02 | $0.02 | — | 131K |
| 47 | Paddleocr Vl | Novita AI | $0.02 | $0.02 | — | 16K |
| 48 | Llama 3.2 1b Instruct | Novita AI | $0.02 | $0.02 | — | 131K |
| 49 | Qwen2 1.5B Instruct | Together AI | $0.02 | $0.02 | — | 33K |
| 50 | Mistral Nemo Instruct 2407 | DeepInfra | $0.019 | $0.03 | — | 131K |
| 51 | Meta Llama 3.1 8B Instruct Turbo | DeepInfra | $0.02 | $0.04 | — | 131K |
| 52 | DeepSeek R1 Distill Llama 8B | Nscale | $0.025 | $0.025 | — | — |
| 53 | Llama 3.1 8b Instruct | Novita AI | $0.02 | $0.05 | — | 16K |
| 54 | Llama Prompt Guard 2 22m | Groq | $0.03 | $0.03 | — | 512 |
| 55 | Llama Guard 3 8B | Nebius | $0.02 | $0.06 | — | 128K |
| 56 | Meta Llama 3.1 8B Instruct | Nebius | $0.02 | $0.06 | — | 128K |
| 57 | Qwen2 VL 7B Instruct | Nebius | $0.02 | $0.06 | — | 131K |
| 58 | Deepseek Ocr | Novita AI | $0.03 | $0.03 | — | 8K |
| 59 | Qwen3 4b Fp8 | Novita AI | $0.03 | $0.03 | — | 128K |
| 60 | Deepseek Ocr 2 | Novita AI | $0.03 | $0.03 | — | 8K |
Other use cases
Frequently asked
› What is the cheapest chat API right now?
Gemini Exp 1114 from Google Gemini currently leads this list, at $0/1M input tokens. Rankings are recomputed from the raw dataset on every refresh, so they track price cuts automatically.
› How are these rankings calculated?
Each use case applies a capability filter (context size, vision, tool calling, cache pricing) and then ranks the surviving models by the blended cost that profile actually pays. See the methodology page for the exact formulas.
› Is the cheapest model always the right choice?
No. Check the capability flags and context window, and benchmark quality on your own data — the cheapest model that fails your evals costs more than the second cheapest that passes them.