Inference is where AI spend settles. Training has an end date, a serving endpoint bills every hour it is up, and most teams still cannot say what one prediction or one million tokens costs them, or whether a hosted API would be cheaper than their own GPUs.
This calculator answers both with inputs you can check: traffic, measured throughput, a target utilisation and a GPU price. In its worked example, a 70B-class model on H100s, the hosted API stays cheaper until volume grows about 2.7 times.
That is one illustrative case rather than a benchmark, and the inputs that decide your answer are yours.
Volume is the cleanest argument for running your own serving, but it is not the only one. Three others belong in the decision, each written down separately so that none of them is quietly priced at zero.
Where contracts, regulation or residency rules prevent prompts and outputs being processed by a third party, the API price is irrelevant. The question becomes whether a provider can run inside your cloud tenancy or whether you serve the model yourself. The artefact is a written data-handling requirement for each use case.
Fine-tuned, distilled or proprietary models have no list price per million tokens to compare against. Their cost is your serving cost, and the calculator becomes a sizing tool rather than a comparison. The artefact is a throughput benchmark of that exact model on your chosen engine.
Dedicated capacity lets you hold a strict time-to-first-token target and a predictable monthly bill, while API prices and rate limits change at a provider's discretion. That control has a value worth naming. The artefact is the SLO the business has signed and the price exposure it is willing to carry.
Replay real prompts on your model and engine and record total tokens per second per GPU where the SLO still holds. Do not borrow a vendor's number.
Pull a month of traffic and calculate both. The ratio between them tells you how much autoscaling can save.
Divide monthly serving cost by monthly tokens and review it with each model owner every month, alongside the API price it competes with.
Fixed platform cost divided by the gap between the API price and your unit cost gives the line. Plan the move when traffic is on track to cross it.
They describe an illustrative 70B-class model in FP8 on H100s at 500,000 requests a day, with a $3.00 GPU-hour and a $0.90 per 1M token API price. They show how the method works. GPU and API prices change often, so use current quotes for your own run.
The blended rate you actually pay across on-demand, committed and spot capacity. Specialist clouds listed H100s at roughly $2 to $4.50 per GPU-hour in October 2026, and the Silicon Data rental index stood at $2.82 on 10 October. Hyperscaler on-demand rates are higher, and commitments bring them down.
Yes. Replace tokens with requests, and measure requests per second per replica instead of tokens per second per GPU. The same peak, utilisation, autoscaling and break-even logic applies, and many classical models will run on CPUs.
Because bursts arrive faster than new capacity can start, and latency rises sharply as a GPU nears saturation. A target below full utilisation keeps the SLO intact during spikes. Set yours from load tests, not from the cost you would like to see.
Not on cost alone. Data residency, fine-tuned models, latency guarantees and exposure to price changes can all justify self-hosting below break-even. Write those reasons down next to the arithmetic so the trade-off is explicit.
Autoscaling, if your fleet is static, because it changes the bill without touching the model. After that, quantisation, batching and prefix caching are usually low effort. Each should be validated against quality on your golden set before it reaches production.
Monthly for cost per 1M tokens and quarterly for break-even. Rerun it straight away after any change to model, engine, hardware or traffic mix, since each one moves throughput per GPU.
Drop your details and we'll send MLOps and Model Serving Cost Calculator straight to your inbox - no spam, unsubscribe anytime.
Bring a month of request logs and the model you serve or plan to serve. We will benchmark it on your traffic, complete the cost model with measured numbers and show which levers pay back first. SECTION 7 - FAQ - 5 to 8 questions
Book a serving cost review