
Hosting AI Features: Don't Default to Self-Hosting
An AI feature can add an inference step, but it is not by itself a reason to re-host the site. The three server-side paths, GPU cost realities, and why not to default to self-hosting.
TL;DR: Adding an AI feature to a website — a chatbot, recommendations, retrieval-augmented search — can add an inference step to the request path, and that step can need specialized compute and predictable latency. But the AI feature is usually a component bolted onto the site, not a reason to re-host the site itself. There are three server-side hosting paths — a managed inference API, serverless AI, and self-hosted models — and self-hosting the model should not be the default without a named requirement. This article walks the paths, the GPU cost realities, and the data questions each path carries.
What AI features actually demand from hosting
An AI feature on a website is often one of a few familiar things: a chatbot that answers visitor questions, a recommendation block that suggests related content or products, or a search that retrieves relevant material and composes an answer from it. They look different on the page. Underneath, they share one mechanic.
Each of them can add an inference step to the request path (recommendations can also be computed ahead of time, in batch). At some point in serving the feature, a model is asked to produce an output — a reply, a ranking, a generated passage — and that step is unlike the rest of the site's work. It can need specialized compute, often GPU-backed, and it can have a latency profile the rest of the site does not: a model call can take long enough that the user notices, so its speed has to be designed for, not assumed.
That is the real demand. Not simply "more hosting," but a specific kind of compute and a specific attention to latency, attached at one point in the request.
The most important framing for the whole decision follows from that word "attached." An AI feature is usually a component bolted onto an otherwise ordinary site. A corporate site with a chatbot is still a corporate site. A storefront with recommendations is still a storefront. The site keeps the hosting tier its own archetype calls for; the AI feature is a separate piece, hosted on its own path beside it. Adding AI is not, by itself, a reason to re-host the whole property — and treating it as one is an expensive mistake.
One scope note. This article is about hosting AI features built into a site. It is not about how a site's content is discovered, cited, or optimized for external AI answer engines — that is a different discipline entirely. And it is not about the retrieval-ready content patterns a CMS can provide; that, too, belongs elsewhere. The subject here is narrow and concrete: where the inference for a feature on your own site actually runs.
Three server-side hosting paths for AI features
This article covers three server-side ways to host the inference an AI feature needs (running a model in the visitor's browser is a separate, client-side route), and they differ mainly in how much of the model's operation you take on.
A managed inference API is the lightest. A provider runs the model on its own infrastructure and exposes it over the network; your site makes a call and receives a result. Your team hosts none of the model machinery. From the site's point of view, the AI feature is an external service it calls — much like calling a payment provider or a maps service.
Serverless AI sits in the middle. It is managed, on-demand inference that runs when a request arrives and can scale to zero between requests. You are not running a model continuously, but the inference executes within a managed environment you configure rather than entirely on a provider's terms. It suits features whose traffic is real but intermittent.
Self-hosted models is the heaviest path. Your team runs the model itself, on GPU infrastructure it provisions and operates. Everything the managed paths abstracted away — the hardware, the model runtime, the scaling, the updates — comes back to the team.
| Hosting path | Who runs the model | Cost shape | Operational burden |
|---|---|---|---|
| Managed inference API | The provider | Per unit of usage, such as per token; reserved capacity billed by the hour is also sold (Amazon Bedrock Provisioned Throughput, as of Oct 2026) | Minimal — a network call |
| Serverless AI | A managed platform, on demand | Instance or GPU time, not per execution (Cloud Run GPU: instance-based billing, no per-request fees; Azure Container Apps serverless GPUs: per-second billing); can scale to zero (as of Oct 2026) | Moderate — configuration, not operation |
| Self-hosted models | Your team | GPU capacity, paid whether busy or idle | High — a permanent operations function |
Reading down the table, the trade-off is consistent: the more the platform does for you, the less you control and the less you operate; the more you take on, the more you must run. The choice of path is a choice of where on that line an AI feature should sit.
Why self-hosting a model should not be the default
Self-hosting a model is the path that looks most capable, and it can be the wrong one for a website.
The reason is the burden it commits to. Running a model yourself means taking on GPU provisioning — securing and managing expensive hardware. It means model operations — keeping the runtime healthy, patched, and monitored. It means scaling the inference capacity up and down against demand. And it means updates — model versions move, and a self-hosted deployment owns the work of moving with them. None of that is a one-time setup cost. It is a permanent operations function, staffed for the life of the feature.
Set that against what the feature actually is. For many websites, AI is a feature, not the core product. A chatbot improves a corporate site; it is not the business. When a capability is a feature rather than the product, standing up a permanent GPU-operations function to run it is a poor trade — the operational cost is hard to pay back against what the feature contributes.
This is a familiar form of over-engineering in a new costume. Self-hosting a model is the AI-era version of opening a hyperscaler account with no one staffed to run it: a heavy, capable path adopted for a feature that did not need it.
There are genuine reasons to self-host, and they are specific. A hard data-control requirement — a rule that user content must never leave systems the organization operates. Cost at scale — inference volume so high and so steady that owning the hardware genuinely beats paying per use. A customization need — a model adapted in ways a managed API cannot serve. Each of those is a named, current requirement. Absent one, self-hosting is a default reached for by reflex, and a reflexive default is exactly what a deliberate hosting decision should replace. (Building or adapting the model itself is a separate discipline; the point here is only that hosting it yourself is a commitment, not a starting point.)
GPU cost, cold starts, and latency realities
The economics of AI hosting are shaped by one fact: GPU capacity is expensive, and it is wasted whenever it sits idle.
A web request is cheap and brief. A GPU provisioned to serve inference costs money continuously — whether or not a request is currently using it. A self-hosted feature with steady traffic keeps that hardware reasonably busy. A self-hosted feature with intermittent traffic pays for a great deal of idle time, and idle GPU time is a visible waste in AI hosting.
Serverless AI exists to remove exactly that waste — it can scale to zero, so once instances have scaled in there is no idle GPU to pay for. Scaling in is not immediate everywhere: Cloud Run GPU services must use instance-based billing, which charges for the entire lifecycle of each instance, and an idle instance can stay up for up to 15 minutes after its last request unless minimum instances keep it running (as of Oct 2026). But the trade has a name: the cold start. When a request arrives after a quiet period, the inference environment has to spin up before it can answer, and the first request wears that delay. Many serverless platforms let you keep a minimum number of instances warm, which reduces cold starts — but warm instances are billed while they wait, so the idle cost comes back in proportion to how many you keep. Serverless trades idle cost for cold-start latency, and whether that trade is sound depends on how the feature is used.
Latency is the constraint that ties the whole decision together, because it is a user-experience limit, not a technical detail. A chatbot that takes too long to answer is a chatbot people stop using. A recommendation that arrives after the visitor has scrolled past is no recommendation at all. The hosting path has to be chosen against the latency the feature can tolerate: a managed API's network round-trip, a serverless path's occasional cold start, a self-hosted deployment's tuned-but-owned response time. None is universally fastest. The right one is the one whose latency profile fits how the feature is actually used.
The data, privacy, and vendor questions AI features add
An AI feature adds questions that ordinary web hosting does not raise, and they belong in the hosting decision rather than after it.
The first is data exposure. An inference call frequently sends user content — a question typed into a chatbot, the context behind a recommendation — to wherever the model runs. On a managed inference API, that content goes to a third-party provider. That is a data and privacy decision, not merely a technical one: it determines what leaves the organization's systems, and it has to be made deliberately and, where personal data is involved, lawfully.
The second is the retrieval and storage layer. A retrieval-augmented feature has somewhere it retrieves from — a store of content the model draws on. That store has its own hosting questions: where it physically sits, how it is secured, whether a sector or national rule imposes residency requirements on it. The inference call gets the attention; the data behind it is just as much part of the hosting decision.
The third is vendor dependency, and it differs by path. A managed API makes the feature dependent on a specific provider's service, pricing, and continuity. Serverless AI ties the feature to a platform's environment. Self-hosting removes the provider dependency and replaces it with an operational one. One way to limit the exposure is to treat the inference provider the way the Twelve-Factor App treats backing services — as an attached resource, accessed through a resource handle stored in config, so that a compatible replacement can be swapped in by changing that handle rather than the feature's code. The NIST AI Risk Management Framework counts privacy among the characteristics of a trustworthy AI system and names risks that come from third-party data, software, and hardware, which makes this voluntary framework a useful reference for these questions — NIST notes that the framework's actions do not constitute a checklist. Separately, NIST SP 800-145 defines, for each cloud service model, what the consumer does and does not manage or control. Reading the managed-versus-self-hosted distinction through those models is this article's mapping, not a classification SP 800-145 makes — the publication does not define inference APIs, serverless AI, or self-hosted models.
Decision criteria for hosting AI features
For a leadership review, three criteria keep an AI-feature hosting decision proportionate.
First, default to a managed or serverless inference path unless a named requirement forces self-hosting. Self-hosting is justified by a real, current need — data control, cost at genuine scale, or customization — stated in one sentence without the word "future." Absent that, the managed paths are the correct default, not the timid one.
Second, choose the path against latency, cost at expected volume, and data-exposure tolerance. These three — how fast the feature must answer, what it costs at the traffic it will actually see, and what user content may leave your systems — are the axes the decision turns on. A path that wins on one and fails another is the wrong path.
Third, treat the AI feature as a component to host, not a reason to change the whole site's tier. The site keeps the tier its own archetype calls for. The AI feature is hosted on its own path beside it. Re-hosting an entire property because it gained a chatbot is the over-build this article exists to prevent.