Self-Hosted LLM vs API Cost in 2026: The Break-Even at Batched Throughput, by Model Size
Measured batched throughput, not single-user speed, decides whether self-hosting beats an API. On a November 2026 H100 at $2.69 to $6.16 an hour, model size and utilization matter more than the GPU price.
For most teams an API is cheaper than self-hosting an LLM, and the self-hosting vs API cost comparison turns on three inputs: the H100 price per hour ($2.69 on Runpod to about $6.16 on CoreWeave in November 2026), the throughput a GPU delivers when it batches many requests at once, and how busy you keep it. On NVIDIA's published measurements, a 70B model on two H100s never beats a hosted 70B API at $0.32 per million output tokens. A 20B model on one H100 beats Claude Haiku 5.5 once the GPU is about 18 percent busy on the GPU bill alone, or about 52 percent once a failover node and part of an engineer are added.
Against Sonnet- and Opus-class APIs, self-hosting breaks even at low volume, but that compares different products, not two prices for the same one.
How the break-even works
An API charges per token, so idle time costs you nothing. A rented GPU charges per hour whether it is busy or not. The self-hosted cost of a million tokens is therefore the hourly bill divided by the tokens the GPU actually produces in that hour. Every idle minute raises the price of the tokens you do produce.
That makes the break-even a simple division: the monthly fixed cost of the hardware divided by the API's price per million tokens gives the volume at which the two bills are equal. The hard part is the denominator in the first calculation, the GPU's real output. Most of the disagreement between published break-even figures comes from there.
Why single-user speed is the wrong number
A break-even built on one user at a time will always make self-hosting look hopeless, because one stream wastes almost all of a modern GPU. Generating each token means reading every weight in the model from memory. NVIDIA's spec sheet gives the H100 SXM 3.35 TB/s of memory bandwidth. A 70B model in FP8 is about 70 GB of weights, or about 35 GB per GPU when split across two. One stream can therefore never exceed roughly 96 tokens per second, whatever the software.
Inference servers get around this by batching. They serve dozens or hundreds of requests in the same pass over the weights. NVIDIA's TensorRT-LLM performance overview, last updated September 11, 2026, reports Llama 3.3 70B in FP8 on two H100 SXM GPUs producing 2,209 output tokens per second per GPU under maximum load, with 1,000-token prompts and 1,000-token answers. That is 4,418 tokens per second for the pair, about 46 times the single-stream ceiling.
These are NVIDIA's own figures for its own engine, measured offline with requests queued "at a high rate," and NVIDIA says they "should not be considered as the peak performance." The commands are published (trtllm-bench prepare-dataset, then trtllm-bench throughput), so anyone with the hardware can re-run them. vLLM, the open-source inference server, ships its own serving and throughput benchmarks in its repository, but no vLLM sweep at concurrency 1, 8, 32 and 128 across model sizes on both H100 and A100 has been published in a primary source.
The measurements that do exist show how much setup matters. Red Hat's vLLM test of Llama 3.1 8B on a single A100 PCIe 40GB, run with GuideLLM at 1 to 256 concurrent users, peaked at 793 tokens per second. It did not state its prompt and output lengths. At Lambda's $1.99 an hour for a 40GB A100, treating all 793 as output tokens, that works out to $0.70 per million output tokens even at full load. DeepInfra sells the same model through its API for $0.06 per million output tokens, counting a million input tokens alongside. The lesson is not that 8B models are expensive to host. It is that a break-even is only as good as the throughput measured on your own hardware, engine and prompt lengths.
What a GPU-hour costs in November 2026
The GPU-hour price spreads widely across providers, from $2.69 on Runpod's Community Cloud to about $6.16 on CoreWeave.
| Provider | H100 per GPU-hour | Terms |
|---|---|---|
| Runpod Community Cloud (SXM) | $2.69 | On-demand, per-second billing (updated Nov. 12, 2026) |
| Nebius | $4.50 | On-demand |
| Lambda (8x SXM) | $4.59 | On-demand |
| AWS EC2 Capacity Blocks (p5.48xlarge) | $5.97 | Reserved block; rates next updated January 2027 |
| CoreWeave (8x HGX) | about $6.16 | On-demand; up to 60% off for committed use |
None of these providers publishes a one-year reserved H100 or A100 rate. Runpod, Lambda and Nebius send reservations to sales, and CoreWeave says only "up to 60%." A100s are cheaper: AWS Capacity Blocks list $1.70 per GPU-hour on p4d, Lambda $1.99 for 40GB, Runpod $1.39 to $2.19 for SXM 80GB. They also have about 60 percent of the H100's memory bandwidth (2,039 GB/s on the A100 80GB SXM), which lowers throughput.
Utilization decides the price per token
Dividing those prices by NVIDIA's measured throughput gives the cost of a million output tokens on the 1,000-in, 1,000-out workload. The input processing is already included, because the benchmark processes those prompts too.
| Model on H100 (at $4.50/hr) | 100% busy | 50% | 15% | 5% |
|---|---|---|---|---|
| Llama 3.3 70B FP8 (2 GPUs) | $0.57 | $1.13 | $3.77 | $11.32 |
| gpt-oss-120b (4 GPUs) | $0.27 | $0.53 | $1.78 | $5.34 |
| gpt-oss-20b (1 GPU) | $0.11 | $0.22 | $0.72 | $2.16 |
At Runpod's $2.69 every figure falls by about 40 percent. At AWS's $5.97 every figure rises by about a third. The utilization column moves the price far more than the provider does: the same 70B model costs 20 times more per token at 5 percent load than at full load. Utilization is also easy to overestimate. A service that is busy only during office hours, 40 of the week's 168 hours, cannot exceed 24 percent however heavy those hours are.
The API prices you are competing with
On this workload each request carries as many input tokens as output tokens. A fair API comparison therefore adds the input and output prices per million. That gives $0.42 for DeepInfra's Llama 3.3 70B Turbo ($0.10 in, $0.32 out), $0.75 for gpt-oss-120b on Together or Fireworks ($0.15, $0.60), and $0.60 for Claude Haiku 5.5 ($0.10, $0.50, for prompts up to 100,000 tokens). Higher up Anthropic's price list, Haiku 4.5 comes to $6, Sonnet 5.5 to $12 and Opus 5.5 to $24. Anthropic and Fireworks both halve prices for batch jobs, which halves every API break-even below.
Against the like-for-like option, a hosted copy of the same open model, self-hosting barely wins. A 70B on two H100s at $4.50 costs $6,570 a month and can produce at most 382 million output tokens a day. Matching DeepInfra's $0.42 would take 514 million a day, more than the hardware can produce. At Runpod's price it takes 307 million, or 81 percent utilization around the clock. For gpt-oss-120b on four H100s, break-even against the $0.75 hosted price is 576 million tokens a day, 36 percent of capacity, falling to 21 percent at $2.69.
The model-size lever
Model size changes the break-even more than GPU price does. NVIDIA's table shows gpt-oss-20b, which has 21 billion parameters but only 3.6 billion active per token, producing 11,557 output tokens per second on a single H100. That is more than five times the 70B's per-GPU rate, and on one GPU instead of two. One H100 at $4.50 costs $3,285 a month and breaks even against Haiku 5.5 at 180 million tokens a day, 18 percent utilization. Against Haiku 4.5 it breaks even at 18 million a day, under 2 percent.
The catch is quality. A small general model and a frontier API are not the same product, and the per-token arithmetic says nothing about whether the small model does your job. A model trained for one repeated task, such as extraction, classification or a fixed output format, can sometimes match a much larger general model on that task alone. Whether yours does has not been measured until you run it against your own test set. If it does, the break-even moves from "only at huge volume" to "at modest, steady volume." If it does not, the cheaper token is not a saving.
The costs a GPU price leaves out
The GPU bill is not the whole bill. A production service needs a second node for failover, and someone to deploy, monitor, patch and upgrade it. The US Bureau of Labor Statistics puts the median software developer's pay at $135,980 a year (May 2025), or $11,332 a month before benefits. If a quarter of one engineer's time covers operations, monitoring and on-call, that is about $2,833 a month.
Added to the 20B example, the bill becomes $3,285 for the primary GPU, $3,285 for the failover GPU and $2,833 for labour: $9,403 a month, 2.9 times the raw GPU cost. Break-even against Haiku 5.5 then rises to 515 million tokens a day, more than half the node's capacity. Against Haiku 4.5 it rises to 52 million. For the 70B pair the same additions give $15,973 a month. That is 22 million tokens a day to match Opus 5.5 and 44 million to match Sonnet 5.5. A larger team, a second region or a compliance review would push every figure higher.
Managed serving sits in between
Between running your own GPUs and paying per token sits managed serving: you bring the model and someone else runs the servers. DeepInfra rents dedicated H100s for custom models at $2.90 an hour, billed per minute, or $2,117 a month for one always-on GPU. Together's dedicated endpoints cost $5.49 per H100-hour. Together bills "while a deployment runs, regardless of model or request volume," so idle time still counts. Fireworks charges $8 an hour for an H100 but bills by the GPU-second, and its docs say deployments "scale to zero if unused for 1 hour." That suits bursty traffic, at the price of 503 errors while a cold deployment starts.
Parsec takes a further step for teams that want a specialised small model without building one. Its comparison page says customers' models "run alongside other teams' on an optimized cluster," a shared, multi-tenant setup, and puts the time to a first custom model at "about 4 weeks," against "100+ ML engineer hours, plus procurement" for running your own GPUs. Neither figure has a stated source. Parsec publishes no price for this service, and the page does not mention VPC or on-premises hosting for it.
Bottom line
If your traffic is low, bursty or confined to office hours, use an API. You cannot keep a GPU busy enough to win. If you need an open model, a hosted open-weight API such as DeepInfra's $0.32-per-million Llama 3.3 70B is cheaper than renting the hardware at almost any utilization. Self-hosting pays when volume is steady and high, hundreds of millions of tokens a day for small models. It also pays when a small model you have tested matches the quality you need, or when data cannot leave your environment, in which case cost stops being the deciding factor. Managed dedicated serving fits teams that want their own model without an operations team. Before any break-even, measure batched throughput on your own prompts.
Sources
- NVIDIA TensorRT-LLM, Performance overview: https://github.com/NVIDIA/TensorRT-LLM/blob/main/docs/source/developer-guide/perf-overview.md
- Red Hat Developer, Ollama vs. vLLM: a deep dive into performance benchmarking: https://developers.redhat.com/articles/2025/08/08/ollama-vs-vllm-deep-dive-performance-benchmarking
- vLLM, Benchmarks directory: https://github.com/vllm-project/vllm/tree/main/benchmarks
- NVIDIA, H100 specifications: https://www.nvidia.com/en-us/data-center/h100/
- NVIDIA, A100 specifications: https://www.nvidia.com/en-us/data-center/a100/
- Hugging Face, nvidia/Llama-3.3-70B-Instruct-FP8: https://huggingface.co/nvidia/Llama-3.3-70B-Instruct-FP8
- Hugging Face, openai/gpt-oss-20b: https://huggingface.co/openai/gpt-oss-20b
- Runpod, Pricing: https://www.runpod.io/pricing
- Lambda, Pricing: https://lambda.com/pricing
- Nebius, Prices: https://nebius.com/prices
- AWS, EC2 Capacity Blocks pricing: https://aws.amazon.com/ec2/capacityblocks/pricing/
- CoreWeave, Pricing: https://www.coreweave.com/pricing
- DeepInfra, Pricing: https://deepinfra.com/pricing
- Together AI, Pricing: https://www.together.ai/pricing
- Together AI, Dedicated inference: https://docs.together.ai/docs/dedicated-inference
- Fireworks AI, Pricing: https://fireworks.ai/pricing
- Fireworks AI, On-demand deployments: https://docs.fireworks.ai/guides/ondemand-deployments
- Anthropic, Claude API pricing: https://platform.claude.com/docs/en/about-claude/pricing
- US Bureau of Labor Statistics, Software developers: https://www.bls.gov/ooh/computer-and-information-technology/software-developers.htm
- Parsec vs your own GPUs: https://parseclab.ai/compare/own-gpus/