Embedding and Vector DB Cost Calculator

Embedding APIs look cheap on paper, yet vector database RAM scales fast once you store millions of 3072-dimension float32 vectors. Dial in your chunk count, embedding model, and quantization level below to compare four production vector stores.

Interactive calculator

Vector StoreIndex RAMStorage + Compute / MoEmbed API / MoTotal / Mo

How to cut vector database RAM by 4x without losing recall

  1. Enable SQ8 scalar quantization before scaling RAM. Int8 scalar quantization shrinks HNSW memory by 4x while retaining 98%+ top-10 recall on modern 1024d to 1536d embeddings.
  2. Use Matryoshka dimension truncation on OpenAI large. OpenAI text-embedding-3-large supports slicing 3072d down to 1024d, cutting vector RAM by 3x with minimal accuracy drop.
  3. Move cold namespaces to object-storage engines. If your corpus exceeds 5M vectors with low QPS, SSD and object-storage engines like Turbopuffer cost a fraction of always-on HNSW RAM.

Common questions

How much RAM do 1 million 1536-dimension FP32 vectors need?

Raw float32 storage takes 6.14 GB, and an HNSW graph adds roughly 1.5x overhead, putting total RAM near 8.6 GB to 9.2 GB before replicas.

Is pgvector cheaper than Pinecone or Qdrant?

Under 1M vectors, pgvector on an existing Postgres instance is often cheapest because you avoid a second managed service. Above 5M vectors, dedicated engines scale more cleanly.

Does embedding API cost or vector DB hosting dominate RAG bills?

For static corpora, vector DB hosting dominates after month 2. Embedding API bills only dominate when you re-index millions of documents weekly.

All calculations run 100% locally in your browser with zero external API calls. Pricing and rate limits reflect published 2026 provider rate cards.