Plugins Plugin hub Backup SEO Caching Security Forms WooCommerce Images Best backup plugins
Hosting Hosting directory Shared hosting Managed WordPress Cloud hosting VPS hosting By reader location Hosting finder
Themes & builders Compare Rank Math vs Yoast
Tools All tools Hosting finder Plugin stack builder Cost calculator Salt generator Theme detector Who is hosting this? Speed test Headline analyzer robots.txt generator Redirect generator Uptime calculator Blog name generator
Blog Best backup plugins Deals
Guides All guides Speed up WordPress Choose hosting Back up WordPress
How we rank
✓Developer, IT & data · Buying guide

Best Serverless Hosting for APIs, Compared on Cold Starts and Pricing

★ Short answer

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.

#2 Best on AWS

AWS Lambda

Free tier, pay per request

FreePrice
4.7★Rating
Not publishedInstalls
See why it ranks
🏆 #1 Top pick

Cloudflare Workers

Edge APIs from $5 a month

FreeTo start
4.2★Rating
Not publishedInstalls
See why it ranks
#3 Best containers

Google Cloud Run

Containers that scale to zero

FreePrice
4.6★Rating
Not publishedInstalls
See why it ranks
Best Serverless Hosting for APIs, Compared on Cold Starts and Pricing

Key takeaways

  • 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.

Quick comparison

ToolBest forStarting priceFree planRating
Cloudflare Workers#1 For high-volume APIs at the edge$5/moFree plan4.2/5
AWS Lambda#2 For event-driven APIs on AWSFreeFree plan4.7/5
Google Cloud Run#3 For serverless containersFreeFree plan4.6/5
Supabase Edge Functions#4 For APIs beside Postgres$25/moFree plan4.6/5
Netlify#5 For APIs beside a frontend$9/moFree plan4.6/5
DigitalOcean Functions#6 For simple predictable billingFreeFree plan4.6/5
Vercel#7 For Next.js API routes$20/moFree plan4.5/5
Azure Functions#8 For Microsoft and .NET APIsFreeFree plan4.4/5
Render#9 For fixed-price API services$7/moFree plan4.7/5
Fly.io#10 For always-on global APIs$2.19/moNo free plan4.3/5

Price ladder: cheapest paid plan per year

List prices, USD, checked Dec 2026
Lambda Free
Cloud Run Free
DO Functions Free
Azure Free
Fly.io $26
Workers FREE$60
Render FREE$84
Netlify FREE$108
Vercel FREE$240
Supabase FREE$300

The 10 best serverless hosting for APIs

01

Cloudflare Workers

4.2/5on G2 (3 reviews, checked Dec 2026)
Paid from$5/mo
Best for high-volume APIs at the edge
Pricing$5/mo Paid, 10M requests
Free tier100,000 requests/day
ArchitectureV8 isolates, global edge
RuntimesJavaScript, TypeScript, Wasm
workers.cloudflare.com
Cloudflare Workers homepage
Cloudflare Workers homepage, captured Dec 2026.

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
Paid plan includes 10M requests a monthVisit workers.cloudflare.com
02

AWS Lambda

4.7/5on Capterra (95 reviews, checked Dec 2026)
PriceFree
Best for event-driven APIs on AWS
PricingPay as you go, no monthly fee
Free tier1M requests + 400K GB-s/mo
Paid rate$0.20/1M req + GB-seconds
ArchitectureFirecracker microVMs
aws.amazon.com
AWS Lambda homepage
AWS Lambda homepage, captured Dec 2026.

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
Usage billing starts after the free tierVisit aws.amazon.com
03

Google Cloud Run

4.6/5on G2 (243 reviews, checked Dec 2026)
PriceFree
Best for serverless containers
PricingPay as you go, no monthly fee
Free tier2M requests/mo
Paid rate$0.40/1M req + vCPU-seconds
ArchitectureManaged stateless containers
cloud.google.com
Google Cloud Run homepage
Google Cloud Run homepage, captured Dec 2026.

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
Free tier covers 2M requests a monthVisit cloud.google.com
04

Supabase Edge Functions

4.6/5on G2 (233 reviews, checked Dec 2026)
Paid from$25/mo
Best for APIs beside Postgres
PricingPro $25/mo, 2M invocations
Free tier500,000 invocations/mo
RuntimeDeno-based edge functions
DatabasePostgres, auth and storage built in
supabase.com
Supabase Edge Functions homepage
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
  • Generous free tier of 500,000 invocations a month
  • 2-second CPU cap excludes async I/O time
  • TypeScript-first Deno runtime

