Flask is a lightweight Web Server Gateway Interface (WSGI) web framework for Python, and it deploys to Vercel with zero configuration. On Vercel, your Flask app becomes a Vercel Function running on Fluid compute, with response streaming and preview deployments available with minimal configuration.
Vercel maintains a Flask template directory with starters from both Vercel and the community, so you can begin from a working project instead of a blank repo.
These templates range from a minimal API to AI and full-stack apps:
| Template | What it gives you |
|---|---|
| Flask Hello World | A minimal Flask 3 API that deploys with zero configuration. Start here if you're new to Flask on Vercel. |
| AI SDK with Flask | A Flask backend wired up with AI SDK for building AI features and streaming responses. |
| Flask Alt Text Generator | A Flask API that generates a text description for any image. |
| Next.js Flask Starter | A Flask API paired with a Next.js frontend in a single project. |
If you're not sure where to begin, deploy the Flask Hello World starter and add routes, request hooks, or a frontend as your project grows.
Every Flask template deploys to Vercel the same way. Open the template you want, select Deploy, and Vercel clones the repository into your Git provider, creates a project, and ships it to a live URL.
- Open the template: Choose a template from the table above, then select Deploy.
- Connect your Git provider: Vercel creates a new repository for the template in your GitHub, GitLab, or Bitbucket account.
- Deploy the project: Vercel builds and deploys the template, then returns a production URL. Each later push to the repository triggers a new deployment.
After deploying, clone your new repository, create a virtual environment, install dependencies, and start the development server with Vercel CLI:
Vercel CLI serves your app at http://localhost:3000 and runs it the same way it does in production. Edit your route handlers to make it your own.
To scaffold the Flask example with Vercel CLI, run:
This clones the Flask boilerplate into a flask directory, so you can develop locally first and deploy with vercel when you're ready.
- Follow the end-to-end How to ship a Flask app on Vercel guide to deploy and configure your app
- Read the full Deploy a Flask app on Vercel documentation
- Learn how Vercel Functions run your server code
- Understand pricing and scaling with Fluid compute
- Run code before requests with Routing Middleware
- Serve static assets from the CDN