What Is Managed Inference? How It Works and When to Use It

author

Sr. Content Marketing Manager

  • Updated:
  • 12 min read

In the past, teams would run their own database servers and get pinged whenever a disk filled up. Now, many pass that work to a managed database service so they can focus on their own product instead.

AI inference is heading in the same direction. Calling a model only takes a few lines of code, but serving one in production requires GPUs, drivers, a serving engine like vLLM (the software that loads a model and generates its tokens), autoscaling rules, and someone on call to watch latency. All of that work matters, but handling it yourself rarely makes your product any better than it would be with a managed provider.

The good news? You can hand over the management of that inference stack to a provider the same way teams handed off their databases, while retaining control of your models, prompts, and data. On an open platform like DigitalOcean, that control extends to the models themselves. You can mix open-weight and proprietary models, bring your own fine-tuned weights, and switch models without rewriting application code. Let’s break down what managed inference covers, how the different types of managed inference compare, when self-hosting still makes sense, and how the DigitalOcean Inference Engine gives you each type in one platform, so you can pick the right option for the job and budget.

Key takeaways:

  • Managed inference involves a provider running the GPUs, serving engine, scaling, and uptime behind a model endpoint, while you control the model choice, prompts, application, and data.
  • Managed inference comes in four modes: serverless (per token), dedicated (per GPU-hour), batch (discounted asynchronous jobs), and routing that picks a model for each request.
  • Self-hosting is usually the better option for air-gapped environments, custom runtimes, and steady traffic that keeps GPUs busy.
  • The DigitalOcean Inference Engine covers all four types of inference, with OpenAI-compatible endpoints, per-key spend alerts, and your databases and storage on the same bill.

What is managed inference?

Managed inference is a cloud service model in which a provider runs AI models in production on your behalf. The provider operates the GPUs, serving software, scaling, monitoring, and updates, while you send requests to an API or endpoint. You choose the model and control your prompts, data, and application, but you don’t run the infrastructure behind them.

Managed inference vs. AI inference

AI inference is the stage of the AI lifecycle where a trained model generates predictions or outputs from new data. Managed inference is that same stage handed to a provider, which runs the GPUs and model servers while your team calls an API. Providers often sell the same arrangement as inference-as-a-service, and the two terms largely overlap.

Who manages what in managed inference

Here’s how the operational work typically splits between you and the provider:

Provider managed User managed
GPUs, drivers, and GPU software libraries (such as CUDA) Which model to call, or which weights to bring
The serving engine (for example, vLLM) and its tuning Prompts, context, and tool definitions
Autoscaling and capacity planning Application logic and integrations
Uptime, failover, and security patches The data you send and where it’s allowed to go
Model hosting and catalog updates Access keys, spend limits, and retry logic

Dedicated endpoints trade a little convenience for more control. DigitalOcean Dedicated Inference operates the vLLM-based serving stack on GPUs reserved for you, while you keep model choice, capacity, and workload-specific tuning.

How managed inference works

Every managed inference request follows roughly the same path.

Here’s what that path looks like on DigitalOcean Serverless Inference:

  1. Your application sends a request. It calls an API endpoint with a model name, a prompt, and an access key, typically through an OpenAI-compatible SDK.
  2. The platform authenticates it. A gateway checks the access key, enforces network rules (such as restricting access to your virtual private cloud, or VPC), and confirms that the model exists in the catalog.
  3. A router picks where it runs. The request goes to servers running the model you named, or, if you set the model to inference-router, the DigitalOcean Inference Router picks a model for that request based on live cost and latency data, and reroutes traffic if a model goes down or hits a rate limit.
  4. The serving engine generates the output. Engines like vLLM handle LLM inference optimization for you, batching requests, and reusing cached prompt work. DigitalOcean serves open models with vLLM and llm-d, which sends each request to the GPU server best placed to handle it, often one that already holds its cached context. Because those GPU pools are shared, you pay for tokens consumed rather than GPU-hours reserved.
  5. The response streams back. Tokens stream to your app as they’re generated. Billing events go to a separate queue after the response, so metering never adds time to the request.

