Hosting AI in Practice: On-Premises, Edge and Managed APIs
An applied, scenario-led guide for IT professionals comparing three AI model hosting options: managed APIs, on-premises open-weight models, and edge inference. Covers the operational trade-offs of each, the self-hosting responsibilities that come with running models internally, and how to properly
Use a managed API when the data isn't sensitive and you want frontier models with no infrastructure. Run an open-weight model on premises when data must stay on your network, accepting the patching and outage responsibility that comes with it. Use edge inference when you need low latency or must keep working through network outages at remote sites.
Your security team just flagged it: the new AI-powered document review tool sends every uploaded file to a third-party API endpoint. The legal department is processing merger agreements. The CISO wants it shut down by end of day. Sound familiar?
This is not a hypothetical. It plays out regularly in enterprises, hospitals, and government agencies where data classification policies exist for good reason. The question is not whether AI is useful. It clearly is. The question is: where should that AI actually run, and what does that decision commit you to?
Three Hosting Models, Three Different Trade-offs
Before reaching for a solution, it helps to map the terrain. AI model hosting falls into three broad categories, each with a distinct profile of cost, latency, privacy exposure, and operational burden.
Managed APIs: Fast to Start, Slow to Audit
Managed APIs from providers like OpenAI, Anthropic, and Google give you immediate access to frontier models with no infrastructure to run. For general-purpose workloads with non-sensitive data, this is often the right starting point.
The trap is assuming that "enterprise tier" means "no data retention." It frequently does not. Before signing a contract, ask for the following in writing, backed by third-party evidence:
- Independent audit reports: SOC 2 Type II or ISO 27001 certificates with actual audit dates, not just compliance badges on a marketing page.
- Retention and deletion policy: Exactly how long is input data stored, and can you trigger deletion via API or admin console?
- Training opt-out confirmation: Written confirmation that your data is not used to fine-tune shared models.
- Sub-processor list: Which third parties does the provider share data with, and under what terms?
The key point on ai vendor data retention: promises in a blog post carry no legal weight. Contractual data processing agreements and independently audited controls do. Demand the evidence, not the assurance.
Open-Weight Models On-Premises: Full Control, Full Responsibility
Running an open-weight model on premises means pulling a model like Llama 3, Mistral, or Phi-3 onto hardware you own or lease in your own data center. The model weights are yours. The data never leaves your environment. For regulated workloads, this is often the only acceptable path.
What this looks like in practice: your IT team deploys a serving framework such as vLLM, Ollama, or llama.cpp on a GPU-equipped server, exposes a local API endpoint (usually OpenAI-compatible), and application teams point their integrations at the internal address instead of a cloud URL.
# Example: starting a local model with Ollama
ollama serve &
ollama pull mistral
ollama run mistral "Summarize the following contract clause: ..."
The benefit is real: data stays on your network. The cost is equally real. Self-hosting responsibilities include model updates, security patching of the serving stack, GPU driver maintenance, access control, logging, and capacity planning. When the managed API goes down, you call their support line. When your on-prem inference server goes down, you own the outage.
Edge AI Inference: Locality at the Cost of Complexity
Edge inference pushes the model even closer to the data source: a factory floor, a clinical workstation, a remote branch office. The design goal is two-fold: minimize round-trip latency and survive network outages without losing functionality.
A well-designed edge AI inference architecture for strict uptime requirements looks like this:
- Redundant local nodes: At least two inference nodes at each site, load-balanced locally, so a single hardware failure does not kill the service.
- Quantized models: Smaller, quantized versions (for example, 4-bit GGUF format via
llama.cpp) allow inference on CPU or modest GPU hardware where full-precision models would not fit. - Offline-first design: Applications should queue requests locally and handle the case where the central update server is unreachable, since edge means assuming intermittent connectivity.
- Centralized model distribution: Model updates are tested centrally and pushed to edge nodes on a controlled schedule, the same way you manage firmware across a branch network.
The Decision Framework in Brief
Before committing to any hosting model, work through these questions in order:
- What is the data classification of the inputs this model will process?
- Do any regulatory frameworks (HIPAA, GDPR, ITAR, internal policy) restrict where this data can travel?
- What latency and availability SLA does the application require?
- Does your team have the operational capacity to manage patching, scaling, and incident response for a self-hosted system?
- If using a managed API, have you obtained audited evidence of their retention and deletion practices?
If the answer to question two is "yes, data must stay on site," the managed API conversation is over before it starts. Skip to question four and be honest about your team's capacity, because under-resourced self-hosting creates its own security risks.
Quick Reference Checklist
- Managed API: Collect SOC 2 Type II report, signed DPA, opt-out confirmation, and sub-processor list before go-live.
- On-premises open-weight model: Define patch cadence for model weights and serving stack, assign ownership, and include in vulnerability management program.
- Edge inference: Deploy redundant nodes per site, use quantized models appropriate to local hardware, and test offline behavior before production cutover.
- All options: Log inference requests (prompt metadata at minimum), enforce access control on the API endpoint, and review quarterly.
Hosting AI models: common questions
Does an enterprise AI API tier mean my data isn't retained?
Not necessarily. Get the retention and deletion terms, a training opt-out and the sub-processor list in writing, and check the scope of the provider's SOC 2 Type II report or ISO 27001 certification to see which controls it actually covers.
What is an open-weight model?
A model whose weights you can download and run on your own hardware, such as Llama 3, Mistral or Phi-3, so your data never has to leave your environment.
What does self-hosting an AI model involve?
Running a serving framework such as vLLM, Ollama or llama.cpp on hardware sized for the model (often, but not always, GPUs), then owning updates, patching, driver maintenance, access control, logging, capacity planning and outages.
Why use quantized models at the edge?
Quantized versions, for example 4-bit, are much smaller, so they can run on the CPU or modest GPU hardware found at branch sites where full-precision models won't fit.
What should I decide first when choosing where to host AI?
The data classification of the inputs and whether any regulation or policy restricts where that data can go. If it must stay on site, a managed API is ruled out.
What's Next
Now that you can map a hosting decision to a real operational context, the next step is understanding what is actually inside the model you are deploying. The next post in this series looks at model architecture fundamentals: how transformer-based models process tokens, why parameter count is not the only measure of capability, and what "context window" actually means for your application design.