##All APIs require Bearer Token authentication##
Get API Key:
Visit API Key Management Page to get your API Key
Add to request header when using:
Authorization: Bearer YOUR_API_KEYImage generation model name
z-image-turbo "z-image-turbo"
Prompt describing the image to be generated, limited to 2000 characters
2000"a cute cat"
Size of the generated image. Supports two formats:
Aspect Ratio Format:
1:1, 16:9, 9:16, etc.1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 1:2, 2:1Custom Dimensions:
1024x768)376-1536 pixels1:1, 2:3, 3:2, 3:4, 4:3, 9:16, 16:9, 1:2, 2:1 "1:1"
Random seed for reproducible results
Note:
1 to 21474836471 <= x <= 214748364712345
Enable additional NSFW content moderation
Note:
false (disabled)false
HTTPS callback address after task completion
Callback Timing:
Security Restrictions:
2048 charactersCallback Mechanism:
10 seconds3 retries on failure (retries after 1 second/2 seconds/4 seconds)"https://your-domain.com/webhooks/image-task-completed"
Image generation task created successfully
Task creation timestamp
1757165031
Task ID
"task-unified-1757165031-uyujaw3d"
Actual model name used
"z-image-turbo"
Specific type of the task
image.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Async task information
Output type of the task
text, image, audio, video "image"
Usage and billing information