Lets run a hello world example from the FastAPI Quick start guide.

A minimal FastAPI application looks something like this and we will save in a file called

from fastapi import FastAPI

app = FastAPI()

async def root():
    return {"message": "Hello World"}

Open a terminal on your instance and run the below code.

uvicorn main:app --host --port 6006

If your FastAPI is running then go to dashboard and click 👆 on the API button of your instance. API endpoint

And start using it 😀.

Flask api