Serverless vs dedicated GPUs for inference

We may earn commissions when you shop through the links below. Learn more

When per-second serverless GPUs beat an always-on instance, and when they do not — cold starts, utilisation and billing.

  • By AIHostCompare
  • Published
  • Updated
  • 3 sources · Decision guide
On this page8 sections

Summary

Serverless GPUs bill per second only while a worker runs and scale to zero, so they are cheaper when traffic is low or bursty. A dedicated GPU bills for every hour it is on, so it wins once it is busy enough. For the same GPU at the same provider, the break-even share of the month equals the dedicated hourly price divided by the serverless hourly price; the table below computes it from current verified prices. Latency matters as much as cost: cold starts add container boot and model loading time unless you keep workers warm, and warm workers are billed time.

  • Serverless: per-second billing, scale to zero, cold starts, no idle cost unless you keep workers warm.
  • Dedicated: flat cost while running, no cold starts, full control over batching and the serving stack.
  • Break-even share of the month = dedicated price ÷ serverless price, for the same GPU, GPU count and provider.
  • Many production setups combine a small dedicated baseline with serverless capacity for peaks.

1. How the two billing models differ

Serverless GPUs bill for the time a worker exists. Modal, for example, bills “by the second for CPU, memory, and GPU time”, and once an application “has scaled down to zero containers you no longer get charged” . The billed time has three parts: start time (starting the container and loading the model into GPU memory), execution, and an idle window after the last request . Modal keeps an idle container for up to 60 seconds by default before shutting it down, adjustable from 2 seconds to 20 minutes, and you pay for resources while it idles .

Dedicated GPUs bill for the time the instance runs, busy or not. Some providers bill them by the second and others by the minute or the hour (each offer’s billing increment is listed on its provider page), but every increment is billed until you stop the instance.

Serverless and dedicated GPUs compared

  • You pay for

    Serverless (scale to zero)
    Worker time: start, execution and idle window
    Dedicated instance
    Every hour or second the instance runs
  • Idle cost

    Serverless (scale to zero)
    None once workers scale to zero, unless you keep warm workers
    Dedicated instance
    Full price
  • Latency

    Serverless (scale to zero)
    Cold starts when no warm worker is available
    Dedicated instance
    No cold start; the model stays loaded
  • Scaling

    Serverless (scale to zero)
    Automatic, within the platform’s worker limits
    Dedicated instance
    You add and remove instances
  • Control

    Serverless (scale to zero)
    The platform’s runtime, container and request model
    Dedicated instance
    Your own serving stack, drivers and batching settings

The providers in our dataset that publish scale-to-zero GPU prices, with their lowest price and how finely they bill:

Scale-to-zero serverless GPU prices in the dataset, per GPU-hour

Scale-to-zero serverless GPU prices in the dataset, per GPU-hour
ProviderGPU modelsLowest priceBilling
Modal10$0.59≈ €0.527 (estimated conversion from $0.59)T4Per second
OVHcloud4≈ $0.946 (converted from the EUR list price, €0.83)€0.83L4Per minute
Prices for workers that scale to zero when idle. What counts as billed time (start, execution, idle window) differs by provider; always-on workers and storage are not included.Oldest price in this table:Observed Prices in USD, excluding VAT. ≈ marks a price the provider lists in EUR, converted at the ECB rate of 25 Sep 2026.≈ Estimated conversion from the listed USD price at the ECB reference rate of 23 Oct 2026 (1 EUR = 1.1193 USD). Billing currency not verified: providers may bill in USD, and your bank's rate and fees differ. Prices exclude VAT. EUR list prices are shown as the provider lists them (the dataset converts them to USD at the ECB rate of 25 Sep 2026).

2. Find the break-even utilisation

Serverless GPUs usually cost more per hour than a dedicated instance of the same GPU. The question is how many hours you actually use. If a dedicated GPU costs D per hour and the serverless worker S per busy hour, a month of dedicated capacity costs D × 730 and serverless costs S × busy hours. The two are equal when:

Break-even utilisation

busy share = D ÷ Sbusy hours per month = 730 × D ÷ S

Below that share of the month, serverless is cheaper; above it, a dedicated instance is. The table computes it from current verified prices, only where one provider publishes both prices for the same GPU and the same number of GPUs, so providers, GPU models and multi-GPU cluster rates are never mixed:

Break-even utilisation: serverless vs dedicated, same provider and GPU

Scroll sideways for all columns.

