WiseCrewAI → Guides

Embedding Model Pricing Guide — Costs, Dimensions, and Provider Comparison

8 min readUpdated 2026-11-18

Embedding models convert text into vectors for search, RAG, and similarity tasks. This guide compares pricing across OpenAI, Cohere, Google, and open-source options — plus how dimensions and quality affect your bill.

What embedding models cost

Embedding models are dramatically cheaper than generation models because they only process input (no output tokens). OpenAI text-embedding-3-small costs $0.02/M tokens — at that price, embedding 1 million pages of text costs about $26. text-embedding-3-large is $0.13/M. Cohere Embed v3 is $0.10/M. Google's Gemini embedding is included free up to certain limits. Open-source models (BGE, E5, GTE) are free to run but require your own GPU infrastructure.

Dimensions vs quality vs cost

Embedding dimensions affect storage cost and retrieval quality. text-embedding-3-small produces 1536-dimensional vectors; text-embedding-3-large produces 3072 dimensions. Higher dimensions capture more semantic nuance but cost more to store and search. At Pinecone's pricing, storing 10M vectors at 1536 dimensions costs roughly $70/month; at 3072 dimensions, $140/month. For most applications, 1536 dimensions is sufficient. You can also use OpenAI's dimension reduction (e.g., 512 or 256) to cut storage costs 3–6× with modest quality loss.

One-time vs ongoing costs

Embedding generation is mostly a one-time cost — you embed your document corpus once and store the vectors. Ongoing costs come from: embedding new documents as they're added, embedding user queries at search time, and vector database hosting. For a RAG system with 100K documents and 10K queries/day, the monthly breakdown is typically: $2/month for query embeddings, $0 for corpus (already embedded), $30–$70/month for vector DB hosting. The vector database is the dominant ongoing cost, not the embedding API.

Provider comparison table

OpenAI text-embedding-3-small ($0.02/M): best price-to-quality ratio, 1536 dimensions, good for most use cases. OpenAI text-embedding-3-large ($0.13/M): highest quality for English, 3072 dimensions. Cohere Embed v3 ($0.10/M): best for multilingual, 1024 dimensions, includes both search and classification variants. Mistral Embed ($0.10/M): competitive quality, 1024 dimensions. Google Gemini embedding: free tier available, 768 dimensions. For most teams, text-embedding-3-small is the default choice — 6× cheaper than alternatives with competitive quality.

Self-hosting embeddings

Open-source embedding models (BGE-large, E5-mistral, GTE-Qwen2) match or exceed OpenAI quality on benchmarks. Running them requires a GPU: a single A10G ($0.60/hour) can embed roughly 500 documents per second. At high volume (>50M tokens/day), self-hosting is cheaper than API. At lower volume, the API is cheaper when you factor in infrastructure management time. A middle ground: use a managed inference service like Hugging Face Inference Endpoints — you get open-source model quality at roughly $0.05/M tokens.

Related calculators

rag cost calculator →ai token calculator →embeddings similarity →

Related guides

rag vs long contextfine tuning vs rag costwhat is a token

Frequently Asked Questions

Which embedding model should I start with?

Start with OpenAI text-embedding-3-small. It's the cheapest at $0.02/M, has excellent quality for English, and is the easiest to integrate. Only upgrade to text-embedding-3-large if retrieval quality is measurably insufficient on your eval set. For multilingual workloads, consider Cohere Embed v3 — it's specifically designed for cross-language search.

How much does it cost to embed my entire knowledge base?

Use this formula: (total words ÷ 0.75) × (price per M tokens ÷ 1,000,000). For 100,000 documents averaging 1,000 words each: 133M tokens × $0.02/M = $2.66 total with text-embedding-3-small. It's a one-time cost — you only re-embed when documents change. Even 10 million documents cost under $300 to embed.

What is the difference between semantic search and keyword search?

Keyword search (BM25, Elasticsearch) matches exact words — "car repair" won't find "automobile maintenance." Semantic search (embeddings + vector DB) matches meaning — "car repair" will find "automobile maintenance" because the vectors are similar. Best practice: use hybrid search (both) with a reranker. Hybrid catches both exact-match queries and semantic queries. Most production RAG systems in 2026 use hybrid search.

How do I choose between embedding dimension sizes?

Higher dimensions capture more semantic nuance but cost more to store and search. OpenAI text-embedding-3-small supports dimension reduction: 1536 (default), 1024, 512, or 256 dimensions. Test on your eval set: for most applications, 512 dimensions retains 95%+ of retrieval quality while cutting vector storage cost by 67%. Only use full 1536 or 3072 dimensions if your retrieval eval shows meaningful quality differences at lower dimensions.

Which vector database should I use?

Managed (easiest): Pinecone ($70+/month), Weaviate Cloud ($25+/month), Qdrant Cloud ($25+/month). Self-hosted (cheapest at scale): Qdrant, Milvus, Chroma. For <100K documents: Chroma (runs locally, free) or pgvector (extends your existing PostgreSQL). For >1M documents: Pinecone or Qdrant for performance. For prototyping: Chroma in-memory. The database choice matters less than chunking strategy for retrieval quality.

How do embedding costs compare to LLM inference costs?

Embedding is 100–1,000× cheaper per token than LLM inference. text-embedding-3-small ($0.02/M) vs Claude Sonnet 5 ($3/M) = 150× cheaper. This means embedding costs are almost always negligible in a RAG system's total cost. The dominant costs are: LLM inference (70–80% of total), vector database hosting (15–25%), and embedding API (<5%). Optimize LLM inference first; embedding cost optimization has minimal impact.

Can I switch embedding models without re-embedding everything?

No — different models produce incompatible vector spaces. Switching from text-embedding-3-small to Cohere Embed v3 requires re-embedding your entire corpus. This is why model choice matters upfront, though the re-embedding cost is usually low (under $5 for 100K documents). To minimize switching risk, start with OpenAI text-embedding-3-small (most popular, well-tested) and only switch if retrieval quality is measurably insufficient for your use case.

What is a reranker and do I need one?

A reranker is a cross-encoder model that re-scores retrieved chunks by jointly encoding the query and each chunk. It is more accurate than embedding similarity alone but slower (50–200ms per query). Use a reranker when: retrieval quality matters significantly (medical, legal), you retrieve 20+ chunks and need to narrow to the best 5, or your embedding model's recall is good but precision is poor. Cohere Rerank ($1/1K queries) and open-source BGE-reranker are popular options.

Guide updated 2026-11-18. Pricing data verified weekly. See methodology · sources.