Self-hosting on a GPU vs paying per API call

Open formula. Browser-based calculations. Source-dated rates. No API keys. No provider login. No tracing SDK. No account required. Input payloads are not stored.
Pricing source date: 2026-08-17 · Build verification: 2026-08-17 · Stale threshold: 30 days. Estimates depend on hourly GPU and hosting-rate assumptions, not public LLM API pricing. GPU market rates vary by provider, region, and commitment term; verify current instance pricing with your hosting provider before sizing a deployment. Pricing may be stale — verify directly with the provider before contracts, production commitments, or budget approvals.

Worked example

Example inputs: Illustrative supplied inputs: 500M output tokens/month, GPU $2/hour, throughput 500 output tokens/second, 60% utilization, 40% overhead and API $10 per 1M output tokens. These are scenario assumptions, not a provider quote or measured benchmark.

Supplied-rate scenario: GPU $2/hour, throughput 500 output tokens/second, API $10/1M output tokens. These rates and throughput are user inputs, not verified provider prices or benchmarks. At 500,000,000 output tokens/mo, API cost ~$5000/mo vs self-host ~$2044/mo (incl. 40% overhead). Self-hosting is favorable — approximate savings $2956/mo.

Example inputs — your own numbers will differ. This is a computed planning estimate, not a quote.

Diagnostic output: Each calculation returns Cost classification, Dominant cost driver, Decision threshold, and Sensitivity. Focus for this tool: API-vs-GPU break-even volume and utilization sensitivity.

About this calculator

Enter monthly output tokens, a GPU hourly rate, measured output throughput and your API rate. Model Ruler computes the cost of one continuously rented GPU, applies utilization and overhead, and checks whether that GPU can serve the workload. Supplied rates are scenario assumptions; unresolved stored GPU prices do not become quotes.

Methodology summary

Compares API spend against single-GPU self-hosting spend at the requested token volume and expected utilization.

Formula: gpu_monthly_with_overhead = gpu_hourly * 730 * (1 + operational_overhead_pct); breakeven_tokens = gpu_monthly_with_overhead / api_cost_per_token

Audit coverage: Self-host break-even

Open the full methodology for this calculator.

Frequently asked

What does this calculator compute?
It compares API spend with one GPU rented for 730 hours per month plus overhead, reports the breakeven volume, and flags workloads that exceed the supplied throughput capacity. A fleet requires a separate sizing and cost calculation.

What should I check before committing to a workload shape?
Breakeven depends on sustained utilization, GPU hourly rate, and your request volume. Idle GPU time is the hidden cost — check whether your traffic keeps the hardware busy enough to beat per-token API pricing, since low utilization usually favors staying on an API.

Is this a quote or a benchmark?
Neither — it is a computed estimate, not a vendor quote. The worked example above shows the numbers this calculator produces for a representative self host breakeven workload; your own inputs move the result.

Related tools

Estimates depend on hourly GPU and hosting-rate assumptions, not public LLM API pricing. GPU market rates vary by provider, region, and commitment term; verify current instance pricing with your hosting provider before sizing a deployment. Pricing may be stale — verify directly with the provider before contracts, production commitments, or budget approvals. View methodology.