RAG cost calculator: LLM generation cost per month (2026-10-21)

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

Bottom line: cheapest is Meta: Llama 3.2 1B Instruct at about $2.18/month; the median model costs $50.87/month; the most expensive, Anthropic: Claude Fable 5, costs $678.30/month. That is a 311× 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
Meta (Llama)Meta: Llama 3.2 1B Instruct$0.027$0.201$2.18source 2026-10-21 ✔ matches
Meta (Llama)Meta: Llama 3.1 8B Instruct$0.05$0.08$2.49source 2026-10-21 ℹ vs market median ($0.05/$0.07)
DeepSeekDeepSeek: DeepSeek V4.1 Flash$0.0489$0.1956$3.06source 2026-10-21 ⚠ differs from lab price ($0.14/$0.28)
Meta (Llama)Meta: Llama 3.2 3B Instruct$0.0509$0.335$3.88source 2026-10-21 ✔ matches
MistralMistral: Ministral 3 3B 2512$0.1$0.1$4.66source 2026-10-21 ✔ matches
DeepSeekDeepSeek: DeepSeek V4 Flash 0423$0.091$0.182$4.72source 2026-10-21 ℹ vs market median ($0.14/$0.28)
Meta (Llama)Meta: Llama 4 Scout$0.1$0.3$5.72source 2026-10-21 ✔ matches
Meta (Llama)Meta: Llama 3.3 70B Instruct$0.1$0.32$5.83source 2026-10-21 ℹ vs market median ($0.5683/$0.72)
AnthropicAnthropic: Claude Haiku 5.5$0.1$0.5$6.78source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6 Luna Pro$0.1$0.5$6.78source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6 Luna$0.1$0.5$6.78source 2026-10-21 ✔ matches
MistralMistral: Ministral 3 8B 2512$0.15$0.15$6.98source 2026-10-21 ✔ matches
Meta (Llama)Meta: Llama Guard 4 12B$0.18$0.18$8.38source 2026-10-21 ✔ matches
MistralMistral: Ministral 3 14B 2512$0.2$0.2$9.31source 2026-10-21 ✔ matches
DeepSeekDeepSeek: DeepSeek V4.1 Flash 1017$0.15$0.6$9.38source 2026-10-21 no 2nd source
MistralMistral: Mistral Small 4$0.15$0.6$9.38source 2026-10-21 ✔ matches
Meta (Llama)Meta: Llama 4 Maverick$0.1875$0.6525$11.20source 2026-10-21 ℹ vs market median ($0.22/$0.8381)
DeepSeekDeepSeek: DeepSeek V4 Flash Vision Exp$0.2156$0.6468$12.33source 2026-10-21 ℹ vs market median ($0.2246/$0.6739)
DeepSeekDeepSeek: DeepSeek V3.2$0.28$0.42$13.78source 2026-10-21 ✔ matches
GoogleGoogle: Gemini 3.1 Flash Lite$0.25$1.5$18.29source 2026-10-21 ✔ matches
Meta (Llama)Meta: Llama 3.1 70B Instruct$0.4$0.4$18.62source 2026-10-21 ℹ vs market median ($0.4/$0.56)
DeepSeekDeepSeek: DeepSeek V4 Pro 0423$0.4461$0.8923$23.14source 2026-10-21 ℹ vs market median ($1.5008/$3.2)
DeepSeekDeepSeek: DeepSeek V4 Flash 0731$0.44$1.32$25.16source 2026-10-21 ℹ vs market median ($0.143/$0.4)
GoogleGoogle: Gemini 3.5 Flash Lite$0.3$2.5$25.67source 2026-10-21 ✔ matches
MistralMistral: Devstral 2 2512$0.4$2.0$27.13source 2026-10-21 ✔ matches
MistralMistral: Mistral Large 3 2512$0.5$1.5$28.59source 2026-10-21 ✔ matches
DeepSeekDeepSeek: DeepSeek V4 Pro 0813$0.66$1.98$37.75source 2026-10-21 ✔ matches
GoogleGoogle: Gemini 3.7 Flash$0.75$3.75$50.87source 2026-10-21 no 2nd source
GoogleGoogle: Gemini 3.6 Flash$0.75$3.75$50.87source 2026-10-21 ✔ matches
xAISpaceXAI: Grok Build 0.1$1.0$2.0$51.87source 2026-10-21 ✔ matches
GoogleGoogle: Gemini 3.8 Flash$0.825$4.125$55.96source 2026-10-21 ⚠ differs from lab price ($0.75/$3.75)
xAISpaceXAI: Grok 4.3$1.25$2.5$64.84source 2026-10-21 ✔ matches
xAISpaceXAI: Grok 4.20 Multi-Agent$1.25$2.5$64.84source 2026-10-21 ✔ matches
xAISpaceXAI: Grok 4.20$1.25$2.5$64.84source 2026-10-21 ✔ matches
MistralMistral: Mistral Large 4$1.36$4.18$78.31source 2026-10-21 ⚠ differs from lab price ($0.68/$2.09)
GoogleGoogle: Nano Banana 2.1$1.5$7.5$101.75source 2026-10-21 no 2nd source
MistralMistral: Mistral Medium 3.5$1.5$7.5$101.75source 2026-10-21 ✔ matches
GoogleGoogle: Gemini 3.5 Flash$1.5$9.0$109.72source 2026-10-21 no 2nd source
xAISpaceXAI: Grok 4.7$2.0$6.0$114.38source 2026-10-21 ✔ matches
xAISpaceXAI: Grok 4.6$2.0$6.0$114.38source 2026-10-21 ✔ matches
xAISpaceXAI: Grok 4.5$2.0$6.0$114.38source 2026-10-21 ✔ matches
GoogleGoogle: Gemini 4 Argon$2.0$10.0$135.66source 2026-10-21 no 2nd source
OpenAIOpenAI: GPT-6.1 Sol Pro$2.0$10.0$135.66source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6.1 Sol$2.0$10.0$135.66source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Sonnet 5.5$2.0$10.0$135.66source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6 Sol Pro$2.0$10.0$135.66source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6 Sol$2.0$10.0$135.66source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Sonnet 5$2.0$10.0$135.66source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Opus 5.5$4.0$20.0$271.32source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Opus 5$5.0$25.0$339.15source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Opus 4.8$5.0$25.0$339.15source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6 Astra$10.0$50.0$678.30source 2026-10-21 ✔ matches
OpenAIOpenAI: GPT-6 Astra Pro$10.0$50.0$678.30source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Fable 5.1$10.0$50.0$678.30source 2026-10-21 ✔ matches
AnthropicAnthropic: Claude Fable 5$10.0$50.0$678.30source 2026-10-21 ✔ matches

Try the interactive calculators with your own numbers →

📬 Weekly AI price digest

Every week: which AI API prices changed, and what it means for your app's bill. Free.

Prices from OpenRouter's public API, cross-checked with InferIndex. No spam.