Skip to content
← All templates

FastAPI

Python REST API with FastAPI.

PythonAPIPostgres
Get the AI prompt

What you can build with it

  • Data and ML endpoints for analysts
  • APIs around Python scripts you already have
  • Automation back ends

What's inside

  • FastAPI app with routers
  • Config module
  • Interactive API docs

Before you deploy

  • Make sure your app reads the PORT environment variable. The platform sets PORT=8080.
  • Add a managed Postgres with elula init --database; the connection string is injected as DATABASE_URL.

Source

github.com/vercel/vercel/tree/main/examples/fastapi