Embedding Cost Calculator

๐Ÿค– AI Tools

Embedding Cost Calculator

Estimate what it costs to embed your documents for RAG and semantic search โ€” across OpenAI, Voyage, Cohere, and Gemini models.

Advertisement
โš ๏ธ Pricing note: Rates below were verified against official provider pricing pages in July 2026. AI pricing changes frequently โ€” always confirm current rates on the provider's pricing page before committing to a budget.
๐Ÿงฌ
Embedding Cost Calculator

Enter your document count and average length, pick a model, and get the one-time indexing cost. Rates verified July 2026.

Your Corpus
Chunks count as documents if you chunk before embedding
โ‰ˆ tokens รท 1.33 โ€” a 500-token chunk is ~375 words
Model
Please enter the number of documents and an average words-per-document greater than zero.
One-Time Embedding Cost
$0
Standard Rate
โ€”
Batch Rate
โ€”
Total Tokens
โ€”
Tokens per Doc
โ€”
Cost per 1,000 Docs
โ€”
Annual (Monthly Re-index)
โ€”
Reminder: Embeddings bill input tokens only โ€” there are no output tokens. But query-time embedding (every user search embeds the query) and vector database storage are separate ongoing costs, and storage often exceeds the embedding bill at scale.
Advertisement

What Do Embeddings Cost?

Embedding models convert text into numeric vectors for semantic search, RAG pipelines, recommendations, and clustering โ€” and they're billed on input tokens only, at rates from $0.02 to $0.15 per million tokens as of July 2026. That makes embeddings dramatically cheaper than LLM calls: embedding a 100,000-document knowledge base costs a few dollars, while answering questions over it with a flagship LLM can cost that much per day. This calculator converts your corpus size into a concrete indexing budget across every major provider.

Current Embedding Pricing (July 2026)

  • OpenAI text-embedding-3-small: $0.02/M tokens (batch: $0.01) โ€” the default choice for most projects
  • OpenAI text-embedding-3-large: $0.13/M (batch: $0.065) โ€” higher-dimension precision
  • Voyage voyage-4-lite / 4 / 4-large: $0.02 / $0.06 / $0.12 per M (33% off via Files API)
  • Cohere embed-v4: $0.12/M โ€” multilingual strength, 128K-token context, no batch discount
  • Google gemini-embedding-001: $0.15/M (batch: $0.075) โ€” top MTEB multilingual scores
  • Jina jina-embeddings-v3: $0.02/M โ€” the budget alternative with solid benchmarks

How the Cost Is Calculated

Tokens per Document โ‰ˆ Words ร— 1.33
Total Tokens = Documents ร— Tokens per Document
Cost = (Total Tokens รท 1,000,000) ร— Price per 1M Tokens

English text averages roughly 1.33 tokens per word (equivalently, ~0.75 words per token) โ€” the rule of thumb this calculator uses, and the same conversion behind our tokens-to-words converter. If you chunk documents before embedding โ€” standard RAG practice, typically 300โ€“800 tokens per chunk โ€” count chunks as your documents here, since each chunk is a separate embedding call. Verify live rates on OpenAI's pricing page or your provider's equivalent before locking a budget.

How to Use This Calculator

Enter your document (or chunk) count and average words per document, pick a model, and you'll get the one-time indexing cost, total tokens, and cost per 1,000 documents. Tick the batch option if your indexing can run asynchronously โ€” OpenAI and Google halve the price, Voyage takes a third off. Tick monthly re-indexing to see the annual figure: re-embedding frequency, not the one-time cost, is what turns a $30 index into a $360/year line item.

Worked Example

A RAG pipeline splits 100,000 support articles into 400-word chunks (one chunk per article on average). That's 100,000 ร— 532 tokens = 53.2M tokens. On text-embedding-3-small: 53.2 ร— $0.02 = $1.06 โ€” effectively free. On gemini-embedding-001: $7.98. Even the premium tier barely registers, which is the real lesson: at typical corpus sizes, choose your embedding model on retrieval quality, not price. The budget conversation only starts at billions of tokens or high-frequency re-indexing.

