Serverless Inference

What is Serverless Inference?

Serverless inference is a way of running AI models in which the provider supplies and scales compute automatically and the customer pays only for usage, with no charge for idle capacity.

Updated November 2026 · 2 min read


Serverless inference lets a team run an AI model on demand, sending requests to a platform that handles the hardware and billing only for the work done, much like paying for a taxi ride instead of owning a car. The platform provides compute when a request arrives, scales up as traffic grows and scales to zero when it stops. The customer pays only for what is used, usually per request, per token or per second of compute. It sits between calling a provider's model API and running a model on reserved GPUs.

Serverless inference is offered by cloud providers' AI platforms and by specialist platforms that host open-weight and custom models. It is especially useful for organizations that want to run their own or fine-tuned models without operating GPU infrastructure.

Serverless vs. dedicated GPU inference

Serverless inferenceDedicated or reserved GPUs
Idle costNoneFull cost whether used or not
ScalingAutomaticYour responsibility
Cost at high, steady volumeUsually higher per unitUsually lower per unit
LatencyCan suffer from cold startsConsistent
Operational effortLowHigh

The cold start problem

When a serverless platform has scaled to zero, the next request must wait while a GPU is assigned and the model is loaded into memory. For large models, this can take from several seconds to minutes. Platforms reduce cold starts by keeping models warm, caching model files close to GPUs or letting customers pay to keep a minimum number of instances running, which reduces the cost advantage.

When to use serverless inference

  • Spiky or unpredictable traffic, such as internal tools used mainly during business hours.
  • Early-stage products with uncertain demand.
  • Custom or fine-tuned models used at low to moderate volume.
  • Batch jobs that run occasionally.

As volume grows and becomes steady, reserved capacity or provisioned throughput often becomes cheaper.

An example

Consider a hypothetical law firm that fine-tunes a small open-weight model to classify incoming documents. Usage is heavy during the working day and near zero at night and on weekends. A dedicated GPU running all week would sit idle about 70% of the time. On a serverless platform, the firm pays only for the roughly 30% of hours it uses, at a slightly higher per-second rate, which comes to about a third of the dedicated cost. To avoid cold starts at the beginning of the day, it schedules a warm-up request each morning before staff arrive.

Common pitfalls

  • Ignoring cold starts for latency-sensitive uses.
  • Staying serverless at high volume, when reserved capacity would be cheaper.
  • Not monitoring usage, since costs scale with traffic.

Serverless inference is one option within model serving and a common form of GPU as a service.

Frequently asked questions

What is a cold start in serverless inference?

A cold start happens when a serverless inference platform has scaled to zero and the next request must wait while a GPU is assigned and the model is loaded into memory. For large models this can take from several seconds to minutes. Platforms reduce it by keeping models warm, caching model files near GPUs or keeping minimum instances running for a fee.

When is serverless inference cheaper than dedicated GPUs?

Serverless inference is usually cheaper when traffic is spiky, unpredictable or low, because there is no charge for idle capacity. A dedicated GPU costs the same whether busy or idle, so a model used mainly during working hours wastes much of its rental. As volume grows and steadies, reserved capacity or provisioned throughput usually costs less per unit.

How is serverless inference billed?

Serverless inference is billed only for usage, typically per request, per token or per second of compute, with nothing charged while the model sits idle. Per-unit rates are usually higher than on dedicated hardware. Paying to keep a minimum number of instances warm to avoid cold starts adds a standing cost that narrows the savings, and spend rises directly with traffic.