You're looking at a specific version of this model. Jump to the model overview.

xai /grok-imagine-r2v:b4126653

Input schema

The fields you can use to run this model with an API. If you don’t give a value for a field its default value will be used.

Field Type Default value Description
prompt
string
Text prompt describing the video to generate
reference_images
array
Reference images to guide the video generation (1-7 images). These are used as style and content references, not as starting frames.
duration
integer
8

Min: 1

Max: 10

Duration of the video in seconds (1-10).
aspect_ratio
None
16:9
Aspect ratio of the generated video.
resolution
None
480p
Resolution of the generated video.

Output schema

The shape of the response you’ll get when you run this model with an API.

Schema
{'format': 'uri', 'title': 'Output', 'type': 'string'}