Curious how each of these steps works in a production system? Our DigitalOcean Serverless Inference deep dive traces a request from the edge to the GPU and back, including rate limits and failure handling.

The four types of managed inference

Managed inference comes in four types, each with its own advantages, billing, scaling, and trade-offs.

Here’s how they compare on DigitalOcean’s Inference Engine:

Pricing, limits, and availability are accurate as of November 12, 2026, and may change.

Type Best for Billing unit Scaling behavior Main trade-off
Serverless Real-time apps, agents, and spiky traffic Per input and output token Scales with request volume, with nothing to provision Limited to the provider’s catalog and rate limits
Dedicated Steady traffic and fine-tuned or custom models Per GPU-hour You set the GPU type and replica count You pay for reserved time whether or not requests arrive
Batch Large jobs that can wait, such as LLM-as-a-judge evals or overnight document classification Per token, at a discount Queued jobs that finish within a set window No real-time responses
Routing Apps that call several models Per token, at the serving model’s rate Follows the type operating underneath it You set the routing policy, and the router picks the model for each request

How to choose the right type of managed inference

Most teams end up using more than one type. Here’s how to match each one to a workload:

  • Serverless inference fits most teams’ first production workload. Serverless inference bills per token, so idle time doesn’t incur additional costs. DigitalOcean Serverless Inference serves open and commercial models through one OpenAI-compatible API.
  • Dedicated inference fits steady traffic and custom models. A busy endpoint gets cheaper per token as utilization rises. DigitalOcean Dedicated Inference offers 1-GPU and 8-GPU plans with AMD or NVIDIA GPUs in ATL1, NYC2, and TOR1, plus private VPC endpoints and your own fine-tuned weights.
  • Batch inference fits work that can wait. Batch inference trades real-time responses for a lower billing rate. DigitalOcean Batch Inference runs jobs within a 24-hour window at up to 50% off (currently available when using OpenAI and Anthropic models).
  • Routing fits apps that call several models. A router sends each request to the best-fit model, so simple prompts don’t pay frontier-model prices. Set the model to inference-router in your code to use the DigitalOcean Inference Router. There’s no additional charge during public preview without a service level agreement and subject to the DigitalOcean preview terms. You pay the rate of the model that serves each request.

Not sure which type your different workloads need? Our inference mode comparison walks through Serverless, Dedicated, Batch, and Inference Router side by side.

Managed vs. self-hosted inference

Deciding whether to manage inference yourself or work with a managed inference provider comes down to who you want running the serving stack and how much control you need over it.

Here’s what to consider:

Factor Managed inference Self-hosted inference
Time to first request As soon as you create a key After you provision GPUs and configure a serving engine
Cost model Per token or per GPU-hour GPU rental or hardware, plus engineering time
Best traffic pattern Variable, spiky, or growing Steady and high enough to keep GPUs busy
Data control Data travels to the provider, with options like private VPC endpoints Data stays on infrastructure you control
Model and runtime control Catalog models, or your own weights on dedicated endpoints Any model, kernel, or engine version

Then, there’s another option: self-managed infrastructure (like GPU Droplets). Here, the provider runs the hardware, and you run the serving stack. You skip buying hardware, but your team still installs and tunes the serving engine, handles scaling, and answers the on-call pages. It suits teams that need runtime control without owning GPUs.

Weighing GPU Droplets against a managed endpoint? Our guide to easy ways to deploy an LLM breaks down available options.

When self-hosting inference wins

Self-hosting is the better choice in these situations:

  • Your environment is air-gapped. Teams in regulated industries, or with systems deliberately cut off from the internet (often on-premises), can’t reach a provider’s endpoint, so their models have to run on hardware inside that boundary.
  • You need runtime control a provider doesn’t expose. Managed providers choose and update the serving engine and drivers for everyone on the platform. If you need custom kernels or a pinned engine version for reproducible results, you’ll have to run the stack yourself.
  • You have steady, high traffic and want full control of the stack. Busy GPUs can undercut per-token pricing either way, and DigitalOcean Dedicated Inference offers the same per-GPU-hour model without requiring you to run the serving stack yourself.
  • Your team already runs GPUs well. In-house GPU and on-call experience shrinks the hidden cost of self-hosting.

