QDNAAdvisory and architecture for LLM inference and training platforms, on-premises or hybrid

On-premises or API: how many users before local LLM pays off?

Pay-per-token compares poorly with an amortised installation, and here is where the break-even point lies and why the KV cache changes everything.

Updated on 2 September 2026: every cost is recomputed with the formula shown and named, dated assumptions (DGX Spark €4,875 excl. VAT on idealo.fr, 240 W from the NVIDIA sheet, EDF Tarif Bleu as of 1 August 2026, DeepSeek V4 Flash price list of 2 September 2026, rate €1 = $1.159, ECB of 1 September 2026). The "15 to 100 users" thresholds, the quantified "field reports" (€2,400, €800, €300, €2,000) and the lever gains (30 to 100%, factor of two to three, half) had no source and are removed or replaced by the calculation.

A balance scale weighing a small server on one pan and a cloud with a stack of coins on the other, in front of a cost curve at its crossing point.
Short answer. Against the cheapest API on the market (DeepSeek V4 Flash, price list of 2 September 2026), a DGX Spark depreciated over three years costs about €164 excl. VAT per month, hardware and electricity included, and becomes cheaper than pay-per-token from around fifty agentic users (one million input tokens and 50,000 output tokens per working day each) or about three hundred occasional users. The calculation, its assumptions and its limits are set out below; the presence of sensitive data mandates on-premises regardless of headcount.

Two opposing cost structures

A pay-as-you-go interface has almost no fixed cost, but a cost that grows with every token, while an on-premises installation carries a high upfront investment and then a marginal cost close to zero. The two curves cross at a break-even point that depends on usage intensity, and that is not guessed: it is computed from five sourced numbers.

The assumptions of the calculation

Monthly API cost per user = 21 × (uncached input × €0.38 + cached input × €0.012 + output × €1.14) per million tokens. Occasional profile: 21 × (0.05 × 0.38 + 0.05 × 0.012 + 0.005 × 1.14) = €0.53.

Agentic profile: 21 × (0.2 × 0.38 + 0.8 × 0.012 + 0.05 × 1.14) = €2.99. Threshold = €164 ÷ cost per user.

At how many users does on-premises pay off?

On-premises pays off beyond roughly 55 agentic users, or 309 occasional ones, at DeepSeek V4 Flash's peak rate. At the off-peak rate the threshold doubles, to 110 agentic or 620 occasional users. Below those counts, a pay-per-token interface stays cheaper.

HeadcountUsage profileCheapest option
Under 55 agentic (or 309 occasional)€164 ÷ €2.99 = 55; €164 ÷ €0.53 = 309Pay-per-token interface (DeepSeek V4 Flash, peak hours)
Under 110 agentic (or 620 occasional)Same formulas at the off-peak rate, half pricePay-per-token interface if the load runs at night or at weekends
BeyondFixed on-premises cost, proportional API costOn-premises, growing gap, provided the machine sustains the load

Two caveats bound this result. The first is capacity: 55 agentic users produce 58 million output tokens per month, i.e. 95 tokens per second on average over office hours, above the 18 to 20 tokens per second single-stream and the 59 aggregate tokens per second at twelve requests read by Entrpi on a DGX Spark for DeepSeek V4 Flash (DSpark engine, NVIDIA forum, 15 July 2026); two Sparks under vLLM FP8 reach 210.8 aggregate tokens/s with six users (Classmethod, 10 August 2026), and a single Spark under heavy concurrency remains [TO BE MEASURED], and if the machine is not enough, the price of the next one enters the formula. The second is the choice of reference API: a price list dearer than DeepSeek's lowers the threshold in the same proportion. Finally, the presence of sensitive data mandates on-premises regardless of headcount, for compliance and sovereignty reasons.

Why is the KV cache on-premises' trump card?

Agentic workloads are dominated by input tokens, twenty to one in the profile above, more on tool loops. A ten-thousand-token system prompt sent a thousand times a day is ten million tokens: €3.80 a day at DeepSeek's peak rate if it is not served from cache, €0.12 if it is, and almost nothing locally once the prefix is cached.

The vLLM inference engine reuses the prefix cache for free, so time to first token drops sharply when the start of a conversation repeats, and repeated loops become nearly free, where a remote interface bills any token not held in cache at a markedly higher rate. The combination of document cache and prompt cache sharply reduces the cost of agentic scenarios.

Sovereign hosting in France

Two paths exist: on-premises combines hardware investment with French electricity, largely nuclear in origin, hence stable and low-carbon, while managed colocation in a sovereign French data center avoids buying premises and preserves legal control, unlike operators subject to extraterritorial law.

Rationalising without exposing data

A shared hardware base serves all agents with per-team quotas, and innovation on public data can overflow to a remote service, while sensitive data stays local, which rationalises cost without exposing information. The general framework is presented in our definition of the sovereign AI platform.

Fake local and its hidden costs

A team sometimes believes it runs locally while paying a remote interface bill every month: a sentiment analysis or a classification buried inside a conversational agent keeps calling an external provider, and the matching invoice line is attached to no project.

The calculation is the same as above, applied to the gateway's actual log: as long as that monthly spend exceeds the €164 excl. VAT of a depreciated machine, bringing it back in-house pays for itself, and the rule fits in one sentence: a partial local setup remains a billed dependency.

Which levers reduce the cost per token?

On-premises cost drops further once the inference engine is tuned, with several levers adding up and no extra hardware required.

The LiteLLM gateway unifies more than a hundred providers and models behind a single interface ("Call 100+ LLMs", official documentation), so switching from one provider to another takes one line of configuration. Virtual keys set a budget and limits per team, while spend stays stored in your own database, on your own infrastructure in Europe, so the bill stops being an unknown.

Frequently asked questions

How many users before local becomes cost-effective?

From about 55 agentic users or 309 occasional users against DeepSeek V4 Flash at peak rate: a DGX Spark depreciated over three years costs about €164 excl. VAT per month (€4,875 excl. VAT over 36 months plus 175 kWh at €0.1624/kWh excl. VAT, Tarif Bleu for professionals), to be divided by a user's monthly API cost, €2.99 for the agentic profile and €0.53 for the occasional one. The threshold doubles at off-peak rates and assumes the machine sustains the load.

Why does the KV cache change the calculation?

It makes repeated prefixes nearly free on-premises, whereas the API bills every token that is not cached. Agentic workloads, dominated by input, benefit the most.

Does sensitive data mandate on-premises?

Yes, regardless of cost: compliance and sovereignty require local hosting for sensitive data.

Request a return-on-investment study

Investment and operating cost estimate, comparison with pay-per-token, based on your actual volume.

Book a call

References