AI & LLM Economics

LLM Self-Host vs API Cost Calculator (Breakeven Tokens)

Every LLM workload eventually hits the same question: keep paying per token, or rent GPUs and serve the model yourself? Enter your monthly input and output token volume, pick the API model you would otherwise pay for and the GPU you would rent, and set a realistic serving throughput and utilization. The calculator prices both paths for a 30-day month — the API bill from published per-token rates, the self-host bill from whole GPUs at the hourly rate — and reports the blended cost per million tokens on each side, plus the breakeven volume at which one GPU-month of rent matches the API bill. GPU and API prices are prefilled from a verified 2026-07 snapshot and stay fully editable, because both change often.

Your monthly volume

The API path

Together AI list price: $0.14/MTok in, $0.14/MTok out.

The self-host path

Lambda on-demand, per-GPU in 8x HGX H100 (1x is $4.29/hr; Together HGX H100 clusters also $3.99/hr on-demand).

Throughput prefill is a published benchmark — order-of-magnitude only; paste your own measured number.

Prices as of 2026-07 — sources on each price; verify before deciding.

Cheaper at this volume

The API

saves $2,522.80 / month over the other path

API / month

$350.00

Self-host / month

$2,872.80

Breakeven / month

20,520 MTok

One NVIDIA H100 SXM 80GB at this rate pays for itself against Llama 3 8B Instruct Lite (Together serverless) once you push about 20,520 MTok a month through it. GPU rent only — ops, redundancy, and engineering time are not included.

Cost detail
Total volume / month2,500.00 MTokAPI monthly cost$350.00API blended $/MTok$0.14Capacity per GPU / month22,201 MTokGPUs needed (whole cards)1Self-host monthly cost$2,872.80Self-host blended $/MTok$1.15Monthly gap$2,522.80Breakeven volume (1 GPU)20,520.00 MTok / mo

Monthly cost: API vs self-host

API · $350.00Self-host · $2,872.80

Compare scenarios

Run the same calculation with two or three input sets side by side. Differences are highlighted; every number comes from the same tested formula as the calculator above.

InputScenario AScenario B
Monthly Input Tokens M
Monthly Output Tokens M
Api Model Id
Gpu Id
Gpu Hourly Usd
Throughput Tokens Per Sec
Utilization Pct

How it works

The API bill is straight arithmetic on list prices: input MTok × input price + output MTok × output price for the model you pick. Prices come from the official provider pricing pages as of 2026-07 — always verify before committing, they change often. In the defaults, 2,000 MTok in and 500 MTok out on Llama 3 8B Lite at $0.14/MTok both ways costs $350 a month — small models via serverless APIs are startlingly cheap, which is exactly why the breakeven volume is higher than most people guess.

The self-host bill starts from capacity: one GPU serves throughput (tokens/second) × utilization × 2,592,000 seconds a month. At 21,413 tok/s (a vendor benchmark for Llama 3.1 8B on one H100) and 40% utilization that is about 22,200 MTok a month per card. Utilization matters more than throughput: traffic is bursty, and a GPU idling at night still bills by the hour. The calculator divides your total volume by that capacity, rounds UP to whole GPUs (a trickle of traffic still rents a full card), and multiplies by the hourly price × 720 hours.

The breakeven volume is where one GPU-month of rent equals the API bill at your input/output blend: (GPU $/hour × 720) ÷ blended API $/MTok. Below it, the API is cheaper — you are paying for a mostly idle card otherwise. Above it, self-hosting wins on raw compute, and the gap widens with volume until you need a second GPU and the self-host line steps up. The verdict compares full monthly bills at your entered volume, and the chart shows both bars side by side.

Frequently asked questions

What costs does this comparison leave out?+

Real self-hosting costs more than GPU rent: engineering time to deploy and keep an inference server healthy, on-call and monitoring, redundancy (a second node if you need failover), storage and egress, and the latency and quality trade-offs of quantization. None of those are in this number — the calculator isolates the raw compute economics, which is the right first filter but not the final answer. If the breakeven says self-hosting saves less than an engineer-week per month, the API is almost certainly the better deal once operations are priced in. This is a planning estimate, not procurement or financial advice.

Where do the throughput numbers come from, and can I trust them?+

The prefills come from NVIDIA's TensorRT-LLM performance overview and published third-party vLLM benchmarks, and they are order-of-magnitude estimates, not guarantees. Real throughput swings by several times with the serving engine, precision (FP8 vs BF16), batch size, and especially sequence lengths — the same 8B model on the same H100 does ~26,400 tok/s on short prompts but ~9,500 on long-context work. Benchmark your own workload before renting a fleet; the field is editable precisely so you can paste your measured number.

Why does the breakeven assume one GPU, and what about bigger models?+

The breakeven formula answers the entry question: at what volume does the first rented GPU pay for itself against the API? Past that point, cost per token on the self-host side keeps falling until you cross into a second card, where it steps up again — the verdict at your entered volume accounts for that whole-GPU rounding. For models too big for one card (a 70B-class model typically needs 2–4 GPUs' worth of VRAM), enter the per-GPU share of your cluster's aggregate throughput, or check the GPU VRAM calculator first to size the deployment. Prices are a 2026-07 snapshot — verify both GPU rates and API prices before deciding.

Related tools

Sources

Embed this calculator

+

Drop this calculator into your own site — free. Keep the credit link below the frame: it’s how the free embed stays free.