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-10-18.

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 (36 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 4 Mistral AI sale priceflagship$4.00$400Calculator
12Gemini 3.8 Flash Google price changes 2027-01-01mid$4.99$499Calculator
13Gemini 3.6 Flash Google price changes 2027-01-01mid$4.99$499Calculator
14GPT-5.4 mini OpenAIsmall$5.29$529Calculator
15Grok Build 0.1 xAIsmall$5.60$560Calculator
16Claude Haiku 4.5 Anthropicsmall$6.65$665Calculator
17Grok 4.20 (Reasoning) xAIreasoning$6.92$693Calculator
18Grok 4.3 xAImid$6.92$693Calculator
19DeepSeek V4 Pro DeepSeekflagship$7.59$759Calculator
20Mistral Medium 3.5 Mistral AImid$9.97$998Calculator
21Grok 4.7 xAIflagship$12.15$1,215Calculator
22Gemini 4 Argon Google price changes 2026-12-01flagship$13.15$1,315Calculator
23Claude Sonnet 5.5 Anthropicmid$13.15$1,315Calculator
24GPT-6.1 Sol OpenAImid$13.15$1,315Calculator
25Claude Sonnet 5 Anthropicmid$13.30$1,330Calculator
26GPT-6 Sol OpenAImid$13.30$1,330Calculator
27Gemini 3.1 Pro (Preview) Googleflagship$14.10$1,410Calculator
28GPT-5.6 Terra OpenAImid$14.10$1,410Calculator
29Claude Sonnet 4.6 Anthropicmid$19.95$1,995Calculator
30Claude Opus 5.5 Anthropicflagship$26.30$2,630Calculator
31GPT-5.6 Sol OpenAIflagship$26.60$2,660Calculator
32Claude Opus 5 Anthropicflagship$33.25$3,325Calculator
33Claude Opus 4.8 Anthropicflagship$33.25$3,325Calculator
34GPT-5.5 OpenAIflagship$35.25$3,525Calculator
35Claude Fable 5.1 Anthropicflagship$65.38$6,538Calculator
36GPT-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.