Skip to main content
BenchLM
Data
Workspace

Self-Hosted LLM vs API Cost Calculator

Compare what an open-weight model costs on rented or owned GPUs with what the same tokens cost through an API. Pick a model and a volume to see both monthly bills and the break-even point.

Result

The API is cheaper by $26,293 a month

A full node still costs more per token than the API, so more volume does not change the answer.

Share or export
Share on XLinkedIn
API / mocheaper
$1,669
$20,025/yr
Self-host / mo
$27,962
$335,543/yr
Break-even
Not reached

One node serves 260M/day at 70% utilization. Full, it costs $3.58 per million tokens against $1.85 through the API (33% input, 67% output), and more nodes cost the same per token.

API price: the cheapest inference host on file, DeepInfra, checked November 30, 2026.

Your setup

Open-weight model
Workload
Hardware
Compare vs API model

Q4 on 8× H100 (80GB) · $3.99/hr per GPU · 20% overhead · 70% busy

Monthly cost by tokens per day

Both axes are logarithmic. The self-host line steps up each time another node is needed.

Cost at typical volumes
Cost at typical volumes
VolumeAPI /moSelf-host /moNodesCheaper
1M/day$56$27,9621API
10M/day$556$27,9621API
50M/day$2,781$27,9621API
100M/day$5,563$27,9621API
500M/day$27,813$55,9242API
1B/day$55,625$111,8484API
A node is one copy of the GPU config. The self-host bill adds one each time the volume passes what the nodes before it can serve.

Self-host cost breakdown, one node

$27,962 / mo
  • GPU rental ($3.99/hr × 8, provider median × 730 hours)$23,30283%
  • Overhead$4,66017%

What this assumes

