An API charges you for each token you use and nothing when idle. A GPU you rent or buy costs the same whether it's busy or not. That one difference decides most self-hosting questions: self-hosting only wins when you keep the hardware busy enough.
Step 1: price the always-on GPU
Start with the hourly price of the GPU you need, multiplied by the hours it runs. At an illustrative $2 an hour, one GPU running around the clock for 30 days costs $2 × 24 × 30 = $1,440 a month. A model that needs several GPUs multiplies that accordingly.
Step 2: find the break-even volume
Divide the monthly GPU cost by the API's price per token to see how many tokens the API would have to process to cost the same. If a comparable hosted model costs a blended $2 per million tokens, $1,440 buys 720 million tokens a month on the API. Below that volume the API is cheaper; above it, a well-utilised GPU may be.
These prices are illustrative — substitute real quotes from your provider and the API you're comparing against.
Utilisation is the catch
That break-even assumes the GPU can actually process that many tokens. Real throughput depends on the model size, how well requests are batched, and how steadily traffic arrives. Spiky or low traffic leaves the GPU idle while you still pay for it, which is the usual reason self-hosting turns out more expensive than expected.
Costs people forget
Beyond the GPU rental itself, count:
- Engineering time to deploy, monitor, scale, and update the model.
- Storage, networking, and redundancy so a single failure doesn't take you offline.
- The gap in quality between an open model you can host and the best hosted models for your task.
- Idle capacity you keep for peak load.
When self-hosting makes sense
It's most compelling with high, steady volume; strict data-residency or privacy requirements; or a need to customise the model deeply. For prototypes, uneven traffic, or small teams, paying per token is usually simpler and cheaper — and you can revisit the decision as volume grows.
Compare your own numbers
Our GPU Cost Calculator estimates the monthly cost of running GPUs for your hours and count, which you can set against your expected API bill to find your own break-even point.