Self-Hosted Embedding Models vs API: Cost Break-Even Analysis (November 2026)
Self-hosting pays when the API bill passes the cost of keeping a GPU on all month. Put in your own GPU quote and measured throughput to see where that line falls for the API you use now.
Break-Even Calculator
Enter your own GPU quote and the throughput you measure. The defaults ($1.50 an hour, 8,000 tokens a second) are example inputs, not a provider price or a benchmark. GPUs are counted as running all month (720 hours).
At this volume the API is cheaper by $430/month. One always-on GPU breaks even with text-embedding-3-large at 8.3B tokens/month with these inputs.
The Math: How We Calculate Self-Hosted Cost
The example inputs below are $1.50 a GPU-hour and 8,000 tokens a second. Neither is a published figure: BAAI's model card gives no throughput, and GPU rates vary by provider, region and commitment. The cost math:
A GPU kept on all month is a fixed cost: the $1,080 is the bill whether it embeds one token or 20.7 billion. Self-hosting wins once your API bill passes that figure. Against text-embedding-3-large that happens at about 8.3B tokens a month, inside one GPU's capacity. Against text-embedding-3-small ($0.02/M) it never happens at these inputs, because even a fully used GPU costs $0.052 per million tokens, more than the API. A cheaper GPU or a higher measured throughput moves both answers, which is why the calculator takes them as inputs.
Hidden Costs of Self-Hosting (Be Honest About These)
GPU provisioning, monitoring, autoscaling and incident response all take engineering time, most of it early on. Price it at your own team's cost: it is usually the largest line the GPU bill leaves out.
On AWS a Spot Instance gets a two-minute warning before it is interrupted. A pipeline on spot capacity needs checkpointing, an on-demand fallback, or reserved capacity.
When a better open model is released you have to benchmark it on your own data, decide whether to switch, re-embed the whole corpus and check retrieval quality again. Vectors from two models cannot be mixed in one index.
The throughput you get depends on batch size, precision, input length and serving stack. Measure it under your real load before you trust a break-even figure, including this page's.
Containerising, version-pinning, health checks, rolling updates and memory management all add infrastructure work that an API does not ask of you.
Open-Source Embedding Models to Self-Host
| Model | Org | Context | Dims | License | Notes |
|---|---|---|---|---|---|
| BGE-M3 | BAAI | 8,192 | 1024 | MIT | 100+ languages; dense, sparse and multi-vector retrieval |
| Nomic-Embed-Text-v1.5 | Nomic AI | 8,192 | 768 | Apache 2.0 | Matryoshka sizes 768 down to 64 |
| NV-Embed-v2 | NVIDIA | 32,768 | 4096 | CC-BY-NC-4.0 | Card says not for commercial use |
| all-MiniLM-L6-v2 | sentence-transformers | 256 | 384 | Apache 2.0 | Small model; truncates input past 256 word pieces |
| multilingual-e5-large | Microsoft | 512 | 1024 | MIT | Multilingual; truncates past 512 tokens |