Skip to main content
Grok Imagine Video is SpaceXAI’s fast video model. It generates short videos at 480p or 720p in seven aspect ratios: 1:1, 16:9, 9:16, 4:3, 3:4, 3:2, and 2:3.

Model parameters

Model parameters

The following shared video API parameters are not supported:
  • negative_prompt
  • image_tail (first-frame generation only)
  • with_audio (Grok Imagine Video includes audio by default)
  • quality
  • size
  • fps
  • watermark
See the official Grok Imagine Video API documentation.
Grok Imagine Video supports these aspect ratios (aspect_ratio):
  • 1:1: social media and thumbnails
  • 16:9 / 9:16: widescreen, mobile devices, and feature films
  • 4:3 / 3:4: presentations and portraits
  • 3:2 / 2:3: photography
Grok Imagine Video supports these resolutions (resolution):
  • 480p: standard definition (default)
  • 720p: high definition
Grok Imagine Video accepts a duration of 1–15 seconds (default: 5 seconds).

Pricing

Grok Imagine Video pricing depends on duration and resolution: Additional charges:
  • Reference images cost 0.015 CNY each.
  • Reference video costs 0.075 CNY per input second.
For discounted GeekAI channels, multiply the listed rate by the channel multiplier. On the high-availability, speed-first channel with multiplier 0.8, a 5-second Grok Imagine Video clip at 720p costs 0.525 x 5 x 0.8 = 2.1 CNY.

Text to video

Set resolution and aspect ratio explicitly with resolution and aspect_ratio. On official channels, use duration to set duration. See Model parameters above for supported values.

Query generation status

Query the generation status with the task ID (task_id) from the asynchronous response:
While generation is in progress, the response looks like this:
When generation is complete, the response looks like this:
Download the video from the URL in video_result. The link expires after seven days by default.

Generate from the first frame

Pass the first frame in image. The model generates a video starting from that image:
Retrieve the result the same way as for text-to-video above.

Generate from reference images

Grok Imagine Video accepts up to seven reference images of people, characters, or products to preserve the subject’s appearance.
Do not combine reference images and first-frame generation: image and images cannot be supplied together.

Video editing

Grok Imagine Video can edit a supplied video, using its content as a reference for the new video.
Reference video requirements:
  • Maximum duration: 8.7 seconds.
  • Use MP4 or a video that can be transcoded to MP4, such as H.265, H.264, or AV1.
  • When editing, duration, aspect_ratio, and resolution have no effect. The output matches the reference video’s duration, aspect ratio, and resolution.