The Costs This Calculator Doesn't Show

  • Query-time embedding: every user search embeds the query text โ€” tiny per call, but it's a perpetual cost that scales with traffic
  • Vector storage: hosted vector databases commonly run $100โ€“300/month at the million-vector scale โ€” often 100ร— your embedding spend; higher-dimension models (3-large's 3072 dims) double or quadruple storage versus truncated alternatives
  • Re-embedding on model migration: switching providers means re-indexing everything โ€” vendor lock-in in embeddings is real, so choose deliberately
  • The LLM on top: in a RAG system, generation dwarfs embedding costs โ€” size that side with our LLM API cost calculator
๐Ÿ’ก Models supporting Matryoshka representation (OpenAI 3-series, Gemini) let you truncate vectors to 768 or 512 dimensions with minimal quality loss โ€” same embedding price, but 2โ€“4ร— cheaper storage. At scale, that toggle saves more than any model switch.

Planning Your Full AI Budget

Embeddings are the cheap layer of an AI stack. Pair this estimate with the LLM API cost calculator for generation, the image generation cost calculator if visuals are involved, and the response length estimator to cap output spend. Building AI into a paid product? Feed the per-customer total into the SaaS pricing calculator so the costs land inside your margin instead of underneath it.

Frequently Asked Questions

How much does it cost to embed 1 million documents?
At 400 words (~530 tokens) per document, 1M documents is roughly 530M tokens: about $10.60 on OpenAI text-embedding-3-small or voyage-4-lite ($0.02/M), $63.80 on voyage-4 ($0.06/M), and $79.50 on gemini-embedding-001 ($0.15/M) at July 2026 rates โ€” halve OpenAI and Google via batch.
Do embeddings charge for output tokens?
No โ€” embeddings bill input tokens only. You send text, receive a vector, and pay solely for the tokens in the text you sent. That's a key reason embeddings are 100โ€“1,000ร— cheaper than LLM generation over the same content.
What is the cheapest embedding model?
OpenAI text-embedding-3-small, Voyage voyage-4-lite, and Jina v3 all sit at $0.02 per million tokens โ€” with OpenAI dropping to $0.01 via its Batch API. At those rates a typical 100K-document corpus embeds for one to two dollars, so quality differences matter far more than price.
How do I convert words to tokens for embedding costs?
Multiply words by roughly 1.33 for English text โ€” a 400-word chunk is about 532 tokens. Code, non-English languages, and unusual formatting tokenize less efficiently, sometimes 1.5โ€“2 tokens per word, so add a buffer if your corpus isn't plain English prose.
Should I use text-embedding-3-small or 3-large?
Start with 3-small ($0.02/M): it's 6.5ร— cheaper and sufficient for most retrieval tasks. Upgrade to 3-large ($0.13/M) when retrieval precision measurably matters and you've confirmed the gap on your own test queries โ€” and note its 3072-dimension vectors also cost more to store.
Does chunking affect embedding cost?
The token total stays the same โ€” 10M tokens costs the same whether it's 10,000 large chunks or 40,000 small ones โ€” but chunk count drives your vector storage bill and retrieval behavior. Smaller chunks mean more vectors to store and search, which usually costs more than the embedding itself.
What ongoing costs come after the initial embedding?
Three: query-time embedding (every search embeds the query), vector database storage (often $100โ€“300/month per million vectors โ€” typically the dominant cost), and periodic re-embedding when documents change or you switch models. The one-time indexing cost is usually the smallest of the four.
Is there a free way to generate embeddings?
Yes โ€” open-weight models like BGE-M3 and voyage-4-nano are free to self-host, and Google's AI Studio offers a rate-limited free embedding tier. Self-hosting only wins economically at sustained high volume, since a dedicated GPU costs ~$1,000+/month even when idle.
Is my data private?
Yes. Every calculation on this page runs entirely inside your browser using JavaScript. Nothing you type is stored, logged, or sent to any server, and you can use the calculator offline once the page has loaded.
Advertisement
Scroll to Top