curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine-video-1.5-preview",
"prompt": "Rainy neon street at night, a vintage sports car driving on wet asphalt",
"seconds": "8",
"aspect_ratio": "16:9",
"resolution": "720P"
}
'{
"id": "video_abc123",
"object": "video",
"model": "grok-imagine-video-1.5-preview",
"status": "queued",
"progress": 0,
"created_at": 1710000000,
"seconds": "8"
}Grok video
Create video
Grok Imagine async video create.
Path: POST https://api.omniall.ai/v1/videos
Poll with returned id via GET /v1/videos/{task_id}.
Model ids from the Model Square. Common: grok-imagine-video-1.5-preview, grok-imagine-video; variants like grok-video-1.5-pro / grok-video-1.5-max may be available on your account.
Auth: Authorization: Bearer sk-...
POST
/
v1
/
videos
curl --request POST \
--url https://api.omniall.ai/v1/videos \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "grok-imagine-video-1.5-preview",
"prompt": "Rainy neon street at night, a vintage sports car driving on wet asphalt",
"seconds": "8",
"aspect_ratio": "16:9",
"resolution": "720P"
}
'{
"id": "video_abc123",
"object": "video",
"model": "grok-imagine-video-1.5-preview",
"status": "queued",
"progress": 0,
"created_at": 1710000000,
"seconds": "8"
}Body
application/json
Grok Imagine video create body (POST /v1/videos).
Video model id. Model ids from the Model Square. Common: grok-imagine-video-1.5-preview, grok-imagine-video; variants like grok-video-1.5-pro / grok-video-1.5-max may be available on your account.
Example:
"grok-imagine-video-1.5-preview"