Create Grok Video
POST
/v1/videosStart an asynchronous video generation task with a Grok video model.
Request Body
application/jsonmodel:optionalstringModel identifier used for this request.
Example
grok-imagine-videoprompt:optionalstringText instruction describing the requested output.
Example
A serene lake at sunrise with mist rolling over the waterduration:optionalintegerRequested video duration in seconds.
Example
8aspect_ratio:optionalstringAspect ratio of the generated media.
Allowed
1:116:99:164:33:43:22:3Example
16:9resolution:optionalstringResolution of the generated media.
Allowed
480p720p1080pExample
720pResponse
200A successful request returns a JSON response. The complete example is shown in the code panel.