Sand AISand AI MAGI-2MAGI-2 is now on SandBase: 1080p video with native audioTry it now
Text to VideoxAI

Grok Imagine Video Reference to Video

API docs
x-ai/grok-imagine-video/reference-to-video

Grok Imagine Video is xAI's image-to-video AI model. Bring static images to life with fluid animation, consistent character motion, and professional-grade video output.

Try the model

Playground

Open playground
Input
Text prompt describing the video to generate. Use @Image1, @Image2, etc. to reference specific images from reference_image_urls in order.
The aspect ratio of the generated image.
Resolution of the output video.
110
Video duration in seconds. Range: 1 to 10.

PNG, JPEG, WebP, or GIF · 20 MiB maximum each · up to 7

One or more reference image URLs to guide the video generation as style and content references. Reference in prompt as @Image1, @Image2, etc. Maximum 7 images.

Fill in prompt, reference_image_urls to run

Per run$0.562
Result
Idle

Your output will appear here

Complete the inputs, then click Run.

Grok Imagine Video Reference to Video

Grok Imagine Video reference-to-video: up to 7 reference images keep characters and objects consistent in a 1–10 second clip.

Fields

FieldTypeDefaultNotes
promptstring, required—Up to 4,096 characters.
aspect_ratio16:94:33:21:12:33:49:1616:9Output frame shape.
resolution480p / 720p720pSets the per-second rate.
durationinteger 1–108Output length in seconds.
reference_image_urlsimage URL[] (≤7), required—Reference images, up to 7.

Billing

$0.07 per output second at 720p and $0.05 at 480p, plus $0.002 per request.

Output480p720p
6s$0.302$0.422
8s (default)$0.402$0.562
10s$0.502$0.702

Failed runs are not charged.

Prompting

  • Describe subject, action, camera, and sound.

Also on SandBase

Other Grok Imagine Video endpoints: xai/grok-imagine-video/text-to-video, xai/grok-imagine-video/image-to-video, xai/grok-imagine-video/video-edit, xai/grok-imagine-video/video-extend, xai/grok-imagine-video/1.5/text-to-video (1.5, newer).