Free Python web hosting for FastAPI, Flask & Django
Deploy Python REST APIs, webhooks, microservices and full-stack web apps in an isolated container. Every server includes pip, a free HTTPS subdomain on subhub.tr, built-in MySQL and live uvicorn/gunicorn logs — free to start with no credit card, and $1/month for always-on 24/7 hosting.
Deploy FastAPI, Flask and Django without cloud complexity
Most cloud platforms either force you to write Dockerfiles and IAM policies or charge $7+/month as soon as you add a relational database. On HOKAS, you select Python, upload your code or connect GitHub, bind uvicorn or gunicorn to 0.0.0.0:$PORT, and your app is live over HTTPS.
Unlike serverless functions with strict 10-second timeouts, a HOKAS container is a persistent Python process — ideal for WebSockets, background tasks, webhook receivers, AI API proxies and database-backed dashboards.
Included on every Python container
- Free HTTPS subdomain on subhub.tr plus custom domain support with automatic SSL.
- Managed MySQL database included at no extra cost (works with SQLAlchemy, SQLModel, PyMySQL and Django ORM).
- Full browser terminal to run alembic upgrade head, python3 manage.py migrate or pytest.
- Encrypted environment variables for DATABASE_URL, SECRET_KEY and third-party API tokens.
- No cold-start HTTP spin-downs during active uptime; upgrade to $1/month (1 GB RAM) for 24/7 production availability.
Quickstart: FastAPI & Flask bound to container PORT
Bind your ASGI/WSGI server to 0.0.0.0 and read the assigned PORT environment variable so HOKAS reverse-proxy routes HTTPS traffic automatically.
Startup command: pip install -r requirements.txt && uvicorn main:app --host 0.0.0.0 --port ${PORT:-8000} import os
from fastapi import FastAPI
app = FastAPI(title='HOKAS Python API')
@app.get('/')
def root():
return {'ok': True, 'runtime': 'FastAPI on HOKAS'}
@app.get('/health')
def health():
return {'status': 'healthy'}
Startup command: pip install -r requirements.txt && gunicorn -w 2 -b 0.0.0.0:${PORT:-8000} app:app from flask import Flask, jsonify
app = Flask(__name__)
@app.get('/')
def index():
return jsonify(ok=True, service='Flask on HOKAS')
Python web frameworks & recommended HOKAS plan
| Framework | Server Command | Typical RAM | Recommended Plan |
|---|---|---|---|
| FastAPI / Starlette | uvicorn main:app --host 0.0.0.0 | 55 – 110 MB | Free (256 MB) or Starter ($1/mo 24/7) |
| Flask / Bottle | gunicorn -w 2 app:app | 50 – 120 MB | Free (256 MB) or Starter ($1/mo 24/7) |
| Django 5 + MySQL | gunicorn project.wsgi:application | 110 – 260 MB | Starter ($1/mo, 1 GB RAM) for 24/7 |
| aiohttp / Tornado WebSockets | python3 -u server.py | 45 – 95 MB | Free (256 MB) or Starter ($1/mo 24/7) |
Go live with a Python API or web app in four steps
- Sign up freeCreate your HOKAS account with email or Google — no card required.
- Create a Python serverChoose the Free Plan (up to 3 servers) or $1/mo 24/7 Starter plan.
- Connect GitHub or upload filesAdd requirements.txt and set your SECRET_KEY / MySQL credentials in Environment Variables.
- Attach your free HTTPS domainStart uvicorn or gunicorn and open your subhub.tr HTTPS URL (or connect a custom domain).
Plans and pricing
| Plan | vCPU | RAM | Disk | Price |
|---|---|---|---|---|
| Free | 0.3 | 256 MB | 512 MB | Free forever |
| Starter | 1 | 1 GB | 5 GB | $1 /month |
| Standard | 2 | 2 GB | 8 GB | $2 /month |
| Plus | 3 | 3 GB | 12 GB | $3 /month |
| Pro | 4 | 4 GB | 16 GB | $4 /month |
| Max | 4 | 6 GB | 20 GB | $6 /month |
Billed monthly or yearly. The yearly price is ten times the monthly price. Bandwidth is unmetered on every plan. See all plans
Frequently asked questions
Can I host a FastAPI or Flask API with MySQL for free?
Yes. Both the Python container and built-in MySQL database are included on the HOKAS Free Plan, along with a free subhub.tr HTTPS subdomain.
How do I run Django migrations on HOKAS?
Open the web terminal in your server dashboard and run python3 manage.py migrate && python3 manage.py collectstatic --noinput, or chain them into your startup command.
Does HOKAS support WebSockets for FastAPI?
Yes. HOKAS reverse-proxy supports HTTP, HTTPS and WebSocket (WSS) connections on both free subhub.tr subdomains and custom domains.
When should I upgrade from the Free Plan to Starter ($1/mo)?
Upgrade to Starter ($1/month) when your API or website serves real users who expect uninterrupted 24/7 availability without manual timer renewals, or when Django/ML libraries need 1 GB+ of RAM.
Ready to deploy?
Create a free account, set up your server and have your project running in minutes. No credit card needed.