v12

OpenAPI 3.1.02026-08-031000506.8 KB
Image

Z Image

Fastest model. Realistic, low diversity.

post/generate/image/z-image/z-image

Headers

X-Webhook-URLstring uri

URL to receive a POST request when the job completes. The webhook will receive the job data including results.

Request body

promptstring required
seednumber
denoising_strengthnumber
skip_prompt_expansionboolean
aspect_ratio'1:1' | '4:3' | '2:3' | '16:9' | '9:16' required

Aspect ratio. One of: 1:1, 4:3, 2:3, 16:9, 9:16.

resolution'1K' required

Resolution scale. One of: 1K.

image_urlstring uri nullable

Can be an external URL, base64 data URI, or uploaded asset URL.

Response

The resulting job data. This will be returned in a pending state until the job is completed. See /jobs/{id} for retrieving the results.

job_idstring uuid required
status'backlogged' | 'queued' | 'scheduled' | 'processing' | 'sampling' | 'intermediate-complete' | 'completed' | 'failed' | 'cancelled' required
created_atstring date-time required
{"stackTrail":"paths:/generate/image/z-image/z-image:post:responses:200:content:application/json:schema:properties:completed_at","oasType":"schema","type":"unknown"}
{"stackTrail":"paths:/generate/image/z-image/z-image:post:responses:200:content:application/json:schema:properties:result","oasType":"schema","type":"unknown"}