Model
GLM-5.3, 753B parameters (40B active) · GLM-5.3 License · model card
Hardware
Q4 weights on 8× NVIDIA H100 (80GB) · 640 GB of GPU memory, about 494 GB needed with headroom
GPU price
$3.99 an hour per GPU, median of 7 providers · on-demand list price, checked October 16, 2026
Speed
4,300 tokens a second per node · 260M/day at 70% utilization
Compared with
API price: the cheapest inference host on file, DeepInfra, checked November 30, 2026.
Quality
GLM-5.3 scores 63.4 overall on BenchLM (#41).
Try it first
ollama run glm-5.3:cloud runs it from Ollama's cloud. Best Ollama models

One node of this config is estimated at 4,300 tokens a second across batched requests, a modeled figure and not a measured benchmark. Your own serving stack will differ.

GPU rental prices

What one GPU rents for by the hour across the providers we check, 14 GPUs from consumer cards to the largest datacenter parts. Prices last checked October 26, 2026.

On-demand GPU rental prices per GPU hour
GPUMedian / hrLowest listedHighest listedProvidersPer month at medianChecked
NVIDIA B200 (192GB)$8.50$5.98RunPod$14.24AWS5$6,205October 16, 2026
NVIDIA B300 (288GB)$8.22$6.94RunPod$9.50Nebius2$6,001October 26, 2026
NVIDIA H200 (141GB)$5.40$3.59RunPod$7.91AWS5$3,942October 16, 2026
NVIDIA H100 (80GB)$3.99$2.45Denvr Dataworks$6.88AWS7$2,913October 16, 2026
AMD MI325X (256GB)$3.80$3.80DigitalOcean$3.80DigitalOcean1$2,774October 26, 2026
AMD MI300X (192GB)$2.79$2.59DigitalOcean$2.99Hot Aisle2$2,037October 26, 2026
NVIDIA A100 (80GB)$2.10$1.39RunPod$3.43AWS6$1,533October 16, 2026
NVIDIA RTX PRO 6000 Blackwell (96GB)$2.00$1.69RunPod$2.50CoreWeave4$1,460October 26, 2026
NVIDIA L40S (48GB)$1.71$0.79RunPod$2.25CoreWeave4$1,248October 16, 2026
NVIDIA A100 (40GB)$1.57$0.89JarvisLabs$2.74AWS4$1,146October 16, 2026
Intel Gaudi 3 (128GB)$1.25$1.25IBM Cloud$1.25Denvr Dataworks2$913April 20, 2026
NVIDIA RTX 5090 (32GB GDDR7)$0.60$0.50Salad$0.69RunPod2$438October 16, 2026
NVIDIA L4 (24GB)$0.44$0.44RunPod$0.80AWS3$321October 16, 2026
NVIDIA RTX 4090 (24GB)$0.34$0.33Salad$0.34RunPod2$248October 16, 2026

Each provider's lowest on-demand list price per GPU hour. No spot, reserved or committed rates. A month is 730 hours.

Self-hosting cost by model

One rented node for each of the 124 open-weight models, next to the API price for the same model where one is on file. Host API prices last checked November 30, 2026. Inference host prices are on the hosts page.

Monthly cost of one rented node per open-weight model, with the API price per million tokens
ModelHardwareOne node / moServes / dayFull node, per 1MAPI, per 1MBreak-even / day
Kimi K3INT4 · 8× B300 (288GB)$57,606181M$10.6$6.60Lab APINot reached
Kimi K3.1 ProINT4 · 8× B300 (288GB)$57,606181M$10.6$4.40Lab APINot reached
LongCat-2.0FP8 · 8× B300 (288GB)$57,606321M$5.99—No API price
LongCat-2.5FP8 · 8× B300 (288GB)$57,606321M$5.99$0.57Lab APINot reached
Qwen3.8 MaxQ4 · 8× B300 (288GB)$57,606133M$14.4$2.64DeepInfraNot reached
Amazon ErgoINT4 · 8× H200 (141GB)$37,843290M$4.34$1.60Lab APINot reached
DeepSeek V4 ProQ4 · 8× H200 (141GB)$37,843224M$5.64$2.11Lab APINot reached
MiMo-V2.6-ProQ4 · 8× H200 (141GB)$37,843248M$5.09$0.57Lab APINot reached
Mistral Large 4Q4 · 8× H200 (141GB)$37,843200M$6.32$1.12Lab APINot reached
A.X K2Q4 · 8× H100 (80GB)$27,962302M$3.08—No API price
Atria Dawn PreviewQ4 · 8× H100 (80GB)$27,962260M$3.58—No API price
DeepSeek R1 (671B)Q4 · 8× H100 (80GB)$27,962194M$4.82$1.04Lab APINot reached

One node on each model's recommended hardware, rented at the provider median with 20% overhead and busy 70% of the day. API prices are blended at 70% input and 30% output. Shaded rows can beat the API on a full node.

When does self-hosting an LLM make sense?

Self-hosting an open-weight LLM trades the per-token pricing of a managed API for a roughly fixed monthly GPU cost. That trade makes sense once your sustained volume is high enough that the fixed cost beats the per-token bill. The exact crossover depends on three things: the API price per million tokens, the GPU config you need to run the model, and your utilization of that hardware.

At list prices the answer is usually the API. 52 of the 124 open-weight models in this calculator are sold per token by their lab or by an inference host we track. 17 of those can beat that price on a full node of rented GPUs, and 12 of the 17 run on a single GPU. For the other 35, a node that is busy 70% of the day still costs more per token than the API price on file, so more volume does not close the gap. A rented node runs from about $298 a month on 1× RTX 4090 (24GB) to about $57,606 on 8× B300 (288GB), with 20% overhead.

What drives the break-even point?

Four levers: (1) the API's price per million tokens, blended at your own mix of input and output; (2) your self-host monthly cost, which is mostly GPU rental or written-off hardware plus electricity; (3) overhead, meaning engineer time, monitoring and egress; and (4) how many tokens one node can serve. If a full node still costs more per token than the API, adding nodes never closes the gap. The tool exposes all four as inputs so you can test your real numbers.

Questions

When does self-hosting an LLM actually save money?

When one node, kept busy, costs less per token than the API. Of the 52 open-weight models here with an API price on file, 17 clear that bar at median rental prices. Their break-even runs from about 8 million tokens a day (Qwen3.6-27B) to about 409 million (Mistral Small 4). For the other 35, a full node still costs more per token than the API price on file. Owned hardware, a cheaper GPU provider or higher utilization can change that, and the calculator lets you test each.

How much does it cost to self-host an LLM?

At median on-demand rental prices with 20% overhead, one node costs from about $298 a month for a model that fits 1× RTX 4090 (24GB) to about $57,606 a month for the 8× B300 (288GB) node the largest models need. An 8×H100 node is about $27,962 a month. The bill depends on the GPU class, the GPU count, whether you rent or own, and your overhead.

How much does it cost to rent an H100?

Listed on-demand prices for one H100 run from $2.45 an hour (Denvr Dataworks) to $6.88 (AWS) across 7 providers, with a median of $3.99, checked October 16, 2026. At the median that is about $2,913 a month per GPU running around the clock. Spot and reserved rates are lower and are not counted here.

What GPU do I need to run DeepSeek V4.1 Flash 1017?

DeepSeek V4.1 Flash 1017 has 552B total parameters with 16B active. At 4-bit it needs about 362GB of GPU memory with runtime headroom, which an 8×H100 node (640GB) holds; FP8 fits 8×H200. The calculator auto-selects the cheapest placement per model.

Is renting GPUs or buying hardware cheaper?

For sustained 24/7 use over several years, buying can be cheaper than renting. The calculator writes the GPU cards off over 4 years by default and adds electricity at a PUE of 1.5 and your overhead; you can change the electricity price and the write-off period and add the cost of the server around the cards. For burst or short-lived workloads, rental wins.

Is NVFP4 cheaper to self-host than FP8 or Q4?

Often, if the lab ships an official NVFP4 checkpoint and you run it on Blackwell GPUs (RTX 5090, RTX PRO 6000, B200, B300). NVFP4 needs about the same memory as other 4-bit formats but runs natively on Blackwell tensor cores, so a model like Nemotron 3 Super 120B fits one 96GB RTX PRO 6000 instead of an H100. The calculator lists an NVFP4 placement only for models with an official NVFP4 release.

Can I self-host ChatGPT or Claude?

No. Current proprietary models from OpenAI, Anthropic, Google, and xAI have no open weights, so you can only use them through their own apps and APIs. OpenAI's gpt-oss models are the exception. Self-hosting applies to open-weight models like Kimi, DeepSeek, Qwen, GLM, MiniMax, Nemotron, Mistral, Llama, and Gemma.

Know when it’s worth switching models

The model to choose, the cheaper alternative, and the release we would wait on.

Read a sample issue

Join 7,500+ subscribers.

One email each week. Unsubscribe anytime.