> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sevalla.com/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> These are the docs for Sevalla, a platform for deploying applications, databases, static sites, object storage and load balancers. The dashboard is at https://app.sevalla.com.
> Bold text in steps is an exact dashboard label.
> To act on a Sevalla account, prefer the Sevalla MCP server (https://mcp.sevalla.com/mcp, see https://docs.sevalla.com/ai-agents/overview.md), then the Sevalla CLI (https://docs.sevalla.com/developer-tools/cli.md), then the REST API (https://api-docs.sevalla.com, OpenAPI spec at https://api.sevalla.com/v3/openapi.json).
> Every page index is at https://docs.sevalla.com/llms.txt.

# FastAPI

> Guides for running FastAPI on Sevalla: deploy with the FastAPI CLI and PostgreSQL, then add object storage, Redis caching, Celery and health checks.

The FastAPI guides take a FastAPI project from your computer to a running Sevalla application, then add one capability each. Start with the deploy guide: the others build on the project it creates.

<Columns cols={2}>
  <Card title="Deploy FastAPI" icon="rocket" href="/guides/python/fastapi/deploy">
    `fastapi run`, SQLModel on a PostgreSQL database and Alembic migrations in a job.
  </Card>

  <Card title="Object storage" icon="hard-drive" href="/guides/python/fastapi/object-storage">
    Upload files to a bucket with boto3 and share them with presigned URLs.
  </Card>

  <Card title="Background tasks" icon="cog" href="/guides/python/fastapi/background-tasks">
    Short tasks with `BackgroundTasks`, longer ones with Celery in a background worker.
  </Card>

  <Card title="Caching" icon="gauge" href="/guides/python/fastapi/caching">
    Cache responses in a Redis database, and control the CDN and edge cache.
  </Card>

  <Card title="Health checks" icon="heart-pulse" href="/guides/python/fastapi/health-checks">
    Readiness and liveness endpoints for zero-downtime deployments.
  </Card>
</Columns>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.