curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine-video-1.5",
"input": {
"prompt": "A cinematic city at sunrise",
"resolution": "1080p",
"duration": 6,
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"message": "<string>",
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "2023-11-07T05:31:56Z"
}
}Grok Imagine Video 1.5
Text, image, and reference-to-video generation with Grok Imagine Video 1.5
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine-video-1.5",
"input": {
"prompt": "A cinematic city at sunrise",
"resolution": "1080p",
"duration": 6,
"aspect_ratio": "16:9"
}
}
'{
"code": 200,
"message": "<string>",
"data": {
"task_id": "<string>",
"status": "<string>",
"created_time": "2023-11-07T05:31:56Z"
}
}- After submission, a
task_idwill be returned. If you provided acallback_url, when the task status becomesfinishedorfailed, a POST request will be sent to thecallback_url. - Regardless of whether
callback_urlis provided, you can retrieve the result through the unified Query Task Status endpoint.
After submission, use the returned
task_id with the video status endpoint, or provide callback_url to receive the completed result.Generation modes
- Text to video: omit both image fields. Supports
480p,720p, and1080p. - Image to video: provide exactly one URL in
image_urls. Supports480p,720p, and1080p. - Reference to video: provide 1–7 URLs in
reference_image_urlsand refer to them as<IMAGE_0>,<IMAGE_1>, and so on. Supports480pand720p.
image_urls and reference_image_urls cannot be used together. aspect_ratio is available for text and reference modes, but not first-frame image-to-video.
Parameters
prompt(required): up to 4,096 characters.resolution:480p,720p, or1080p. Default:720p.duration: integer from1to15. Default:6for text/image mode and8for reference mode.aspect_ratio:16:9,4:3,3:2,1:1,2:3,3:4, or9:16. Default:16:9where supported.callback_url: optional HTTPS completion webhook.
Workflow IDs
Existing IDs remain available. New integrations can select a dedicated workflow:Authorizations
Body
application/json