By Cameron Voss (pen name) · Reviewed November 26, 2026
- DeepInfer is an open-source inference engine, not a complete serving stack. The KV cache system, prefill/decode disaggregation and cross-replica load balancing are still yours to build or buy.
- DeepSeek V4.1 Flash lists at $0.15 input, $0.60 output and $0.003 cache read per million tokens off-peak. At 90% input, 10% output and 80% cache hits, that comes to about $0.089 per million. Peak without cache is $0.39.
- A four-GPU B200 pod costs about $28,960 a month at $8 per GPU-hour, including ops and storage.
- At 1B tokens a month, the API is 74 to 325 times cheaper. The break-even is about 74B tokens a month against peak, uncached API, and about 325B against off-peak, cached API.
DeepInfer's README has the charts that make self-hosting look easy. Four SM100 GPUs push 60,000 to 89,000 prefill tokens per second per GPU. Sixty-four GPUs sustain 26,200 decode tokens per second per GPU at 105 tokens per second per user. The engine is Apache 2.0. The model is the same V4.1 Flash 1017 checkpoint the API serves.
Then the README lists what is missing: a KV cache system, prefill/decode disaggregation and load balancing across replicas. That is the gap between a benchmark and a service. The gap is where the monthly bill comes from.
This article builds a build-versus-buy model from those numbers and DeepSeek's published API rates. It is not a benchmark of DeepInfer. It is a way to see where the lines cross before you reserve a GPU cluster.
What DeepInfer ships, and what it does not
The engine covers the model-side work. It includes the DeepSeek kernel stack, attention data parallelism and context parallelism, MoE expert parallelism with load balancing, DSpark speculative decoding, SWA bounded replay, asynchronous scheduling, batch-invariant inference, deterministic sampling and structured outputs.
Support is narrow. The README lists DeepSeek-V4.1-Flash as the only model, on NVIDIA SM100 GPUs or Huawei Ascend 950 NPUs. The license is Apache 2.0.
The missing pieces are not small:
- A KV cache system.
- Disaggregation for the vision encoder, prefill and decode. The README says most engine functionality is implemented, but the deployment layer is not shipped.
- Load balancing across data-parallel replicas for prefill and decode.
The KV cache is the layer that makes prefix caching pay off. With disaggregation, prefill and decode can scale on separate pools. Load balancing keeps both pools busy. Without them, you can run offline inference or a small colocated service, but you cannot turn the README's four-prefill, sixty-four-decode benchmark into a production deployment on day one.
The API side of the ledger
DeepSeek sells V4.1 Flash by the token. The official price sheet has two windows and two input rates.
| Token type | Off-peak | Peak |
|---|---|---|
| Uncached input | $0.15 / 1M | $0.30 / 1M |
| Cache read | $0.003 / 1M | $0.006 / 1M |
| Output | $0.60 / 1M | $1.20 / 1M |
USD per 1 million tokens. DeepSeek V4.1 Flash list prices checked in November 2026.
A workload with 90% input, 10% output and 80% of input served from cache costs about $0.089 per million tokens off-peak. The same workload at peak with no cache costs $0.39. Mixed traffic lands between the two.
The API has no fixed fee, no GPU reservation and no idle capacity. That is the main advantage.
The self-host side of the ledger
The model uses a four-GPU B200 pod as the smallest unit worth pricing. That is generous to self-hosting. The README's prefill benchmark uses four SM100 GPUs; its decode benchmark uses sixty-four. A four-GPU pod that runs both stages will not match the sixty-four-GPU decode point. The model still uses the per-GPU benchmark as a ceiling, so the self-host side gets the benefit of the doubt.
| Item | Assumption | Monthly cost |
|---|---|---|
| GPU rent | 4 B200 GPUs at $8 per GPU-hour, 730 hours | $23,360 |
| Ops and monitoring | 0.5 FTE, existing Kubernetes experience | $5,000 |
| Storage and egress | Weights, logs, cache spill | $600 |
| Total | $28,960 |
Planning model, not a quote. Taxes, extra network egress and engineering time to build the missing serving layers are excluded.
The GPU rate is a list-price planning number. B200 capacity lists at about $6 per GPU-hour on RunPod's community cloud, $7.69 to $7.99 at Lambda, and more on AWS on-demand. At $6, the bill falls to $23,120. At $12, it rises to $40,640. The break-even moves with it, but the shape of the problem does not.
For capacity, the model uses the README's per-GPU throughput: 81,500 prefill tokens per second per GPU at 200 ms per step, and 26,200 output tokens per second per GPU at 105 tokens per second per user. On a 90/10 input-output mix, four GPUs can push about 707B tokens a month at 100% utilization. At 70%, that is 495B. At 30%, 212B. Those are ceilings, not forecasts.

