Hanzo
API Reference

API Reference

The unified REST API reference for every Hanzo product — 38 services, one key, generated from OpenAPI 3.1 specs.

Hanzo API Reference

One platform, one credential. Every Hanzo product speaks REST over HTTPS, shares a single API key, and is documented here from its OpenAPI 3.1 specification — 38 services, 2,000+ endpoints. Each reference links to its concept guide, and every guide links back here.

Authentication

All services accept the same bearer credential — a Hanzo IAM JWT or an hk- API key. Most products are reachable both on their own host and through the unified gateway at api.hanzo.ai.

curl -H "Authorization: Bearer $HANZO_API_KEY" https://api.hanzo.ai/v1/models

Get your API key at console.hanzo.ai.

SDKs

Prefer a typed client over raw HTTP:

LanguagePackageInstall
Pythonhanzoaipip install hanzoai
TypeScripthanzoainpm install hanzoai
Gogo-sdkgo get github.com/hanzoai/go-sdk
Rusthanzo-aicargo add hanzo-ai
C/C++c-sdkCMake FetchContent

Full SDK documentation


AI & Models

Compute & Deploy

Data & Storage

Identity & Security

Commerce & Business

Infrastructure & Observability


Conventions

Every Hanzo API follows the same conventions, so a client written against one service works against all of them. The shared components live in hanzoai/openapi/shared.

Base URLEach product is reachable on its own host (e.g. https://commerce.hanzo.ai) and, for most, through the gateway at https://api.hanzo.ai.
VersioningAll routes are namespaced under /v1. There is no /v2; changes are additive and backward-compatible.
AuthenticationHTTP Bearer — a Hanzo IAM JWT or an hk- API key. One credential across every service. See auth.yaml.
ErrorsA consistent JSON error envelope (error.type, error.message, error.code) with standard HTTP status codes. See errors.yaml.
PaginationCursor-based (limit + starting_after / ending_before), returning has_more and data. See pagination.yaml.
Identity headersThe gateway resolves identity from the JWT and injects X-Org-Id, X-User-Id, X-User-Email; client-supplied identity headers are stripped.

Unified Spec

The complete OpenAPI 3.1 document covering every service in one file:

Every individual spec lives in the hanzoai/openapi repository.

How is this guide?

Last updated on

On this page