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

Grok Imagine Video 1.5

API docs
x-ai/grok-imagine-video-1.5

Grok Imagine Video 1.5 by xAI makes a 1 to 15 second video with native audio, up to 1080p, from text, a first and last frame, or up to 14 reference images. Call it from this page, through /v1/run, or with the xAI Videos API at SandBase.

Try the model

Playground

Open playground
Input
Describe the scene, motion, camera and sound. Required without images.

PNG, JPEG, WebP, or GIF · 20 MiB maximum

Optional image to start the video from (upload or public HTTPS URL).
115
Output length in seconds (1-15). Billed per second. Range: 1 to 15.
480p, 720p or 1080p (1080p is not available with reference images).
Output aspect ratio. Omit it to use 16:9, or the first frame's shape when you give one.
Advanced settings

PNG, JPEG, WebP, or GIF · 20 MiB maximum

Optional image to end the video on.

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

Up to 14 images of characters, objects or styles to keep.
Per run$0.64
Result
Idle

Your output will appear here

Complete the inputs, then click Run.

Grok Imagine Video 1.5

Grok Imagine Video 1.5 is xAI's current video model. It makes a 1 to 15 second clip with native audio, up to 1080p, from a prompt, a first frame (optionally with a last frame), or up to 14 reference images.

Use the form on this page, call x-ai/grok-imagine-video-1.5 through /v1/run, or call the xAI API below with model: grok-imagine-video-1.5. Both bill the same as xAI.

Inputs

Pick one way to guide the video: text only, a first frame (with an optional last frame), or reference images. Frames and reference images can be combined.

FieldTypeDefaultNotes
promptstring—Scene, motion, camera and sound. Required for text only.
imageimage—First frame.
last_frameimage—Last frame.
reference_imagesimage list, up to 14—Characters, objects or styles to keep.
durationinteger 1–158Output length in seconds.
resolution480p720p1080p480p1080p is not available with reference images.
aspect_ratio16:99:161:14:33:43:22:321:95:216:9, or the first frame's shapeOutput shape.

xAI API

SandBase implements xAI's Images and Videos API under https://api.sandbase.ai/grok/v1. Requests and responses match xAI's API reference field by field, so the xAI SDK or any OpenAI-style HTTP client works after you change the base URL and use your SandBase API key.

xAISandBase
Base URLhttps://api.x.ai/v1https://api.sandbase.ai/grok/v1
CreatePOST /videos/generationsPOST /videos/generations
RetrieveGET /videos/{request_id}GET /videos/{request_id}
modelgrok-imagine-video-1.5grok-imagine-video-1.5
curl https://api.sandbase.ai/grok/v1/videos/generations \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "grok-imagine-video-1.5",
    "prompt": "The cat turns its head and yawns",
    "image": {"url": "https://example.com/cat.jpg"},
    "duration": 6,
    "resolution": "720p"
  }'

The response is {"request_id": "..."}. Poll GET /grok/v1/videos/{request_id} every 5 to 10 seconds. pending means keep polling; done returns video.url, video.duration and usage.cost_in_usd_ticks (the charge in units of 1/10,000,000,000 USD); failed and expired are final and are not billed. Media can be public HTTPS or data: URLs. output and storage_options are not supported. The xAI API also takes keyframes and reference_audios for this model.

Billing

Per output second: $0.08 at 480p, $0.14 at 720p, $0.25 at 1080p. Each input image (first frame, last frame, reference image) adds $0.01. Failed runs are not billed.

Output480p720p1080p
6s$0.48$0.84$1.50
8s (default)$0.64$1.12$2.00
15s$1.20$2.10$3.75

One mode at a time

Learn more