Verified November 2026

Home › Tools › RAG chatbot cost calculator

RAG Chatbot API Cost Calculator

RAG chatbots are expensive because every question carries thousands of retrieved tokens as input. At 5,000 conversations a month with 3,000 retrieved tokens each, the input bill alone ranges from $$0.95 on the cheapest model to $$190 on the most expensive. This page prices the full workload across all 45 models.

5,000Conversations / month
3,000Retrieved tokens / question
500Output tokens / answer
45Models compared

Top 5 cheapest models for this RAG workload

Monthly cost for 5,000 conversations, 3,000 retrieved tokens + 500 system + 200 history + 100 question per request, 500 output tokens per answer. Sorted by total.

RAG chatbot cost — 5,000 conversations/month, USD, rates verified November 2026
#ModelProviderInputOutputTotal
1Qwen 3 8BAlibaba (Qwen)$0.95$0.50$1.45
2GPT-6 LunaOpenAI$1.90$1.25$3.15
3Claude Haiku 5.5Anthropic$1.90$1.25$3.15
4Qwen 3 32BAlibaba (Qwen)$2.85$1.50$4.35
5Mistral Small 4Mistral AI$2.85$1.50$4.35

All models: RAG cost breakdown

Full comparison across all 45 models. Input includes retrieved context, system prompt, chat history, and user question.

RAG chatbot cost — all models, 5,000 conversations/month
#ModelProviderInputOutputTotal
1Qwen 3 8BAlibaba (Qwen)$0.95$0.50$1.45
2GPT-6 LunaOpenAI$1.90$1.25$3.15
3Claude Haiku 5.5Anthropic$1.90$1.25$3.15
4Qwen 3 32BAlibaba (Qwen)$2.85$1.50$4.35
5Mistral Small 4Mistral AI$2.85$1.50$4.35
6Llama 4 ScoutMeta (Llama)$3.42$1.48$4.89
7GPT-5.6 LunaOpenAI$3.80$3$6.80
8GPT-5.4 nanoOpenAI$3.80$3.13$6.93
9Llama 4 MaverickMeta (Llama)$5.13$2.13$7.25
10Gemini 3.1 Flash-LiteGoogle Gemini$4.75$3.75$8.50
11DeepSeek V4.1 FlashDeepSeek$5.70$3$8.70
12Gemini 3.5 Flash-LiteGoogle Gemini$5.70$6.25$11.95
13Qwen 3 235BAlibaba (Qwen)$9.50$5$14.50
14Mistral Large 4Mistral AI$13.30$5.25$18.55
15Llama 3.3 70BMeta (Llama)$16.72$2.20$18.92
16Gemini 3.8 FlashGoogle Gemini$14.25$9.38$23.63
17Gemini 3.6 FlashGoogle Gemini$14.25$9.38$23.63
18GPT-5.4 miniOpenAI$14.25$11.25$25.50
19Grok 4.3xAI Grok$23.75$6.25$30
20GPT-6.1 TerraOpenAI$19$12.50$31.50
21Claude Haiku 4.5Anthropic$19$12.50$31.50
22DeepSeek V4 ProDeepSeek$25.08$9.90$34.98
23Gemini 4 HydrogenGoogle Gemini$28.50$18.75$47.25
24Gemini 2.5 ProGoogle Gemini$23.75$25$48.75
25Grok 4.6xAI Grok$38$15$53
26Grok 4.7xAI Grok$38$15$53
27GPT-4.1OpenAI$38$20$58
28GPT-6.1 SolOpenAI$38$25$63
29GPT-6 SolOpenAI$38$25$63
30Claude Sonnet 5Anthropic$38$25$63
31Claude Sonnet 5.5Anthropic$38$25$63
32Gemini 4 CarbonGoogle Gemini$38$25$63
33Gemini 4 ArgonGoogle Gemini$38$25$63
34GPT-5.6 TerraOpenAI$38$30$68
35Gemini 3.1 Pro (Preview)Google Gemini$38$30$68
36GPT-5.2OpenAI$33.25$35$68.25
37GPT-5.4OpenAI$47.50$37.50$85
38Claude Sonnet 4.6Anthropic$57$37.50$94.50
39GPT-5.6 SolOpenAI$76$50$126
40Claude Opus 5.5Anthropic$76$50$126
41Claude Opus 5Anthropic$95$62.50$158
42GPT-5.5OpenAI$95$75$170
43Claude Fable 5.2Anthropic$152$100$252
44GPT-6 AstraOpenAI$190$125$315
45Claude Fable 5.1Anthropic$190$125$315

Input = 3,800 tokens x 5,000 requests. Output = 500 tokens x 5,000 requests. Prompt caching is not applied — add a 60-80% input discount if your knowledge base prefix is cacheable.

How to reduce RAG costs

Keep going

Calculate a real monthly bill

FAQ

What is RAG?

Retrieval-Augmented Generation: the model receives retrieved document chunks alongside the user question. The retrieved context is billed as input tokens on every request.

How much does a RAG chatbot cost per month?

A typical RAG chatbot with 5,000 conversations, 3,000 retrieved tokens per question, and 500 output tokens costs between $50 and $500 per month depending on the model and cache hit rate.

Does prompt caching help RAG?

Yes, if the retrieved context repeats across conversations. A shared knowledge base prefix can be cached, reducing input cost by 60-80%.

What is the biggest cost driver in RAG?

Retrieved context. At 3,000 tokens per question and 5,000 questions per month, that is 15 million input tokens — before any chat history or system prompt.

How do I reduce RAG costs?

Reduce chunk size, deduplicate retrieved chunks, cache the system prompt, use a cheaper model for retrieval, and batch non-urgent queries.

Keep going

Calculate a real monthly bill