Moving from a single GPU VM to a managed endpoint

Many teams start with Ollama or vLLM on one GPU server, then hit its limits: requests queue up, a bigger model won’t fit in GPU memory, or a single failure takes the endpoint down.

Moving to managed inference usually takes four steps, and most of your application code stays the same:

  1. Keep the API shape. Ollama and vLLM both expose OpenAI-compatible endpoints; you change the base URL, key, and model name.
  2. Pick the type by traffic. Spiky traffic fits serverless, while steady traffic or fine-tuned weights fit a dedicated endpoint.
  3. Bring your weights if you need them. DigitalOcean’s Bring Your Own Model (BYOM) feature imports Safetensors weights from Hugging Face or Spaces for Dedicated Inference.
  4. Test before you cut over. Compare output quality and latency on your real prompts, then move a small share of production traffic to the new endpoint before switching everything over.

Running a fine-tuned model on your own GPU today? Our tutorial about how to deploy a fine-tuned LLM to production with BYOM and Dedicated Inference covers importing the weights and serving them on a private endpoint with VPC isolation.

What managed inference costs

Managed inference bills in two main units: per token, which suits variable or spiky traffic, and per GPU-hour, which suits steady traffic that keeps reserved GPUs busy. Surprise bills usually come from paying in the wrong unit for your traffic or from a runaway loop with no spending cap.

Per token vs. per GPU-hour

Serverless inference charges per input and output token, typically priced per million. When requests start with the same text (such as a system prompt or tool definitions), DigitalOcean Serverless Inference bills that cached input at up to 90% off with prompt caching, depending on the model and prompt.

Dedicated inference charges for reserved GPU time. DigitalOcean Dedicated Inference is billed per GPU-hour (such as $4.41 per hour for an NVIDIA H100), whether the GPU is busy or idle. It pays off when utilization stays high.

How to avoid surprise bills on managed inference

DigitalOcean provides several controls to keep spend predictable:

  • Set a budget per access key. Model access key spend alerts (in public preview) email you as a key’s monthly spend crosses your thresholds and can pause that key at 100% without affecting others.
  • Track spend by model and key. Billing Insights breaks spend down by model, token type, and access key to help you easily spot runaway agents.
  • Choose how the prepaid balance behaves. Serverless Inference suspends access when its prepaid balance runs out. Turn on auto-reload to keep requests flowing, or leave it off if you’d rather spending stop at zero.
  • Match reserved capacity to demand. Idle dedicated GPUs continue incurring fees, so scale replicas down when traffic drops.

Trying to find the point where dedicated GPUs beat per-token pricing? Our tutorial on token economics across traffic profiles covers cost per token, GPU utilization, and batch sizing.

How to choose the right managed inference provider

The right provider depends on how well it fits your models, traffic, and data. Whether you’re comparing AI inference platforms or shortlisting the best inference providers for AI agents, judge each on the criteria that matters most:

  • Model catalog and API compatibility. Confirm the models you need are served today, and test your existing client by changing only the base URL and key. Check deprecation policies, too. For example, DigitalOcean gives 14 days’ notice before retiring a serverless model.
  • Latency under your own load. Measure time to first token (TTFT, the wait before output starts) and p95 latency with your real prompts and concurrency.
  • Rate limits and SLAs. Check published limits, how to raise them, and whether the product carries an uptime service level agreement (SLA) with service credits.
  • Privacy and region. Confirm where inference runs and whether traffic can stay private, for example, with DigitalOcean’s VPC-restricted access keys and private Dedicated Inference endpoints.
  • Room to grow. Check that you can move to dedicated, add batch jobs, or bring your own weights without switching providers. DigitalOcean runs inference alongside Managed Databases, Spaces object storage, and Managed Agents on one bill.

