Hanzo
OpenapiAi

Implements POST /v1/images/generations (OpenAI-compatible).

Implements POST /v1/images/generations (OpenAI-compatible).

POST /v1/images/generations

Addresshttps://api.hanzo.ai/v1/images/generations
MethodPOST
Operationpost_images_generations
AuthAuthorization: Bearer $HANZO_API_KEY

Implements POST /v1/images/generations (OpenAI-compatible).

Body: {"model": "...", "prompt": "...", "n"?: int, "size"?: "1024x1024",

"response_format"?: "url"|"b64_json"}

It authenticates the caller, resolves the model to its upstream provider via the shared routing table (zen3-image* → do-ai fal diffusion), reserves the per-image budget, generates the image(s) through the do-ai async image client, records usage for billing, and returns the OpenAI images response.

Request

The document declares no body for POST /v1/images/generations. The handler is typed in cloud but its shape is not yet emitted, so the fields are not listed here — ask the MCP door's describe for post_images_generations, which answers from the running route.

Response

The document declares no response body for this operation. It answers 200 on success and the platform error shape on failure — see Errors.

Examples

hanzo images generations

AI API · All Hanzo APIs · Interactive reference

How is this guide?

On this page