Free Flask hosting in 2026: where to host a Flask app for $0
Free Flask hosting on PythonAnywhere, Render, Vercel, Koyeb, Railway, Cloud Run, Fly.io, Oracle and Gregale: what each gives and how fast a sleeping app wakes.
You can host a Flask app for free on PythonAnywhere, Render, Vercel, Koyeb, Railway, Google Cloud Run, Fly.io, Oracle Cloud or Gregale. What separates them is what happens while nobody is visiting. PythonAnywhere keeps the app loaded but expires it after a month. Render puts it to sleep after 15 minutes and takes about a minute to wake it. Koyeb’s Free Instance sleeps after an hour and wakes in 1 to 5 seconds. Gregale parks it after a minute, and in our test a parked app sent its first byte about half a second after a request reached it. Heroku has no free plan.
Gregale publishes this page. PythonAnywhere’s, Railway’s and Koyeb’s limits were checked on their own pages on December 4, 2026: PythonAnywhere free accounts, Railway’s Free plan, Koyeb Instances and Koyeb Scale-to-Zero. The others come from their own docs as checked for our pages on free backend tiers (November 28), Render’s free tier and Heroku (December 2), and Vercel (December 3). Gregale’s come from its plans page, and its numbers from a test we ran on December 4.
Free Flask hosts compared
| Free plan | What you get | While nobody visits | The catch |
|---|---|---|---|
| Gregale Free | 1 app with 256 MB and 20 GB-RAM-hours a month, requests up to 30 seconds | Parks after 1 minute; our parked Flask app sent its first byte in 450 to 510 ms | HTTP only, and no managed Postgres on Free |
| PythonAnywhere Beginner | 1 web app at your-username.pythonanywhere.com, with 1 worker | Stays loaded | Expires after 1 month; your code reaches only allowlisted sites; no custom domain |
| Render Free | 750 instance hours a month per workspace | Spins down after 15 minutes without inbound traffic; about a minute to wake | Local files are lost at every spin-down; free Postgres expires after 30 days |
| Vercel Hobby | Flask as a Python function: 4 hours of Active CPU and 1 million invocations | A request with no warm instance starts one; a function unused for 2 weeks adds at least 1 s | 300 seconds per request, and a read-only file system apart from /tmp |
| Koyeb Free Instance | 1 web service with 512 MB and 0.1 vCPU, in Frankfurt or Washington, D.C. | Scales to zero after 1 hour without traffic; Koyeb’s default wake takes 1 to 5 seconds | One per organization, meant for testing; no volumes |
| Railway Free | $5 of usage a month, up to 3 services with 0.5 GB and 1 vCPU each | Sleeps 5 to 10 minutes after its last outbound traffic; Railway gives no wake time | Services stop until the next billing cycle when the $5 runs out |
| Google Cloud Run | 180,000 vCPU-seconds, 360,000 GiB-seconds and 2 million requests a month | Scales to zero; the next request starts an instance | Sign-up needs a card, and usage past the free tier is billed |
| Fly.io Free plan | $5 of usage a month with a card ($1 once, for 7 days, without one) | Runs all the time ($2.19 a month for 256 MB), or stops when idle | Past $5 the whole month is billed |
| Oracle Cloud Always Free | VMs of your own: 2 AMD micro VMs with 1 GB each, and Arm VMs with up to 12 GB | Always on | You run gunicorn, a reverse proxy, TLS and updates yourself; Oracle may reclaim an idle VM |
Heroku isn’t on the list: it has had no free plan since November 2022, and its cheapest dyno, Eco, costs $5 a month and sleeps after 30 minutes.
Which one fits your app
- A portfolio or demo that must answer the first visitor quickly. PythonAnywhere keeps the app loaded, but it expires after a month. Gregale wakes a parked app in about half a second. Render’s minute-long wake is the one visitors notice.
- An API that other code calls. Code calling an API often gives up well before a minute, so pick a host that wakes in seconds: Gregale, Cloud Run, Vercel or Koyeb.
- A Flask app that calls other APIs. PythonAnywhere’s free plan reaches only allowlisted sites, so check its list first. The others don’t restrict outbound HTTPS.
- A Flask app with a database. Render’s free Postgres expires after 30 days. Neon’s free plan works with any of these hosts. Gregale’s managed Postgres starts on Hobby.
- Background jobs or a scheduler. None of the sleeping free plans run a job while the app is asleep. Railway Free runs a worker as long as it keeps sending traffic, and Fly.io and Oracle run one all the time.
Where Gregale fits
The Free plan gives you 1 app with 256 MB and 20 GB-RAM-hours a month, and requests can take up to 30 seconds. An app parks after 1 minute idle and holds no memory while parked, so the 20 GB-RAM-hours go to the time it actually runs. Free is HTTP only and has no managed database, so pair it with an outside Postgres such as Neon if the app needs one.
On December 4, 2026 we deployed a two-route Flask app, an app.py and a
requirements.txt with flask and gunicorn, with gregale deploy.
Gregale detected Flask and started it with
gunicorn app:app --bind 0.0.0.0:$PORT. It ran on a 512 MB instance, and we
parked it before each of 6 requests:
- Inside Gregale: the first byte of the response left 450 to 510 ms after the request reached Gregale, by the app’s wake timeline.
- From a laptop in Istanbul: 5 of the 6 parked requests took 0.92 to 0.98 seconds end to end; the sixth took 1.9 seconds because its TLS handshake alone took 1.3. Once the app was running, requests took 0.48 seconds, about two thirds of it the connection and TLS to the app in Quebec.
To deploy your own, our Flask guide covers the
Procfile, and
gregale-dev/flask-postgres
is a complete Flask app with PostgreSQL and migrations.
Hobby, at $10 a month, adds 5 apps with 512 MB each, crons, WebSockets, a managed Postgres database and requests up to 1 minute.
What we verified
The hosts’ limits on the dates above. We didn’t deploy Flask to the other hosts for this page. Gregale’s plans are from its plans page on December 4, 2026, and the Flask numbers from our own test that day, after which we deleted the test app.
Questions
- Where can I host a Flask app for free?
PythonAnywhere, Render, Vercel, Koyeb, Railway, Google Cloud Run, Fly.io, Oracle Cloud and Gregale all have a free option that runs Flask. They differ in what happens while nobody visits: PythonAnywhere keeps the app loaded but expires it after a month, Render takes about a minute to wake after 15 idle minutes, and Gregale parks it after a minute and wakes it in about half a second.
- Is PythonAnywhere free for Flask?
Yes. The free Beginner plan runs one web app at your-username.pythonanywhere.com with one worker. It expires after a month, it can reach only allowlisted sites, and a custom domain needs a paid plan.
- Does Render’s free tier work for Flask?
Yes, with a wait: Render spins a free web service down after 15 minutes without inbound traffic, and the next request takes about a minute to wake it. A workspace gets 750 free instance hours a month, and local files are lost at every spin-down.
- Can I host Flask on Vercel for free?
Yes, as a Python function on the Hobby plan, which includes 4 hours of Active CPU and 1 million invocations a month. A request can run for up to 300 seconds, and the file system is read-only apart from /tmp.
- Is there free Flask hosting that never sleeps?
PythonAnywhere keeps a free web app loaded, but it expires after a month. Oracle Cloud’s Always Free VMs run all the time if you set up the server yourself, and Fly.io’s $5 monthly credit, with a card, covers a 256 MB Machine running all month.