Vercel vs Railway: where should your ai app run?

updated · #2 vs #3 in backend, database & deploy · prices checked

Vercel8.5#2 of 5 in backendsame since oct 19form: held its place every day for 5 days
Railway8.0#3 of 5 in backendsame since oct 19form: held its place every day for 5 days

which one should you use?

shipping a Next.js front end with streaming ai routes? Vercel. running a backend, a worker or an agent that needs to stay up for hours? Railway. plenty of apps use both.

Vercel ranks higher on our board: #2 vs #3 of 5 backends, 8.5/10 vs 8.0/10.

#2 of 5 in backends

Vercel

numptr says8.5/10

best deploy experience going for Next.js. Hobby's for hobbies only.

best for
front ends and serverless ai routes
why 8.5
free tier is non-commercial. Pro $20 includes $20 usage.

full Vercel review

#3 of 5 in backends

Railway

numptr says8.0/10

deploy the lot, pay for what you use. no faff.

best for
long-running backends, workers, agents
why 8.0
$5 Hobby minimum is about as low as it gets.

full Railway review

who wins for which job

front ends and serverless ai routes

Vercel

best for: front ends and serverless ai routes.

long-running backends, workers and agents

Railway

best for: long-running backends, workers, agents.

overall, on our scores

Vercel

#2 of 5 backends, 8.5/10. Railway: #3, 8.0/10.

the differences, side by side

rank

Vercel#2 of 5 in backends

Railway#3 of 5 in backends

numptr score

Vercel8.5/10

Railway8.0/10

best for

Vercelfront ends and serverless ai routes

Railwaylong-running backends, workers, agents

free tier

VercelHobby $0 (personal, non-commercial)

Railway30-day trial with $5 credits, then a limited free plan (oct 2026: new signups temporarily paused after a security incident)

paid plans

VercelPro $20/mo including $20 usage credit; Enterprise custom

RailwayHobby $5 minimum (includes $5 usage); Pro $20 minimum (includes $20 usage)

price checked

Vercel2026-10-26 at vercel.com/pricing

Railway2026-10-26 at railway.com/pricing

# straight from our rankings data. prices from each vendor's own page.

pick neither if

quick answer: for the front end of most ai apps it's Vercel: #2 of 5 on our backends board at 8.5/10, because it's the nicest way going to ship Next.js, and its functions only bill CPU while your code is actually working, not while it's waiting on a model. Railway is #3 (8.0/10) and it's the better pick for anything that has to keep running: an API server, a queue worker, an agent loop, a database next to them.

one thing first: Railway paused new signups after a security incident on oct 21, 2026, and as of its status update in the early hours of oct 27 (ET) they're still paused, with no date to reopen. existing projects kept running. if you're new, you can't sign up today; if you're already on it and signed up before oct 21, Railway recommends rotating the keys you store there.

the short version

Vercel Railway
our rank #2, 8.5/10 #3, 8.0/10
what it is a frontend cloud: CDN, serverless functions, previews per push deploy any service from a GitHub repo or a Docker image, billed per second
how long code runs functions: 300s default, up to 800s on Pro (1800s in beta); Vercel Workflows for longer as long as you like. it's a running service
billing Pro $20 a month per developer seat, with $20 of usage included Hobby $5 or Pro $20 a month per workspace, usage included, then per-second CPU, memory and disk
databases marketplace integrations, Vercel Blob storage add Postgres to the project in one click; pgvector in the template marketplace
ai bits AI Gateway, Vercel Sandbox, Vercel Workflows Railway Sandboxes: isolated VMs for agents and untrusted code
free Hobby $0 (personal, non-commercial) 30-day trial with $5 credits, then a limited free plan (oct 2026: new signups temporarily paused after a security incident)
paid Pro $20/mo including $20 usage credit; Enterprise custom Hobby $5 minimum (includes $5 usage); Pro $20 minimum (includes $20 usage)

ranks and scores come straight from our backend board, and nobody pays to move up it.

why Vercel ranks higher

front ends are its whole job. push to git, get a preview URL, merge, it's live, with instant rollback when you need it. CDN, HTTPS, routing, firewall and DDoS mitigation come on every plan.

