curl --location 'https://api.kie.ai/api/v1/client/tasks' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "grok-imagine-image-2-0/image-edit",
"callBackUrl": "https://your-domain.com/api/callback",
"input": {
"prompt": "Change the background to a sunset beach while preserving the subject.",
"task_id": "task_grok_imagine_1234567890",
"mask_indexs": [
1,
2
]
}
}'{
"code": 200,
"msg": "success",
"data": {
"taskId": "task_grok_imagine_1234567890"
}
}