Test a FastAPI endpoint on a free Python web service. Connect your repo, install dependencies, and start Uvicorn with managed TLS in front of your API.
Each instance has a fixed monthly price, prorated by the second.
Capability | Render | |||
|---|---|---|---|---|
How FastAPI runs | Native Python 3 web service or Docker | Long-running container | Web dyno | Fly Machine built from a Dockerfile |
Free tier | 750 free hours/month. Spins down after 15 min idle | $5 trial for 30 days, then $1/month credit | None. Eco: $5/month for 1,000 hours | No free tier. Personal bills under $5 waived |
Always-on, 2 GB | $25/month (1 CPU) | Up to $40/month at full use (1 vCPU) | $250/month (Performance-M, 2.5 GB dedicated) | $13.39/month shared CPU, $33 dedicated |
Managed Postgres and Redis | Postgres from $6 with PITR, plus Key Value | Maintained databases. HA and Postgres PITR opt-in | Postgres and Key-Value. No rollback on Essential | Managed Postgres from $38, HA included. Upstash Redis |
Background workers | Workers and cron jobs | Workers and cron jobs | Worker dynos and Scheduler | Process groups. Cron via Supercronic |
WebSockets | Yes, no maximum duration | Yes, no maximum duration | Yes, closes after 55s idle | Yes, through Fly Proxy |
Autoscaling | Scales on CPU or memory, Pro plan and up | Manual replicas. Vertical up to plan limits | Performance, Private and Shield dynos only | Proxy autostart, or a self-run autoscaler |
Competitor details as of November 2026. Instance prices are compute only. Fly.io prices are for US East.
Run FastAPI on the native Python runtime or in Docker. Define your services and databases in one render.yaml Blueprint.
Run FastAPI with Uvicorn and set the worker count for your instance. Tune concurrency and memory using measurements from your application.
Connect your API to Render Postgres using its internal URL. Choose your ORM or driver and manage schema changes in your app’s release workflow.
Move durable or long-running jobs into a queue and background worker. Keep HTTP response times separate from task execution time.
Configure a lightweight HTTP health-check route for your API. Stateless web services support zero-downtime deploys.
Set API keys and database credentials in environment variables or secret files. Keep authentication and request authorization in your application.
Scale stateless services across instances as demand grows. Autoscaling is available on Pro and up, and each instance is billed separately.
Pick a GitHub, GitLab, or Bitbucket repo and branch.


Choose Python 3, install your requirements, and set the Uvicorn start command. Bind to 0.0.0.0 and the port in PORT, then add your environment variables.
Render builds your app and publishes its URL. Every later commit to your branch deploys automatically, or only after CI checks pass.

