Cost formula
RAG monthly cost = indexing cost (chunks × embed price) + query embed cost (queries × embed price) + generation cost (queries × (context input tokens + output tokens) priced per 1M tokens)
Calculator
Model indexing, retrieval context, and answer generation spend for retrieval-augmented apps—before you scale traffic.
RAG economics
$6.29/ month
First month with index: $6.33 · $0.000629 / query
Workload
Index once vs query forever
One-time index sits above the recurring monthly stack.
Monthly ongoing stack
Assumes retrieved context is billed as generation input. Updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Model the full cost of a retrieval-augmented generation pipeline: one-time indexing, ongoing embedding updates, retrieval queries, and generation at query time. RAG spend spans three billing surfaces—embeddings, vector storage (outside this tool), and LLM tokens—so isolating each helps you find the dominant cost driver.
RAG monthly cost = indexing cost (chunks × embed price) + query embed cost (queries × embed price) + generation cost (queries × (context input tokens + output tokens) priced per 1M tokens)
RAG systems hide cost in embedding re-indexing and fat context windows. Teams that only price the final LLM call miss indexing spikes during document uploads and the input-token premium from large retrieved chunks on every query.
No. This calculator covers embedding and LLM API costs only. Vector store, storage, and compute for Pinecone, pgvector, or similar are separate infrastructure line items.
CentsPerToken uses approximate list prices for planning. Verify embedding rates on your provider's pricing page—they differ from chat model token pricing.
Yes. Document embedding is often a one-time or infrequent cost; query embeddings recur on every user search and add up at monthly volume.
LLM or cross-encoder reranking adds another cost layer. Use the RAG rerank calculator to compare pipelines with and without reranking.