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 URL | https://api.hanzo.ai |
| Version | 1.0.0 |
| Operations | 10 |
| Guide | Hanzo 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.aiEndpoints
Claude Compatible
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/messages | Create a message (Anthropic-compatible) |
Models
| Method | Endpoint | Description |
|---|---|---|
GET | /v1/models | List available models |
GET | /v1/models/{model} | Retrieve a model |
OpenAI Compatible
| Method | Endpoint | Description |
|---|---|---|
POST | /v1/chat/completions | Create chat completion |
POST | /v1/completions | Create completion (legacy text) |
POST | /v1/embeddings | Create embeddings |
POST | /v1/rerank | Rerank documents against a query |
POST | /v1/images/generations | Create image |
POST | /v1/audio/speech | Create speech (text-to-speech) |
POST | /v1/audio/transcriptions | Create transcription (speech-to-text) |
Hanzo AI — Inference API guide · All Hanzo APIs · OpenAPI spec
How is this guide?