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

xai /grok-imagine-video:ee86ec3a

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 for video generation
image
string
Input image to generate video from (image-to-video). Supports jpg, jpeg, png, webp.
video
string
Input video to edit (video editing mode). Must be a direct link, max 8.7 seconds. Supports mp4, mov, webm.
duration
integer
5

Min: 1

Max: 15

Duration of the video in seconds (1-15). Ignored when editing a video.
aspect_ratio
None
auto
Aspect ratio of the video. For text-to-video, defaults to 16:9. For image-to-video, defaults to the input image's native aspect ratio. Ignored when editing a video.
resolution
None
720p
Resolution of the video. Ignored when editing a 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'}