Up and running in 60 seconds

1. Install

Requires Python 3.13+. Free-threaded 3.14t recommended for maximum throughput.

pip install turboapi

2. Write your app

TurboAPI is a drop-in FastAPI replacement. Change one line:

- from fastapi import FastAPI
+ from turboapi import TurboAPI

app = TurboAPI()

@app.get("/")
async def root():
    return {"message": "Hello, World!"}

@app.post("/items")
async def create_item(name: str, price: float):
    return {"name": name, "price": price}

3. Run

uvicorn main:app --reload

Or use the built-in Zig HTTP server directly:

import turboapi
turboapi.run(app, host="0.0.0.0", port=8000)

dhi models — Zig-native validation

Zero-overhead request validation compiled to native code:

from turboapi import TurboAPI
from dhi import Model, Str, Int, EmailStr

class UserModel(Model):
    name:  Str(min_length=1, max_length=100)
    email: EmailStr
    age:   Int(gt=0, le=150)

@app.post("/users")
async def create_user(user: UserModel):
    return user

What works today

FastAPI-compatible route decoratorsStable
Zig HTTP server — 8-thread pool + keep-aliveStable
dhi Zig-native JSON schema validationStable
Zero-copy response pipelineStable
Async handler supportStable
OAuth2, Bearer, API Key securityStable
Python 3.14t free-threaded supportStable
Native FFI handlers (C/Zig, no Python)Stable
🔧 WebSocket supportIn progress
🔧 HTTP/2 and TLSIn progress
🔧 Cloudflare Workers WASM targetIn progress