Embedding costs across models: dimensions, $/1M tokens, workload totals.
| Model | Dims | Context | $/1M tokens | Per run | Per month | Vector storage (float32) |
|---|---|---|---|---|---|---|
| Gemini text-embedding-004cheapest | 768 | 2,048 | $0.00 | $0.00 | $0.00 | 2.9 MB |
| OpenAI text-embedding-3-small | 1,536 | 8,191 | $0.02 | $0.01 | $0.01 | 5.9 MB |
| Voyage voyage-3 | 1,024 | 32,000 | $0.06 | $0.03 | $0.03 | 3.9 MB |
| Cohere embed-v4 | 1,536 | 128,000 | $0.11 | $0.06 | $0.06 | 5.9 MB |
| Cohere embed-v4 (1024-dim) | 1,024 | 128,000 | $0.11 | $0.06 | $0.06 | 3.9 MB |
| OpenAI text-embedding-3-large | 3,072 | 8,191 | $0.13 | $0.07 | $0.07 | 11.7 MB |
🧮 Prices checked 2026-08 (deprecated ada-002 removed); embedding input is cheap enough that most workloads cost cents — storage and retrieval usually dominate real RAG bills. The storage column estimates raw vector memory at float32 precision: dims × 4 bytes × documents (3072-dim vectors cost 4× the memory of 768-dim). Gemini text-embedding-004 is free within its quota.
The Embedding Price Calculator is based on the following formula:
Indexing cost = documents × tokens/doc ÷ 1,000,000 × P Monthly query cost = queries/day × tokens/query × 30 ÷ 1,000,000 × P Total first month = Indexing cost + Monthly query cost
Variables: documents = Number of texts to embed once (count) tokens/doc = Average tokens per document (tokens) queries/day = Search or retrieval queries per day tokens/query = Average tokens per query (tokens) P = Model price ($ per 1M tokens) dimensions = Embedding vector size (e.g. 1536); affects storage, not token price Indexing cost = One-time cost to embed the whole corpus ($) Monthly query cost = Recurring cost to embed daily queries ($)
Embeddings are billed only on input tokens, so cost is simply tokens ÷ 1,000,000 × price with no output component. The one-time corpus indexing is usually small next to recurring query traffic, and the price per million tokens is the main lever that separates providers on the same workload.
Worked example: Step 1: corpus = 50,000 documents × 400 tokens = 20,000,000 tokens. Step 2: Model A at $0.02 per 1M tokens → indexing = 20 × 0.02 = $0.40 one time. Step 3: traffic = 5,000 queries/day × 40 tokens = 200,000 tokens/day → × 30 = 6,000,000 tokens/month → 6 × 0.02 = $0.12/month. Step 4: Model B at $0.10 per 1M tokens → indexing = 20 × 0.10 = $2.00; queries = 6 × 0.10 = $0.60/month. Result: first-month total is $0.52 on Model A vs $2.60 on Model B — a 5× price gap passes straight through to the bill.
At $0.02 per million tokens, embedding a 100k-document corpus (at ~500 tokens each) costs about a dollar once. Recompute frequency and document size — not API price — drive real bills, which the monthly column makes visible.
3072-dim vectors cost 3x the vector-DB storage of 1024-dim ones. The dims column exists so you can weigh retrieval quality against infrastructure costs, not just API price.
text-embedding-3-small wins most retrieval tasks at 6.5x lower price than large; upgrade only when benchmarked recall on your data actually improves. Cohere embed-v4 truncates to 1024/512/256 dims at the same token price — smaller vectors and cheaper storage, identical bill.
Typical RAG spends more on generation tokens than embedding tokens by orders of magnitude. Optimize chunk sizes and retrieval counts before agonizing over embedding model choice.
More tools you might find useful
Estimate tokens and API cost for GPT, Claude, and Gemini prompts.
Rescue malformed LLM JSON — truncated, trailing commas, fences.
Paste JSON, get a typed Zod schema — AI output validation ready.
Rank every major model by your real monthly API bill.