Cost formula
Ingestion cost = (pages × tokens per page ÷ chunks × embed price per token) + (optional LLM extract: pages × extract tokens / 1M × LLM price); Monthly refresh = new pages × same unit costs
Calculator
Plan one-time (or re-index) cost for a document corpus: estimate tokens from pages, chunk with overlap for embeddings, and optionally price an LLM extract / OCR cleanup pass.
Document ingestion
$0.0565total
500 docs · 6,000 pages · $0.000113 / doc
Corpus
Stages
API-priced stages only; vector host storage is outside this quote.
Pair with the RAG calculator for ongoing query cost after the index is stored.
Tokens-per-page is a planning estimate (layout, language, and OCR vary widely). Updated 2026-07-31. Approximate static list prices for planning only. Always verify against each provider’s official pricing page before production budgeting.
Guide
Estimate cost to ingest PDF and document corpora: page-to-token conversion, chunking, embedding, and optional LLM extraction passes. One-time ingestion spikes are often omitted from RAG budgets but dominate launch-month spend. Plan bulk upload events separately from steady-state query cost.
Ingestion cost = (pages × tokens per page ÷ chunks × embed price per token) + (optional LLM extract: pages × extract tokens / 1M × LLM price); Monthly refresh = new pages × same unit costs
Document ingestion is a batch token event that can exceed a month of query cost in a single upload weekend. Teams that only budget query-time LLM calls miss the embedding bill for indexing thousands of pages.
No. This covers parsing, embedding, and optional LLM extraction API costs. Vector store and object storage are separate.
Varies widely by document type. Use the token counter on representative pages for better accuracy than generic defaults.
CentsPerToken uses approximate list prices for planning. Verify embedding rates on your provider's pricing page.
Yes. New embedding models require re-indexing all chunks—a significant one-time cost to model before migrating.