Use case ยท checked October 12, 2026
Cheapest LLM API for a coding assistant
Claude Haiku 5.5 and GPT-6 Luna tie as the cheapest at $24.00 a month. Our assumption: 30,000 requests a month with about 4,000 tokens of code context in and 800 tokens of code out.
| # | Model | Per month | Per request |
|---|---|---|---|
| 1 | Claude Haiku 5.5 | $24.00 | $0.00080 |
| 2 | GPT-6 Luna | $24.00 | $0.00080 |
| 3 | DeepSeek V4.1 Flash | $32.40 | $0.00108 |
| 4 | Gemini 3.1 Flash-Lite | $66.00 | $0.00220 |
| 5 | Gemini 3.5 Flash-Lite | $96.00 | $0.00320 |
| 6 | Mistral Large | $96.00 | $0.00320 |
| 7 | DeepSeek V4 Pro | $127 | $0.00422 |
| 8 | Grok Build 0.1 | $168 | $0.00560 |
| 9 | Gemini 3.8 Flash | $180 | $0.00600 |
| 10 | Gemini 3.6 Flash | $180 | $0.00600 |
| 11 | Grok 4.3 | $210 | $0.00700 |
| 12 | Claude Haiku 4.5 | $240 | $0.00800 |
| 13 | Grok 4.7 | $384 | $0.01280 |
| 14 | Claude Sonnet 5.5 | $480 | $0.01600 |
| 15 | GPT-6.1 Sol | $480 | $0.01600 |
| 16 | Gemini 3.1 Pro | $528 | $0.01760 |
| 17 | GPT-5.3 Codex | $546 | $0.01820 |
| 18 | Claude Opus 5.5 | $960 | $0.03200 |
| 19 | Claude Fable 5.1 | $2,400 | $0.08000 |
| 20 | GPT-6 Astra | $2,400 | $0.08000 |
Change the assumptions
Start from a use case
1,000 tokens is about 750 English words. Input includes your system prompt, chat history and any retrieved documents.
Claude Haiku 5.5
AnthropicCheapest
$24.00 /mo
GPT-6 Luna
OpenAICheapest
$24.00 /mo
DeepSeek V4.1 Flash
DeepSeek
$32.40 /mo
Gemini 3.1 Flash-Lite
Google
$66.00 /mo
Gemini 3.5 Flash-Lite
Google
$96.00 /mo
Mistral Large
Mistral
$96.00 /mo
DeepSeek V4 Pro
DeepSeek
$127 /mo
$168 /mo
Gemini 3.8 Flash
Google
$180 /mo
Gemini 3.6 Flash
Google
$180 /mo
Grok 4.3
xAI
$210 /mo
Claude Haiku 4.5
Anthropic
$240 /mo
Grok 4.7
xAI
$384 /mo
Claude Sonnet 5.5
Anthropic
$480 /mo
GPT-6.1 Sol
OpenAI
$480 /mo
Gemini 3.1 Pro
Google
$528 /mo
GPT-5.3 Codex
OpenAI
$546 /mo
Claude Opus 5.5
Anthropic
$960 /mo
Claude Fable 5.1
Anthropic
$2,400 /mo
GPT-6 Astra
OpenAI
$2,400 /mo