Local LLM Deployment: Does It Really Give You Unlimited Tokens?
Deploying a large language model locally is often misunderstood as achieving "token freedom." This article breaks down the real cost structure, showing how hardware depreciation, electricity, and your own time replace pay-per-use billing. It provides a reproducible formula and a worked example based on a used server with consumer accelerators, comparing light daily use against full-load, high-concurrency operation to reveal why utilization—not VRAM—determines whether self-hosting is cheaper than an API.
Deploying a large language model (LLM) locally is often misunderstood as achieving “token freedom.” In reality, it simply swaps pay-per-use billing for a hardware buyout, electricity, and your own time. A near-zero marginal cost does not mean a lower average cost.
Here is a reproducible way to calculate it:
Cost per million tokens = (hardware depreciation + electricity + labor time) ÷ actual output tokens (in millions)
Consider a configuration built from a used server and consumer-grade accelerator cards, totaling 256 GB of VRAM. It delivers roughly 60 tok/s on a single stream and about 450 tok/s at 16 concurrent requests, consuming around 11 kWh per day. At a residential electricity rate of 0.55 yuan per kWh, that is about 6 yuan per day.
If you run a single stream for only 4 hours a day, you get about 860,000 tokens, and the electricity cost works out to roughly 7 yuan per million tokens. If you run 16 concurrent requests at full capacity all day, you get about 39 million tokens; even estimating full-load electricity at two to three times the light-use figure, the cost drops to just 0.3–0.5 yuan per million tokens. The same machine shows a 10-to-20x difference, and the difference lies in the denominator—utilization.
Now add depreciation. Hardware worth 20,000 yuan, depreciated over 3 years, costs about 18 yuan per day. Under light use, depreciation is about 21 yuan per million tokens, bringing the total to roughly 28 yuan; at full load, it is about 1 yuan. Hardware worth 80,000 yuan depreciates at about 73 yuan per day—nearly 90 yuan per million tokens under light use, and just over 2 yuan at full load.
For a fair comparison, the baseline should be the API of a lightweight open-source model in the same class (output priced at a few yuan per million tokens). The conclusion: for individual, light usage, local deployment is several to more than ten times more expensive; only all-day, high-concurrency operation makes it worthwhile.
Whether a model can get the job done is not determined by VRAM, but by the task type, context length, and throughput requirements.
