An application calls a model and gets an answer back. From the application code, that can look much the same whether the request went to a frontier lab, a cloud platform, or a GPU in the next room. There is an endpoint, some credentials, a request, and a response. What changes is how much control we have over the service behind that endpoint, and how much work we must take on to exercise it.

For a small team without an established cloud operating environment, I would start with a direct provider API. For an enterprise that already operates a cloud platform, I would start with managed inference there. Each uses what the organization has rather than making it build an inference operation first. Self-hosting needs a specific control requirement or an economic case strong enough to fund the people and practices that come with it.

These are starting points. Next, assess the candidate against the workload and the governance requirements for its intended use. That assessment can change the provider, model, or hosting arrangement. A particular capability may also justify taking a different route from the outset.

This is the first essay in Agents in Production. The series draws targeted examples from my AI on AWS playground, while following decisions that apply across clouds and frameworks. We begin with the inference service. The agent that calls it is a separate application, with its own responsibilities, which we will build toward in the next essay.

Consider an application that summarizes customer records for service representatives. Its summaries need to preserve the important facts, arrive in time to help with the conversation, and keep the records within the organization’s data-handling rules. We can build that application through any of the three arrangements. The difference is how the team makes those requirements hold.

Direct APIs: buy the capability on the provider’s terms

For a small team, a direct API from Anthropic, OpenAI, or Google lets us concentrate on the application. We send the records and instructions to a selected model and receive a summary. The provider deploys the weights, operates the serving software, and supplies the hardware. We can evaluate whether the capability is useful before investing in a team to operate inference ourselves.

Delegating that work also means delegating choices that affect the result. The provider controls the serving configuration, including numerical choices such as quantization: representing model numbers at reduced precision to lower memory or compute requirements. Those choices affect quality and performance, but sit behind the API of a hosted proprietary model. Our control is over which exposed model version we use and whether the service produces acceptable summaries. Test it against representative records, choose a versioned release rather than a moving “latest” alias, and keep checking the results as the application is used. If the business needs control of the numerical configuration itself, we need a deployment that exposes it.

That evaluation will eventually need the kinds of records the application is meant to handle, which brings the provider’s data boundary into the decision. The provider routes requests across its infrastructure to absorb demand; we need to constrain that routing to an acceptable processing geography before sending restricted records. Anthropic, for example, exposes inference geography separately from storage location. Select the supported boundary the business requires and let the provider manage the nodes inside it. If none of the available boundaries fits, the deployment is unsuitable for this work.

The same records may persist after inference, so location and retention have to be considered together. A no-training commitment still allows the retention described in the service agreement, such as storage for safety review or application features. Anthropic’s retention documentation distinguishes those arrangements by model and feature. Make retention, access, and deletion part of procurement for the endpoint we intend to use. That establishes both where the records may go and what happens to them after the request.

With acceptable summaries and an acceptable data arrangement, we can assess whether the service will deliver them quickly enough under load. Preparing summaries overnight leaves room to queue and retry. Producing one while a representative is on a call requires a stronger capacity commitment. A rate limit tells us how much we may request; it does not reserve the resources to serve it during contention. Anthropic describes its standard tier as best-effort availability and directs customers needing guaranteed capacity to a commercial arrangement. Buy the commitment the workflow needs, then test it with the record sizes and concurrency the application will produce.

Managed inference: bring the service into the operating environment

The same application has a different starting point inside an organization with an established cloud platform. Its records, identities, network policies, and deployment process may already live there. A separate provider integration adds another place to administer those concerns. Managed inference through Amazon Bedrock, Microsoft Foundry on Azure, or Google Cloud’s model-serving offerings lets the platform team bring model access into practices it already operates, while the cloud provider runs the inference service.

That starts with making the selected model a controlled dependency of the application. Give the application a workload identity, restrict it to the approved model deployment, and put model upgrades through the release process. The representative records used to assess summary quality become the evaluation set for replacements. The team can then manage a model change alongside the application changes that depend on it.