waiting on a model is cheap. Vercel's Fluid compute bills active CPU time, and its docs say time spent waiting on i/o, like calling an ai model or a database, doesn't count. that's most of a chat route's life, so streaming LLM responses from functions is a good fit.

the ai plumbing is there. AI Gateway (bring your own key, fallbacks, spend monitoring), Vercel Sandbox for running code your agent wrote, and Vercel Workflows that can pause and resume for minutes to months. pairs nicely with the Vercel AI SDK.

the catch: Hobby is for personal, non-commercial use, so anything with customers needs Pro. functions stop at their max duration (300s default; 800s on Pro), the filesystem is read-only apart from a 500 MB /tmp, and request and response bodies cap at 4.5 MB. Pro is $20 per developer seat, so a team pays per head.

where Railway wins

it runs servers, not just functions. a service is whatever your repo or Docker image builds: a FastAPI app, a Node worker, a cron, a Discord bot, an agent that loops all night. no timeouts to design around, and services in one project share a private network.

the database sits next door. add Postgres from the project canvas and connect with the DATABASE_URL it hands you; there's a pgvector template in the marketplace, volumes for persistent data, backups, and you can convert it to a high availability cluster when you need it.

you pay for what runs. CPU, memory and disk are metered per second, so stopped services cost nothing. Hobby is $5 a month including $5 of usage; Pro is $20 a month per workspace with $20 included and unlimited seats, which is kinder to a team than per-seat pricing.

sandboxes for agents. Railway Sandboxes are isolated Linux VMs for agents, builds and untrusted code, billed on the CPU actually used and memory held, so a sandbox waiting on a model costs almost nothing.

the honest bit: the signup pause above, and the incident behind it: Railway says some customers' encrypted secrets were exposed and asks everyone who signed up before oct 21 to rotate keys stored there. it's also less of a front end platform; you can serve a site from it, but you don't get Vercel's previews, CDN features and framework smarts out of the box.

which should you pick?

the rest of the field

the table: the rest of the field
rank tool best for free tier paid from numptr score
#2 Vercel front ends and serverless ai routes Hobby $0 (personal, non-commercial) Pro $20/mo including $20 usage credit 8.5/10
#3 Railway long-running backends, workers, agents 30-day trial with $5 credits, then a limited free plan (oct 2026: new signups temporarily paused after a security incident) Hobby $5 minimum 8.0/10
#1 Supabase full-stack ai apps needing auth and vectors 500 MB DB, 50K MAU; pauses after 1 week inactive Pro from $25/mo 9.0/10
#4 Neon spiky workloads, per-PR database branches 100 projects, 100 CU-hours per project, no credit card Launch: usage-based, $0.106/CU-hour + $0.35/GB-month 8.0/10
#5 Convex TypeScript devs wanting realtime sync free & Starter: $0 then pay as you go Professional $25/developer/mo 7.5/10

faq

is Railway better than Vercel?

not on our board: Vercel is #2 (8.5/10) and Railway #3 (8.0/10). Railway is the better pick for long-running backends, workers and agents; Vercel for front ends and serverless ai routes.

can i sign up for Railway right now?

not as of oct 27, 2026. Railway paused new signups after its oct 21 security incident and its status page says they remain paused, with no date yet. existing users' services stayed online.

Vercel vs Railway pricing: which is cheaper?

both start at $0 with limits. Vercel Pro is $20 a month per developer seat with $20 of usage included. Railway Hobby is $5 a month with $5 of usage, and Pro is $20 a month per workspace with $20 included and unlimited seats. which bill ends up smaller depends on what you run: per-second CPU and memory on Railway, per-seat plus usage on Vercel.

can Vercel run a long-running backend?

up to a point. functions run 300s by default and up to 800s on Pro (1800s in beta), and Vercel Workflows can pause and resume for much longer. for an always-on server or worker, Railway is the simpler fit.

can i use Vercel for commercial projects on the free plan?

no. Vercel says Hobby is for personal, non-commercial use. commercial projects need Pro.

sources

checked 2026-10-27

read more

all guides

the numptr weekly

what moved on the board and what just shipped, every monday. no spam, no waffle, leave whenever you fancy.

read a sample