100M-Token RAG Embedding & Reranker Cost Calculator
Compare self-hosted BGE-M3 & Nomic v1.5 document ingestion plus BGE-Reranker-v2-M3 on live T4/L4/4090 GPUs against OpenAI, Cohere, and Voyage APIs.
Affiliate disclosure: We may earn commission when you sign up or buy through links on this page. Price comparisons and calculator math remain deterministic regardless of partner payouts. Confirm current pricing and terms on the merchant page. How we make money.
Corpus Ingestion & Rerank Volume Inputs
Total Ingestion + Rerank Cost Breakdown
Provider Comparison: 100M-Token Ingestion + Reranking
| Stack / Provider | Embedding Rate | Reranking Basis | Total Cost |
|---|---|---|---|
| Self-Hosted GPU (BGE-M3 / Nomic + Reranker-v2) | 1.14h GPU compute | 1.00h GPU compute | $0.54 |
| OpenAI text-embedding-3-small + Rerank API | $0.02 / 1M tok | $0.20 / 1k pairs | $102.00 |
| Voyage-3 + Voyage Rerank-2 API | $0.06 / 1M tok | $0.125 / 1k pairs | $68.50 |
| Cohere Embed v3 + Rerank 3.5 API | $0.10 / 1M tok | $0.20 / 1k pairs | $110.00 |
| OpenAI text-embedding-3-large + Rerank API | $0.13 / 1M tok | $0.20 / 1k pairs | $113.00 |
Editorial Vector Index & Ingestion Infrastructure Guide
After batch-embedding your corpus on an ephemeral T4 or L4 GPU worker, keep the resulting HNSW vector index on a predictable flat-rate NVMe VPS instead of paying per-pod managed vector DB markups.
Methodology: 100M-Token RAG Embedding & Cross-Encoder Reranking Math
Production Retrieval-Augmented Generation (RAG) pipelines have two distinct compute phases that API pricing pages rarely model together: bulk dense vector embedding during corpus indexing (plus incremental re-indexing when chunking strategies change), and cross-encoder reranking on every live user query to filter top-50 vector hits down to the highest-precision top-5 context chunks.
1. Throughput & Batch Sizing from Hardware Benchmark Receipts
Throughput defaults come directly from the Priceory Hardware Benchmark Lab (/data) internal SHA-256 receipt on 512-token documents in FP16 precision with a 15% end-to-end tokenization and network I/O buffer:
- BAAI/bge-m3 (Multilingual Dense + Sparse, 568M params): ~28000 tokens/sec on L4 24GB (~3.4 GB peak VRAM at batch 64). Embeds 100 million tokens in just over 1.1 GPU hours.
- nomic-ai/nomic-embed-text-v1.5 (Matryoshka 137M params): ~64000 tokens/sec on L4 24GB (~2.2 GB peak VRAM at batch 128) for ultra-fast English/code backfills.
- BAAI/bge-reranker-v2-m3 (Cross-Encoder): ~160 query-document pairs/sec on L4 24GB (~3.9 GB peak VRAM at batch 64). Scoring 500,000 pairs (50,000 searches × 10 candidates) takes ~1.0 GPU hour vs $100.00 on $2/1k-search managed rerank APIs.
2. Live SQLite GPU Rates vs Commercial Embedding APIs
Self-hosted GPU presets join live hourly floor prices from Priceory's SQLite database: T4 16GB ($0.22/hr via Vast.ai), L4 24GB ($0.25/hr via Vast.ai), and RTX 4090 24GB ($0.16/hr via SaladCloud). Once chunks are embedded and retrieved, model downstream prompt-caching savings for long RAG system contexts in our Long-Context RAG Prompt-Cache Calculator or review hardware verification methodology in the Hardware Benchmark Lab.
3. Worked 100M-Token Backfill & Re-Indexing Break-Even
A typical enterprise engineering knowledge base—spanning internal RFCs, support tickets, API docs, and repository markdown—reaches 100 million tokens quickly, and teams routinely re-embed the entire corpus two to four times per quarter when tuning chunk overlap or migrating vector dimensions. On OpenAI text-embedding-3-large ($0.13 per 1M tokens) paired with a $2.00 per 1,000-search managed reranker across 50,000 monthly searches, one index build plus one month of reranking costs $113.00 ($13.00 embedding + $100.00 reranking).
Running BAAI/bge-m3 and BAAI/bge-reranker-v2-m3 in FP16 via Text Embeddings Inference (TEI) or vLLM on an ephemeral L4 24GB worker completes the entire 100M-token backfill in ~1.15 hours and scores 500,000 query-document pairs in ~1.0 hour—under $2.00 of total GPU rental while keeping sensitive proprietary documents inside your own VPC with zero per-query external API latency.
Frequently Asked Questions
How much does it cost to embed 100 million tokens with BGE-M3 on a cloud GPU vs OpenAI or Cohere?
At ~28,000 FP16 tokens/sec on an NVIDIA L4 24GB GPU (including a 15% tokenization and I/O buffer), embedding 100 million tokens takes just over 1.1 GPU hours—costing roughly $0.50 on a sub-$0.45/hr L4 or ~$0.35 on a $0.22/hr T4, compared with $13.00 on OpenAI text-embedding-3-large or $10.00 on Cohere Embed v3.
Why does cross-encoder reranking often cost more than document embedding on managed APIs?
Corpus embedding runs once during document ingestion, whereas cross-encoder reranking runs on every live user search. Reranking 50,000 user queries across 10 candidate chunks (500,000 query-document pairs) costs $100.00 at $2.00 per 1,000 searches on managed rerank APIs, but takes ~1 GPU hour on BGE-Reranker-v2-M3.
Does BGE-M3 or Nomic Embed v1.5 require an 80GB A100 GPU?
No. Both BAAI/bge-m3 (~3.4 GB peak VRAM at batch 64) and nomic-embed-text-v1.5 (~2.2 GB peak VRAM at batch 128) fit comfortably inside entry 16GB T4 or 24GB L4 GPUs alongside BGE-Reranker-v2-M3 (~3.9 GB VRAM).
Where should I store 100M-token vector indexes to avoid managed vector DB cliffs?
100 million tokens split into 512-token chunks yields ~195,000 vectors. At 1024 dimensions in half-precision (float16 / scalar int8), the entire HNSW index occupies under 1.5 GB of RAM—easily hosted on pgvector or Qdrant inside an 8GB–16GB NVMe KVM VPS.