Applications
RAG monthly cost estimator
Monthly cost of a retrieval-augmented answer flow: query embedding, retrieved chunks in the prompt, and the generated answer.
With queries per month 50,000, chunks per query 5, tokens per chunk 400 tokens, system prompt tokens 600 tokens, question tokens 60 tokens, answer tokens 300 tokens, generation model claude-sonnet-5-5, embedding model text-embedding-3-small, the monthly cost is $359.06 at list prices read 2026-11-01.
Monthly cost
Read from vendor pricing pages on 2026-11-01. Arithmetic on list prices, not advice or a quote.
Saving and exports come with Pro, $9 a month. What is in it. The calculator itself is free.
How it works
In a RAG flow the retrieved chunks are the bulk of the input tokens, and they differ per query so they cannot be cached. The system prompt can. Embedding the question is a rounding error next to generation.
The formula
prompt = system + question + chunks * tokens_per_chunk; generation = llm-api-cost(prompt, answer) with the system share cached; embedding = question_tokens * embed_price
Worked example
Inputs
- Queries per month
- 50,000
- Chunks per query
- 5
- Tokens per chunk
- 400 tokens
- System prompt tokens
- 600 tokens
- Question tokens
- 60 tokens
- Answer tokens
- 300 tokens
- Generation model
- claude-sonnet-5-5
- Embedding model
- text-embedding-3-small
- Cache the system prompt
- Yes
Result
- Monthly cost
- $359.06
- Cost per query
- $0.00718
- Generation cost
- $359.00
- Embedding cost
- $0.0600
- Prompt tokens per query
- 2,660 tokens
Sources
- developers.openai.com/api/docs/pricing (read 2026-11-01)
- platform.claude.com/docs/en/about-claude/pricing (read 2026-11-01)
- ai.google.dev/gemini-api/docs/pricing (read 2026-11-01)
Prices read from each vendor's own pricing page on 2026-11-01; the page may have changed since. This is arithmetic on published list prices, not advice or a quote. Check the vendor's page before committing a budget.
Questions
Where is the vector database?
Related tools
Chatbot monthly cost estimator
Monthly cost of a chat assistant where every turn re-sends the conversation so far.
AI agent run cost estimator
Cost of an agent loop where each step re-reads the growing transcript: steps, tool results and output per step.
AI cost per user calculator
AI cost per active user a month, gross margin at your price, and the break-even price for an AI feature.