request_id, which you can use to poll for the final result.data:image/jpeg;base64,<YOUR_BASE64_IMAGE>){
"model": "grok-imagine-video",
"prompt": "Animate the clouds drifting across the sky and add gentle swaying to the trees",
"image": {"url": "data:image/jpeg;base64,<YOUR_BASE64_IMAGE>"}
}request_id immediately. Use the Get Video Generation Results endpoint to retrieve the final video once processing is complete.curl --location --request POST 'https://api.cometapi.com/grok/v1/videos/generations' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "grok-imagine-video",
"prompt": "A glowing crystal-powered rocket launching from the red dunes of Mars, ancient alien ruins lighting up in the background as it soars into a sky full of unfamiliar constellations",
"duration": 10,
"aspect_ratio": "16:9",
"resolution": "720p"
}'{
"request_id": "a3d1008e-4544-40d4-d075-11527e794e4a"
}