Private LLM Deployment vs API Cost: What You're Really Buying
When companies start evaluating AI, the first instinct is usually "sensitive data, must be on-premise." That instinct isn't wrong — but the hardware quote you get on day one is just the cover charge. The real cost of private LLM deployment vs API usage shows up in 18 months of operations logs, not the initial invoice.
This isn't a directional overview. It's a numbers-first breakdown of what each path actually costs, where the risks hide, and what conditions have to be true before private deployment makes financial sense.
The Real Bill for On-Premise AI
Take a mid-scale inference setup as a baseline: full inference on a model like DeepSeek V3 or Qwen 3 72B requires at minimum four H100 80GB GPUs. At current market rates, that's roughly ¥280,000–320,000 per card. A four-GPU server, fully landed with networking, rack, and integration, runs ¥1.3M–1.5M.
That's invoice one.
Ongoing annual costs:
| Line item | Annual estimate | Notes |
|---|---|---|
| Power (4× H100, PUE 1.4) | ¥180K–250K | ~¥0.8/kWh, ~1.2kW per card at load |
| Dedicated ops engineer (1 FTE) | ¥350K–500K | Fully loaded, Tier-1 city |
| IDC colocation | ¥80K–150K | Bandwidth, rack space, cooling |
| Model updates and fine-tuning compute | ¥50K–200K | Depends on iteration cadence |
| Security audit and compliance | ¥30K–80K | Level 3 classified and above |
Three-year TCO lands somewhere between ¥3.5M and ¥4.8M — roughly ¥97K–133K per month when amortized.
And that's the optimistic scenario. H100 utilization outside peak hours typically runs 15–30%, which means you're paying full freight for a lot of idle silicon.
What API Pricing Actually Looks Like
API billing is per token, so cost scales directly with usage. Current pricing on major models:
- Claude Opus 4.8 (Anthropic flagship): ~$15 / 1M input tokens, ~$75 / 1M output tokens
- GPT-5.4 (OpenAI balanced tier): ~$10 / 1M input tokens, ~$30 / 1M output tokens
- DeepSeek V3 (strong price-to-performance): ~$0.27 / 1M input, ~$1.10 / 1M output
- Qwen 3 32B: ~$0.40 / 1M input, ~$1.60 / 1M output
A typical mid-size enterprise running AI across customer support, document summarization, and code review will consume somewhere between 500M and 2B tokens per month. Routing most of that through DeepSeek V3 costs roughly ¥1,500–6,000/month. Running high-priority tasks through GPT-5.4 adds up to ¥5,000–20,000/month.
At equivalent compute volume, API costs run 1/20th to 1/50th of private deployment — with zero fixed cost, zero idle waste, and zero ops overhead.
The same math applies to coding workflows. Running AI-assisted development through Claude Code or Codex means paying only for what you use. Standing up a private code generation service means 2–4 weeks of engineering time just for model quantization, inference optimization, and context window tuning before you write a single line of product code.
Three Risks Private Deployment Doesn't Advertise
Model staleness. When you deploy on-premise, you freeze a model at a point in time. Anthropic ships a new flagship roughly every 4–6 months; OpenAI moves faster. Keeping pace means cycling through procurement, deployment, testing, and rollout — at minimum 3–8 weeks per update. Most teams end up perpetually running two versions behind.
No SLA backstop. API providers typically guarantee 99.9% uptime (≤43 minutes downtime per month). Your private cluster doesn't come with that guarantee. Hardware failures, CUDA version conflicts, GPU memory overflows, network flaps — all of that lands on your team. Without a real on-call rotation, actual availability often slips below 99%, which translates to more than 7 hours of downtime per month.
Compliance you build yourself. When you call a licensed API provider, the regulatory burden is shared. Private deployment means you're handling data security assessments, network security grading, and LLM algorithm filing independently. That audit cycle runs 6–12 months and costs ¥150K–400K depending on scope — before you've processed a single production query.
When Private Deployment Actually Makes Sense
There are legitimate cases. Three of them:
Hard data sovereignty requirements. Core financial systems, defense, government infrastructure — if regulation explicitly prohibits data leaving the environment, private deployment is a compliance prerequisite, not a cost tradeoff.
Massive, stable call volume. If you're consistently consuming more than 50B tokens per month with a peak-to-trough ratio under 2x, API costs will eventually exceed the marginal cost of owned hardware. That's when scale economics start working in your favor.
Deep inference customization. Modifying model weights, injecting proprietary knowledge at the training layer (not RAG), or tuning CUDA kernels to hit sub-50ms P99 latency — none of that is possible through an API.
If none of those apply, private deployment is largely paying a premium for a sense of security rather than actual security.
The Hybrid Architecture Most Teams Land On
The pragmatic middle path is tiered routing:
Sensitive data → Local lightweight model (e.g., quantized Qwen 3 7B on a single A10)
General workloads → API (DeepSeek V3 / GPT-5.4-mini)
Complex reasoning → On-demand flagship API (Claude Opus 4.8 / GPT-5.5)
This structure brings private deployment costs down to roughly ¥250K–400K (single A10 server plus ops), while keeping full access to frontier model improvements as they ship. The key is data classification — only what genuinely needs local processing goes through the private path.
The routing layer itself isn't complex. LiteLLM or a self-hosted OpenAI-compatible proxy handles it cleanly. The core config is around 50 lines of YAML, mapping task types to their respective endpoints.
If your team is still in evaluation — not yet at the contract-signing stage — the lowest-cost validation is to get API calls running and measure actual token volume against real workloads before committing to hardware. I use XycAi (https://www.xyc.ai) for this: a single OpenAI-compatible endpoint covering 200+ global models, where GPT and Claude official models are available from 14% of list price. Claude Code, Codex, and Gemini CLI all work with a one-line base URL swap. It carries a licensed LLM algorithm filing with compliant global invoicing, so the regulatory side is handled. Worth running your numbers there before you sign anything.
One API for 200+ global AI models
GPT · Claude · Gemini official models from 14% of list price. Licensed LLM filing, CN2 direct connect at ~5ms, compliant global invoicing.
Try XycAi →