For the complete Render documentation index, fetch https://render.com/llms.txt. Every docs page is also available as Markdown at https://render.com/docs/{slug}.md.

  • Docs
  • Changelog
Sign in
Get started

Deploy a FastAPI App

View as Markdown
Open in ChatGPT
Open in Claude

FastAPI is a modern, high-performance web framework for building APIs with Python 3.7+ based on standard Python type hints.

Here's how to deploy a basic FastAPI app on Render.

  1. Create your own repository using the render-examples/fastapi template on GitHub.
    • Alternatively, you can clone the repo and push your clone to GitLab or Bitbucket.
  2. Create a new Web Service on Render, and give Render permission to access your new repo.
  3. Provide the following values during service creation:
    SettingValue
    LanguagePython 3
    Build Commandpip install -r requirements.txt
    Start Commanduvicorn main:app --host 0.0.0.0 --port $PORT

That's it! Your web service will be live at its onrender.com URL as soon as the deploy finishes.

See Specifying a Python Version if you need to customize the version of Python used for your app.

View as Markdown
Open in ChatGPT
Open in Claude
Deploy a FastAPI App
      • Home
      • Your first deploy
      • Free instances
      • Platform features by plan
      • Use with coding agents
      • FAQ
      • Templates
        • Migrate from…
          • Heroku
          • Railway
      • Compute plans
      • SandboxesBeta
        • Service types
          • Which to use?
          • Static sites
          • Web services
          • Private services
          • Background workers
          • Cron jobs
          • Workflows
          • Multi-service architectures
        • Data storage
          • Render Postgres
          • Render Key Value (Redis®-compatible)
          • Persistent disks
      • How deploys work
      • Supported languages
      • Git providers (GitHub, etc.)
      • Build pipeline
      • Deploy hooks
      • Monorepo support
      • Troubleshooting deploys
        • Previewing changes
          • Single-service previews
          • Preview environments (multi-service)
        • Docker deploys
          • Overview
          • Deploy a registered image
          • Using secrets
        • Runtime
          • Native runtimes
          • Environment variables & secrets
          • Default environment variables
      • Intro to sandboxes
      • Limits & pricing
        • How to…
          • Create & configure sandboxes
          • Execute commands
          • Upload & download files
          • Manage snapshots
        • Use with…
          • Claude Managed Agents
          • Cursor Cloud Agents
          • OpenAI Agents API
        • SDK/CLI reference
          • TypeScript SDK
          • Python SDK
          • CLI commands
      • Intro to workflows
      • Tutorial
      • Limits & pricing
        • How to…
          • Define tasks
          • Define flowsNew
          • Trigger runs
          • Develop locally
        • SDK/CLI reference
          • TypeScript SDK
          • Python SDK
          • CLI commands
        • Example workflows
          • TypeScript examples
          • Python examples
      • Overview
      • Create & connect
      • Database credentials
      • Extensions
      • Version upgrades
      • Logical replication
      • Legacy instance types
        • Database recovery
          • Recovery & backups
          • High availability
        • Database performance
          • Read replicas
          • Connection pooling
          • Admin apps
          • Repacking tables
          • Troubleshooting performance
      • Regions
      • Inbound IP rules
      • Edge caching
      • WebSockets
      • TLS certificates
        • Custom domains
          • Overview
          • Cloudflare
          • Namecheap
          • Other DNS providers
        • Internal traffic
          • Private network
          • Private links
        • Outbound traffic
          • Default IP ranges
          • Dedicated IP addresses
          • Outbound bandwidth
          • Handling network changes
        • Static site config
          • Custom response headers
          • Redirects & rewrites
      • The Render Dashboard
      • SSH / Shell access
      • Projects & environments
        • Service actions
          • Scaling
          • Rollbacks
          • Maintenance mode
          • One-off jobs
        • Infrastructure as code
          • Blueprints overview
          • render.yaml reference
          • Terraform provider
      • In-dashboard metrics
      • Health checks
      • Uptime best practices
        • Logging
          • In-dashboard logs
          • Log streams (syslog/HTTPS)
        • OpenTelemetry (OTel) metrics
          • Provider setup
          • Metrics reference
        • Notifications
          • Webhooks
          • Email / Slack
      • API keys
      • MCP Server
        • Render CLI
          • Overview
          • Command reference
        • REST API
          • Overview
          • API reference
        • Third-party connections
          • OIDC support
          • Datadog
      • Workspaces, members, & roles
      • Login settings
      • Audit logs
        • Organizations
          • Overview
          • SAML SSO
      • DDoS protection
      • Platform maintenance
        • Compliance
          • Overview
          • HIPAA (US health data)
          • HIPAA best practices
          • Shared responsibility model
          • Pentest policy
      • Heroku vs Render
      • Vercel vs Render
    All Systems Operational
    © Render Inc. All rights reserved.