Watch out for

  • Invocations beyond 2M cost $2 per million
  • Free projects pause after a week without use
  • Tied to the Supabase project plan
Pro includes 2M invocations a monthVisit supabase.com
05

Netlify

4.6/5on Capterra (90 reviews, checked Dec 2026)
Paid from$9/mo
Best for APIs beside a frontend
PricingPersonal $9/mo, 1,000 credits
Free tier300 monthly usage credits
FunctionsServerless + Deno edge functions
RuntimesNode.js, TypeScript, Go, Deno
netlify.com
Netlify homepage
Netlify homepage, captured Dec 2026.

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
Personal adds 1,000 credits a monthVisit netlify.com
06

DigitalOcean Functions

4.6/5on Capterra (161 reviews, checked Dec 2026)
PriceFree
Best for simple predictable billing
PricingPay as you go, no request fee
Free tier90,000 GiB-seconds/mo
Paid rate$0.0000185/GiB-second
ArchitectureOn-demand isolated containers
digitalocean.com
DigitalOcean Functions homepage
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.

What we like

  • No per-request fee, billed only for compute used
  • Simple per-GiB-second billing with no monthly fee
  • Free tier includes 90,000 GiB-seconds a month
  • Straightforward console for small teams

Watch out for

  • Smaller ecosystem than the big clouds
  • Fewer runtimes than AWS Lambda
  • Container spin-up adds cold starts
No request fee, billed per GiB-secondVisit digitalocean.com
07

Vercel

4.5/5on G2 (120 reviews, checked Dec 2026)
Paid from$20/mo
Best for Next.js API routes
PricingPro $20/mo, includes $20 credit
Free tier1M invocations/mo (Hobby)
ComputeFluid Compute, active CPU billing
RuntimesNode.js, Python, Go, Ruby, Edge
vercel.com
Vercel homepage
Vercel homepage, captured Dec 2026.

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
Pro includes $20 usage credit a monthVisit vercel.com
08

Azure Functions

4.4/5on G2 (215 reviews, checked Dec 2026)
PriceFree
Best for Microsoft and .NET APIs
PricingPay as you go, no monthly fee
Free tier1M executions + 400K GB-s/mo
Paid rate$0.20/1M exec + $0.000016/GB-s
Runtimes.NET, C#, Python, Node.js, Java
azure.microsoft.com
Azure Functions homepage
Azure Functions homepage, captured Dec 2026.

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
  • Durable Functions extension supports stateful multi-step workflows
  • 1 million free executions and 400,000 GB-seconds every month
  • Supports Windows and Linux hosting environments

Watch out for

  • Cold starts on the Consumption plan can slow sporadic HTTP APIs
  • Eliminating cold starts requires upgrading to costlier Premium plans
  • Portal configuration and storage account dependencies feel verbose
Consumption plan has a free monthly grantVisit azure.microsoft.com
09

Render

4.7/5on G2 (84 reviews, checked Dec 2026)
Paid from$7/mo
Best for fixed-price API services
PricingStarter $7/mo per service
Free tierFree web services (sleep after idle)
ComputeManaged web services + workers
ExtrasPostgres, cron jobs, Redis
render.com
Render homepage
Render homepage, captured Dec 2026.

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
  • Fixed instance pricing, not per-request billing
Starter instances from $7 a monthVisit render.com
10

Fly.io

4.3/5on G2 (180 reviews, checked Dec 2026)
Starts at$2.19/mo
Best for always-on global APIs
PricingPay as you go from $2.19/mo
Free tierNo free tier; $1 trial credit
ComputeFirecracker microVMs, 30+ regions
Egress$0.02/GB in North America and Europe
fly.io
Fly.io homepage
Fly.io homepage, captured Dec 2026.

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.

  1. 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.
  2. 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.
  3. 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.
  4. 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.

Sources we checked (10)

  1. Best serverless platforms
  2. Best edge computing software
  3. Cloudflare Workers pricing
  4. Serverless pricing 2026
  5. Cloudflare Workers vs Lambda vs Vercel
  6. Best serverless platforms for a startup MVP
  7. Serverless functions pricing compared
  8. Fly.io vs Render vs Railway
  9. Best deployment platforms 2026
  10. Free hosting and server-side processing
Rakib Hossain
Rakib Hossain

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.

Related guides

All Developer, IT & data guides →