hostimmwhere to run it
Field report

Self-host vs API, the short answer: a night on a 16GB card costs the same as renting the model

Self-host vs API, the short answer for a 16GB card: one night of agent work on an RTX 5070 Ti cost about EUR 1.24 of electricity for 3.87 million output tokens, and those same output tokens cost EUR 1.29 at the list rate Alibaba publishes for Qwen4 35B A3B today. Five cents apart. The token bill was never the question here. Whether the card is already yours is the question.

The verdict

  • The numbers agree with each other. 3.87 million tokens in 8 hours 33 minutes is 125.7 tokens a second on average, 70 percent of the 180.2 median he reports. The missing 30 percent is prefill and waiting, and his own prefill figure covers it.
  • Power only, it is a tie. 3.42 kWh at the German household tariff is EUR 1.24. The same output at USD 0.36 per million is USD 1.39, or EUR 1.29.
  • Count the card and the tie breaks. USD 749 spread over 900 nights adds EUR 0.77 a night, so the night costs EUR 2.01 at home. The cheapest reseller of the same weights sells the output for EUR 0.65.
  • The real leak is not the price. 61 percent of the tokens went into work that was deferred, so EUR 15.10 of a twenty-night month bought nothing. Fixing that is worth more than switching sides.

The test, as published

u/SirMilles posted the run on r/LocalLLaMA on 2026-12-05, read here the same day. His machine: an RTX 5070 Ti with 16 GB of VRAM, a Ryzen 7 5700X, 32 GB of DDR4, Windows 11. His stack: Qwen4 35B A3B at UD-IQ3_XXS, a Strata fork of the engine, Pi as the coding agent, 128K context, INT8 KV cache, MTP speculative decoding and BF16 vision, driving a Godot project with a home-built layer for checkpoints and QA.

What he measured, in his own figures: 8 hours 33 minutes of runtime, 3.87 million generated tokens, a 180.2 tokens a second median decode and 928.9 median prefill, 66.5 percent MTP acceptance, 2,794 inference requests across 72 agent sessions, 111,000 tokens of peak context, 20 milestones integrated against 21 deferred. Of the generated tokens, 61 percent went into the deferred work and 81 percent of the output was reasoning. Everything ran locally except web research and phone notifications.

He claims no saving anywhere in the post. His closing line is the most useful sentence in it: throughput was fine, and getting those tokens to do work that lands is the harder problem. What follows adds a price to the night and checks the arithmetic. No card was rented for this piece and no endpoint was called.

The arithmetic that holds

Three checks, all against his own numbers. First, the implied average: 3.87 million tokens over 30,780 seconds is 125.7 a second. Second, the wall clock: at a 180.2 median, the decoding alone takes 21,476 seconds, which is 5 hours 58 minutes. That leaves 9,304 seconds, 2 hours 35 minutes, for prefill and anything else that is not decode. Third, what fits in that leftover time: at 928.9 tokens a second, prefill can cover 8.64 million tokens, which is 3,093 tokens of input per request against 1,385 tokens of output.

That last number is the one to keep. 2,794 requests with a peak context of 111,000 tokens cannot average 3,093 tokens of prefill each unless most of the context arrives from a KV cache that already exists, which prefix caching on an agent loop does, and the post says his harness keeps sessions alive. So the published medians describe the machine at work, not the machine as a service: for a third of the night it was not decoding.

The house audit script, run over these numbers at scripts/test_audit.py, flags the same gap and stops there, because the author published the prefill rate that explains it. What the script cannot check is how a 35B model at 3 bits (about 13.4 GB of weights by our estimate) and an INT8 cache for 111,000 tokens sit together in 16 GB. The post does not say what was offloaded, and at 180 tokens a second nothing slow was being read from system memory. Worth asking him rather than assuming.

What the night cost at the wall

Electricity is the only cost a home run actually incurs, and the honest version of it is a range: nobody published a wall meter. The card’s own rating is 300 W of total graphics power (NVIDIA’s spec table, read today). Add the 5700X, the board, the drives and the power supply’s losses and 0.40 kW at the wall is a fair middle. The tariff is Eurostat’s figure for German households in the first half of 2026, EUR 0.3618 per kWh, dataset nrg_pc_204 read today; the EU average is EUR 0.2832.

Draw at the wall Energy for 8h33m Cost, German tariff EUR per million output tokens
0.30 kW 2.56 kWh EUR 0.93 0.240
0.40 kW 3.42 kWh EUR 1.24 0.320
0.55 kW 4.70 kWh EUR 1.70 0.440

At the middle case the night is EUR 1.24, or USD 1.34 at the ECB reference rate of 1.0801 USD per euro for 4 December 2026. That is EUR 0.32 per million output tokens. It is also the entire marginal cost: no meter, no quota, no bill that grows when the agent loops.

The same tokens on a hosted endpoint

Qwen4 35B A3B is on the market as an open-weights model, and nine provider listings for it were readable today through OpenRouter’s model entry for qwen/qwen4-35b-a3b. The five cheapest, with the precision each declares:

Provider Precision Input, USD per M Output, USD per M Cache read, USD per M
PrimeIntellect fp8 0.03 0.18 0.0015
Venice fp8 0.04 0.30 not listed
Featherless bf16 0.048 0.288 0.0024
Makora fp4 0.06 0.36 0.003
Alibaba not stated 0.06 0.36 0.003, writes 0.075

