Gateway
The unified, gated, priced API gateway for Hanzo Cloud at api.hanzo.ai -- one entry point, one key, every service.
Gateway
The Hanzo Gateway is the single front door to the platform. Every request to api.hanzo.ai lands here: it authenticates the caller, enforces rate limits and quotas, meters usage for billing, and routes to the right backend. One base URL, one key, every service.
Gated and Priced
"Gated" and "priced" are the gateway's job:
- Gated -- the gateway rejects unauthenticated or over-quota requests before they reach a backend. Present an API key (
sk-...) or an IAM bearer token. Rate limits and circuit breakers protect every downstream service. - Priced -- metered usage is attributed to your organization and priced by the commerce subsystem. See Billing for credits, metering, and invoices.
The gateway forwards your Authorization header unchanged and streams responses (SSE) without transformation, so an HTTP client written against the chat-completions shape works against it once its base URL points here.
Traffic Path
Requests flow through three layers before reaching a service:
Internet → Ingress (TLS, L7) → Gateway (auth, rate-limit, routing) → Cloud / serviceIngress terminates TLS and handles L7 routing; the gateway handles authentication, pricing, and per-endpoint routing; the backend service does the work. This is the canonical path for every product.
One Base URL
All services are reached under a single base -- https://api.hanzo.ai/v1 -- namespaced by service (/v1/iam, /v1/kms, /v1/billing, and so on), plus the inference surface at /v1/chat/completions.
curl https://api.hanzo.ai/v1/chat/completions \
-H "Authorization: Bearer sk-..." \
-H "Content-Type: application/json" \
-d '{
"model": "zen5",
"messages": [{"role": "user", "content": "Hello"}]
}'Related
- API -- the REST reference for every service behind the gateway
- API Keys -- the credentials the gateway checks
- Billing -- how metered usage is priced
- IAM -- the identity the gateway authenticates
- Hanzo Gateway -- routing tables, clusters, and operations
In this section
hanzo.app
The build platform — fork a template, publish a site to <slug>.hanzo.app, and roll back by pointing at an…
Machines
Compute machines and capacity across regions — the nodes of your clusters.
Edge
Compute at the edge — on-device AI inference close to your users, offline and private.
Networks
Blockchain networks — chain, nodes, status, and RPC endpoints.
Hanzo Registry
Container images and artifacts — a self-hosted, S3-backed OCI registry at registry.hanzo.ai, mirrored to ghcr.
Console
The unified cloud console for Hanzo Cloud -- manage every product, key, and organization from one app at…
Blockchain
On-chain settlement and networks — chain, RPC, and block explorer.
Proof of AI
How Hanzo verifies AI computation on-chain, how node operators get paid, and how the cloud pays the…
How is this guide?