Private AI vs Public AI APIs: Deployment Options for Enterprise AI
Public LLM APIs, private cloud endpoints or self-hosted open-weight models? Compare data handling, residency, cost drivers, operations and quality before you commit.
Transparency note: TrustHappens is published by the team behind aiAxonIQ, TrustIvan, TrustLynce, MithunAI and ARUKZ ERP. Where we mention these products, we have a commercial interest in them. We aim to state the genuine strengths and limits of every option we compare. Editorial policy.
How we compare
- Data usage and retention
- Data residency
- Model quality and choice
- Cost drivers
- Operational effort
- Licensing
- Vendor lock-in
Vendor capabilities checked against official websites and documentation on . Vendors change products often — confirm current details with each vendor.
On this page
Almost every enterprise AI project reaches the same meeting. Someone wants to send customer tickets, contracts or source code to a large language model, and someone else asks where that data goes, who can see it and whether it will be used to train the next model. The answer depends less on the model than on how you deploy it.
There are three broad options. Public AI APIs call a model provider's hosted service directly. Private cloud endpoints run provider models inside a hyperscaler such as Azure, AWS or Google Cloud, under that cloud's data terms. Self-hosted open-weight models run on infrastructure you control. "Private AI" is used loosely for both of the last two, so it pays to be precise.
This comparison sets out what each option offers on data handling, residency, cost, operations and quality, using the providers' own published policies as checked on 5 December 2026. Policies change and differ by product tier, so confirm the current terms for the exact service and contract you will use. This is general information, not legal advice.
What is being compared
Public AI APIs
You send prompts over HTTPS to the model provider and receive completions. Business tiers of the major providers now state that they do not train on your data by default:
- OpenAI says that by default it does not use business data from its API Platform and business ChatGPT products to train its models, unless you explicitly opt in, for example through feedback. Its data controls documentation adds that abuse monitoring logs, which may contain prompts and responses, are retained for up to 30 days by default; eligible customers can apply for Zero Data Retention or Modified Abuse Monitoring, subject to OpenAI's approval. OpenAI also publishes a data residency guide covering regional storage and processing options and their eligibility.
- Anthropic says that by default it will not use inputs or outputs from its commercial products, including the Anthropic API, to train its models, unless you report feedback or otherwise choose to allow it.
- Google's Gemini API terms distinguish tiers. For unpaid services, including Google AI Studio and the unpaid quota of the Gemini API, Google uses submitted content and responses to improve its products. For paid services, Google states it does not use prompts or responses to improve its products.
The last point is the most common trap: the same API can carry different data terms depending on whether you are on a free or paid tier.
Private cloud endpoints
Hyperscalers host provider models inside their own cloud, under the cloud provider's data protection terms:
- Azure (Microsoft Foundry, including Azure OpenAI) states that your prompts, completions, embeddings and training data are not available to other customers, not available to OpenAI or other providers of models sold by Azure, and not used by those providers to improve their models. Azure runs abuse monitoring that can select samples of prompts and completions for automated review and, where necessary, human review. For deployment types labelled Global, prompts and responses may be processed in any geography where the model is deployed; Data Zone deployments narrow that.
- Amazon Bedrock documents that model providers have no access to the Bedrock deployment accounts where their models run, and therefore no access to Bedrock logs or customer prompts and completions.
- Google Cloud (Vertex AI; Google's current documentation calls the platform Gemini Enterprise Agent Platform) states that Google will not use your data to train or fine-tune any AI or ML models without your prior permission or instruction. Its zero data retention guidance explains that some features cache data for up to 24 hours, that regional endpoints keep cached data in the selected location, and that the global endpoint may serve requests from any location.
Self-hosted open-weight models
You download model weights and run inference on your own GPUs, in your data centre or your own cloud account. Data never needs to leave infrastructure you control. The trade is that you take on serving, scaling, patching, evaluation and licence compliance. Open-weight does not mean unrestricted: the Llama 3.1 Community License, for instance, requires companies whose products had more than 700 million monthly active users on the release date to request a separate licence from Meta, and the Gemma Terms of Use incorporate a prohibited use policy. Read the licence of every model you deploy.
Key differences
| Public AI API | Private cloud endpoint | Self-hosted open-weight | |
|---|---|---|---|
| Where inference runs | Model provider's infrastructure | Hyperscaler infrastructure, in your cloud account's chosen region or deployment type | Your data centre or cloud account |
| Training on your data | Business tiers: not by default (check free tiers) | Not by default under the cloud's terms | Only if you choose to train |
| Retention | Provider-defined; abuse monitoring logs may be kept (for OpenAI, up to 30 days by default) | Provider-defined; abuse monitoring and caching vary by service | Whatever you configure |
| Data residency | Regional options vary by provider and eligibility | Choose region or data zone; global options may process anywhere the model runs | Wherever you deploy |
| Model choice | That provider's models | Catalogue offered by the cloud | Any open-weight model whose licence fits |
| Access to proprietary models | That provider's models, as released on its API | Availability varies by cloud and region | Open-weight models only |
| Operations | Minimal | Low to moderate (cloud setup, quotas, networking) | High (GPUs, serving, scaling, upgrades) |
| Cost shape | Per token | Per token or provisioned capacity | Infrastructure and staff, largely fixed |
| Lock-in risk | API and model specific | Cloud and API specific | Lowest at the model layer, highest in operations |
Two differences matter most in practice.
Contract versus control. With public APIs and cloud endpoints, your protection is a contractual and technical promise from the provider: no training, defined retention, defined processing locations. With self-hosting, protection comes from your own controls. Many organisations find the contractual route sufficient for most data and reserve self-hosting for the most sensitive workloads or for jurisdictions where no suitable region exists.
Quality versus sovereignty. Proprietary frontier models are not released as open weights, so they are only available as hosted services. Whether an open-weight model is good enough depends on your task. Measure it on your own evaluation set rather than relying on public leaderboards.
Use cases
Public AI APIs fit
- Prototypes and internal productivity tools using non-sensitive or already-public data.
- Workloads that need the newest frontier model capabilities.
- Teams without infrastructure capacity, where a paid business tier's data terms are acceptable.
Private cloud endpoints fit
- Enterprises already committed to Azure, AWS or Google Cloud, who want AI under their existing cloud agreements, identity, networking and billing.
- Workloads with residency requirements that a regional or data-zone deployment can meet.
- Regulated teams that need provider models but want model providers kept out of the data path.
Self-hosted open-weight models fit
- Highly sensitive data, such as source code, health or defence-related material, where policy forbids third-party processing.
- Air-gapped or on-premises environments.
- High, steady volumes of narrow tasks where a smaller model is good enough and dedicated hardware stays busy.
Advantages
Public AI APIs offer the fastest start, access to the latest models, no infrastructure to run and pay-as-you-go pricing. Business tiers of the major providers state they do not train on your data by default.
Private cloud endpoints combine strong models with enterprise cloud controls: regional deployment choices, your cloud's identity and network controls, consolidated billing and data terms that keep model providers away from your prompts, as Azure and Amazon Bedrock document.
Self-hosted open-weight models give the most control. Data stays where you put it, retention is your decision, you can fine-tune freely within the licence, and no provider can change the model under you.
Limitations
Public AI APIs keep your data on someone else's infrastructure under terms they can update. Free tiers may carry very different terms. Residency options are narrower and may require eligibility or approval, and abuse monitoring retention applies unless you qualify for an exception.
Private cloud endpoints still involve abuse monitoring and, for some features, short-term caching; global deployment types trade residency for capacity. Model availability varies by cloud and region, and quotas or provisioned capacity need planning.
Self-hosted open-weight models carry the full operational burden: GPU procurement, serving software, autoscaling, security patching, evaluation and upgrades. An open-weight model may not match a proprietary model on your task, and licences can carry use restrictions.
Costs
We are not quoting prices because they change often and vary by model, region and contract; check each provider's current pricing pages. What drives the bill:
| Cost driver | Public API | Private cloud endpoint | Self-hosted |
|---|---|---|---|
| Usage | Input and output tokens | Tokens, or reserved or provisioned throughput | Effectively fixed once hardware is provisioned |
| Infrastructure | None | Networking, private connectivity, logging | GPUs, storage, networking, power or cloud instances |
| People | Integration and evaluation | Integration plus cloud configuration | Serving, operations, security and model engineering |
| Hidden costs | Retries, long prompts, tier upgrades for data terms | Cross-region traffic, capacity commitments | Idle capacity, upgrades, on-call |
Two practical observations. First, token-based pricing scales with prompt length, so retrieval that sends fewer, better passages saves money on every option; our RAG vs fine-tuning comparison covers this. Second, self-hosting only becomes cheaper when hardware stays busy; low or spiky volumes usually favour per-token pricing.
Security considerations
- Read the terms for the exact tier. Training, retention and residency commitments differ between free and paid tiers and between products from the same provider.
- Classify data before choosing. Map which data classes may go to a public API, which need a private endpoint in a specific region, and which must stay on your own infrastructure.
- Keep keys out of applications. Route model calls through a central gateway or broker that holds provider keys, enforces budgets and logs usage per team.
- Redact before you send. Strip secrets and personal data from prompts where the model does not need them.
- Treat model output as untrusted input, especially when a model reads documents that could contain injected instructions.
- Self-hosting is not automatically safer. It moves responsibility to you: patch the serving stack, restrict access to weights and endpoints, and log inference like any other production service.
Implementation considerations
- Start with an evaluation set of real tasks and expected answers, so you can compare models across deployment options on quality, latency and cost.
- Decide by data class, not by project. Most organisations end up with more than one deployment option, each approved for certain data.
- Put a gateway in front of every model. One OpenAI-compatible endpoint in front of several providers lets you switch or mix public, private and self-hosted models without rewriting applications, and gives you one place for budgets, routing and failover.
- Plan residency explicitly. Choose regions or data zones deliberately and avoid global deployment types for data that must stay in one jurisdiction.
- Check licences early for any open-weight model, including use restrictions and attribution requirements.
- Budget for operations if you self-host: serving, monitoring, upgrades and on-call.
MithunAI combines both ends of this: its gateway puts one OpenAI-compatible endpoint in front of your model providers, with keys in an encrypted vault, routing, failover and per-key budgets, and its Sovereign option deploys the platform in your own cloud or data centre with no telemetry by default. For a walkthrough of building on your own data, see How to Build a Private AI Assistant for Your Business.
Decision guide
- Fastest start with the newest frontier models
- Public AI API
- Each provider's models are available on its own API, with no infrastructure to run.
- AI under your existing Azure, AWS or Google Cloud agreements
- Private cloud endpoint
- Uses your cloud's identity, networking, billing and data terms.
- Data must stay in a specific region
- Private cloud endpoint
- Regional and data-zone deployments let you choose where processing happens; avoid global types.
- Model providers must never see prompts
- Private cloud endpoint
- Azure and Amazon Bedrock document that model providers cannot access customer prompts and completions.
- Data may not leave your infrastructure at all
- Self-hosted open-weight
- Inference runs entirely on hardware you control.
- Air-gapped or on-premises environment
- Self-hosted open-weight
- Hosted APIs and cloud endpoints require external connectivity.
- Low or unpredictable volume
- Public AI API
- Per-token pricing avoids paying for idle GPUs.
For most enterprises the answer is not one option but a policy: public APIs on paid business tiers for low-risk data, private cloud endpoints in a chosen region for regulated data, and self-hosted models where data cannot leave your control. A gateway that can route between them keeps that policy enforceable as models and terms change. See our guide to enterprise AI implementation for the wider architecture.
Frequently asked questions
Do public AI APIs train on our data?
OpenAI and Anthropic state that, by default, they do not train on data from their business APIs unless you opt in, for example by sending feedback. Google's Gemini API terms say paid services are not used to improve its products, while unpaid services are. Check the terms for the exact tier you use.
Is a private cloud endpoint the same as self-hosting?
No. A private cloud endpoint runs the provider's model on hyperscaler infrastructure under the cloud's data terms, with abuse monitoring and some caching. Self-hosting means running open-weight models on infrastructure you control, with all operations and retention decisions yours.
Are open-weight models free to use commercially?
Many allow commercial use, but under licence terms. The Llama 3.1 Community License requires a separate licence for companies above 700 million monthly active users, and the Gemma Terms of Use include a prohibited use policy. Read each model's licence before deploying it.
Can we combine all three options?
Yes, and many enterprises do. A gateway with one OpenAI-compatible endpoint lets applications call public, private and self-hosted models through the same interface, with routing decided by data class, cost or availability.
Sources and references
- OpenAI: Enterprise privacy at OpenAI
- OpenAI platform documentation: Data controls in the OpenAI platform
- Anthropic Privacy Center: Is my data used for model training? (commercial products)
- Google: Gemini API Additional Terms of Service
- Microsoft Learn: Data, privacy, and security for Models sold by Azure in Microsoft Foundry
- Amazon Bedrock User Guide: Data protection
- Google Cloud documentation: Gemini Enterprise Agent Platform and zero data retention
- Meta: Llama 3.1 Community License Agreement
- Google: Gemma Terms of Use
Related resources
Keep reading
Enterprise AI Adoption and Implementation: Industry Outlook
Most organisations now use AI, yet few run it at scale. A sourced outlook on the production gap, RAG, private deployment, evaluation, governance, agents and cost.
· 11 min read
Enterprise AI Implementation: Architecture, Security and Practical Considerations
How to take enterprise AI from pilot to production: use-case selection, reference architecture, security controls, evaluation and a phased rollout plan.
· 10 min read
RAG vs Fine-Tuning: Which Is Better for Enterprise AI?
RAG and fine-tuning change different parts of an AI system. Compare freshness, citations, access control, cost drivers and effort before you choose.
· 9 min read
How to Build a Private AI Assistant for Your Business
A practical build plan for a private AI assistant: what private should mean, deployment options, architecture, access control, evaluation and pitfalls.
· 7 min read
Stay Ahead of What Matters.
Practical guides on ai & automation and more, delivered to your inbox.