Self-Hosted LLM vs API

One A100 80GB rents for $1,307/month whether or not a single request arrives. The same 70B-class traffic through a hosted API costs $194/month — and you still have to operate the GPU. Self-hosting is not a cost decision at this scale; it is a control decision. This calculator sizes the VRAM, counts the GPUs against peak load, prices the MLOps time, and finds the monthly token volume where self-hosting actually wins.

Model & Serving

Pick the open-weight model you would host and its quantization. VRAM drives the GPU count: weights plus quantization scale overhead plus ~15% runtime headroom.

Traffic

Why Self-Hosting Rarely Wins on Cost

The pitch for self-hosting sounds reasonable: renting a GPU costs less per hour than paying per token, so at volume you must come out ahead. The arithmetic says otherwise, because you pay for the GPU whether or not tokens flow through it. An A100 80GB at $1.79/hour for 730 hours is $1,307/month before a single request. A hosted 70B-class API serving the same traffic at $0.30 per million input tokens and $1.20 per million output tokens costs about $194/month at 432 million tokens. The GPU is not cheaper — it is roughly 7× more expensive, because the API provider spreads that same hardware across thousands of customers while you amortize it over one workload.

What Actually Drives the Number

Model sizeFP16 VRAMINT4 VRAMCheapest viable GPUMonthly rental
8B18.4 GB4.7 GBRTX 4090 24GB$321
32B73.6 GB19 GBL40S 48GB$796
70B161 GB41.5 GBA100 80GB$1,307
405B931.5 GB240.2 GB2× MI300X 192GB$3,343

Quantization is what makes self-hosting possible at all: INT4 cuts a 70B model from 161 GB to 41.5 GB, the difference between a two-GPU node and a single A100. VRAM is only the entry ticket though. Throughput decides the real fleet size, because capacity must cover your busiest hour, not your monthly average — a 3x peak multiplier triples the concurrency you have to provision for.

The Costs That Do Not Appear on the GPU Invoice

Three items flip marginal self-hosting cases back to the API. Idle capacity: you rent 730 hours and serve bursts; utilization below 50% doubles your effective cost per token. MLOps labor: model updates, re-quantization, autoscaling policy, evaluation, and incident response typically run 4-10 engineer-hours a month — at $120/hour that is $480-1,200, often more than the GPU line itself at small scale. Evaluation drift: a quantized local model is not the API model, so quality regressions become your problem to detect. The calculator prices the first two explicitly rather than pretending they are free.

When Self-Hosting Is the Right Answer

Four situations justify it, and only one is about cost. Data residency: regulated data cannot leave your infrastructure, and no discount on an API fixes a compliance finding. Custom weights: you fine-tuned a model no provider hosts, so there is no API price to compare against. Latency and control: you need guarantees a shared API cannot offer. Scale: monthly token volume past the crossover, typically in the billions — where the fixed GPU cost finally amortizes across enough tokens that the per-token economics invert. Run your own numbers above; the answer for most teams is that the API is cheaper and the decision should be made on control, not cost.

Pricing Basis, Sources & Assumptions

Every rate on this page is a published vendor list price — no negotiated discounts, private pricing, or credit offsets. Totals are in USD and exclude tax. Rates were last checked against the sources below on .

Pricing inputBasis used on this page
RegionGPU rental rates are the publicly listed hourly prices of the named rental marketplaces (US regions, on-demand, no committed contract). API rates are each vendor's global USD list price.
CurrencyUSD — on-demand list price, tax excluded
Last checked — The rental ladder — H100 SXM $2.99/hr, H100 PCIe $2.49/hr, A100 80GB $1.79/hr, A100 40GB $1.19/hr, L40S $1.09/hr, MI300X $2.29/hr, RTX 4090 $0.44/hr — was reviewed against the linked rental marketplaces on this date, as were the API comparison rates.

Modelling assumptions

What this model excludes

Sources

  1. RunPod (2026). "RunPod GPU Pricing." Listed hourly rates for the GPU classes in the rental ladder. runpod.io
  2. Vast.ai (2026). "Vast.ai Marketplace." Second rental marketplace used to bracket the hourly rates. vast.ai
  3. Lambda (2026). "Lambda GPU Cloud." Third reference point for on-demand GPU-hour pricing. lambdalabs.com
  4. DeepSeek (2026). "DeepSeek API Pricing." Per-million-token API rates used in the comparison. api-docs.deepseek.com
  5. OpenAI (2026). "OpenAI API Pricing." Frontier API rates used as the upper comparison point. developers.openai.com
  6. Anthropic (2026). "Claude API Pricing." Second frontier API rate card used in the comparison. platform.claude.com

Vendor list prices change without notice — re-check the linked pages before committing spend. jslet takes no vendor sponsorship and carries no affiliate links; see about.