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": "gemini-2.5-flash-image-preview",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "Turn this room into a warm Japanese minimalist studio",
"reference_images": [
"https://example.com/input-room.png"
]
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_gemini_image_1765166238716"
}
}