request_id immediately, which you can use to poll for the final result.{
"prompt": "Add snow to the scene",
"video": {
"url": "https://vidgen.x.ai/xai-vidgen-bucket/xai-video-d2407257-5055-4813-9501-99f6f41889eb.mp4"
},
"model": "grok-imagine-video"
}request_id to poll for the final video via the Get Video Generation Results endpoint:GET /grok/v1/videos/{request_id}curl --location --request POST 'https://api.cometapi.com/grok/v1/videos/edits' \
--header 'Authorization: ' \
--header 'Content-Type: application/json' \
--data-raw '{
"prompt": "Add snow to the scene",
"video": {
"url": "https://vidgen.x.ai/xai-vidgen-bucket/xai-video-580ec0d5-b8d5-4ad0-b8af-89853facc1e5.mp4"
},
"model": "grok-imagine-video"
}'{
"request_id": "a3d1008e-4544-40d4-d075-11527e794e4a"
}