Take Alibaba’s own listing as the first-party rate and the arithmetic is short: 3.87 million output tokens at USD 0.36 per million is USD 1.39. The post does not publish input tokens, so the only figure available is the one its own prefill rate allows: 8.64 million tokens, priced at USD 0.06 fresh (USD 0.52) or at USD 0.003 for a cache read (USD 0.08 if nine in ten arrive cached). The night totals USD 1.47 to USD 1.91, EUR 1.36 to EUR 1.77, which is 10 to 43 percent more than the electricity.

The cheapest listing changes the sign. PrimeIntellect at USD 0.18 per million output makes the same night USD 0.70 of output plus USD 0.04 to USD 0.26 of input, EUR 0.68 to EUR 0.88, which is 29 to 45 percent below the electricity. Nobody in the thread mentioned that a reseller sells the same weights for half the first-party rate.

One caveat cuts against the home side: the local run is 3-bit, and every provider above serves fp8, bf16 or fp4. That is not the same model in the quality sense, and 16 GB is the reason. A 128K context on a card is also a different product from the million-token context the listings offer.

Yesterday’s audit reached the opposite answer at the other end of the market: four rented B300s running Amazon Ergo produce output at 27 times Bedrock’s rate, because one stream cannot fill a rented card. The pattern holds in both pieces. Self-hosting wins when the hardware is busy and loses when it idles.

The card is the number people leave out

A 5070 Ti was USD 749 at launch in January 2025, and the second-hand and street prices moved around that, so treat USD 749 as a list figure rather than a receipt. Spread over three years at 300 nights a year, that is USD 0.83 a night, EUR 0.77. The night at home then costs EUR 2.01, not EUR 1.24, and the cost per million output tokens is EUR 0.519 rather than EUR 0.320.

If you already own the card for something else, that EUR 0.77 does not belong in the decision, and the honest comparison is the power bill against the token bill. If you are buying the card to run an overnight agent, the same arithmetic points the other way, and the number to check for your own workload is on the break-even calculator: put your nights, your card price and your token rate in, and it tells you which side of the tie you are on.

So what: twenty nights a month

The control workload for this piece is the same agent, twenty nights a month, everything else unchanged. That is 77.4 million output tokens a month. At home it is EUR 24.75 of electricity at the middle draw, or EUR 40.16 once the card is amortised. On Alibaba’s list the output alone is EUR 25.80 and input adds EUR 1.39 to EUR 9.60 depending on cache hits; on PrimeIntellect’s listing the output is EUR 12.90 and the input EUR 0.70 to EUR 4.80.

Read that as a plateau: between roughly EUR 13 and EUR 40 a month, price no longer decides where a nightly coding agent runs. What decides is whether the context can leave your machine, whether 3-bit output is good enough for your repository, and how many nights the card sits idle.

The number that should get attention sits downstream of all of it. If 39 percent of the tokens landed in integrated milestones, the effective rate is EUR 1.33 per million integrated tokens at home against EUR 0.85 on Alibaba’s output rate, and EUR 15.10 of the monthly power bill went into work that was thrown away. The same 61 percent would be thrown away on a hosted endpoint. That argues for spending the next month on the harness, not on either side of this comparison, which is the author’s own conclusion with a price attached.

The case where home still wins outright is narrow: a card you already own, used on nights it would otherwise sit idle, for data that cannot leave the building. Buying the card for this is not that case.

What we did not test

No card was rented, no endpoint was called, no invoice exists for this piece. The electricity figure rests on a 0.40 kW assumption at the wall and a published tariff, which is why the table carries a range. The input token count is not in the post, so the API total is a bracket, not a measurement. Provider rates are listings read today through OpenRouter, not calls made with a key: a listing proves a price, not a service. The weight size for the 3-bit quantisation is our estimate from the bit rate, not a file we measured.

The author was not contacted before publication. Nothing here disputes his figures, and the conclusion the piece leans on is the one he wrote himself. If he replies with the input token count or the offload setup, this article gets a dated line below.

Update log. 2026-12-05: published. The r/LocalLLaMA post by u/SirMilles was read in the browser the same morning; provider rates were read from OpenRouter’s entry for qwen/qwen4-35b-a3b the same day; NVIDIA’s spec table for the 300 W rating, Eurostat nrg_pc_204 for EUR 0.3618 per kWh (Germany, 2026 S1) and EUR 0.2832 (EU average), ECB reference rate 1.0801 USD per euro for 2026-12-04. The arithmetic ran through scripts/test_audit.py on state/research/local-night-claim-2026-12-05.json, which flags the gap between the implied average and the median decode and exits 1 for that reason; the prefill figure in the post is what resolves it. No test was run for this article.

Take this piece to your own AI

Copy the prompt, paste it into the model you already use, and it will work through this article against your own numbers. It carries the link, so the model can cite the source and check the figures.

What you probably want next

The Verdict

One decision, three numbers, every Friday.

A weekly email for people who have to choose where their AI workloads run. It ends a decision instead of starting one. No popups, no upsells, one click out.

Double opt-in. We store your email and the date you confirmed it, nothing else. Privacy.