Serverless inference
Serverless inference is a way of running AI models in the cloud in which the provider starts, scales and stops the computing resources automatically and the customer pays for the computing its requests use rather than for idle machines.
The traditional way to put a model into production is to rent servers, load the model onto them and keep them running whether or not anyone is using it. Serverless inference hands that job to the cloud provider. The customer uploads a model or picks one from a catalogue and gets an endpoint to call; the provider decides how many machines to run behind it, adds more when traffic rises and scales down, often to zero, when it falls.
The name is a misnomer, since servers still do the work; the customer simply never sees or manages them. Amazon Web Services describes its SageMaker Serverless Inference as suited to workloads with idle periods between bursts of traffic, scaling endpoints down to zero when there are no requests. Cloudflare markets Workers AI as models running on serverless GPUs across its network, with pay-for-what-you-use pricing. Many hosted model APIs that charge per token work the same way from the customer's side.
The main drawback is the cold start. When an endpoint that has scaled to zero receives a request, the provider has to find a machine, load the container and load the model before it can answer. AWS notes that cold start time depends on model size, download time and container start-up. Large language models make this worse, because their weights can run to tens or hundreds of gigabytes. Providers offer workarounds, such as AWS's provisioned concurrency, which keeps a set number of instances warm for an extra charge, but that moves the bill back towards paying for idle capacity.
There are also limits on what fits. AWS's serverless option, for example, offers between 1 and 6 gigabytes of memory per endpoint and does not support GPUs, which suits small classic models rather than large generative ones. Cloudflare's Workers AI, by contrast, runs a catalogue that includes large language models on serverless GPUs.
In practice the choice is about traffic shape. Serverless is cheapest and simplest for prototypes, internal tools and spiky or unpredictable demand. For steady, heavy traffic, dedicated capacity usually costs less per request and gives more predictable latency.
It is a cloud hosting model for AI in which the provider manages and scales the servers that run a model, and the customer pays per request or per unit of computation rather than for reserved machines. Endpoints can scale down to zero when idle. A cold start is the delay when a request arrives at an endpoint with no running capacity and the provider has to start a machine and load the model first. AWS says its length depends on model size, download time and container start-up. Keeping instances warm avoids it but costs more. For light or irregular traffic, usually yes, because nothing is billed while the model sits idle. For constant heavy traffic, dedicated or reserved capacity is generally cheaper per request and avoids cold starts. The break-even point depends on the provider's prices and the workload. Yes, through providers that keep models loaded on shared GPU fleets and bill per token, which is how most hosted LLM APIs work. Running your own large model serverlessly is harder, because its size makes cold starts long and some serverless products do not offer GPUs.Common questions
What is serverless inference?
What is a cold start in serverless inference?
Is serverless inference cheaper than dedicated GPUs?
Can large language models run serverless?
Search for "serverless inference", "serverless GPU" or "cold start" with a cloud provider's name to compare offerings. Cloud providers' official documentation is the reliable source for memory limits, GPU support and pricing, which change regularly. Independent benchmarks of cold start times are useful, but check that they tested a model of similar size to yours.Finding more
Working out what this means for your business?
Aileron Shift builds the systems behind this site: AI newsrooms that research, write and publish on their own, marketing automation and WordPress hosting for companies that need to move faster than their competitors.