Guides

Cheapest LLM for RAG chatbots

In a retrieval-augmented (RAG) chatbot most of each prompt is retrieved text that changes on every question, so input price dominates and caching helps less than in an agent. Prices verified 2026-11-17.

Assumptions

Change any of these in the calculator: every row below has a link that opens the same scenario for that model.

The short answer

Where the money goes

With 6,000 input tokens and 400 output tokens per answer, output accounts for 8% to 42% of the per-answer cost depending on the model's output/input price ratio. The retrieved chunks are the biggest lever you control.

Retrieving twice as much context (8,000 instead of 4,000 tokens per question):

Better retrieval (fewer, more relevant chunks) usually saves more than switching models, and often improves answers too. The system prompt is the only stable prefix here, so caching saves less than in agent workloads; if your chatbot keeps a long conversation history, the history becomes cacheable and savings rise.

Full ranking (45 models)

#ModelTierPer 1,000 answersPer month (100,000)
1Claude Haiku 5.5 Anthropicsmall$0.67$66.50Calculator
2GPT-6 Luna OpenAIsmall$0.67$66.50Calculator
3Ministral 3 8B Mistral AIsmall$0.76$75.75Calculator
4Mistral Small 4 Mistral AIsmall$0.94$93.75Calculator
5GPT-5.6 Luna OpenAIsmall$1.41$141Calculator
6Codestral Mistral AIsmall$1.76$176Calculator
7Gemini 3.1 Flash-Lite Googlesmall$1.76$176Calculator
8DeepSeek V4.1 Flash DeepSeeksmall$1.84$184Calculator
9Gemini 3.5 Flash-Lite Googlesmall$2.40$240Calculator
10Gemini 2.5 Flash Googlesmall$2.40$240Calculator
11Mistral Large 3 Mistral AIflagship$2.93$293Calculator
12Mistral Large 4 Mistral AIflagship$4.09$409Calculator
13Gemini 3.8 Flash Google price changes 2027-01-01mid$4.99$499Calculator
14Gemini 3.6 Flash Google price changes 2027-01-01mid$4.99$499Calculator
15GPT-5.4 mini OpenAIsmall$5.29$529Calculator
16Grok Build 0.1 xAIsmall$5.60$560Calculator
17GPT-6.1 Terra OpenAImid$6.58$658Calculator
18Claude Haiku 4.5 Anthropicsmall$6.65$665Calculator
19Grok 4.20 (Reasoning) xAIreasoning$6.92$693Calculator
20Grok 4.3 xAImid$6.92$693Calculator
21DeepSeek V4 Pro DeepSeekflagship$7.59$759Calculator
22Gemini 4 Hydrogen Googlemid$9.86$986Calculator
23Mistral Medium 3.5 Mistral AImid$9.97$998Calculator
24Grok 4.5 xAIflagship$11.85$1,185Calculator
25Grok 4.6 xAIflagship$12.15$1,215Calculator
26Grok 4.7 xAIflagship$12.15$1,215Calculator
27Gemini 4 Carbon Google price changes 2026-12-01flagship$13.15$1,315Calculator
28Gemini 4 Argon Google price changes 2026-12-01flagship$13.15$1,315Calculator
29Claude Sonnet 5.5 Anthropicmid$13.15$1,315Calculator
30GPT-6.1 Sol OpenAImid$13.15$1,315Calculator
31Claude Sonnet 5 Anthropicmid$13.30$1,330Calculator
32GPT-6 Sol OpenAImid$13.30$1,330Calculator
33Gemini 3.1 Pro (Preview) Googleflagship$14.10$1,410Calculator
34GPT-5.6 Terra OpenAImid$14.10$1,410Calculator
35GPT-5.4 OpenAIflagship$17.63$1,762Calculator
36Claude Sonnet 4.6 Anthropicmid$19.95$1,995Calculator
37Claude Opus 5.5 Anthropicflagship$26.30$2,630Calculator
38GPT-5.6 Sol OpenAIflagship$26.60$2,660Calculator
39Claude Opus 5 Anthropicflagship$33.25$3,325Calculator
40Claude Opus 4.8 Anthropicflagship$33.25$3,325Calculator
41GPT-5.5 OpenAIflagship$35.25$3,525Calculator
42Claude Fable 5.2 Anthropicflagship$52.30$5,230Calculator
43Claude Fable 5.1 Anthropicflagship$65.38$6,538Calculator
44Claude Fable 5 Anthropicflagship$66.50$6,650Calculator
45GPT-6 Astra OpenAIflagship$66.50$6,650Calculator

USD, standard list prices. Tags mark announced price changes and temporary sale prices.

Price is not quality

This page ranks by cost only. Models differ in accuracy, instruction following, tool use, latency, rate limits and data policies, and those differences often matter more than the price gap. Shortlist two or three models from the table, run them on a sample of your real inputs, and compare cost per successful result.

Related comparisons

More guides

FAQ

What is the cheapest LLM for a RAG chatbot?

On this workload Claude Haiku 5.5 costs $0.67 per 1,000 answers. The cheapest mid-tier model is Gemini 3.8 Flash at $4.99. Test answer quality on your own documents before choosing on price.

Does a bigger context window lower RAG cost?

No. A larger window lets you send more retrieved text, but every token sent is billed. Cost tracks how much you retrieve, not how much the model could accept.