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": "flux-2-pro",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "A sharp commercial photo of a red running shoe splashing through rain",
"aspect_ratio": "16:9",
"reference_images": [
"https://example.com/reference-shoe.png"
],
"seed": 12345,
"prompt_upsampling": true
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_flux2_pro_1765166238716"
}
}