xAI
This page is auto-generated from model configurations. Last updated: 2026-03-13.
This reference lists all available xAI video generation models and their parameters. Use these parameter names when calling the Generation API.
Grok Imagine Video
Generate and edit videos using xAI's Grok model — supports text-to-video, image-to-video (up to 15s), and video editing (up to 8.7s) with 480p/720p resolution and flexible aspect ratios
Model ID: model_xai-grok-imagine-video
Capabilities: txt2video, img2video, video2video
LLM Markdown: https://app.scenario.com/api/models/model_xai-grok-imagine-video/markdown
| Parameter | Type | Required | Default | Min | Max | Allowed Values | Description |
|---|---|---|---|---|---|---|---|
prompt | string | Yes | - | - | - | - | Text description of the video to generate, or desired edits when a source video is provided |
image | file | No | - | - | - | - | Source image for image-to-video generation. The model will animate the provided image based on the text prompt. Mutually exclusive with video input. |
video | file | No | - | - | - | - | Source video to edit. Auto-preprocessed to max 8.7s at 720p. Duration, aspect ratio, and resolution are inherited from the source. Mutually exclusive with image input. |
numOutputs | number | No | 1 | 1 | 4 | - | Number of videos to generate concurrently |
duration | number | No | 5 | 1 | 15 | - | Video duration in seconds. Ignored in video editing mode (output duration matches source, max 8.7s). |
aspectRatio | string | No | 16:9 | - | - | 16:9, 3:2, 4:3, 1:1, 3:4, 2:3, 9:16 | Aspect ratio for the generated video. Ignored in video editing mode. |
resolution | string | No | 480p | - | - | 480p, 720p | Output resolution for the generated video. Ignored in video editing mode. |
Updated about 4 hours ago