FunctionPriceBook

Serverless pricing compared (2026)

By Editorial team · 2026-06-18

In short: Serverless pricing has two halves: a per-request fee ($0.20/1M on Lambda and Azure, up to $0.60/1M on Vercel) and a per-GB-second memory charge that usually dominates the bill. For most small apps the cheapest option is $0 — Lambda, Cloudflare Workers and Cloud Run all run light workloads inside their free tiers. The biggest hidden variable is egress: Cloudflare charges none, hyperscalers bill ~$0.09/GB.

Serverless pricing looks complicated, but almost every platform’s bill comes down to four numbers: a per-request fee, a per-GB-second memory-time charge, a free tier, and egress. Get those four and you can compare any two platforms.

The headline rates (June 2026 snapshot)

PlatformPer 1M requestsPer GB-secondFree tier (perpetual)
AWS Lambda$0.20$0.00001671M req + 400k GB-s
Azure Functions$0.20$0.0000161M req + 400k GB-s
Cloudflare Workers$0.30CPU-ms model100k req/day, no egress
Google Cloud Run$0.40$0.0000025/GiB-s + vCPU-s2M req + 360k GiB-s
Vercel Functions$0.60active-CPU + memory metersHobby: 1M req hard-capped
Scaleway~$0.165~$0.00000551M req + 400k GB-s
DigitalOcean Functionsno per-req fee$0.0000185/GiB-s90k GiB-s

Snapshot captured June 2026 — verify on each vendor’s pricing page.

The per-request fee is rarely the big number

A $0.20-vs-$0.40 difference per million requests is real but small. The charge that usually dominates is GB-seconds = requests × duration × memory. Doubling your function’s memory or its run time doubles that cost. See the cheapest-per-GB-second ranking.

Egress is the silent budget-killer

Hyperscalers bill outbound data at roughly $0.09/GB after a small free allowance. Cloudflare Workers charges nothing for egress, which often makes it the cheapest end-to-end option for content-heavy APIs even though its per-request fee is higher.

Bottom line

Start on a free tier — most small apps never leave it. When you outgrow it, compare the whole bill (requests + GB-seconds + egress + any platform minimum), not just the per-request rate. Estimate yours with the cost calculator or a ready-made workload scenario.

Frequently asked questions

What is the cheapest serverless platform in 2026?

For a small workload, the cheapest is whatever free tier covers it — AWS Lambda (1M req + 400k GB-s/mo), Cloudflare Workers (100k req/day, no egress) and Google Cloud Run (2M req/mo) all run light apps at $0. Beyond the free tier, Lambda and Azure Functions are cheapest per request at $0.20/1M; Cloudflare Workers ($0.30) wins overall when egress is heavy because it charges none.

Why is serverless pricing so hard to compare?

Because the models differ: some bill per request + GB-second (Lambda, Azure, Scaleway), some split CPU and memory into vCPU-seconds + GiB-seconds (Cloud Run, Container Apps), some bill CPU-milliseconds (Cloudflare Workers), and some bill resource-time by the hour or minute (Fargate, Render, Railway, Fly.io). A clean per-request number only exists for the first group.

Related articles

Last updated: 2026-06-18