The identity also gives us a way to control access along the network path. Establish private connectivity to the deployment and prevent the application from falling back to a public endpoint. With Bedrock PrivateLink, traffic reaches Bedrock without crossing the public internet, while AWS runs the models in service-owned deployment accounts. We get a private route that the platform team can enforce without operating the model servers. A requirement to control the serving environment itself calls for a dedicated deployment instead.

That private route still needs an approved destination for processing the records. Microsoft Foundry expresses this through global, data-zone, and geography-based deployments, with standard and provisioned options. Google Cloud also distinguishes processing locations from stored-data locations. Choose the location and data-handling terms that fit the records. This choice affects capacity: global routing gives a provider more places to serve demand, while a restricted geography narrows the pool available to our application.

We therefore need to secure capacity inside the boundary we selected. For representatives depending on summaries throughout the working day, a reservation can cover the predictable baseline, with permitted on-demand capacity handling bursts. Bedrock Provisioned Throughput and Google Cloud Provisioned Throughput provide that kind of purchase for supported models. Measure demand before committing spend. The platform team now has a defined deployment, an enforced access path, a processing boundary, and a capacity arrangement it can operate together.

Self-hosting: control the implementation and fund the service

Self-hosting becomes relevant when the application’s requirements reach into the implementation we have been delegating. It may need to work disconnected from external services, run in a location no acceptable provider serves, or preserve a particular model and numerical configuration. An open-weight model lets us choose those things, provided we have a team to turn them into an operating service.

That team first selects the weights, numerical precision, and serving runtime, then evaluates the resulting configuration against the same representative records. The implementation choices are now ours to make and validate. Reducing precision might allow the model to fit on smaller hardware or improve throughput; we need to establish whether its summaries still preserve the facts that matter. Record the configuration that passes and promote it through deployment. This gives us direct control over what changes and when, with responsibility for checking the consequences.

The chosen configuration determines the hardware we need, but fitting the weights is only part of sizing the service. Active requests consume memory for their context too. Longer customer histories and more simultaneous conversations increase that demand. Batching can improve utilization while leaving individual representatives waiting in a queue, so measure both the delay before a response starts and the time to finish it under expected load. Provision spare capacity for failure and upgrades. The service needs to keep meeting its response target while a host is unavailable, not just perform well on an otherwise idle machine.

With that serving environment defined, the team controls where requests go, which applications can reach it, what gets logged, and whether anything can leave its network. The hardware can be on premises or rented in a cloud. Managed hosting for our own model artifacts offers a middle ground: the provider handles parts of deployment and infrastructure while we own the model and serving configuration. Use that support where it meets the requirement before taking on cluster operations as well.

The application can remain separate from all of this. In the AI on AWS playground, the agents call model servers on an NVIDIA host or an Apple silicon Mac; I can change the serving setup independently. In production, that boundary lets the platform team manage the inference service while the application team works on how summaries are requested and used.

That gives us the serving side of the cost comparison: working and spare capacity, idle periods, engineering, upgrades, and incident response, measured against a managed service meeting the same quality and availability commitments. Sustained demand can justify owning this service. A GPU’s hourly price divided by its best benchmark throughput leaves out the work we have just assigned to the team. Before settling the comparison, though, we need to account for how the application survives an outage and what it takes to approve the model for use.

Comparison of direct APIs, managed inference, and self-hosting: starting fit, serving configuration, network and capacity controls, operating responsibility, and approval work.

An outage still needs an application response

For the customer-record application, let representatives read the original records while summaries are unavailable. That keeps the business working without requiring a second inference service. If continuous inference is necessary, prepare a second approved deployment with its own capacity and test failover. Choose a recovery service independent of the failure we need to survive, inside the permitted processing boundary, and validate its answers against the same business expectations.

