Hanzo Skills Reference
Hanzo OpenAPI Hanzo OpenAPI is the canonical OpenAPI 3.1.0 specification for all 69 Hanzo Cloud services. One master spec (`hanzo.yaml`) plus per-service specs, shared schemas, and everything needed to generate ...
Hanzo OpenAPI is the canonical OpenAPI 3.1.0 specification for all 69 Hanzo Cloud services. One master spec (hanzo.yaml) plus per-service specs, shared schemas, and everything needed to generate SDKs, validate APIs, and render documentation.
Single source of truth : Every Hanzo service endpoint, schema, and error is defined here
SDK generation : Feed any spec to openapi-generator to produce Python, TypeScript, Go, Rust clients
Documentation : Render with Redoc, Scalar, or Swagger UI
Validation : Lint specs with @redocly/cli before deploy
Gateway routing : Defines the contract that api.hanzo.ai enforces
OpenAPI 3.1.0 YAML files
Shared components in shared/ (auth, errors, pagination schemas)
Master unified spec: hanzo.yaml (all 69 services combined)
Per-service specs: <service>/openapi.yaml
Repo: hanzoai/openapi (1.8MB, 3 stars).
Adding or modifying any Hanzo API endpoint
Generating a new SDK client for a language
Validating API contracts before deployment
Rendering API documentation (docs.hanzo.ai)
Understanding the full surface area of Hanzo Cloud
OpenAPI 3.1.0 compliance for all specs
Shared schemas must be referenced from shared/, not duplicated
All services must appear in the master hanzo.yaml
Auth uses Authorization: Bearer hk-... (API key) or OAuth2 JWT
Item Value Master Spec hanzo.yaml (33KB)Spec Version OpenAPI 3.1.0 API Version 4.0.0 Gateway api.hanzo.aiDocs docs.hanzo.aiRepo github.com/hanzoai/openapiBranch main
Service Spec Endpoint Cloud cloud/openapi.yaml (116KB)api.hanzo.aiChat chat/openapi.yamlhanzo.chatSearch search/openapi.yamlsearch.hanzo.aiBot bot/openapi.yamlapp.hanzo.botNexus nexus/openapi.yamlnexus.hanzo.aiVector vector/openapi.yamlvector.hanzo.ai
Service Spec Endpoint Flow flow/openapi.yamlflow.hanzo.aiAuto auto/openapi.yamlauto.hanzo.aiOperative operative/openapi.yamloperative.hanzo.ai
Service Spec Endpoint IAM iam/openapi.yamlhanzo.idCommerce commerce/openapi.yamlcommerce.hanzo.aiGateway gateway/openapi.yamlapi.hanzo.aiConsole console/openapi.yamlconsole.hanzo.aiKMS kms/openapi.yamlkms.hanzo.aiAnalytics analytics/openapi.yamlanalytics.hanzo.ai
Service Spec Endpoint PaaS paas/openapi.yamlpaas.hanzo.aiPlatform platform/openapi.yamlplatform.hanzo.aiDB db/openapi.yamldb.hanzo.aiKV kv/openapi.yamlkv.hanzo.aiMQ mq/openapi.yamlmq.hanzo.aiEdge edge/openapi.yamledge.hanzo.aiRegistry registry/openapi.yamlregistry.hanzo.aiVisor visor/openapi.yamlvm.hanzo.ai
Service Spec Endpoint Engine engine/openapi.yamlengine.hanzo.aiO11y o11y/openapi.yamlo11y.hanzo.aiDNS dns/openapi.yamldns.hanzo.aiZT zt/openapi.yamlzt.hanzo.ai
openapi/
hanzo.yaml # Master unified spec (all 69 services)
LLM.md
README.md
shared/
auth.yaml # Auth security schemes (API key, OAuth2, JWT)
errors.yaml # Shared error response schemas
pagination.yaml # Cursor/offset pagination schemas
analytics/openapi.yaml
auto/openapi.yaml
bot/openapi.yaml
chat/openapi.yaml
cloud/openapi.yaml # Largest spec (116KB) -- LLM inference API
commerce/openapi.yaml
console/openapi.yaml
db/openapi.yaml
did/openapi.yaml
dns/openapi.yaml
edge/openapi.yaml
engine/openapi.yaml
flow/openapi.yaml
gateway/openapi.yaml
guard/openapi.yaml
iam/openapi.yaml
kms/openapi.yaml
kv/openapi.yaml
ml/openapi.yaml
mq/openapi.yaml
nexus/openapi.yaml
o11y/openapi.yaml
operative/openapi.yaml
paas/openapi.yaml
platform/openapi.yaml
pricing/openapi.yaml
pubsub/openapi.yaml
registry/openapi.yaml
s3/openapi.yaml
search/openapi.yaml
stream/openapi.yaml
vector/openapi.yaml
visor/openapi.yaml
zt/openapi.yaml
All services accessible through api.hanzo.ai:
api.hanzo.ai/v1/chat/completions -> Cloud (LLM inference)
api.hanzo.ai/v1/models -> Cloud (model listing)
api.hanzo.ai/v1/chat/* -> Chat
api.hanzo.ai/v1/search/* -> Search
api.hanzo.ai/v1/bot/* -> Bot
api.hanzo.ai/v1/nexus/* -> Nexus
api.hanzo.ai/v1/vector/* -> Vector DB
api.hanzo.ai/v1/flow/* -> Flow
api.hanzo.ai/v1/operative/* -> Operative
api.hanzo.ai/v1/auth/* -> IAM
api.hanzo.ai/v1/billing/* -> Commerce
api.hanzo.ai/v1/kms/* -> KMS
api.hanzo.ai/v1/console/* -> Console
api.hanzo.ai/v1/analytics/* -> Analytics
api.hanzo.ai/v1/paas/* -> PaaS
api.hanzo.ai/v1/platform/* -> Platform
api.hanzo.ai/v1/db/* -> DB
api.hanzo.ai/v1/kv/* -> KV
api.hanzo.ai/v1/mq/* -> MQ
api.hanzo.ai/v1/edge/* -> Edge
api.hanzo.ai/v1/registry/* -> Registry
api.hanzo.ai/v1/vm/* -> Visor
api.hanzo.ai/v1/engine/* -> Engine
api.hanzo.ai/v1/o11y/* -> O11y
api.hanzo.ai/v1/dns/* -> DNS
api.hanzo.ai/v1/zt/* -> ZT
All services use a single HANZO_API_KEY:
curl -H "Authorization: Bearer hk-your-api-key" https://api.hanzo.ai/v1/models
Method Use Case API Key Server-to-server (Authorization: Bearer hk-...) OAuth2 + PKCE User-facing apps (hanzo.id/oauth/authorize) Client Credentials Service-to-service (POST hanzo.id/oauth/token) JWT After OAuth login (Authorization: Bearer eyJ...)
for spec in */openapi.yaml ; do
echo "Validating $spec ..."
openapi-generator validate -i " $spec "
done
# Master spec
npx @redocly/cli lint hanzo.yaml
# Python
openapi-generator generate -i hanzo.yaml -g python -o clients/python
# TypeScript
openapi-generator generate -i hanzo.yaml -g typescript-axios -o clients/typescript
# Go
openapi-generator generate -i hanzo.yaml -g go -o clients/go
# Rust
openapi-generator generate -i hanzo.yaml -g rust -o clients/rust
npx @redocly/cli preview-docs hanzo.yaml # Redoc
npx @scalar/cli serve hanzo.yaml # Scalar
docker run -p 8080:8080 -e SWAGGER_JSON=/specs/hanzo.yaml \
-v $( pwd ) :/specs swaggerapi/swagger-ui # Swagger UI
GitHub Org Focus @hanzoai Core platform (all 69 services) @hanzozt Zero-trust networking @hanzo-ml GPU/ML (kubeflow, kuberay) @hanzodns DNS (coredns) @hanzofn Edge functions (edge-runtime) @hanzosql Databases (neon) @hanzokv Key-value store (valkey) @hanzocr Container registry (harbor) @hanzomsg Messaging (nats-server, nats.go, nats.js, nats.py) @hanzoo11y Observability (loki, grafana, o11y)
hanzo/hanzo-gateway.md - API gateway that enforces these specs
hanzo/hanzo-cloud.md - LLM inference (largest spec)
hanzo/python-sdk.md - Python SDK (generated from these specs)
hanzo/js-sdk.md - JavaScript SDK
hanzo/go-sdk.md - Go SDK
hanzo/rust-sdk.md - Rust SDK
hanzo/hanzo-sdk.md - Unified multi-language CLI SDK
How is this guide?
Good Bad