FastAPI is the modern Python framework for building APIs with automatic docs and async support. Deploy it with one command — no Uvicorn wrangling, no ASGI setup.
FastAPI is a joy to develop with, but the ASGI deployment stack is a maze of Uvicorn flags and proxy headers.
Recommended plan for FastAPI
Name your main file main.py and your FastAPI instance "app". InstaPods auto-detects this and starts Uvicorn with the correct module path.
FastAPI async endpoints run on Uvicorn's event loop. The Launch plan handles typical API workloads. Use Build or Grow for CPU-heavy ML inference.
The /docs (Swagger) and /redoc endpoints work immediately at your InstaPods URL. Add authentication middleware if you want to restrict access in production.
One command. Real server. HTTPS included. No DevOps degree required.
Get Started