RAG Query Cost Calculator
Estimate the cost of a single RAG query.
Results update automatically as you type.
Result
$0.00763 per query
~$457.55/month at 2,000 queries/day
- Query embedding
- $8.00e-7
- Retrieved context
- 2,560 tokens
- Generation cost
- $0.00762
- Per query
- $0.00763
- Per month
- $457.55
Estimate the per-query cost of a retrieval-augmented answer: the query embedding plus generation over the retrieved chunks. Set top-k and chunk size to see cost per query and per month.
How this is calculated
This calculator uses the rag formulas described in our methodology. All figures are estimates for planning; verify current pricing with each provider before relying on them.
Worked example (defaults)
With the default inputs above, here is the result:
Result
$0.00763 per query
~$457.55/month at 2,000 queries/day
- Query embedding
- $8.00e-7
- Retrieved context
- 2,560 tokens
- Generation cost
- $0.00762
- Per query
- $0.00763
- Per month
- $457.55
Frequently asked questions
What makes a RAG query expensive?+
Retrieving many large chunks (high top-k x chunk size) inflates input tokens on every query. Retrieve fewer, tighter chunks and cache the system prompt to cut cost.