---
title: Python
description: Build, deploy, and scale Python on Vercel. Run FastAPI, Flask, Django, or any ASGI or WSGI app on Vercel Functions with zero configuration, and find guides on background jobs, storage, AI workloads, containers, and migrating from other platforms.
url: "https://vercel.com/kb/python"
published: 2026-10-14
last_updated: 2026-10-15
install_vercel_plugin: npx plugins add vercel/vercel-plugin
---

# Python

Build, deploy, and scale Python on Vercel. Run FastAPI, Flask, Django, or any ASGI or WSGI app on Vercel Functions with zero configuration, and find guides on background jobs, storage, AI workloads, containers, and migrating from other platforms.

## Build with Python on Vercel

- [How to deploy a Python backend with Vercel Services](/kb/guide/python-backend-on-vercel): Deploy a Python backend with a Next.js frontend on Vercel. Learn how to configure both apps with Vercel Services, use a separate database for each environment, and review changes at a Preview URL.
- [Use Vercel Passport with Node.js and Python backends](/kb/guide/vercel-passport-backend-frameworks): Secure internal apps and verify a visitor's identity with Vercel Passport in your backend, with examples for Express, Hono, Nitro, and FastAPI.
- [How to ship a FastAPI app on Vercel](/kb/guide/ship-a-fastapi-app-on-vercel): Deploy a FastAPI app to Vercel with zero configuration. Learn how the Python runtime, Vercel Functions, streaming, middleware, and cron jobs work together.

## Migrate Your Python API

- [Migrate a Python API from Heroku to Vercel](/kb/guide/migrate-a-python-api-from-heroku-to-vercel): Move a FastAPI, Flask, or Django API from Heroku to Vercel Functions. Replace your Procfile, worker dynos, Heroku Scheduler jobs, and Heroku Postgres.
- [Migrate a Python API from Render to Vercel](/kb/guide/migrate-a-python-api-from-render-to-vercel): Move a FastAPI, Flask, or Django API from Render to Vercel Functions. Translate render.yaml and replace persistent disks, background workers, and cron jobs.
- [Migrate a Python API from Railway to Vercel](/kb/guide/migrate-a-python-api-from-railway-to-vercel): Move a FastAPI, Flask, or Django API from Railway to Vercel Functions. Replace railway.json start commands, volumes, Celery workers, and cron services.

## Learn more about Python

- [7 practical use cases for a Python backend in a Next.js app](https://vercel.com/i/python-backend-nextjs-use-cases): See when a Python backend adds value to a Next.js app, with examples for AI, data analysis, document processing, predictions, and existing applications.
- [How to connect a Python AI agent to a Next.js app](https://vercel.com/i/python-ai-agent-nextjs): Connect a Python AI agent to Next.js with FastAPI and AI SDK UI. Stream responses, display Python tool results, and configure a shared deployment.
- [Where should you host a Python API?](https://vercel.com/i/where-to-host-python-api): Choose Python API hosting by framework support, dependencies, execution limits, storage, and where your frontend and database run.

## All Python guides

- [How to deploy a Python backend with Vercel Services](/kb/guide/python-backend-on-vercel): Deploy a Python backend with a Next.js frontend on Vercel. Learn how to configure both apps with Vercel Services, use a separate database for each environment, and review changes at a Preview URL.
- [Migrate a Python API from Railway to Vercel](/kb/guide/migrate-a-python-api-from-railway-to-vercel): Move a FastAPI, Flask, or Django API from Railway to Vercel Functions. Replace railway.json start commands, volumes, Celery workers, and cron services.
- [Migrate a Python API from Render to Vercel](/kb/guide/migrate-a-python-api-from-render-to-vercel): Move a FastAPI, Flask, or Django API from Render to Vercel Functions. Translate render.yaml and replace persistent disks, background workers, and cron jobs.
- [Use Vercel Passport with Node.js and Python backends](/kb/guide/vercel-passport-backend-frameworks): Secure internal apps and verify a visitor's identity with Vercel Passport in your backend, with examples for Express, Hono, Nitro, and FastAPI.
- [Migrate a Python API from Heroku to Vercel](/kb/guide/migrate-a-python-api-from-heroku-to-vercel): Move a FastAPI, Flask, or Django API from Heroku to Vercel Functions. Replace your Procfile, worker dynos, Heroku Scheduler jobs, and Heroku Postgres.
- [Build with a FastAPI starter template](/kb/guide/build-with-a-fastapi-starter-template): Browse FastAPI starter templates for Vercel and deploy one in a few steps. Compare minimal, AI, agent, and full-stack FastAPI templates on the Python runtime.
- [How to ship a FastAPI app on Vercel](/kb/guide/ship-a-fastapi-app-on-vercel): Deploy a FastAPI app to Vercel with zero configuration. Learn how the Python runtime, Vercel Functions, streaming, middleware, and cron jobs work together.
- [Build with a Flask starter template](/kb/guide/build-with-a-flask-starter-template): Deploy a Flask app to Vercel from a starter template. Compare the Flask Hello World starter, AI SDK, alt text generator, and Next.js templates, then ship to a live URL.
- [How to ship a Flask app on Vercel](/kb/guide/ship-a-flask-app-on-vercel): Deploy a Flask app to Vercel with zero configuration. Learn how to ship from a template, the Vercel CLI, or Git, and configure response streaming, middleware, cron jobs, the Bun runtime, and Observability.

## Explore other topics in the Vercel Knowledge Base

- [Migrations](/kb/migrations): Learn how to migrate your application or agent to Vercel's agentic infrastructure.
- [Vercel Sandbox](/kb/vercel-sandbox): The compute primitive designed to safely run untrusted or user-generated code on Vercel.
- [Infrastructure and Compute](/kb/infrastructure-and-compute): Scale and deliver applications efficiently across regions using Vercel's Fluid Compute and CDN.
- [Backends](/kb/backends): Backends on Vercel run on Fluid compute with Active CPU pricing, plus Instant Rollback, the Vercel Firewall, protected previews, and rolling releases.
