AI Primer · Local inference economics · September 2026

Your hardware gets older
while the cloud gets cheaper.

Three local deployments, priced against the APIs that serve the same models. One never breaks even. One breaks even in three months. The expensive one sits in between — and loses anyway.

IN SHORT

Self-hosting pays back when three things line up: batched throughput, sustained utilization, and an API market that hasn't been competed down yet. Hardware price is the least important number on this page.

The workload

Every comparison below uses one unit of work: 1M input tokens and 100k output tokens. That ratio is typical of agentic and document-heavy use, where you feed the model far more than it writes back.

Electricity is $0.30/kWh throughout. Machines are powered twelve hours a day. Utilization is 50%, which is optimistic for a team and generous for an individual.

First, about tokens per second

Nearly every throughput figure here is aggregate across concurrent requests, not what you watch in a chat window. This is the single most common misreading of local-inference benchmarks, so it's worth being blunt.

If you've run a model locally, you're used to single-stream numbers: you send a prompt, tokens appear at some readable pace, and that pace feels like what the GPU "does." It isn't. At batch size 1 the card spends most of its time waiting on memory reads and throws away nearly all its compute. Add concurrent requests and those same weight reads get amortized across the whole batch, so total output climbs far faster than per-user speed falls.

Qwen3.8-27B · one RTX 3090 · same weights, same card 1 user 64 concurrent 114 tok/s 1,000 tok/s 0 1,000 tokens / second, aggregate
Nine times the output from identical hardware. The GPU finally has enough work to fill itself. Per user, each of those 64 requests still returns at a perfectly ordinary speed.

So when you read "3,000 tok/s" further down, that is not one conversation outrunning your eyes. It is roughly twenty conversations at ~145 tok/s each, running at once. This distinction decides the entire article — it is exactly why the first scenario fails.

Four DGX Sparks: no break-even exists

$18,400 of hardware, about 800 W, running DeepSeek V4.1 Flash at 50 tok/s. That figure is both the single-stream and the aggregate rate, because there isn't enough spare memory to batch — the machine can only ever serve one request at a time. One job takes over an hour. In a twelve-hour day it clears roughly ten.

Ten jobs' worth of tokens, via the API
$2.27
Electricity to produce them locally
$2.88
Net result per day
−$0.61

Capex never enters the equation. The machine loses money every day before you account for a cent of the $18,400. You could have been given these boxes for free and still be behind.

Eight RTX PRO 6000: it works, barely

Around $83,000, drawing 5.5 kW under load. 768 GB of VRAM holds the ~510 GB checkpoint with room left for a large KV cache, and that headroom is what makes continuous batching possible. Batching is the whole game.

At 4,000 tok/s aggregate decode and 40,000 tok/s prefill, a job takes 50 seconds. At 50% utilization the node clears 432 jobs a day.

Same work via the API
$90.72
Electricity (42 kWh)
$12.60
Net saving per day
$78.12

Payback: 2.9 years. Tight against a three-year depreciation schedule, but real. Hold that thought.

The Sparks and this node differ by 4.5× in price and infinitely in payback, because one has negative margin per token and the other has positive margin. That's a threshold, not a spectrum.

Two RTX 5090s: three months

Qwen3.8-27B is Apache 2.0, and at NVFP4 it fits on a single 32 GB card with the full 262k context. That fact determines the architecture. The 5090 talks over PCIe with no NVLink, so tensor parallelism across cards performs badly — but because the model fits on one card, you don't need it. Run two independent replicas and throughput scales almost linearly.

Two cards plus a host: about $7,000, drawing ~1.4 kW. Call the pair 3,000 tok/s aggregate decode and 16,000 tok/s prefill. Single-stream on one card, this model runs about 93 tok/s plain, or 130–160 with speculative decoding — the 3,000 figure is twenty of those streams at once.

A job takes 96 seconds, so 225 jobs a day at 50% utilization.

