---
title: "How to price serverless GPUs"
description: "Whether serverless or reserved GPUs are cheaper comes down to one comparison: the ratio of reserved to serverless cost equals the reservation discount multiplied by the workload's peak-to-average demand ratio, so serverless wins whenever peak-to-average exceeds the discount."
url: "https://swe.quest/articles/how-to-price-serverless-gpus-860219d00ad9fa69"
canonical: "https://modal.com/blog/how-to-price-serverless"
source: "Modal"
published: "2026-07-06"
difficulty: "easy"
kind: "Opinion"
reading_minutes: 7
tags: ["cost-optimization","serverless","capacity-planning","inference","hardware"]
---

# How to price serverless GPUs

A post on [Modal](https://swe.quest/sources/modal.md), published 2026-07-06, 7 min read, Opinion. Original: [https://modal.com/blog/how-to-price-serverless](https://modal.com/blog/how-to-price-serverless)

## Summary

Whether serverless or reserved GPUs are cheaper comes down to one comparison: the ratio of reserved to serverless cost equals the reservation discount multiplied by the workload's peak-to-average demand ratio, so serverless wins whenever peak-to-average exceeds the discount. Reservations must be sized for peak demand over the whole contract, while serverless bills only for actual use. Modal reports typical discounts of 2-5x against peak-to-average ratios of 5-10x for inference, training and agentic workloads, and 10-100x for burst load above a reserved baseline. The model's assumptions are also examined: perfect demand prediction, instant autoscaling, all-or-none strategies and GPU cost as the only factor.

Written by swe.quest, not by the author.

**Difficulty:** Easy: no special background needed; explains what something is and why it matters

## Topics

- [Cost optimization](https://swe.quest/tags/cost-optimization.md) (Reliability & operations)
- [Serverless](https://swe.quest/tags/serverless.md) (Backend & APIs)
- [Capacity planning](https://swe.quest/tags/capacity-planning.md) (Reliability & operations)
- [Inference & serving](https://swe.quest/tags/inference.md) (AI & ML)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)

## Prerequisites

- cloud GPU pricing models ([easy posts on Cloud platforms](https://swe.quest/tags/cloud.md?difficulty=easy))
- autoscaling basics ([easy posts on Capacity planning](https://swe.quest/tags/capacity-planning.md?difficulty=easy))

## Keywords

Modal, NVIDIA B200, vLLM, SGLang

## Related posts

- [The future of AI needs more flexible GPU capacity](https://swe.quest/articles/the-future-of-ai-needs-more-flexible-gpu-capacity-9253d5fa5c5e3d65.md): Modal · 2024-10-25 · Easy · 7 min read · Capacity planning, Inference & serving, Serverless, Multi-tenancy, Cost optimization
  Inference and many other GPU workloads are highly volatile: Poisson noise, daily and weekly cycles, viral spikes and bursty batch jobs, which pushes fixed-reservation GPU clusters below 50% utilization.
- [Outgrowing Lambda Functions, Not Lambda | Honeycomb](https://swe.quest/articles/outgrowing-lambda-functions-not-lambda-honeycomb-70c5a0734377ce87.md): Honeycomb · 2026-11-25 · Medium · 20 min read · Serverless, Cost optimization, Cloud platforms, Capacity planning, Observability
  Honeycomb moved most of its S3-backed query mapper compute from Lambda Functions to AWS Lambda Managed Instances, eventually cutting query costs 40-56%, though the switchover itself was easy and the savings came from months of tuning.
- [How we achieved truly serverless GPUs](https://swe.quest/articles/how-we-achieved-truly-serverless-gpus-d82b0620ff18c95f.md): Modal · 2026-05-12 · Medium · 23 min read · Serverless, Inference & serving, Containers, Storage systems, Capacity planning
  Modal cuts GPU inference replica cold starts from roughly 2,000 seconds to about 50 seconds, a 40x speedup, by attacking each stage of spin-up.
- [Linear programming for fun and profit](https://swe.quest/articles/linear-programming-for-fun-and-profit-77f85e06bfe14840.md): Modal · 2025-05-07 · Medium · 8 min read · Capacity planning, Cost optimization, Algorithms, Cloud platforms, Serverless
  Modal provisions GPU and CPU capacity across multiple clouds with a "resource solver" that formulates demand, prices, availability and per-instance limits as a linear program.
- [The Best Serverless Platforms in 2026](https://swe.quest/articles/the-best-serverless-platforms-in-2026-4d80b35d25ee273f.md): Railway · 2026-05-25 · Easy · 13 min read · Serverless, Cloud platforms, Deployment
  "Serverless" in 2026 covers three distinct runtime contracts: function-as-a-service (Lambda, Workers, Vercel, Azure Functions), container-as-a-service with scale-to-zero (Cloud Run, Fargate/ECS Express Mode), and full-app scale-to-zero on usage-based pricing (Railway).

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
