As of July 2026, Netlify is our pick for a short-running AI prototype on a reviewable URL. Cloudflare Workers is the production fit this site runs through OpenNext. Agents or queue workers that outlive a request belong on Railway or Fly.io.
The limit that changes the first pick is easy to miss. Netlify caps both modern streaming Functions and its beta Lambda-compatible streaming path at 10 seconds. Standard buffered Functions run for 60 seconds. Background Functions can run for 15 minutes but return 202 instead of streaming. Next.js adapters and Edge Functions use distinct runtime paths. A long reasoning call therefore needs a verified route or an asynchronous job.
The deployed timeout is the platform decision.
Some links below are partner links (marked). Partners never affect which tools appear, their order, or our verdicts. Same rule as our model rankings.
This roundup covers the hosting layer of our AI App Stack series: the platform decision. The step-by-step of actually shipping (model layer vs. app layer, what to check before you deploy) is our guide How to Deploy an AI App in 2026. This post picks the platform that guide assumes you've chosen.
We checked limits, not plan names
- Streaming support: token-by-token output is table stakes for AI UX and dies behind buffering proxies. First-class streaming or nothing.
- Function limits: reasoning models think for a while; a short route-specific timeout can kill a real workload.
- Secrets and previews: API keys managed properly, and preview deploys so prompt changes get reviewed like code changes.
- Free tier honesty: the exact quota, what happens at the limit, and whether commercial use is allowed.
- Growth shape: what happens at 100x, meaning pricing cliffs, regional scale, and the escape hatch story.
We checked the current first-party limits rather than treating a plan name as a capability. The receipts are Netlify's pricing and function API, Cloudflare's Workers pricing and limits, Vercel's Hobby limits, Railway's free trial, and Fly.io's cost guide.
| Platform | Best fit | Current entry tier | Limit to model before choosing |
|---|---|---|---|
| Netlify | Frontends, previews, short functions | Free: 300 credits/month | Buffered Functions stop at 60 seconds; streamed Functions stop at 10 seconds |
| Cloudflare | Edge APIs, static assets, Workers architectures | Free: 100,000 requests/day | Free invocations get 10 ms CPU; the runtime model differs from a Node server |
| Vercel | Next.js-native personal or commercial teams | Hobby: free, personal and non-commercial | Fluid compute defaults to and maxes out at 300 seconds on Hobby; commercial work needs a paid plan |
| Railway | Persistent services, databases, queues | $5 trial for up to 30 days, then $1 monthly Free credit | A limited trial can restrict outbound networking |
| Fly.io | Regional VMs and long-running processes | Pay as you go; no general free tier | You own more runtime and cost decisions |
| Render | Conventional web services and workers | Free instances for previews and hobby work | Free web services sleep after 15 idle minutes and are not for production |
The timeout decides the shortlist
Netlify for the first reviewable build
Netlify (partner link) wins a narrower scenario than our first review claimed: a web frontend, branch previews, managed secrets, and model calls that finish inside the function limit. Connect the repository, scope a low-limit API key to previews, and a prompt change gets a URL before it merges. That is a useful development loop.
The 10-second cap on modern streaming Functions is not a footnote for AI work. The beta Lambda-compatible streaming path has the same limit. A small extraction or short answer can fit; an extended-reasoning response often cannot. Netlify's 15-minute Background Function is useful for asynchronous work, but the browser receives a 202 acknowledgement rather than a token stream. Next.js adapters and Edge Functions use distinct runtime paths, so choose only after timing the route Netlify actually deploys.
Cloudflare for the production path we know
The production site runs on Cloudflare Workers through OpenNext. Static pages, scheduled work, and data APIs share that target; Netlify is not in the production request path. Cloudflare's paid Workers plan starts at $5 per account, includes 10 million monthly requests, and bills CPU rather than wall-clock duration. That distinction suits model calls that spend most of their time waiting on an upstream API.
This is the stack we can describe from inside the system. It is not the automatic answer for every team: Workers has a 128 MB memory limit and a runtime model that takes more learning than a conventional Node process. Cloudflare's own Next.js guide uses the OpenNext adapter.
Railway and Fly.io for persistent processes
The moment your AI app is more than request/response (agents that run for minutes, queues, schedulers, a Postgres you actually own), you want a platform whose unit is a process, not a function. Railway is the friendlier of the two; Fly gives you regional VMs and more control. Railway's entry credit is thin, and Fly has no general free tier.
Railway now grants a one-time $5 trial for up to 30 days, then a $1 monthly Free credit. Fly.io states plainly that it has no general free tier. Neither is a reason to reject the platform; both are reasons to cost the persistent service before calling it free.
Vercel when Next.js alignment wins
Vercel remains the direct framework fit for a Next.js application, with preview deployments and configurable function durations. But its free Hobby plan is for personal, non-commercial use. A company prototype belongs in the Pro calculation even if its traffic would fit inside Hobby quotas.
Use the Vercel pricing calculator for the Pro bill, or compare the two collaboration and runtime models on Netlify vs Vercel.
Pick the host by the request that fails
- Short calls, branch previews, minimal setup → Netlify (partner link above)
- Long streamed generations or edge-scale static + APIs → Cloudflare Workers
- Commercial Next.js with framework-native deployment → Vercel Pro
- Agents, queues, long-running processes → Railway or Fly.io
- Enterprise cloud mandate → your mandated cloud, with our sympathies
- Wondering whether to host the model itself → run the self-host calculator first
Hosting is layer 4 of the AI App Stack. Pick the model, calculate its token cost, then run one slow, representative request on the deployed URL. The first-token time and hard stop will decide more than a feature grid.
Reader questions
Frequently asked questions
01What is the best hosting platform for AI apps in 2026?
As of July 2026, Netlify is our pick for a short-running prototype with managed previews. Modern streaming Functions and the beta Lambda-compatible streaming path both stop at 10 seconds. Cloudflare Workers is the edge-scale production fit. Railway or Fly.io is the fit for persistent workers and jobs that outlive a request.
02What does an AI app need from hosting that a normal web app doesn't?
Four things, mainly: response streaming (token-by-token output dies behind buffering proxies), serverless function timeouts long enough for slow model calls, secret management for API keys, and preview deploys so prompt changes get reviewed like code. Ordinary static hosting fails the first two.
03Should I host the model itself or call an API?
For most products, call an API — the platforms in this roundup assume that architecture. Self-hosting open-weight models becomes rational at high, steady volume; BenchLM's self-host calculator does the break-even math on your numbers.
04Can I deploy an AI app for free?
Yes, within published limits. Netlify Free includes 300 monthly usage credits and pauses projects when those credits run out. Cloudflare Workers Free allows 100,000 requests per day with 10 milliseconds of CPU per invocation. Vercel Hobby is free for personal, non-commercial projects. Model usage remains a separate bill.
Source ledger
External sources linked in this article
- 01pricingnetlify.com
- 02function APIdocs.netlify.com
- 03Workers pricingdevelopers.cloudflare.com
- 04limitsdevelopers.cloudflare.com
- 05Hobby limitsvercel.com
- 06free trialdocs.railway.com
- 07cost guidefly.io
- 08Next.js guidedevelopers.cloudflare.com
Continue with live BenchLM data
Share or save