Where the lines cross
At 1B tokens a month, self-hosting costs $28.96 per million tokens. The API costs $0.089 to $0.39. The API is 74 to 325 times cheaper.
At 10B, self-hosting is $2.90 per million tokens. The gap is still at least 7,400 times.
At 100B, self-hosting is $0.29 per million. That is inside the API band. It is about 26% cheaper than peak, uncached API and about 3.3 times the off-peak, cached price.
The lines cross at two points. Against peak, uncached API, self-hosting breaks even at about 74B tokens a month. Against off-peak, cached API, it breaks even at about 325B. The gap between those two numbers is the value of caching and scheduling. If your traffic can wait for off-peak hours and reuse prefixes, the API gets much harder to beat.
In utilization terms, 74B tokens is about 11% of the pod's monthly ceiling. 325B is about 46%. A pod that runs at 70% has room to beat the cached off-peak price, but only if the load is steady. A pod that averages 30% only beats the peak, uncached price.
The utilization penalty

The monthly bill does not change when utilization changes. The denominator does. At 30%, the pod spreads $28,960 over 212B tokens, which comes to $0.136 per million. At 70%, it spreads the same bill over 495B tokens, which comes to $0.058. The GPU rent is the same. The idle capacity is the difference.
This is why bursty traffic is a bad fit for self-hosting. You size the cluster for the peak, then pay for it during the trough. The API lets someone else carry that idle capacity. A reservation or a committed-use discount can change the arithmetic, but it does not remove the need for high average utilization.
The Pareto charts are a ceiling


The prefill curve is flat after 200 ms. Going from 200 ms to 380 ms buys about 6% more throughput. The decode curve is the opposite. Pushing per-user speed from 105 to 325 tokens per second cuts throughput per GPU by about 90%. The engine can be fast for many users or fast for one user, not both at the same time.
The README's four-prefill, sixty-four-decode split is a benchmark configuration. It suits a generation-heavy workload with many concurrent requests. A chat or coding workload with long prompts needs more prefill relative to decode. A low-concurrency internal tool needs less of both. The input and output mix determines how many prefill and decode GPUs you need, and that determines the bill.
When self-hosting wins
Self-hosting is worth a pilot when most of these are true:
- You can keep average utilization above roughly 50% for six months or more.
- Your monthly volume is in the hundreds of billions of tokens, or you pay peak, uncached API rates today.
- You already run GPU infrastructure and have on-call coverage.
- You need data residency, a private model or latency control that the API cannot provide.
- You can build or buy the missing KV cache, disaggregation and load-balancing layers.
If only the last item is true, you are signing up for an infrastructure project, not a cost saving.
When the API wins
The API wins for most teams, most of the time:
- Volume under 1B tokens a month.
- Spiky or seasonal traffic.
- A small team without GPU operations.
- A workload that can use prefix caching and off-peak hours.
- A need to start this week, not next quarter.
If you want a monthly allowance instead of tracking peak and off-peak rates, compare DeepSeek Subscription plans by token allowance. It is a simpler way to budget while you watch your real volume.
A simple rule
Estimate your monthly tokens, your cache-hit share and the share of traffic that can move off-peak. Price that workload with the official rates. Compare it with $28,960 a month for a four-GPU pod, or with your own GPU quote.
If the API bill is less than half the self-host bill, stay on the API. If the self-host bill is less than half the API bill and the load is steady for at least six months, run a pilot. If the two are close, the API is usually the better default because it carries the idle capacity and the operational risk.
The model is deliberately generous to self-hosting. Production adds GPUs, a cache tier and people. The break-even moves right. For most readers, the answer will not be close.
Frequently asked questions
Is DeepInfer a complete inference service?
No. The engine is open source. The KV cache system, prefill/decode disaggregation and cross-replica load balancing are not included. You can run offline inference today. A production service needs the missing layers.
How many tokens a month justify a four-GPU B200 pod?
About 74B against peak, uncached API rates, and about 325B against off-peak, cached rates. At 1B tokens a month, the API is 74 to 325 times cheaper.
Does DeepInfer run on H100?
No. The README lists NVIDIA SM100 GPUs and Huawei Ascend 950 NPUs. An H100 is SM90 and is not on the list.
Why use 90% input and 10% output?
It is a common chat and coding mix. A generation-heavy workload raises the API bill and favors self-hosting. A prompt-heavy, cache-friendly workload favors the API. The exact mix changes the break-even, not the direction.