The twist: Qwen3.8-27B is more expensive per token on the API than DeepSeek V4.1 Flash, despite being a twentieth of the size. At the cheapest of ten providers it's $0.24/M input and $0.90/M output — $0.33 for our job, against DeepSeek's $0.21. Alibaba's own endpoint is more than double that again.

Same work via the API
$74.25
Electricity (9.9 kWh)
$2.97
Net saving per day
$71.28

Payback: 3.3 months. Nearly the same daily margin as the $83,000 node, on a twelfth of the capital.

You are not capturing an efficiency advantage here. You are capturing a market that hasn't been squeezed yet. Nobody serves Qwen3.8-27B at DeepSeek's scale, so its price never got competed down toward marginal cost.

4× DGX Spark 8× RTX PRO 6000 2× RTX 5090 $18,400 $83,000 $7,000 never breaks even 2.9 years 3.3 months
Bar length is time to break even. The cheapest machine and the most expensive one both lose to the middle option — for opposite reasons.

The numbers side by side

ALL FIGURES AT 50% UTILIZATION, $0.30/KWH, 12H/DAY
 DeepSeek V4.1 FlashQwen3.8-27B (NVFP4)
Local hardware8× RTX PRO 60002× RTX 5090, replicas
Capex$83,000$7,000
Power, load / idle5.5 / 1.5 kW1.4 / 0.25 kW
Decode, aggregate4,000 tok/s3,000 tok/s
Decode, per stream~60 tok/s~145 tok/s
Concurrent streams~65~20
Prefill, aggregate40,000 tok/s16,000 tok/s
Time per job50 s96 s
Jobs per day432225
Cloud cost per job$0.21$0.33
Local cost per job$0.029$0.013
Cloud cost per day$90.72$74.25
Electricity per day$12.60$2.97
Net saving per day$78.12$71.28
Payback2.9 years3.3 months

One caveat the table hides: these models are not interchangeable. Qwen3.8-27B is a capable small model; DeepSeek V4.1 Flash is a different weight class. The faster payback belongs to the model you might not have wanted.

What actually decides it

Throughput per watt, however you get there

Batching for the big node, quantization and replica parallelism for the small one. The DGX Spark scenario fails because it has neither — and because single-stream benchmarks made it look fine before purchase.

Sustained utilization

Below roughly 40%, nothing on this page pays back inside the hardware's life. A box that is busy two hours a day is a box you bought at retail to leave idle.

How competitive the hosted market is for your model

DeepSeek's $0.15/M is not a subsidy. It is what near-perfect utilization costs at scale, and it leaves you almost no margin to capture. Niche models face no such pressure, which is precisely why self-hosting them wins.

The clock nobody prices in

Every payback number above assumes today's API price holds until you break even. It won't.

Qwen3.8-27B's cheapest input rate fell 40% in ninety days, from $0.400 to $0.240 per million tokens. That is not an anomaly, it is the direction the whole market moves. Apply even half that rate of decline to a payback period and the target runs away from you faster than you approach it.

Run that against the two working scenarios and they separate completely:

 Under price deflation
3.3 monthsSurvives. Prices can't fall far enough in one quarter to matter. By the time the market reprices, the hardware is already paid off and everything after is margin.
2.9 yearsFiction. It requires DeepSeek's rates to sit still for thirty-five months. If they halve once — which recent history suggests is conservative — real payback stretches past five years, by which point the GPUs are two generations old, out of warranty, and worth a fraction of what you paid.

Hardware ages in two directions at once. The cards lose resale value on a schedule you can predict. But the models move too: three years from now the checkpoint you bought 768 GB of VRAM to hold will be superseded by something with different memory requirements, and there is no guarantee your rack is the right shape for it. You optimized for a target that doesn't stand still either.

In a market with double-digit annual price deflation, only payback periods measured in months are real. Anything you wait years for is a bet that the cloud stops getting cheaper. It hasn't yet.

Buy it for the reasons that don't expire.

If none of this pays back, that's fine. Privacy, data residency, offline operation, no rate limits, and independence from someone else's pricing decisions are real reasons to self-host, and none of them get cheaper when the API does.

They're just not savings. Don't let a spreadsheet pretend otherwise.