RAG cost calculator: LLM generation cost per month (2026-11-30)

Monthly generation cost of a retrieval-augmented (RAG) Q&A app with 20,000 questions, across every major model.

Last updated 2026-11-30

Bottom line: cheapest is Mistral: Mistral Nemo at about $1.36/month; the median model costs $64.84/month; the most expensive, Anthropic: Claude Fable 5, costs $678.30/month. That is a 500× spread for the same workload.

Scenario: RAG app: 20,000 questions/month, 5 retrieved chunks × 300 words + 50-word question in / 200 words out (generation only; embedding and vector-DB costs excluded).

VendorModelIn $/1MOut $/1MEst. monthly costSource / check
MistralMistral: Mistral Nemo$0.029$0.03$1.36source 2026-11-30 ⚠ differs from lab price ($0.15/$0.15)
Meta (Llama)Meta: Llama 3.1 8B Instruct$0.05$0.08$2.49source 2026-11-30 ✔ matches
DeepSeekDeepSeek: DeepSeek V4 Flash 0731$0.0456$0.27$3.32source 2026-11-30 ℹ vs market median ($0.14/$0.3)
Meta (Llama)Meta: Llama 3.2 3B Instruct$0.05$0.33$3.82source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-5 Nano$0.05$0.4$4.19source 2026-11-30 ✔ matches
DeepSeekDeepSeek: DeepSeek V4 Flash 0423$0.09$0.18$4.67source 2026-11-30 ℹ vs market median ($0.14/$0.28)
DeepSeekDeepSeek: DeepSeek V4.1 Flash$0.051$0.567$5.12source 2026-11-30 ⚠ differs from lab price ($0.14/$0.28)
Meta (Llama)Meta: Llama 4 Scout$0.1$0.3$5.72source 2026-11-30 ✔ matches
GoogleGoogle: Gemini 2.5 Flash Lite$0.1$0.4$6.25source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Haiku 5.5$0.1$0.5$6.78source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6 Luna$0.1$0.5$6.78source 2026-11-30 ✔ matches
MistralMistral: Ministral 3 8B 2512$0.15$0.15$6.98source 2026-11-30 ✔ matches
Meta (Llama)Meta: Llama Guard 4 12B$0.18$0.18$8.38source 2026-11-30 ✔ matches
MistralMistral: Ministral 3 14B 2512$0.2$0.2$9.31source 2026-11-30 ✔ matches
DeepSeekDeepSeek: DeepSeek V4.1 Flash 1017$0.15$0.6$9.38source 2026-11-30 ✔ matches
MistralMistral: Mistral Small 4$0.15$0.6$9.38source 2026-11-30 ✔ matches
DeepSeekDeepSeek: DeepSeek V4 Flash Vision Exp$0.2156$0.6468$12.33source 2026-11-30 ℹ vs market median ($0.2255/$0.6764)
DeepSeekDeepSeek: DeepSeek V3.2$0.26$0.38$12.74source 2026-11-30 ⚠ differs from lab price ($0.28/$0.42)
Meta (Llama)Meta: Llama 4 Maverick$0.35$1.0$19.75source 2026-11-30 ✔ matches
MistralMistral: Devstral 2 2512$0.4$2.0$27.13source 2026-11-30 ✔ matches
Meta (Llama)Meta: Llama 3.3 70B Instruct$0.59$0.79$28.53source 2026-11-30 ℹ vs market median ($0.59/$0.7122)
DeepSeekDeepSeek: DeepSeek V4 Pro 0813$0.0999$5.0$30.72source 2026-11-30 ⚠ differs from lab price ($0.66/$1.98)
Meta (Llama)Meta: Llama 3.1 70B Instruct$0.72$0.72$33.52source 2026-11-30 ✔ matches
MistralMistral: Mistral Large 4$0.7$2.1$40.03source 2026-11-30 ⚠ differs from lab price ($0.68/$2.09)
DeepSeekDeepSeek: DeepSeek V4 Pro 0423$0.7859$1.5687$40.75source 2026-11-30 ℹ vs market median ($1.416/$3.2)
GoogleGoogle: Gemini 3.8 Flash$0.825$4.125$55.96source 2026-11-30 ⚠ differs from lab price ($0.75/$3.75)
xAISpaceXSI: Grok 4.20 Multi-Agent$1.25$2.5$64.84source 2026-11-30 ✔ matches
xAISpaceXSI: Grok 4.20$1.25$2.5$64.84source 2026-11-30 ✔ matches
xAISpaceXSI: Grok 4.3$1.25$2.5$64.84source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6.1 Terra$1.0$5.0$67.83source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6.1 Terra Pro$1.0$5.0$67.83source 2026-11-30 ✔ matches
MistralMistral: Mistral Medium 3.5$1.5$7.5$101.75source 2026-11-30 ✔ matches
GoogleGoogle: Gemini 4 Hydrogen$1.5$7.5$101.75source 2026-11-30 ✔ matches
GoogleGoogle: Gemini Omni 1.2 Flash$1.5$9.0$109.72source 2026-11-30 no 2nd source
GoogleGoogle: Gemini Omni 1.1 Flash$1.5$9.0$109.72source 2026-11-30 no 2nd source
MistralMistral: Pixtral Large 2502$2.0$6.0$114.38source 2026-11-30 ✔ matches
xAISpaceXSI: Grok 4.7$2.0$6.0$114.38source 2026-11-30 ✔ matches
xAISpaceXSI: Grok 4.6$2.0$6.0$114.38source 2026-11-30 ✔ matches
xAISpaceXSI: Grok 4.5$2.0$6.0$114.38source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Sonnet 5.5$2.0$10.0$135.66source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Sonnet 5$2.0$10.0$135.66source 2026-11-30 ✔ matches
GoogleGoogle: Gemini 4 Carbon$2.0$10.0$135.66source 2026-11-30 ✔ matches
GoogleGoogle: Gemini 4 Argon$2.0$10.0$135.66source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6.2 Sol$2.0$10.0$135.66source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6.2 Sol Pro$2.0$10.0$135.66source 2026-11-30 ✔ matches
GoogleGoogle: Gemini 4 Neon$3.0$15.0$203.49source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Opus 5.5$4.0$20.0$271.32source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Opus 5$5.0$25.0$339.15source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Fable 5.2$8.0$40.0$542.64source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6.2 Astra$8.0$40.0$542.64source 2026-11-30 ✔ matches
OpenAIOpenAI: GPT-6.2 Astra Pro$8.0$40.0$542.64source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Fable 5.1$10.0$50.0$678.30source 2026-11-30 ✔ matches
AnthropicAnthropic: Claude Fable 5$10.0$50.0$678.30source 2026-11-30 ✔ matches