Not sure which latency numbers matter most for your app? Our tutorial on metrics that matter with Serverless Inference explains why no single metric captures performance for every application.

Managed inference use cases

Managed inference fits any team that wants AI in production without first building a machine learning platform team. The workloads range from real-time features inside a product to fleets of AI agents.

Our customers show what managed inference looks like in production.

Real-time AI features: Traversal

Traversal builds an AI site reliability engineering (SRE) product that finds the root causes of production incidents. It runs its apps on DigitalOcean Kubernetes, next to its customers’ observability data, and uses Serverless Inference to scale production inference without manual provisioning. As of December 3, 2025, the team makes millions of API calls a month and reports about 99.96% availability.

“Serverless Inference is fantastic because we can make as many calls as we need without worrying about provisioning infrastructure,” says infrastructure engineer Carlo Ruiz.

Multi-agent workloads: LawVo

LawVo, a Canadian legal tech startup, set up 144 AI agents on DigitalOcean in two weeks and chose it partly for Toronto-based infrastructure that keeps client data in Canada. As of August 21, 2025, by routing requests through the Inference Router, LawVo cut inference costs 42% with no code changes.

Managed inference FAQ

What are the rate limits on managed inference providers?

Most providers cap requests per minute (RPM) and tokens per minute (TPM), and whichever you hit first applies. DigitalOcean Serverless Inference limits range from up to 120 RPM and 1.5 million TPM at Tier 1 to up to 1,200 RPM and 25 million TPM at Tier 5.

Is managed or self-hosted inference better for an air-gapped enterprise environment?

Self-hosted. Managed inference depends on reaching a provider’s endpoints, so a truly air-gapped environment needs models on hardware inside that boundary. If you only need private networking, private Dedicated Inference endpoints on DigitalOcean may be enough.

How do I move from a single GPU VM running Ollama to a managed inference endpoint?

Most of your code can stay the same. Ollama exposes an OpenAI-compatible API, so you mostly change the base URL, key, and model name, then test your real prompts before switching traffic.

Do I need MLOps expertise or to configure vLLM to use managed inference?

No. The provider runs the serving engine, GPUs, and scaling. On DigitalOcean, Dedicated Inference even operates the vLLM-based stack while you pick the model, GPU, and replica count.

What is the difference between serverless and dedicated managed inference?

Serverless inference runs on shared GPU capacity and bills per token. Dedicated inference reserves GPUs for your model and bills per GPU-hour, trading idle cost for predictable performance and custom weights. On DigitalOcean, both use an OpenAI-compatible API, so switching doesn’t require rewriting your app.

Run managed inference on DigitalOcean

The DigitalOcean Inference Engine runs serverless, dedicated, batch, and routed inference for you, on the same cloud as your databases, storage, and agents. Scale from prototype to production without adding vendors.

Key features include:

  • Serverless Inference billed per token, with automatic prompt caching on open models
  • Dedicated Inference with reserved GPUs, Bring Your Own Model (BYOM), and private VPC endpoints
  • Batch Inference at up to 50% off real-time rates for OpenAI and Anthropic models
  • Inference Router to match each request to the right model, plus per-key spend alerts

Get started with the Inference Engine ->

Results in customer environments may vary depending on configuration, implementation, and usage. Results and/or savings are not guaranteed.

Any references to third-party companies, trademarks, or logos in this document are for informational purposes only and do not imply any affiliation with, sponsorship by, or endorsement of those third parties.

About the author

Jesse Sumrak
Jesse Sumrak
Author
Sr. Content Marketing Manager
See author profile

Hi. My name is Jesse Sumrak. I’m a writing zealot by day and a post-apocalyptic peak bagger by night (and early-early morning). Writing is my jam and content is my peanut butter. And I make a mean PB&J.

Related Resources

Articles

What Is Claude Ship? What Developers Should Know First (2026)

Articles

What Is an AI Agent Runtime? How It Works (2027)

Articles

What Is Harness Engineering? (2027)

Start building today

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.