callBackUrl parameter to receive automatic notifications when generation completes, while still keeping GET /api/v1/jobs/recordInfo polling as a fallback.curl --location --request POST '/api/v1/jobs/createTask' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "z-image",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "Generate a photorealistic image of a cafe terrace in Paris on a crisp spring morning",
"image_size": "square_hd",
"seed": 12345,
"num_inference_steps": 28,
"output_format": "png",
"enable_safety_checker": true
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_z_image_1765166238716"
}
}