The choice depends on what interruption costs the business. A manual fallback is often sufficient for an assistive feature; a process that depends on inference needs funded redundancy and a tested recovery path.

Approval follows the use, wherever it runs

We now have a candidate deployment and a way to keep the business working when inference is unavailable. For a regulated business, approving the model for its intended use can still change that choice. An apparently inexpensive open-weight model may come with little beyond the weights, a license, and a model card describing its development and limitations. The organization then has to establish whether that evidence is sufficient and fund the work needed to support adoption. Serving the model successfully tells us very little about how large that commitment will be.

Start by establishing what we are adopting. Legal and procurement need to assess the license and permitted uses. The people responsible for model risk need the available development and training-data documentation, evaluations, known limitations, and a clear account of what remains unknown. Someone has to assess whether that evidence supports the proposed use. A model card helps, but it does not complete that assessment. Nor can an internal team reconstruct missing training history by running more prompts. A material evidence gap may rule the model out.

The quality checks we introduced in each hosting option become part of that evidence. For our customer-record application, domain experts need to identify the omissions and distortions that would mislead a representative, assemble representative and difficult cases, and judge the consequences of failures. Engineering makes those cases repeatable against the deployed configuration. Risk and compliance review the findings, the proposed limits on use, and the controls for failures that remain, including the fallback we designed. Getting from acceptable summaries to an approved application takes coordinated work across these disciplines, with a documented decision and people accountable for challenging it.

This is the weight behind the obligations discussed in Governance Under Scale. The NAIC model bulletin, for example, describes governance across the AI lifecycle, third-party due diligence, validation, oversight, and evidence available for examination. An insurer must apply its state’s requirements to its own use, whichever hosting route it chooses.

The work continues after approval. Production outcomes have to be assessed against the expectations used to approve the model, significant changes have to be reviewed, and evidence has to remain available for audit or examination. Someone must own the response when summaries start omitting material facts, including the authority to suspend the capability. Changing the model, modifying its weights, or expanding from summarization into recommendations creates further assessment work. The staffing estimate needs to cover that continuing obligation, not only the initial release.

A provider with a substantial assurance program can reduce how much of this evidence we have to originate. Make its model documentation, evaluations, relevant audit reports, change commitments, and support for regulatory inquiries part of procurement. Bedrock’s compliance guidance identifies service-level scope and audit reports; ISO/IEC 42001 certification supplies evidence about an organization’s AI management practices. Those support specific parts of our assessment. We still validate the application, but we can build on documented provider work rather than trying to establish every underlying practice ourselves.

This is why an open-weight model offered through a managed API needs the same examination of its evidence package. Paying someone to serve it removes infrastructure work. If the offering comes with little model documentation or support for validation, much of the approval work remains ours. The hosting categories tell us who runs inference; procurement must also establish who supplies the evidence and continuing support needed to use it.

For a regulated organization without the people and processes to carry that work, I would favor a provider and model offering that supplies the required evidence and support, even at a higher inference price. Open weights need a capability or economic case that justifies the remaining assurance work, with funding to carry it through. Self-hosting adds the serving operation we priced earlier. These costs belong in the same proposal, before the business commits to either choice.

Make the choice the business can sustain

Decision flow: justify self-hosting only when the requirement or economics supports operating it; otherwise start with direct APIs or managed inference based on the existing cloud platform. Every route proceeds through validation and governance before approval.

The starting recommendations were based on the team and platform already in place. Working through the application requirements and approval burden tells us whether to keep that choice or change it. The result should give engineering a selected model and deployment, an approved use, and named owners for service operation and continuing validation. That is the agreement the business is funding when it chooses where the model runs.

Whichever route we choose, the resulting service supplies inference. It does not decide which customer records a caller may see or whether a proposed resolution may be applied. Those responsibilities belong to the application around it. With the hosting decision made, we can turn to that application and the agent loop that uses the model to interpret a request.