Quick answers

Last updated 2026-11-30 from live API prices.

What is the cheapest model for this workload?

As of 2026-11-30, Mistral: Mistral Nemo is cheapest at about $1.36/month ($0.029 input / $0.03 output per 1M tokens). Scenario: RAG app: 20,000 questions/month, 5 retrieved chunks × 300 words + 50-word question in / 200 words out (generation only; embedding and vector-DB costs excluded).

What are the next cheapest options?

Next cheapest: Meta: Llama 3.1 8B Instruct ($2.49), DeepSeek: DeepSeek V4 Flash 0731 ($3.32), Meta: Llama 3.2 3B Instruct ($3.82).

How much do 1,000 chats cost?

For 1,000 chats of 600 words in / 150 words out, the cheapest model here, Mistral: Mistral Nemo, costs about $0.03.

Where do these prices come from?

List prices from the OpenRouter public models API, refreshed daily and cross-checked against InferIndex; last updated 2026-11-30. Standard non-batch, non-cached rates, ~1.33 tokens per English word.

Try the interactive calculators with your own numbers → · Weekly price digest

📬 Weekly AI price digest

A short weekly email (via Buttondown) covering which tracked AI API prices moved and what that means for a typical app bill. Free, plus the AI API Cost Cheat Sheet. Weekly digest only — not an automated price-drop alert.

✓ Thanks! Check your inbox to confirm. Your free cheat sheet: AI API Cost Cheat Sheet (PDF)
Prices from OpenRouter's public API, cross-checked with InferIndex. No spam · How prices are calculated