Independent resource. Not affiliated with any provider. Always verify pricing on provider sites.
$embeddingcost

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.

API prices verified November 2026 • GPU rate and throughput are your inputs

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).

API cost/month
$650
$0.13/M tokens
Self-hosted/month
$1,080
1 GPU x $1,080; $0.052/M when fully used
Break-even volume
8.3B
tokens/month

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:

# Example throughput (measure your own)
tps = 8,000 tokens/second
tokens_per_hour = 8,000 x 3,600 = 28.8M tokens/hr
# Cost at an example $1.50/hr
cost_per_M_tokens = $1.50 / 28.8 = $0.052/M
# vs OpenAI small
openai_rate = $0.020/M tokens
# Fixed monthly cost of keeping GPU on
fixed = $1.50/hr x 720 hrs = $1,080/month
# One GPU's monthly capacity
capacity = 28.8M x 720 = 20.7B tokens/month
# Break-even vs text-embedding-3-large ($0.13/M)
$1,080 / $0.13 = 8.3B tokens/month

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)

DevOps time

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.

GPU availability and spot interruption

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.

Model evaluation overhead

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.

Throughput engineering

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.

Deployment complexity

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

ModelOrgContextDimsLicenseNotes
BGE-M3BAAI8,1921024MIT100+ languages; dense, sparse and multi-vector retrieval
Nomic-Embed-Text-v1.5Nomic AI8,192768Apache 2.0Matryoshka sizes 768 down to 64
NV-Embed-v2NVIDIA32,7684096CC-BY-NC-4.0Card says not for commercial use
all-MiniLM-L6-v2sentence-transformers256384Apache 2.0Small model; truncates input past 256 word pieces
multilingual-e5-largeMicrosoft5121024MITMultilingual; truncates past 512 tokens

5-Question Decision Framework: API or Self-Host?

Is your monthly API bill above the cost of keeping a GPU on all month?
- If no - stay on the API- If yes - self-hosting is worth evaluating
Do you have a dedicated ML infrastructure engineer?
- If no - self-hosting risk is high- If yes - proceed with evaluation
Does your use case require data residency or air-gap?
- If no - API is fine- If yes - self-hosting required
Have you tried the cheaper API levers first (Batch API, a smaller model, fewer dimensions)?
- If no - try those before migrating- If yes - compare the result with the GPU bill
Can you tolerate occasional GPU interruption?
- If no - on-demand or reserved GPU required- If yes - spot instances reduce cost significantly

Frequently Asked Questions

At what volume does self-hosting become cheaper than the API?
It depends on the API. With example inputs of a $1.50/hour GPU at 8,000 tokens/second, one GPU kept on all month costs $1,080. That breaks even with OpenAI text-embedding-3-large ($0.13/M) at about 8.3 billion tokens a month, and never with text-embedding-3-small ($0.02/M), because a fully used GPU costs $0.052/M at those inputs.
What is the best open-source embedding model to self-host?
BGE-M3 from BAAI is the model this page prices: its model card lists 100+ languages, inputs up to 8,192 tokens, 1,024-dimension vectors, dense, sparse and multi-vector retrieval, and an MIT licence. Nomic-Embed-Text-v1.5 is an Apache 2.0 alternative. Test retrieval on your own data before you choose.
What are the hidden costs of self-hosting embedding models?
Engineering time for provisioning, monitoring and incidents; handling spot interruptions (two minutes' warning on AWS); re-embedding the corpus when you change model; tuning throughput; and deployment work. None of it is in the GPU bill.
How fast is BGE-M3 on an A100?
BAAI publishes no throughput figure, and it varies with batch size, precision and input length, so measure it. This page's example input is 8,000 tokens/second, which at $1.50/hour is $0.052 per million tokens when the GPU is fully used.
Full calculator
Compare self-hosted vs all API providers
Compare all models
Self-hosted BGE-M3 vs commercial APIs
Optimization tips
Reduce API costs before self-hosting
Disclaimer: The GPU rate and throughput on this page are example inputs, not quotes or benchmarks. API prices are from each provider's pricing page, verified November 2026. Get a GPU quote and measure throughput before making infrastructure decisions.

Updated November 2026