All glossary terms

Pricing

Serverless inference

Calling a provider's pooled GPUs per request instead of running your own. Nothing idles on your bill, in exchange for per-token prices and limits.

Serverless inference means sending requests to a provider whose GPUs are always on and shared among many customers, and paying per token (or per second) for what you use. No machines to rent, patch, or keep warm; when traffic stops, the bill stops with it, which is the whole appeal for spiky or low-volume workloads.

The exchange on offer is utilization for control. The provider pools many customers onto each card and keeps its own fleet busy, which is how their per-token price can be sensible. What you give up: per-token prices carry a margin over raw card cost at high utilization; throughput can be throttled or rate limited, and capacity is shared; long-context and very large models may be unavailable or priced steeply; and caching behavior (prefix reuse, routing) may leave your control.

The comparison to rent-your-own is a function of utilization, not brand preference: idle rent is what self-hosting adds, and per-token margin is what serverless adds. A workload that keeps a card busy most of the day moves toward renting its own; a workload that spikes a few hours a week moves toward serverless. State the utilization and the arithmetic makes the case on its own.

A worked example

A feature needs inference 4 hours a day, 30 days a month, at 500 output tokens per second. Assumed serverless price: $4.80 per million output tokens; a dedicated H100 rents at $2.50 per hour.

  1. Tokens per month: 4 x 3,600 x 500 x 30 = 216 million.
  2. Serverless: 216 million x $4.80 per million = $1,036.80 for the month.
  3. Dedicated rental for the month is billed whether it is used: $2.50 x 24 x 30 = $1,800.
  4. At all-day usage the comparison flips: 720 h x 3,600 x 500 tokens = 1,296 million tokens, and 1,296 million x $4.80 = $6,220.80.

At 4 hours a day serverless is $1,037 versus $1,800 rented - and it inverts when the workload runs all day, because per-token margins beat idle rent only on idle boxes.

Where this shows up

Test yourself

Related terms