Hanzo
API Reference

Hanzo AI — Inference API

Top-level OpenAI- and Claude-compatible inference surface (hanzoai/ai).

Top-level OpenAI- and Claude-compatible inference surface (hanzoai/ai).

Hanzo AI — Inference API · Guide & examples → · All API references →

Base URLhttps://api.hanzo.ai
Version1.0.0
Operations10
GuideHanzo AI — Inference API guide

Authentication

  • BearerAuth — HTTP bearer

All Hanzo APIs share one bearer credential and common error and pagination conventions. See API conventions.

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

Endpoints

Claude Compatible

MethodEndpointDescription
POST/v1/messagesCreate a message (Anthropic-compatible)

Models

MethodEndpointDescription
GET/v1/modelsList available models
GET/v1/models/{model}Retrieve a model

OpenAI Compatible

MethodEndpointDescription
POST/v1/chat/completionsCreate chat completion
POST/v1/completionsCreate completion (legacy text)
POST/v1/embeddingsCreate embeddings
POST/v1/rerankRerank documents against a query
POST/v1/images/generationsCreate image
POST/v1/audio/speechCreate speech (text-to-speech)
POST/v1/audio/transcriptionsCreate transcription (speech-to-text)

Hanzo AI — Inference API guide · All Hanzo APIs · OpenAPI spec

How is this guide?

On this page