June 2026 · Embedding API pricing

Embedding API Cost Calculator

Compare OpenAI text-embedding-3-small, Cohere, Voyage AI, and Jina pricing. Enter token volume → see exact monthly cost. Free, no signup.

Advertisement
Key Takeaways

🔢 Embedding API Cost Calculator

Select model · Enter token volume · Results update live

Estimated monthly cost
$0
per month
Price per 1M tokens
Avg tokens per document
Annual estimate

Embedding API Pricing 2026

Cost per million tokens, June 2026.

ModelPrice / 1M tokensDimensionsBest for
Jina Embeddings v2CHEAPEST$0.018768High-volume, cost-sensitive
OpenAI text-3-small$0.0201536Best quality/cost for most RAG
Cohere embed-v3$0.1001024Multilingual, enterprise
OpenAI ada-002$0.1001536Legacy, being phased out
Voyage AI voyage-2$0.1201024Code search, technical docs
OpenAI text-3-large$0.1303072Max quality, high-precision RAG
Advertisement

How to Use This Calculator

Calculate your embedding API cost for RAG systems, semantic search, and document indexing.

  1. 1
    Select your embedding modelOpenAI text-embedding-3-small at $0.020/1M tokens is the best value for most RAG applications — excellent quality, 1536 dimensions with Matryoshka support (can be reduced to 256–512 dims). Jina Embeddings v2 at $0.018/1M is slightly cheaper. Use Cohere embed-v3 ($0.100/1M) for multilingual applications spanning 100+ languages. OpenAI text-embedding-3-large ($0.130/1M) offers the highest quality but is 6.5× the cost of text-3-small for marginal retrieval improvements in most datasets.
  2. 2
    Enter document countCount the total number of text chunks, not raw documents. A 30-page PDF split into 200-word chunks produces roughly 75 chunks. A customer support knowledge base with 500 articles averaging 800 words each, split into 300-word chunks, produces ~1,300 chunks. A product catalog with 50,000 SKUs and 100-word descriptions = 50,000 documents (1 chunk each). This is your total number of embedding API calls for initial indexing.
  3. 3
    Set average tokens per documentAverage tokens per chunk is the key cost driver. A 200-word text chunk ≈ 267 tokens. A 500-word article ≈ 667 tokens. A code function ≈ 200–800 tokens depending on length. Use 200–400 tokens as a typical chunk size — this balances retrieval precision (shorter chunks = more precise matches) against cost (fewer tokens per chunk = lower embedding cost but more chunks total).
  4. 4
    Read the total cost and annual estimateThe result shows the total cost to embed your entire dataset once (initial indexing) based on your document count and average token count. The annual estimate assumes you re-embed your dataset monthly (for updates and additions). For static datasets that rarely change, the annual cost is much lower — divide the one-time cost by your expected re-indexing frequency.
📌 Real example

A SaaS company building a RAG system over 10,000 support articles, each split into 5 chunks of 300 tokens = 50,000 total chunks × 300 tokens = 15M tokens. OpenAI text-3-small: 15M × $0.020/1M = $0.30 for initial indexing. Monthly re-indexing (1,000 new articles/month = 5,000 chunks = 1.5M tokens): $0.03/month. Total annual embedding cost: $0.30 + $0.36 = $0.66/year. Embedding API costs are often the smallest line item in a RAG budget.

Pricing Methodology

How we source embedding API pricing.

Sources: OpenAI embedding prices from OpenAI's API pricing page. Jina Embeddings pricing from Jina AI's pricing documentation. Cohere pricing from Cohere's API pricing page. Voyage AI pricing from their pricing page. All are pay-as-you-go, per-million-token rates with no minimum commitment.

Token counting methodology: Embedding APIs count tokens the same way as LLM APIs — approximately 1 token per 4 characters or 0.75 words in English. Non-English text and code may use more tokens per word. The calculator uses your entered "average tokens per document" directly — we recommend running a sample of your actual documents through the provider's tokenizer to get accurate estimates.

What is excluded: Vector database storage costs for the resulting embeddings (see Vector Database Cost Calculator), the cost of re-embedding documents when you switch providers, and query embedding costs (typically negligible — query embeddings are single-document calls, usually under 100 tokens, at the same per-token rate).

Self-hosting note: Sentence-transformers (open-source) models like all-MiniLM-L6-v2 (384 dims) can be self-hosted for near-zero API cost. Quality is lower than OpenAI text-3-small but acceptable for many use cases. On a $6/month Hetzner VPS, embedding throughput is approximately 1,000–2,000 documents per minute — adequate for most batch indexing workloads.

Frequently Asked Questions

What is the cheapest embedding API in 2026?+

Jina Embeddings v2 at $0.018/M tokens is the cheapest commercial embedding API. OpenAI text-embedding-3-small at $0.020/M is a close second with superior quality and ecosystem support. For self-hosted options, sentence-transformers on a $6/month VPS provides near-zero API cost — the trade-off is slightly lower retrieval quality and operational maintenance overhead.

What dimensions should I use for my embeddings?+

1536 dimensions (OpenAI text-3-small default) is the right choice for most RAG applications — it balances quality with storage cost. OpenAI's Matryoshka Representation Learning means you can truncate text-3-small vectors to 512 or 256 dimensions with less than 5% retrieval quality loss, cutting storage cost by 66–83%. Only use 3072-dimensional embeddings (text-3-large) for extremely precision-sensitive retrieval over large, noisy document sets.

How many tokens per document should I expect?+

Common chunk sizes: 100-word paragraph ≈ 133 tokens, 300-word article section ≈ 400 tokens, 1-page document ≈ 700 tokens, 10-page report ≈ 7,000 tokens. Most embedding models have an 8,191-token input limit — chunks longer than this must be split. Recommended chunk size: 200–500 tokens, with 50-token overlap between consecutive chunks for better context continuity in retrieval.

Should I use OpenAI embeddings or a self-hosted model?+

OpenAI text-3-small is almost always the right choice unless you're embedding millions of documents per day. The quality advantage over free models is meaningful (10–20% better retrieval accuracy on typical benchmarks), and at $0.020/1M tokens, the cost for most projects is under $1/month. Self-hosting makes sense at very high volumes (100M+ tokens/month = $2,000/month with OpenAI vs $20–50/month on a GPU server) or when your documents contain sensitive data that can't leave your infrastructure.

How does Matryoshka Representation Learning reduce embedding costs?+

Matryoshka embeddings (used by OpenAI text-3-small and text-3-large) are trained so that the first N dimensions of a vector contain the most important semantic information. This means you can truncate a 1536-dim vector to 512 dims and retain approximately 95% of retrieval quality. The benefit: each stored vector takes 66% less space in your vector database, and HNSW index sizes shrink proportionally, reducing both storage cost and query latency. You don't pay less for the API call (still billed per input token) — savings are in vector DB storage and query speed.

Do I need to re-embed documents when switching embedding models?+

Yes — embeddings from different models are not compatible. If you switch from OpenAI ada-002 to text-3-small, you must re-embed your entire document corpus and rebuild your vector index. For large datasets (millions of documents), this can take hours and incur significant API costs. This switching cost is a key reason to choose your embedding model carefully upfront. OpenAI text-3-small is a safe default — it's significantly better than ada-002 and unlikely to become obsolete soon.

Advertisement

Related Calculators