What does an image-resize endpoint cost on serverless?
An image-processing endpoint handling 2,000,000 requests/month, each ~400 ms at 1024 MB (image work is memory- and CPU-heavy) plus 200 GB of resized-image egress. That is about 800,000 GB-seconds/month. After each platform's free tier, the cheapest of the GB-second-priced platforms is Scaleway Serverless Functions at roughly $2.36/month (compute + 200 GB egress). Higher memory (1 GB) and longer duration make GB-seconds the biggest cost, and 200 GB of egress is significant on providers that charge for it.
Source: Provider pricing pages. Data as of June 2026.
Estimated monthly cost by platform
| Platform | Compute (after free tier) | Egress (200 GB) | Total / month |
|---|---|---|---|
| Scaleway Serverless Functions | $2.36 | varies | $2.36+ |
| Azure Functions | $6.60 | varies | $6.60+ |
| DigitalOcean Functions | $13 | varies | $13+ |
| Google Cloud Functions | $15 | varies | $15+ |
| Google Cloud Run | $16 | varies | $16+ |
| Azure Container Apps | $23 | varies | $23+ |
| AWS Lambda | $6.87 | $18 | $25 |
Source: Provider pricing pages. Data as of June 2026.
Assumptions: 2,000,000 requests/month, 1024 MB memory, 400 ms duration, 200 GB egress. Totals are after each platform's free tier and exclude platform minimums and regional variation. "+" marks platforms whose egress rate varies. Snapshot June 2026 — verify on the vendor's pricing page.
How this is calculated
GB-seconds = requests x (duration/1000) x (memory/1024)
compute = max(0, requests - free) / 1M x req-fee + max(0, GB-s - free) x GB-s-rate
total = compute + egress GB x egress-rate
These are transparent calculations over the committed June 2026 snapshot rates — see the methodology. Change the numbers for your own workload in the calculator, and read the full breakdown on each provider page.
Frequently asked questions
What does an image-resize endpoint cost on serverless?
For 2,000,000 requests/month at 1024 MB and 400 ms each (about 800,000 GB-seconds) plus 200 GB egress, the cheapest of the GB-second-priced platforms is Scaleway Serverless Functions at roughly $2.36/month after its free tier. Higher memory (1 GB) and longer duration make GB-seconds the biggest cost, and 200 GB of egress is significant on providers that charge for it. snapshot captured June 2026.
What assumptions does this estimate make?
Compute = max(0, requests - free requests)/1M x per-1M-request fee + max(0, GB-seconds - free GB-seconds) x per-GB-second rate (CPU-metered platforms add a vCPU-second charge assuming 1 vCPU). Egress = 200 GB x the platform's egress rate. It excludes platform minimums (e.g. Cloudflare Workers Paid $5/mo, Vercel Pro $20/seat), cold-start nuances and regional price differences. See the methodology page.
Which platforms are not shown here?
Two groups are excluded. Resource-time platforms - AWS Fargate, Fly.io Machines, Render, Railway - bill by vCPU-hour, per-minute or instance-hour rather than per request, so a per-request figure is not comparable; for steady, high-utilisation traffic they can be cheaper, while for spiky low-volume traffic the request-priced platforms usually win. The others - Cloudflare Workers, Vercel Functions, Netlify Functions, Deno Deploy, Supabase Edge Functions, Modal - are request-priced but do not publish a clean per-GB-second rate (they bill CPU-time, CPU-ms, per-invocation or a multi-meter model), so we do not estimate their GB-second compute here; see each provider page for its own model.
More scenarios
Last updated: 2026-06-21