Skip to main content
POST
Z Image Turbo Image Generation
This is an asynchronous API that only returns an async task_id. You need to use the task_id to call the task result query API to obtain the generated result.
This is an asynchronous API and will only return the task_id of the asynchronous task. You should use this task_id to request the Query Task Result API to retrieve the generated result.

Request Headers

string
required
Enum value: application/json
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

string
Mask image URL for inpainting. White areas are repainted, while black areas remain unchanged. Must be used together with image_url
integer
Random seed for generation. -1 means using a random seed. Range: -1 to 2147483647Value range: [-1, 2147483647]
string
default:"1024*1024"
Pixel dimensions of the generated image (width*height). Each dimension ranges from 256 to 1536 pixels
string
required
Positive prompt for generation
number
Transformation strength for img2img. 0.0-0.3 enhancement mode, 0.3-0.6 balanced transformation, 0.6-0.8 style conversion, 0.8-1.0 creative repainting. Must be used together with image_urlValue range: [0, 1]
string
Reference image URL for img2img
string
default:"webp"
Format of the output image. Supports jpeg, png, webpOptional values: jpeg, png, webp
boolean
default:false
If enabled, the output will be encoded as a BASE64 string instead of a URL. This property is only available via API

Response Information

string
required
Use task_id to request the Query Task Result API to retrieve the generated output.