Skip to main content
Learn/Book 1 · Chapter 10/RAG Cost Calculator

Free Interactive Tool

RAG Cost Calculator

At 50,000 daily queries, a paisa and a half per query is ₹750 a day — ₹22,500 a month. Enter your catalog size and volume. See the actual number before it surprises you on the cloud bill.

Interactive Tool · Chapter 10

API Cost Calculator

Real prices from evaluation/evaluate.py: embed $0.02/M · LLM input $0.15/M · output $0.60/M.

55,000
110,000

Assumptions

Chunks per product5
Avg tokens per chunk60
Prompt overhead300 tokens
Avg output35 tokens
Top-K retrieved3 chunks

Ingestion (one-time)

Total chunks250
Embed tokens15,000
Ingestion cost
$3.00e-4₹0.025

Per-query inference

Embed$2.00e-7
LLM input (490 tokens)$7.35e-5
LLM output (35 tokens)$2.10e-5
Per query
$9.47e-5₹0.008

Daily

$9.47e-4

₹0.080

Monthly (30 days)

$0.028

₹2.39

At these volumes, the system costs less than ₹2.39 per month — well within hobby or beta range.
Share this tool:XLinkedIn

Book 1 · Chapter 10 — The Production Cost Model

Understand where every rupee goes in your RAG stack

Chapter 10 of The AI Engineer walks through the full cost model behind this calculator — token math, amortisation across daily queries, and how to forecast costs before you scale.

Read Chapter 10 — Free →