Skip to content

Quick Start

Get your FastAPI application deployed in minutes with FastAPI Cloud. This guide will walk you through creating and deploying your first app.

  • Python 3.8 or higher.

Initialize a new project:

Using uv:

Terminal window
uv init myapp
cd myapp

Install FastAPI with all its dependencies:

Using uv:

Terminal window
uv add "fastapi[standard]"

Create a simple FastAPI application. Add this code to main.py:

from fastapi import FastAPI
app = FastAPI()
@app.get("/")
def main():
return {"message": "Hello World"}

Authenticate with your FastAPI Cloud account:

Terminal window
fastapi login

This will open your browser to complete the authentication process.

Deploy your application with a single command:

Terminal window
fastapi deploy

The CLI will automatically detect your FastAPI app and deploy it to the cloud.

Deploying to FastAPI Cloud...
🚀 Preparing for liftoff! Almost there...
✅ Deployment successful!
🚀 Your API is now available at:
🐔 Ready the chicken! Your app is ready at https://myapp.fastapicloud.dev

🚀 Your app is now live: https://myapp.fastapicloud.dev

FastAPI automatically generates interactive API documentation. Visit your app’s /docs endpoint to explore the API:

https://myapp.fastapicloud.dev/docs

Check your application logs in the FastAPI Cloud dashboard:

  • Go to FastAPI Cloud Dashboard.
  • Go to Apps in the left sidebar.
  • Select your app to view its details.
  • Click on the Logs tab to see real-time application logs.

You’ve successfully deployed your first FastAPI application to the cloud.

You code, we cloud.