API
$45.00
per month
- Per 1M output tokens
- $22.50
- Model
- GPT-4o
One side is a variable bill that scales with every token; the other is a fixed bill you pay whether or not anyone calls it. Enter your own rental price and your own measured throughput to find the volume where the two cross.
Runs entirely in your browser — nothing you type leaves the page.
$45.00
per month
—
per month
Enter a rental price and a throughput to cost the self-host side.
Fill in the rental price and the measured throughput to see which side is cheaper.
Peak monthly cost: $180.00
An API bill is variable: zero requests cost zero dollars, and the bill grows in a straight line with tokens. A self-hosted deployment is fixed: the GPU is rented by the hour whether it answers one request or a million, so cost per token falls as utilization rises. There is no universally cheaper option — only a cheaper option at a given volume.
That asymmetry is the entire analysis. Below the crossover an API is cheaper because you pay only for what you use; above it, hardware wins because the marginal cost of one more token is nearly zero.
Two people can rent the same H100 at the same hourly price and get wildly different costs per token. The difference is utilization — the share of rented hours actually doing inference. A card busy 20% of the month costs five times more per token than one kept busy, because the bill is identical and only the denominator moved.
This is why self-hosting rarely wins for traffic with a daily peak. Renting for the peak means paying for an idle machine most of the night. Batch work — overnight re-indexing, dataset labelling, synthetic data — is the opposite: it runs flat out, so its utilization approaches 100%.
Before comparing, be honest about utilization. If the box exists for one internal tool that a dozen people use, it will sit idle for most of the month, and the cost per million tokens will look nothing like the number in the blog post that recommended self-hosting.
Throughput is the one input this calculator refuses to guess, because it varies by an order of magnitude between a stock single-stream setup and a properly batched engine. A 7B model can answer one chat stream at a few dozen tokens per second and serve hundreds in aggregate once requests are batched. Both numbers are true; they answer different questions.
Three things move it: the engine (vLLM, TensorRT-LLM and llama.cpp trade off differently), the batch size the workload can sustain, and the model itself — a sparse mixture-of-experts model decodes far faster than a dense model of the same total size. That is why the VRAM calculator reports a bandwidth ceiling and warns that real throughput lands 50–80% below it.
Run your actual model on your actual card at your actual prompt lengths, and note the aggregate output tokens per second at the concurrency you expect. A calculator fed a plausible-sounding benchmark produces a confident answer to somebody else’s question.
A word on quality: the API model and the open model are almost never the same model. A frontier model and a self-hosted 7B are not substitutes for every task, so price the gap deliberately instead of assuming the cheap option is good enough.
This tool is the hands-on companion to these stages of the free 11-stage track.
Pick a model and a card to see how many gigabytes it really takes to serve — weights, the KV cache your context length creates, and the runtime overhead nobody mentions. Every formula is printed on the page.
Turn a token count and a traffic guess into a real monthly bill. Set the prompt size, the answer size and how many requests you expect, and every priced model is compared side by side.