Video
Grok Video API
Resolution, duration, ratio and single-image rules for grok-imagine-video and grok-imagine-video-1.5.
This page specifies the xAI Grok video models grok-imagine-video and grok-imagine-video-1.5. They share the POST /v1/videos create and GET /v1/videos/{id} polling flow with the other video models; authentication, polling states, downloads and error handling are covered in the Complete Video API Standard. This page lists only the fields and rules specific to Grok.
Updated 2026-10-10. The former
grok-imagine-video-1.5-1080pis retired; for 1080P usegrok-imagine-video-1.5with"resolution": "1080p". Grok sets the ratio withaspect_ratio(orratioorsize). Grok supports polling only; do not sendcallback_url.
Models
| Model | Resolution | Duration | Ratio | Input |
|---|---|---|---|---|
grok-imagine-video | 480P / 720P, default 720P | 1–15s, default 8s | 16:9 9:16 1:1 4:3 3:4 3:2 2:3, default 16:9 | text, or text plus one image |
grok-imagine-video-1.5 | 480P / 720P / 1080P, default 720P | same | same | same |
Parameters
- Resolution:
resolutionis480por720p, plus1080pforgrok-imagine-video-1.5. It can also be sent asmetadata.resolution. - Duration: whole seconds from 1 to 15 in
duration(or the stringseconds). - Aspect ratio:
aspect_ratioandratioare equivalent, and you can also put the ratio insize(for example"size": "9:16");sizedoes not accept pixel dimensions. If you send more than one ratio field (including those inmetadata), the values must match, otherwise the request returns 400. - Image: at most one, a public
https://URL, inimages,imageorinput_reference. The same image sent in two fields counts as two and returns 400. - Prompt: may be omitted when an image is supplied; a request with neither returns 400.
- Not supported: keyframe pairs, reference video, reference audio,
negative_prompt,seed,generate_audioandmultipart/form-datafile uploads.
Text to video
{
"model": "grok-imagine-video-1.5",
"prompt": "A silver sports car in a rainy city at night, low tracking shot, neon reflections, cinematic",
"duration": 8,
"aspect_ratio": "16:9",
"resolution": "1080p"
}Image to video
{
"model": "grok-imagine-video",
"prompt": "Keep the subject and slowly pull the camera back, cinematic",
"duration": 6,
"aspect_ratio": "9:16",
"resolution": "720p",
"images": ["https://cdn.example.com/start.jpg"]
}