Hanzo

SDKs

Official Hanzo SDKs for Python, TypeScript, Go, Rust, and C/C++.

Hanzo SDKs

Official client libraries for every major language. All SDKs are OpenAI-compatible — switch from OpenAI to Hanzo by changing one line.

Available SDKs

Quick Install

pip install hanzoai

Quick Start

All SDKs follow the same pattern — create a client with your API key and call endpoints:

from hanzoai import Hanzo

client = Hanzo(api_key="hk-your-key")
response = client.chat.completions.create(
    model="claude-sonnet-4-6",
    messages=[{"role": "user", "content": "Hello"}]
)

SDK Feature Matrix

FeaturePythonTypeScriptGoRustC/C++
Chat completionsYYYYY
StreamingYYYYY
Function callingYYYYY
EmbeddingsYYYYY
Image generationYYYYY
AudioYYYYY
File uploadsYYYYY
Fine-tuningYYY----
BatchesYYY----
Assistants/ThreadsYYY----
Async/awaitYYYY--
RetriesYYYYY
Typed responsesYYYY--
MCP serverYY--Y--
Post-quantum crypto------Y--

API Coverage

All SDKs cover the same 187 API endpoints generated from a single OpenAPI specification. See the full API Reference for endpoint documentation.

Source Code

How is this guide?

Last updated on

On this page