Cloudflare Pages vs Vercel for AI Websites in 2026
Compare Cloudflare and Vercel for AI websites in 2026, including free plans, commercial use, bandwidth, function billing, Next.js and costs.
👁 114 reads
For an AI website that needs to make money, Cloudflare wins on price: its free plan allows commercial use and has no bandwidth limit for static files. Vercel Hobby is for non-commercial projects only and includes 100 GB of bandwidth per month. Vercel is more convenient for Next.js applications and has a strong AI SDK ecosystem. Here’s a point-by-point comparison, current as of October 2026. For more on Cloudflare, see the guide.
As of October 5, 2026
- Cloudflare Pages / Workers: 0 USD, 500 builds per month, and 100,000 function calls per day; paid plans start at 5 USD per month per account.
- Vercel: Hobby is 0 USD (non-commercial use only); Pro is 20 USD per month.
- New: Vinext 1.0 (September 28, 2026) - Next.js on Vite from Cloudflare, making it easier to move Next.js applications.
- Note: I did not deploy a project to either platform for this article. The comparison is based on pricing and documentation.
First, Pages or Workers?
Cloudflare offers two ways to host a website. Pages is conventional static-site hosting with GitHub integration and server-side functions. Workers with static assets do the same thing, but use a single model alongside the rest of the platform. Pages is not being discontinued, but Cloudflare is developing new features primarily for Workers, and its documentation includes a migration guide from Pages. For a new AI project, I’d choose Workers. In this article, “Cloudflare” refers to both options - their prices and limits are the same.
Cloudflare vs Vercel: comparison table
| Cloudflare (Pages / Workers) | Vercel | |
|---|---|---|
| Free plan | Free; commercial use allowed | Hobby; non-commercial use only |
| Bandwidth on free plan | Unlimited for static files | 100 GB per month |
| Functions on free plan | 100,000 calls per day, 10 ms of CPU time per call | 1 million calls per month |
| Builds | 500 per month, one at a time (Free) | Depends on the plan |
| Paid plan | From 5 USD per month per account | Pro: 20 USD per month |
| Function billing | CPU time (waiting for an AI API does not count) | Invocations and active compute time |
| Next.js | Through adapters and Vinext | Native support; Vercel created Next.js |
| Built-in AI tools | Workers AI (models), AI Gateway, Agents SDK, Vectorize, AI Search | AI SDK, Vercel AI Gateway, v0 |
| Database and files | D1 (SQL), KV, R2 with no bandwidth charges | Third-party integrations (Marketplace) |
| Bot and DDoS protection | Built in, with no limit on Free | Built-in firewall |
Why function billing matters for AI apps
A typical function in an AI app does one thing: sends a request to a model and waits several seconds, sometimes tens of seconds, for a response. With Workers, you pay for CPU time, and waiting for a network response does not use it. A function that waits 20 seconds for a model and spends 5 ms processing the result fits within the free 10 ms-per-invocation limit. That makes a big difference for chatbots and agents. Vercel has also moved to billing based on active compute time, but the Hobby plan’s limits and ban on commercial use still apply.
When to choose Cloudflare
- Your website needs to make money through ads, sales or affiliate links, and you don’t want to pay from day one.
- You expect traffic spikes: static bandwidth is unlimited, so a post that goes viral won’t generate a bandwidth bill.
- You want to keep your AI model, database, files and queue with one provider, paying 5 USD per month for the whole account rather than per person.
- You’re building an agent that spends a long time waiting for model responses.
- You’re building a website with a vibe-coding tool. According to Cloudflare’s founders’ letter of September 27, most of these tools use Cloudflare as their default deployment platform.
When to choose Vercel
- Your application is built with Next.js and uses the framework’s latest features, which work on Vercel from day one.
- You’re building an interface in v0 and want to deploy it with one click. I covered v0 in Vercel v0: pricing and credits.
- Your team values previews for every change, comments on previews and a polished dashboard more than price.
- Your project is a non-commercial hobby project, so Hobby is enough.
Costs as traffic grows: a simple example
Consider a blog with an AI tool: 300,000 monthly page views, pages that are 2 MB each, and 20,000 people using the AI function once each:
- Bandwidth: 300,000 × 2 MB = about 600 GB. On Cloudflare Free, static files cost 0 USD in bandwidth. Vercel Hobby has a 100 GB limit - and you cannot use it for this blog anyway, because a blog with ads is commercial use. Vercel Pro costs 20 USD per month and includes a bandwidth allowance (see Vercel’s current pricing for details).
- Functions: 20,000 calls per month fit within the free limits of both platforms.
- AI model: You pay the model provider separately, regardless of your hosting platform. For ways to manage this, see AI Gateway: managing API costs.
AI tools that deploy to these platforms
- Lovable and Bolt have their own hosting, but let you export a project and deploy it to Cloudflare or Vercel.
- Coding agents such as Claude Code, Codex and Cursor work with both platforms through their command-line interfaces:
wrangleror the newcffor Cloudflare, andvercelfor Vercel. Cloudflare says that, in September 2026, agents were already responsible for 48% of Wrangler usage. - To preview a local project without deploying it, try Quick Tunnel. I cover it in Cloudflare Tunnel and Ollama.
My recommendation
For a blog, landing page or AI tool that needs to make money, I’d use Cloudflare Workers with static assets. For a larger Next.js application built by a team that values developer time more than 20 USD per month, I’d choose Vercel Pro. For a prototype with no commercial plans, either free plan works.
Google · Your sourcesQuantslant higher in your Google - one clickAdd to preferred sources →

