
Private LLM for Business: Self-Hosted vs API Costs and Data
In short: For most small and mid-sized companies, paying for a provider's API is still cheaper: small models start at US$0.10 per million input tokens. A private LLM in your own cloud makes sense when the data is sensitive and must not leave your perimeter, when volume is high and steady, or when you need full control over the model version and the vendor. Often the best answer is hybrid.
Should you run a private LLM or use the OpenAI, Anthropic or Google API?
The question usually arrives as "which model should we use?" The decision starts earlier: which process you want to solve and how sensitive the information the model will touch is. The model comes after.
A private LLM in your cloud is worth it when:
- You process data that, by contract, regulation or internal policy, shouldn't leave your infrastructure: medical records, client financial information, contracts or personal data at scale.
- You have a high, stable token volume, enough to keep a GPU busy for a good part of the day.
- You need to pin a model version that won't change without your decision, or you don't want to depend on a single vendor's prices and terms.
- You have, or hire, someone to operate the infrastructure.
A provider's API makes sense when:
- Your volume is low or medium, or swings a lot from month to month.
- The task demands the best reasoning quality available.
- The data isn't sensitive, or you can anonymize it before sending it.
- You don't have a team to run GPUs, monitoring and updates.
The strongest argument for your own model is almost never price. It's control over the data.
What does a "private LLM" actually mean?
"Private" gets used for very different things. Before comparing costs, figure out which level you're at:
| Level | Where the model runs | Who processes your data | When it makes sense |
|---|---|---|---|
| Free API tier | Provider's cloud | The provider, under free-tier terms | Testing without real data |
| Paid API | Provider's cloud | The provider, under its commercial contract | Non-sensitive or anonymized data |
| API with regional processing | Provider's cloud, in a defined region | The provider, with data residency | Where the data is processed matters, but you don't need to run the model |
| Open model in your cloud | Your AWS, Google Cloud or Azure account | You | Sensitive data, high volume, version control |
| On-premise or on-device | Your servers or the user's machine | You | Strict isolation or offline work |
The third level is the one most often overlooked. OpenAI offers regional processing (data residency) with a 10% surcharge for models released on or after March 5, 2026. If your concern is where the data is processed, not who processes it, that option may make running your own model unnecessary.
When does on-premise beat your own cloud?
On-premise or on-device makes sense when the cloud isn't an option: sites, plants or field equipment without stable connectivity, environments that require physical network isolation, or companies that already have underused GPU servers. In those cases the model runs where the data lives and doesn't depend on an internet link. In exchange, you take on hardware, power, equipment replacement and physical security; if none of those conditions apply, your own cloud is usually easier to scale and operate.
What happens to data privacy when your company uses ChatGPT or an API?
Free is not the same as paid
The most concrete difference is the tier you use. On the Gemini pricing table, the free tier states that content is used to improve Google's products; check what the paid tier says on the same table before deciding. A common mistake is to start a prototype with a free key, load real data into it "just to test," and have that prototype end up in production without anyone reviewing the terms.
What to ask a provider before sending data
Policies change, so review the current contract and privacy documentation. Ask for written answers to these questions:
- Do you use data sent through the API to train models?
- How long do you keep requests and responses, and for what purpose?
- Do you offer zero data retention? With what requirements?
- In which region is information processed and stored? Can I choose it?
- Which subprocessors are involved?
Personal data laws: general information
In Colombia, Law 1581 of 2012 governs the processing of personal data. If the model will process data about customers, employees or patients, sending it to a provider with servers in another country may have implications for consent, contracts with the data processor and international data transfers. Other countries in Latin America, Europe and the US have their own rules. This is general information, not legal advice: validate your case with a data protection lawyer before defining the architecture, because their answer can change which level of the table above you need.
Classify your data before you talk about models
This is the most useful and cheapest exercise. Which fields are personal? Which are business-confidential? Which can be anonymized without losing usefulness? It often turns out that only part of the workflow needs to stay inside your perimeter.
That classification reveals the cheapest lever before you pay for GPUs: anonymize or pseudonymize sensitive fields inside your perimeter (replace names, national ID numbers or account numbers with identifiers) and send only the clean text to the API. The decision ladder looks like this:
- Classify the data in the process.
- What can be anonymized without losing usefulness goes to a standard API.
- What must be processed in a specific region goes to an API with regional processing.
- Only what cannot leave under any circumstances justifies your own model.
Confirm with your advisor whether, in your case, pseudonymized data still counts as personal data.
How much does the API cost compared with paying for GPUs by the hour?
API list prices
Standard prices per million tokens published on the official pages (reviewed in late 2026). They change often and some have scheduled changes: verify them at the link on the day you run your numbers.
| Provider and model | Input (US$/1M) | Output (US$/1M) |
|---|---|---|
| OpenAI gpt-6-astra | 10 | 50 |
| OpenAI gpt-6.1-sol | 2 | 10 |
| OpenAI gpt-6.1-terra | 1 | 5 |
| OpenAI gpt-6-luna | 0.10 | 0.50 |
| Anthropic Claude Fable 5.2 | 8 | 40 |
| Anthropic Claude Opus 5.5 | 4 | 20 |
| Anthropic Claude Sonnet 5.5 | 2 | 10 |
| Anthropic Claude Haiku 5.5 | from 0.10 | from 0.50 |
| Google Gemini 3.6 Flash, through Dec 31, 2026 | 0.75 | 3.75 |
| Google Gemini 3.6 Flash, from Jan 1, 2027 | 1.50 | 7.50 |
Sources: OpenAI pricing, Anthropic models overview and Gemini pricing.
There are levers that cut the bill without switching models. At OpenAI, Batch processing costs half and "Fast" mode costs double (OpenAI). Cached input costs between 5% and 10% of the normal input price (Maxim). Anthropic includes the full 1-million-token context at standard pricing on Claude 4.6 and later models, except Haiku 5.5 (Anthropic), which makes some long-context RAG workflows over the API cheaper.
Example: 1 billion input tokens and 200 million output tokens per month
That's a high volume for a small or mid-sized company: roughly a document analysis pipeline running all day. At the standard prices above:
| Model | Approximate monthly cost | Blended cost per million tokens |
|---|---|---|
| Claude Opus 5.5 | US$8,000 | US$6.67 |
| Claude Sonnet 5.5 or gpt-6.1-sol | US$4,000 | US$3.33 |
| Gemini 3.6 Flash from Jan 1, 2027 | US$3,000 | US$2.50 |
| gpt-6.1-terra | US$2,000 | US$1.67 |
| Gemini 3.6 Flash through Dec 31, 2026 | US$1,500 | US$1.25 |
| gpt-6-luna | US$200 | US$0.17 |
Our own calculation based on the official prices cited, without Batch or caching.
The last column is the one that matters: it's the price your self-hosted model has to beat, all-in, to win on cost. Against a small API model, a self-hosted deployment rarely wins on price for simple tasks. Against a large model, the math can change, as long as the open model delivers good enough quality for your task.
Price risk: APIs go up too
Google has published dated changes. Gemini 3.6 Flash moves to US$1.50 / US$7.50 from January 1, 2027, and Gemini 4 Argon in Priority mode costs US$3.60 / US$18 through November 30, 2026 and US$7.20 / US$36 from December 1, 2026. In the example above, the Gemini 3.6 Flash bill goes from US$1,500 to US$3,000 a month without anything changing in your operation. If your budget depends on a single vendor, leave headroom and design your code to switch models without rewriting the system.
How to calculate your break-even point
The hourly price of a GPU varies by region, instance type, usage commitment and cloud. Throughput in tokens per second depends on the model, quantization, prompt length and concurrency. You have to get both numbers yourself:
- Measure your real volume. Input and output tokens per month, and how they spread across the day. Volume concentrated in business hours leaves the GPU idle at night.
- Calculate your blended API cost: (input tokens ÷ 1,000,000 × input price) + (output tokens ÷ 1,000,000 × output price), divided by total tokens in millions.
- Price the infrastructure in the region you'll use (for example, São Paulo vs us-east): GPU instances, storage, networking and a second node if you need availability.
- Measure throughput in a pilot. Serve the candidate model with an inference engine like vLLM, using your real prompts, and measure how many tokens per month one GPU handles at the latency your process tolerates.
- Add operations (next section).
- Compare: self-hosted cost per million = (infrastructure + monthly operations) ÷ millions of tokens actually served. If it doesn't land clearly below the blended API cost, your own model is only justified by privacy or control.
Where to get each number: the GPU hourly price from your cloud's official calculator (AWS Pricing Calculator, Google Cloud Pricing Calculator or Azure Pricing Calculator), filtered by region; reference throughput from the benchmarks published by the vLLM project or MLCommons' MLPerf Inference results. Use those references to decide what to measure in your pilot, not to replace it.
What does running your own model cost that nobody budgets for?
The GPU bill is the visible part. These are the items usually missing from quotes:
- Idle capacity. You pay for the GPU by the hour whether you use it or not. Your real cost per token rises in proportion to the hours the GPU sits idle.
- Availability. With a single node, if it goes down, your process stops. Redundancy multiplies infrastructure cost.
- Monitoring. Latency, errors, GPU memory, queues and cost per request.
- Updates. Models and inference software change often, and every change requires retesting before it reaches production.
- Quality evaluation. A set of cases with expected answers to compare versions and catch regressions. You need it with an API too, but with your own model the responsibility is entirely yours.
- Security. Unauthenticated endpoints, keys in the repository or broad cloud permissions are the same mistakes we describe in the security risks of prompt-built code, made worse by the fact that this endpoint processes your most sensitive data.
- People. Someone has to respond when something breaks. If nobody on your team runs GPUs and containers, that cost belongs in your contract with your vendor.
Llama, Qwen, DeepSeek, Mistral or Gemma: which should your company choose?
Don't choose by name. Versions change fast, and sizes, hardware requirements and licenses must be confirmed on each model's official card, not in a summary. Evaluate each candidate against these criteria:
| Criterion | What to check | Why it matters |
|---|---|---|
| License | The official text on the model card: commercial use and special conditions | Determines whether you can use it in your product. Get a legal review |
| Size and hardware | Which sizes the family publishes and how much memory each needs, with and without quantization | Determines GPU type and count, and cost |
| Performance in your language | Tests with your documents and your jargon, not just published benchmarks | It's the closest proxy for your real use |
| Context | Context length it supports with stable quality | Shapes how you design RAG |
| Tool use | Function calling and structured outputs | Essential if you're building agents |
| Ecosystem | Support in inference engines like vLLM | Lowers operating cost |
The best test is practical: three or four candidates, 50 to 100 real cases from your process and the same rubric for all of them, including an API model as a baseline.
How does the hybrid approach work: your own model and an API together?
It's worth evaluating when only part of the workflow touches sensitive information:
- Classification inside your perimeter. Rules, and if needed a small model in your cloud, detect whether a request contains sensitive data. This layer can't live in an external API: if the classifier is outside, the data has already left.
- Routing. Sensitive requests go to the open model in your cloud; general or anonymized ones go to an API, where you pay per use and get frontier models.
- Cost-based selection. Among requests sent to the API, a small model decides whether to escalate to a larger one. Anthropic positions Haiku 5.5 for classification, extraction and routing, as long as the data is already cleared to leave.
- RAG and agents on top. Company knowledge lives in a vector database inside your infrastructure. If you're torn between indexing documents and retraining the model, see when RAG fits and when fine-tuning does.
- Traceability. Every request is logged with its route, the model that answered and its cost, so you can shift traffic between sides based on data.
An extra benefit: if an API raises prices or changes its terms, you swap models in the routing layer without touching the rest. To see how agents, RAG and MCP fit into a complete architecture, read our guide to enterprise AI in 2026.
Decision matrix: standard API, API with data residency, or your own model?
| Criterion | Standard API | API with regional processing | Open model in your cloud |
|---|---|---|---|
| Data sensitivity | Low or anonymized | Medium: where it's processed matters | High: must not leave your infrastructure |
| Volume | Low, medium or variable | Low, medium or variable | High and steady |
| Required quality | Best available | Best available | Good enough, validated with your cases |
| Technical team | Minimal | Minimal | Ongoing operations, in-house or outsourced |
| Vendor risk | High: someone else's prices and terms | High | Low: you control version and deployment |
| Startup cost | Near zero | Near zero | Infrastructure and pilot |
| Variable cost | Price per token | Price per token + 10% at OpenAI for models from March 5, 2026 | GPU by the hour, used or not |
If your case has criteria in two columns at once, that's the sign a hybrid architecture is the right fit.
How we do it at Key Lab
Our principle is to adapt the technology to your company, not your company to the technology. Here that means starting with how the process works, what data it touches and what happens if that data leaks or the system goes down, and choosing the model afterward.
We work in four phases, which usually get an MVP ready in about four weeks:
- Diagnosis and architecture. We map the process, classify data by sensitivity, measure expected volume and decide whether the answer is an API, your own model or hybrid. We flag the legal questions so your advisor can validate them.
- Prototype and MVP. We test candidate models against your real cases. When the case calls for it, we deploy open and private models (DeepSeek, Qwen, Llama, Mistral or Gemma) in your own cloud. On top, we build the RAG layer, for example on pgvector, and agents connected to your systems through MCP.
- Security, QA and optimization. We evaluate quality against a fixed test set, review permissions and endpoint exposure, and measure the real cost per request.
- Deployment and growth. We go to production with active monitoring and traceability, so the API-versus-own-model decision can be revisited with data.
We write automation in our own code (TypeScript and Python), with durable workflows that include retries and traceability, which makes it easier to switch models without rebuilding the system. We use local processing in our own products too: Keymark, our Markdown reader, uses AI that runs on the user's machine. Enterprise projects can take longer than four weeks; after the diagnosis we deliver a clear timeline.
Frequently asked questions
Is a self-hosted LLM cheaper than the OpenAI API?
At low or medium volumes, almost never. Small API models start at US$0.10 per million input tokens, while a GPU is billed by the hour even when idle. Your own model can win at high, steady volumes against large API models, but you have to prove it by measuring real throughput in a pilot.
Does using an AI provider's paid API protect my data?
Don't assume so: review the terms of the tier you're buying. With Gemini, for example, the free tier states that content is used to improve Google's products, so read what the paid tier says. Check retention, training use, processing region and subprocessors in the current contract, and validate the obligations that apply to you with a lawyer, such as Law 1581 of 2012 in Colombia.
What do I need to deploy an open source model in the cloud?
An account with GPU instances in the right region, an inference engine like vLLM, a model whose license allows your use and a test set to evaluate quality. You also need monitoring, access control on the endpoint and someone responsible for operating and updating it. Without that operation, your own model becomes a risk instead of a safeguard.
What is a hybrid LLM approach?
It's an architecture that sends requests containing sensitive data to an open model inside your cloud and everything else to an external API. Sensitivity classification happens inside your perimeter, before the data leaves. That way you combine control over critical information with the quality and pay-per-use pricing of commercial models.
How long does it take to implement a private LLM with Key Lab?
An MVP is usually ready in about four weeks with our diagnosis, prototype, QA and deployment methodology. Enterprise projects or those with complex requirements can take longer. After the diagnosis we deliver a timeline and a budget based on scope.
If you're about to send sensitive data to an API or weighing whether to run your own model, let's review your process before choosing the technology. Book a meeting with our team: we'll understand your case, assess technical feasibility and send you a proposal with architecture, timeline and budget.