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"
}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-...
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"
}Headers
Bearer API key, e.g. Bearer sk-....
"Bearer sk-..."
Body
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.
"grok-imagine-video-1.5-preview"
Video prompt, up to ~4096 characters.
4096"Rainy neon street at night, a vintage sports car driving on wet asphalt"
Target duration in seconds as a string (e.g. "6", "8"). Minimum 1. Alias: integer duration.
"8"
Integer form of seconds.
x >= 1Aspect ratio presets or custom number:number.
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3, 2:1, 1:2, 19.5:9, 9:19.5, 20:9, 9:20 "16:9"
Output clarity: 480P / 720P (case-insensitive; 480 / 720 also ok).
480P, 720P, 480, 720, 480p, 720p "720P"
Single reference image (Data URI preferred, or HTTPS URL). Do not use with reference_images.
Multiple reference images (Data URI or URL). Do not use with image.
Compatible array form for references.