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.

#ModelPer monthPer request
1Claude Haiku 5.5
Anthropic
$24.00$0.00080
2GPT-6 Luna
OpenAI
$24.00$0.00080
3DeepSeek V4.1 Flash
DeepSeek
$32.40$0.00108
4Gemini 3.1 Flash-Lite
Google
$66.00$0.00220
5Gemini 3.5 Flash-Lite
Google
$96.00$0.00320
6Mistral Large
Mistral
$96.00$0.00320
7DeepSeek V4 Pro
DeepSeek
$127$0.00422
8Grok Build 0.1
xAI
$168$0.00560
9Gemini 3.8 Flash
Google
$180$0.00600
10Gemini 3.6 Flash
Google
$180$0.00600
11Grok 4.3
xAI
$210$0.00700
12Claude Haiku 4.5
Anthropic
$240$0.00800
13Grok 4.7
xAI
$384$0.01280
14Claude Sonnet 5.5
Anthropic
$480$0.01600
15GPT-6.1 Sol
OpenAI
$480$0.01600
16Gemini 3.1 Pro
Google
$528$0.01760
17GPT-5.3 Codex
OpenAI
$546$0.01820
18Claude Opus 5.5
Anthropic
$960$0.03200
19Claude Fable 5.1
Anthropic
$2,400$0.08000
20GPT-6 Astra
OpenAI
$2,400$0.08000

Price only. Cheaper models are usually less capable, so test quality on your own data before switching.

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
$32.40 /mo
$66.00 /mo
$96.00 /mo
$96.00 /mo
$127 /mo
$168 /mo
$180 /mo
$180 /mo
$210 /mo
$240 /mo
$384 /mo
$480 /mo
$480 /mo
$528 /mo
$546 /mo
$960 /mo
$2,400 /mo
$2,400 /mo

Other use cases