Skip to main content

AI On-Prem vs Cloud: Privacy, Cost, and Data Sovereignty

A B2B comparison with real TCO: on-prem AI with Ollama on a VPS costs zero extra per month, metered cloud bills per token.

What do you think about this article?

At a Glance

A B2B comparison with real TCO: on-prem AI with Ollama on a VPS costs zero extra per month, metered cloud bills per token.

Direct answer

The marginal cost of on-prem AI with Ollama on a VPS is zero per month: no per-token billing, no data leaving the company perimeter. The price paid is a smaller model ceiling than cloud offers. For most non-capability-critical business workloads, it is the more defensible choice on cost and compliance.

For most business workloads, cloud AI is a privacy tax you do not need to pay. This is not an ideological stance: it is what you find when you line up the real marginal cost of an on-prem model against a metered API's list price, row by row.

Method note: the infrastructure numbers cited here (VPS, monthly cost) are the real ones from my own production stack, where on-prem Ollama is the primary AI provider for the RAG engine, assisted content generation, and some dev-tools features, not a hypothetical sales-deck example.

Why most companies do not need the most powerful model on the market

The question almost no decision-maker asks before signing a metered AI contract is: does my workload actually need the most capable model available, or am I paying for a capacity ceiling I never touch? Internal document search, ticket classification, email summarization, structured extraction from forms: a large share of real business tasks run acceptably on a local 8-billion-parameter model, without ever calling out to a third party. The rest (complex multi-step reasoning, sophisticated creative generation, advanced multimodal tasks) is where cloud keeps a real, not imagined, advantage.

The problem is not picking a model that is too weak. It is paying for a worst-case ceiling while ninety percent of the traffic is the average case.

The real cost: what the VPS actually costs, not the list price

My production stack (Spring Boot backend, Angular SSR frontend, an ML microservice, PostgreSQL database, Redis cache, and Ollama as the inference engine) runs entirely on a single Hetzner CCX23 VPS (4 dedicated vCPU, 16 GB RAM), shared across every one of those services. The cost of that VPS is the entire infrastructure spend line: there is no separate second invoice for AI, because Ollama runs on the same machine, on the same cores, with no metered third-party provider to pay.

TCO comparison between on-prem AI on a VPS and metered cloud AI, real production data
Dimension On-prem (VPS + Ollama) Metered cloud AI (list price)
Monthly marginal AI cost 0 variable, grows with usage (per token)
Total infrastructure cost EUR 33/month (VPS, shared with backend/DB/frontend) AI cost stacks on top of existing hosting
Data sent outside the perimeter 0 every request leaves toward the third-party provider
Monthly spend predictability fixed unpredictable, no native cap
Available model ceiling 8B, fixed, local frontier models, higher capability
Real VPS costs from the production setup (Hetzner CCX23, Nuremberg). Marginal AI cost: Ollama llama3.1:8b running locally on the same VPS, no additional per-token invoice. Cloud-side comparison: public list prices, qualitative, variable by provider and model.

Trade-off, stated plainly: what you give up choosing on-prem

Honesty about the trade-off, not marketing: choosing on-prem is not free in an absolute sense, it is free on the monthly invoice. Three real costs remain. First, the model ceiling: a local 8B-parameter model does not compete with frontier models on complex reasoning or advanced multimodal tasks, and there is no way around it without changing hardware. Second, the operational burden: security patches, model updates, monitoring, backups, everything a cloud provider handles for you stays on your plate when the infrastructure is yours. Third, network latency depends on local hardware capacity rather than the scale of a dedicated data center: on a single VPS shared across multiple services, a load spike has to be absorbed by the same machine that also serves the application backend. In exchange you get full data sovereignty and a fixed, predictable invoice that does not depend on request volume.

When cloud is still the right choice

On-prem is not a dogma, it is a default for the average case. If the workload needs multi-step reasoning over very long documents, advanced multimodal generation, or burst scale that a single VPS cannot absorb, cloud remains the technically correct choice, as long as you accept its variable cost and the transfer of data to a third party. The useful question for a decision-maker is not "on-prem or cloud" in the abstract, but "does this specific workload actually need the capacity ceiling only cloud offers, or am I paying for that ceiling and never using it".

Data sovereignty: why it outweighs price in certain sectors

For companies handling healthcare, legal, or financial data with a legal basis in Europe, the question "where does my data go when I call the API" is not secondary: it is a compliance requirement under GDPR, with direct implications on international transfers and controller liability. With on-prem AI, the answer is structurally simple: the data never leaves the machine that hosts it, because there is no network call to a third-party processor. It is not a marketing advantage, it is a change in risk surface: fewer third parties in the processing chain, fewer contracts to verify, fewer questions to answer in an audit.

Who this approach is for

The practical advice for a decision-maker: if the company's AI workload is mostly made of non-capability-critical tasks (internal search, classification, summarization, structured extraction), and the company operates under strict data residency or compliance obligations, on-prem AI on a single VPS is not a downgrade compromise: it is the more defensible choice on predictable cost and risk surface. Reserve cloud for the cases that genuinely need the higher capacity ceiling, not as the default for every AI call the company makes.


Frequently asked questions

How much does on-prem AI really cost compared to metered cloud AI?

The marginal cost of on-prem AI is zero per month, because the model runs on the same VPS that already hosts the application infrastructure, with no separate per-token invoice. Metered cloud AI bills by request volume, with a cost that grows and has no native cap.

Is on-prem AI right for every type of company?

No. It is the more defensible choice when the workload is mostly made of non-capability-critical tasks, such as internal search or classification. For advanced multi-step reasoning or complex multimodal generation, the ceiling of a local 8B-parameter model remains a real limit.

What happens to company data with on-prem AI?

Data never leaves the machine that hosts the model, because there is no network call to a third-party processor. For companies handling healthcare, legal, or financial data under GDPR, this directly reduces the risk surface in the processing chain.

Do you need a dedicated data center to run on-prem AI in a company?

No. A single VPS shared with the rest of the application stack is enough for a large share of non-capability-critical business AI workloads, as shown by the production setup described in this article.

What model runs locally in an on-prem setup like this one?

The setup described here runs Ollama with an 8-billion-parameter llama3.1 model, fully self-hosted, with no automatic fallback to a cloud provider if it becomes unavailable.

Sources and further reading

Commenti

Caricamento commenti...

Sign in to comment

Discuss this article in the community

Join the Telegram group to discuss with other developers, ask questions and share your experiences.

Did you like this article?

Explore other content on the blog or discover my projects