Break-even utilisation: serverless vs dedicated, same provider and GPU
GPUProviderServerless, per GPU-hrDedicated, per GPU-hrDedicated is cheaper above
H100 PCIe80 GBOVHcloud≈ $3.53 (converted from the EUR list price, €3.10)€3.10≈ $3.19 (converted from the EUR list price, €2.80)€2.80On-demand90% busy≈ 659 h per month
L40S48 GBOVHcloud≈ $1.77 (converted from the EUR list price, €1.55)€1.55≈ $1.60 (converted from the EUR list price, €1.40)€1.40On-demand90% busy≈ 659 h per month
A1024 GBOVHcloud≈ $1.03 (converted from the EUR list price, €0.90)€0.90≈ $0.867 (converted from the EUR list price, €0.76)€0.76On-demand84% busy≈ 616 h per month
L424 GBOVHcloud≈ $0.946 (converted from the EUR list price, €0.83)€0.83≈ $0.855 (converted from the EUR list price, €0.75)€0.75On-demand90% busy≈ 660 h per month
Break-even = dedicated price ÷ serverless price, expressed as the share of a 730-hour month a worker is busy (including cold starts and idle time the provider bills). Storage, egress and minimum billing periods are not included.Both prices are for one GPU: multi-GPU nodes and clusters, which are rented whole, are left out. Where a provider sells the GPU in several dedicated tiers, the table uses its on-demand price, then its secure cloud price, and its community cloud price (third-party hosts) only when no other tier is listed.Oldest price in this table:Observed Prices in USD, excluding VAT. ≈ marks a price the provider lists in EUR, converted at the ECB rate of 25 Sep 2026.≈ Estimated conversion from the listed USD price at the ECB reference rate of 23 Oct 2026 (1 EUR = 1.1193 USD). Billing currency not verified: providers may bill in USD, and your bank's rate and fees differ. Prices exclude VAT. EUR list prices are shown as the provider lists them (the dataset converts them to USD at the ECB rate of 25 Sep 2026).

A worked example with the median pair in the table: the L40S at OVHcloud costs $1.77 per hour serverless and $1.60 per hour on a dedicated instance. A worker that is busy 4 hours a day, about 122 hours a month, costs about $216/mo serverless, against $1,165/mo for the dedicated instance running all month. At 16 busy hours a day (487 hours) serverless comes to about $861/mo, still less than the dedicated instance.

What counts as busy

Busy time is billed worker time, not request time. Cold starts, the idle window after each request and any workers you keep warm all count, so real busy shares are higher than traffic alone suggests.

The comparison covers compute only. Add storage, network volumes and egress, which apply to both models, with the GPU cost calculator.

3. Account for cold starts

A cold start is the wait for a new worker: booting the container and running your initialisation, which for an LLM means loading gigabytes of weights into GPU memory. Modal reports that its containers boot in about one second, but a container only counts as warm after your setup code has run, and downloading weights ahead of time instead of at boot “can reduce boot times from minutes to seconds” for models in the tens of gigabytes . That start phase is billed time too .

Ways to reduce cold starts, and what they cost

  • Cache or bake the weights into the image or a volume so each worker skips the download.
  • Keep workers warm. Modal’s min_containers sets a floor so a function never scales to zero, and buffer_containers keeps spare containers while it is active .
  • Stay warm for longer with a longer idle window, such as Modal’s scaledown_window .
  • Use a smaller or quantised model, which loads faster; see the VRAM guide.

Every warm worker is billed time, so these settings move you along the same curve as the break-even table. Modal states the trade-off directly: they “introduce a trade-off between cold start latencies and cost” .

4. Utilisation also means batching

A busy dedicated GPU does more work per dollar when the server batches requests. The PagedAttention paper, which introduced vLLM, reports 2–4× higher throughput than earlier serving systems at the same latency, with larger gains for longer sequences and larger models . A dedicated instance under steady load gets that benefit continuously.

Serverless platforms can batch too, but only when requests reach the same worker. Check how many concurrent requests one worker accepts: one request per worker multiplies cold starts and billed idle windows.

If you plan to run vLLM on your own instance, the vLLM hosting page lists providers with an official vLLM template or documentation.

5. Which to choose

Which billing model fits which workload

  • Prototype, internal tool or low traffic

    Better fit
    Serverless
    Why
    Idle hours cost nothing; cold starts are acceptable.
  • Steady traffic most of the day

    Better fit
    Dedicated
    Why
    Above the break-even share, the always-on price is lower, and batching raises throughput.
  • Tight latency target with spiky traffic

    Better fit
    Dedicated baseline plus serverless overflow, or warm workers
    Why
    The baseline absorbs normal load without cold starts; peaks go to workers that scale out.
  • Scheduled batch jobs

    Better fit
    Serverless, or interruptible capacity with checkpoints
    Why
    You pay only while jobs run; interruptions are tolerable when work can resume.
  • Custom serving stack or long-lived connections

    Better fit
    Dedicated
    Why
    Full control over the runtime, drivers and networking.

Estimate your busy hours, compare them with the break-even share above, and price both options in the GPU cost calculator. Providers offering both models are compared under inference hosting and managed AI hosting.

Next steps

Sources

Factual statements about providers, models, software and law link to these sources: primary sources first (official pricing pages, documentation, model cards and legal texts), third-party sources only where necessary and clearly labelled. Prices and specifications in the tables come from the AIHostCompare dataset; each provider's own sources and verification times are listed on its provider page, and the methodology explains how we verify data. Recommendations and rules of thumb are our editorial judgment.

  1. Pricing: resource costs and billable time (opens in a new tab)

    Modal · Official documentation · modal.com · accessed

    ↩
  2. Cold start performance (opens in a new tab)

    Modal · Official documentation · modal.com · accessed

    ↩
  3. ↩