Compare Lambda, Cloudflare Workers, Vercel, and GCP Functions pricing. Enter invocations, duration, memory → see exact monthly bills. Free, no signup.
Select provider · Enter invocations and duration · Results update live
Monthly cost for 10M invocations · 256MB · 200ms avg duration.
| Provider | Free tier | Invocation price | Compute price | 10M inv / 200ms / 256MB |
|---|---|---|---|---|
| AWS LambdaMOST POPULAR | 1M inv/mo + 400K GB-s | $0.20/M | $0.0000166725/GB-s | $3.47 |
| Cloudflare Workers | 1M req/day (free plan) | $0.30/M (paid) | $0.012/M GB-s | $2.70 |
| Vercel Functions | 100K GB-s/mo | $0.40/M | $0.018/GB-s | $4.00 |
| GCP Cloud Functions | 2M inv/mo + 400K GB-s | $0.40/M | $0.0000250/GB-s | $3.20 |
AWS API Gateway adds $3.50/M requests — often doubling your Lambda bill. CloudWatch Logs add $0.50/GB. NAT Gateway in VPC adds $0.045/GB. Factor these in for real-world costs.
| Use case | Best choice | Reason |
|---|---|---|
| REST API · under 30ms | Cloudflare Workers | Edge execution, no cold start |
| REST API · 100ms–500ms | AWS Lambda | Free tier, mature ecosystem |
| Heavy compute · 1–5s | AWS Lambda | Up to 10GB memory, 15min timeout |
| Next.js / React SSR | Vercel Functions | Zero-config deployment |
| Event-driven batch | AWS Lambda | Native integration with SQS, SNS, S3 |
Deploy serverless today — free tiers available:
After the free tier (1M/month), Lambda costs $0.20 per million invocations plus compute. A 256MB function at 200ms avg = ~$3.47/month for 10M invocations total.
For short-duration (under 30ms) high-frequency APIs, yes. Workers at $0.30/M beats Lambda. For longer compute (500ms+) or when you need AWS integrations, Lambda is often better value.
1 million free invocations per month + 400,000 GB-seconds of compute per month, forever (not just 12-month trial). Enough for ~2M requests at 256MB/200ms.
Yes. Cold starts add 100–500ms latency for the first request after a function is idle. Mitigation: Provisioned Concurrency ($0.0000041271/GB-s), keeping functions warm with scheduled pings, or choosing Cloudflare Workers (no cold starts).
15 minutes (900 seconds). For longer workloads use AWS Step Functions or ECS Fargate instead.