Create Video
Unified Video
Create Video
Use POST /v1/video/create to submit Grok asynchronous generation tasks through a unified video format.
POST
Create Video
Create Video
The Grok unified video entry point usesPOST /v1/video/create, and the request body is JSON. Unlike Grok video generation in OpenAI format, this endpoint uses fields such as images, aspect_ratio, and size, and supports referencing multiple images in prompt via @img1, @img2.
- The routing entry point is
POST /v1/video/create. - Reference images are passed through the
imagesarray as URLs or base64; text-to-video can pass[]. - The common model is
grok-video-3; use the model actually available on the current channel. - After a successful submission,
idortask_idandstatusare returned. Use Query Task to poll for the result later.
Method and Path
Request Example
Response Example
id or task_id in the response as the credential for subsequent queries.
Authentication
Body
Model name, for example
grok-video-3.Prompt. When using multi-image reference, you can use placeholders such as
@img1 and @img2 in the text, corresponding to the order of indices in the images array.List of reference images, where each element is a URL or a base64 data URI. Text-to-video can pass
[]; first-and-last-frame inputs are usually provided as 2 images in order; multi-image reference supports up to 6 images.Video aspect ratio. Optional values are
16:9, 9:16, 2:3, 3:2, 1:1.Resolution specification, pass
720P or 1080P.Video duration in seconds. Default is
10; supports 6, 10, and 15.Response
Task ID, used as the
id parameter when querying; some responses may return only task_id.Upstream task ID, which may coexist with
id; subject to the actual response.Task status. Common values include
processing, completed, and failed.Most recent status update time (Unix timestamp).
Creation time, which in some responses is an RFC3339 string.