Cloudflare Workers is the best serverless hosting for APIs, with a five-dollar monthly plan that includes ten million requests and no charge for data transfer. AWS Lambda is the best for event-driven APIs on AWS, and Google Cloud Run is the best for container-based APIs.
How we make this list: we compare pricing pages, product documentation and public user reviews, then re-check every price before each update. No product paid for a place. Disclosure.
Cloudflare Workers is the top pick for APIs: $5 a month includes 10 million requests, CPU-only billing and no egress charges.
AWS Lambda leads on rating at 4.7 out of 5 on Capterra, with a permanent free tier of 1 million requests a month.
Four platforms charge no monthly fee at all: Lambda, Cloud Run, Azure Functions and DigitalOcean Functions are pay-as-you-go after generous free tiers.
Vercel Hobby is free for personal projects only; commercial APIs need Pro at $20 a seat a month.
Deno Deploy was excluded: it shuts down in April 2027, with migration support to Cloudflare Workers.
What should API teams look for in serverless hosting?
Serverless hosting for APIs is priced by requests and compute, not by servers. The bill follows traffic, so the cheapest host depends on how many requests an API serves and how much CPU each one burns.
Cold starts decide latency. V8 isolate platforms like Cloudflare Workers start in milliseconds, while container platforms like Lambda and Cloud Run can take hundreds of milliseconds to scale from zero.
Free tiers are generous but capped. Lambda, Cloud Run and Workers all cover low-traffic APIs for free, but Vercel Hobby forbids commercial use and Netlify pauses sites when credits run out.
Billing meters differ sharply. Workers bills CPU milliseconds only, so waiting on a database is free, while Lambda bills wall-clock GB-seconds and Netlify converts everything into credits. Our guide on best serverless platforms compares the wider platform landscape.
Check the runtime limits before you commit. Workers caps CPU at 30 seconds by default, Lambda caps runs at 15 minutes, and Supabase Edge Functions caps CPU at 2 seconds excluding async I/O.
Cloudflare Workers is an edge serverless platform that runs JavaScript, TypeScript and WebAssembly inside lightweight V8 isolates across Cloudflare's global network. The free plan includes 100,000 requests a day, and the Paid plan costs $5 a month for 10 million requests and 30 million CPU milliseconds.
The trade off is a V8 isolate sandbox rather than full Linux containers, so Docker images and heavy native binaries do not run here. The G2 rating rests on only 3 reviews, the thinnest base in this list. It suits teams building high-volume APIs, edge middleware and globally distributed apps.
What we like
V8 isolate architecture avoids traditional container cold starts
Bills active CPU time only, so I/O wait during external API calls is free
Predictable $5/mo entry tier includes 10 million requests
No charge for data transfer or bandwidth
Watch out for
G2 rating rests on only 3 reviews
Not suited for Docker containers or heavy native binaries
Free plan enforces a strict 10ms CPU time cap per request
AWS Lambda is an event-driven serverless compute service that runs code in Firecracker microVMs without server management. Its permanent free tier covers 1 million requests and 400,000 GB-seconds a month, and paid usage bills $0.20 per million requests plus $0.0000166667 per GB-second on x86.
The trade off is cold start latency on heavier runtimes and a metered bill with no fixed monthly fee. API Gateway configuration and IAM roles add setup complexity, and CloudWatch logging plus data transfer add separate fees. It suits backend teams running APIs, queues and automated AWS workflows.
What we like
Permanent monthly free tier of 1M requests and 400,000 GB-seconds
No fixed monthly subscription fee for on-demand usage
Direct event triggers from S3, SQS, DynamoDB and API Gateway
ARM/Graviton instances reduce compute duration rates by 20%
Watch out for
Cold starts can reach hundreds of milliseconds on heavier runtimes
Logging in CloudWatch and outbound data transfer add separate fees
IAM roles and API Gateway configuration add initial setup complexity
Google Cloud Run is a managed serverless platform that runs stateless containers and source-deployed functions with automatic scale-to-zero. Its free tier includes 2 million requests, 180,000 vCPU-seconds and 360,000 GiB-seconds a month, and paid requests cost $0.40 per million.
The trade off is container startup time when scaling from zero and a higher per-request overage rate than Lambda. Multiple concurrent requests per container instance keep costs down, and background jobs and optional GPUs add flexibility. It suits teams that want standard container portability without managing Kubernetes.
What we like
Runs any programming language, library or binary packaged in a container
Handles multiple concurrent requests per container instance to lower costs
Generous 2 million free requests per month
Supports background jobs and optional NVIDIA L4 GPUs
Watch out for
Container cold starts can add latency compared to isolate runtimes
Higher per-request overage rate ($0.40/1M) than AWS Lambda
Requires familiarity with Google Cloud IAM and billing controls
Supabase Edge Functions homepage, captured Dec 2026.
Supabase Edge Functions is a Deno-based function service that runs inside a Supabase project beside Postgres, authentication, storage and realtime subscriptions. The Free plan includes 500,000 invocations a month, and Pro costs $25 a month with 2 million invocations included.
The trade off is a 2-second CPU cap per invocation that excludes async I/O, and invocations beyond the included 2 million cost $2 per million. Free projects pause after a week without use. It suits teams already on Supabase that want functions beside their database and auth.
What we like
Functions beside Postgres, auth and storage in one project
Netlify is a web deployment platform that bundles serverless functions, scheduled background jobs and Deno-based edge functions into a single Git workflow. The Free plan provides 300 monthly usage credits, and Personal costs $9 a month for 1,000 credits covering deploys, compute, bandwidth and requests.
The trade off is a hard monthly pause if you exhaust the Free plan's 300 credits, requiring an upgrade to Personal or Pro at $20 a month. Tracking credit consumption across five meters takes initial adjustment. It suits solo developers and web teams wanting integrated forms, builds and serverless APIs.
What we like
Single unified credit pool covers deploys, compute, requests and bandwidth
Pro plan ($20/mo) includes unlimited team members with no per-seat fee
Supports background functions, scheduled cron jobs and edge middleware
Drop-in file routing deploys functions directly from a repository folder
Watch out for
Free plan pauses sites until the next cycle once 300 credits are consumed
Tracking credit consumption across five meters takes initial adjustment
24-hour function log retention on the free tier limits debugging
DigitalOcean Functions homepage, captured Dec 2026.
DigitalOcean Functions is an on-demand serverless compute service that runs functions in isolated containers with no per-request fee. The free tier includes 90,000 GiB-seconds a month, and additional compute costs $0.0000185 per GiB-second.
The trade off is a smaller ecosystem than the big clouds and fewer runtimes than Lambda. Container spin-up adds cold starts, and advanced features like durable workflows are thinner here. It suits teams that want simple, predictable compute billing on DigitalOcean.
Vercel is a frontend cloud platform that pairs Git-driven preview deployments with serverless Fluid Compute functions and edge middleware. Its Hobby plan is free for personal projects and includes 1 million function invocations, 4 hours of active CPU and 360 GB-hours of provisioned memory monthly.
The trade off is a $20-a-month per-seat Pro base fee, which includes $20 in monthly usage credit, plus metered overages on bandwidth and active CPU. Hobby forbids commercial use. It suits web teams shipping Next.js, SvelteKit or Nuxt apps that want zero-config backend endpoints.
What we like
Automatic preview URLs and serverless API routes on every Git push
Fluid Compute shares instances across concurrent requests to trim latency
Pro plan includes $20/mo in usage credit and cold start prevention
Native support for Next.js Server Actions and incremental regeneration
Watch out for
Hobby plan is for non-commercial personal projects only
Pro pricing charges $20/mo for each additional deploying team seat
Bandwidth and edge request overages can scale quickly on high-traffic sites
Azure Functions is Microsoft's serverless compute service for running event-triggered code across C#, .NET, Python, Node.js, Java and PowerShell. On the Consumption plan, every account gets a free grant of 1 million executions and 400,000 GB-seconds per month.
The trade off is cold start delays on the standard Consumption tier and usage billing beyond the free grant at $0.20 per million executions plus $0.000016 per GB-second. Eliminating cold starts requires costlier Premium plans. It suits enterprises already invested in Azure services, Microsoft Entra ID and .NET stacks.
What we like
Built-in input and output bindings simplify connecting Azure Storage and Cosmos DB
Render is a managed cloud platform for web services, workers, cron jobs and databases with Git auto-deploys and free TLS. Free web services spin down after 15 minutes idle, and paid Starter instances cost $7 a month per service, with a Pro workspace at $25 a month flat.
The trade off is per-service pricing, so costs add up as services multiply, and free services sleep. Paid compute is a fixed instance price rather than per-request billing. It suits teams that want predictable monthly invoices for small APIs with steady traffic.
What we like
Fixed per-service pricing with predictable monthly invoices
Free tier for web services and static sites
Managed Postgres, cron jobs and workers in one place
Git auto-deploys with free TLS certificates
Watch out for
Free web services spin down after 15 minutes idle
Per-service pricing means costs add up as services multiply
Fly.io is a container platform that runs applications in lightweight Firecracker microVMs across more than 30 regions, close to users worldwide. Machines bill per second while running, with the smallest shared CPU at $2.19 a month, and there is no free tier, though invoices under $5 are waived.
The trade off is a CLI-first workflow with a learning curve and pricing that varies by region. Persistent volumes and long-lived connections work here, unlike pure function platforms. It suits teams that want always-on global APIs and are comfortable sizing machines themselves.
What we like
Cheapest always-on option for small API services
Global deployment in more than 30 regions
Persistent volumes and WebSockets work here
Per-second billing for machines that run
Watch out for
No free tier, only a $1 trial credit
CLI-first workflow has a learning curve
Pricing varies by region and is complex to model
Machines billed per second while runningVisit fly.io
Pay-as-you-go vs monthly plans: what to expect
Four tools here charge no monthly fee. AWS Lambda, Google Cloud Run, Azure Functions and DigitalOcean Functions bill only for usage after a free tier, so a quiet API can cost nothing for months.
Five tools charge a flat monthly minimum. Workers costs $5, Render $7, Netlify $9, Vercel $20 and Supabase Pro $25 a month, with usage allowances included. Fly.io has no plan fee either: machines bill per second from $2.19 a month.
Model the bill at real traffic. In November 2026 bill comparisons, a 10-million-request API cost about $5.80 a month on Workers Paid and about $28 on Lambda after its free tier, so request volume and CPU time decide the winner, not the headline plan price.
How we chose
We started from the serverless platforms most often named in 2026 comparisons, then kept 10 products with a public review footprint, ranked for API hosting: request pricing, cold starts, edge latency and runtime limits first.
Prices come from vendor pricing pages and review listings, checked on 2 December 2026. Cloudflare Workers Paid costs $5 a month for 10 million requests, confirmed on the official pricing page today. Ratings are G2 scores, or Capterra where noted, from the same day.
We left out Deno Deploy, which shuts down in April 2027, and tools with no review footprint. No vendor paid for a place, and we do not claim hands-on testing for this list.
How to choose serverless hosting for APIs
Start with your request volume, then match the billing meter to that shape.
Count requests per month. A 10-million-request API costs about $5.80 on Workers Paid and about $28 on Lambda after the free tier, so volume decides the cheapest host.
Check cold start tolerance. Edge isolates start in milliseconds, while containers can take hundreds of milliseconds from zero. Latency-sensitive APIs belong on Workers; batch-style APIs tolerate Lambda or Cloud Run.
Match the runtime to the code. Workers runs JavaScript, TypeScript and WebAssembly in a sandbox, while Cloud Run and Fly.io run any Docker container. Pick the platform that runs your stack without rewrites.
Compare the free tier limits. Vercel Hobby forbids commercial use, Netlify pauses when credits run out, and Fly.io has no free tier. Confirm the free tier covers commercial traffic before you build on it.
FAQ
What is the best serverless hosting for APIs?
Cloudflare Workers is the best serverless hosting for APIs. It costs $5 a month for 10 million requests, bills CPU time only, charges nothing for data transfer, and starts in milliseconds on the edge with no container cold starts.
How much does serverless hosting for APIs cost?
Workers costs $5 a month, Render $7, Netlify $9, Vercel $20 and Supabase Pro $25 a month. Lambda, Cloud Run, Azure Functions and DigitalOcean Functions charge no monthly fee and bill only for usage after generous free tiers. Fly.io bills per second from $2.19 a month.
Is there free serverless hosting for APIs?
Nine of the ten tools here have a free tier. Lambda, Cloud Run, Workers, Azure Functions and DigitalOcean Functions all cover low-traffic APIs for free. Fly.io is the exception: it has no free tier, only a $1 trial credit, though invoices under $5 are waived.
Cloudflare Workers or AWS Lambda for APIs?
Workers is better for high-volume, I/O-bound APIs at the edge: $5 a month, CPU-only billing and no cold starts. Lambda is better for event-driven APIs inside AWS, with triggers from S3, SQS, DynamoDB and API Gateway and a permanent free tier.
Which serverless host has the fewest cold starts?
Cloudflare Workers has the fewest, because V8 isolates start in milliseconds. Lambda, Cloud Run and Azure Functions run containers and can take hundreds of milliseconds to scale from zero. Fly.io and Render run always-on machines, so they avoid cold starts entirely.
Do serverless APIs work for WebSockets?
Workers charges a WebSocket upgrade as one request and messages are not billed, but long-lived connections fit always-on machines better. Fly.io and Render suit persistent connections, while Lambda needs API Gateway WebSocket APIs for the same job.
SaaS SEO and WordPress specialist with about 8 years of experience. Rakib compares WordPress plugins, themes, hosting and software using public pricing, documentation and user reviews. See how we rank.