Phase 7 · Asset & Tech Architecture
AI API vs Self-Hosted GPU Calculator
Per-token API pricing is a dream until you scale — then it's a tax. Find the exact monthly volume where renting your own GPUs undercuts the API, and what you'd save.
When is self-hosting a GPU cheaper than paying per-token API pricing?
At the volume where a rented GPU's fixed monthly cost drops below your token bill. API cost scales linearly with usage; a GPU costs the same whether you saturate it or not. So the comparison is tokens ÷ 1M × API price against GPUs needed × hourly rate × 730, where GPU capacity is throughput × 3,600 × 730 × utilization.
- Worked example (defaults on this page): 50,000 MAU × 40 requests × 1,500 tokens is 3.0 billion tokens a month — $9,000 at $3 per million.
- One GPU at 2,000 tok/s and 40% realistic utilization delivers 2.10 billion tokens a month, so two are needed: $2,190 against $9,000, saving $6,810.
- Break-even is around 0.36 billion tokens a month — below that, one GPU costs more than the API bill it replaces.
- Utilization is the input that decides it. Provisioning for peak means paying for idle silicon overnight, which is exactly the case per-token pricing is good at.
Under the hood
The math, fully exposed
We total monthly tokens, price them both ways, and size the GPU fleet (730 hours/month):
- APIs win when idle: you pay per token, so low or spiky volume favours the API — no idle cost, no ops.
- Utilization is everything for self-hosting: a GPU billed 24/7 only pays off if you keep it busy. Halve utilization and you nearly double your effective cost per token.
- Compute is not total cost: this ignores the engineering and reliability work self-hosting adds. Add a realistic estimate of those hours before you switch.
Your directives
What to do next, based on your numbers
Adjust the sliders to generate tailored recommendations.
Answers