▥ Seedance 2.5 is here! ›
Grok Imagine Video 1.5

Grok Imagine Video 1.5 API

xAI Grok Imagine Video 1.5 for video with audio from text, a first or last frame, or reference images.

Warm Official Live Priced by route Data privacy Zero training API docs

Input

prompt*string

Describe the subject, motion, camera, lighting, and timing

route_modestring

Choose the provider route used for this request.

Lower-cost official route and the default for new requests and API keys.
generation_typestring

Select the generation workflow. The API mode updates with this choice.

aspect_ratiostring

Aspect ratio of the generated output

Default: "16:9"
resolutionstring

Higher resolutions may take longer to generate.

Default: "720p"
durationnumber

Length of the generated video in seconds

generate_audioboolean

Generate synchronized audio with the video.

Indicative cost≈ $0.63 for 5 s$0.126 / second · official-cheapBilled per second of the video the model returns. Models that bill a reference or source video add its seconds too.

Output

Ready for a predictionAdjust the inputs, then run the model.
  1. Create an API key

    Create a key in the console and save it as the MLMUX_API_KEY environment variable.

    Create an API key
  2. Send a request

    Send the request to https://api.mlmux.com/v1/videos/generations with the model ID xai/grok-imagine-video-1.5. The example uses this page's default settings; change the prompt and options as needed.

  3. Read the result

    The response is a task. Poll its poll_url every few seconds until status is succeeded, then download the video, or set up a webhook to be notified.

curl https://api.mlmux.com/v1/videos/generations \
  -H "Authorization: Bearer $MLMUX_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "xai/grok-imagine-video-1.5",
  "route_mode": "official-cheap",
  "prompt": "A red fox walks through fresh snow at sunrise, slow tracking shot, cinematic light",
  "mode": "text_to_video",
  "ratio": "16:9",
  "resolution": "720p",
  "duration": 5,
  "generate_audio": true
}'

# The response is a task. Poll it until "status" is "succeeded", then read "video".
curl https://api.mlmux.com/v1/videos/generations/TASK_ID \
  -H "Authorization: Bearer $MLMUX_API_KEY"

Pricing

Video is billed per second of output at the resolution you choose. The price changes with resolution and route.

Learn more about pricing ↗

All video rates

Per second of output video, by resolution. Billing follows the seconds the provider reports.

Resolutionofficialofficial-cheap
480p$0.08 / s$0.072 / s
720p$0.14 / s$0.126 / s
1080p$0.25 / s$0.225 / s

Readme

Grok Imagine Video 1.5 is available through MLMux with one request shape and two explicit route tiers.

Frames and references

Start from a prompt, a first frame, a last frame, or up to 14 reference images. With reference images, output is up to 720p.

Audio included

Grok Imagine can generate sound together with the video.

1 to 15 seconds

Clips run 1 to 15 seconds at 480p, 720p, or 1080p, billed per second.

Frequently asked questions

What is Grok Imagine Video 1.5?

Grok Imagine Video 1.5 is a video generation model from xAI. On MLMux you can run it in the browser or call it through one API. xAI Grok Imagine Video 1.5 for video with audio from text, a first or last frame, or reference images.

How do I use the Grok Imagine Video 1.5 API?

Create an API key in the MLMux Console, then send a POST request to https://api.mlmux.com/v1/videos/generations with the key in the Authorization header and model set to xai/grok-imagine-video-1.5. The request returns a task: poll it, or receive a webhook when the video is ready.

What can Grok Imagine Video 1.5 do?

Generation modes: Text to video, Image to video, First & last frame, and Multimodal reference. Clips run 1 to 15 seconds at 480p, 720p, or 1080p, in aspect ratios such as 16:9, 9:16, 1:1, 4:3, 3:4, and 3:2, with up to 14 reference images. Grok Imagine Video 1.5 can also generate audio together with the video.

How much does Grok Imagine Video 1.5 cost?

MLMux is pay as you go, with no subscription or monthly fee, and 1 credit equals 1 US dollar. One second of 720p Grok Imagine Video 1.5 video costs $0.126 on the default official-cheap route and $0.14 on the official route. Rates for every resolution are listed in the pricing section of this page.

Can I try Grok Imagine Video 1.5 without writing code?

Yes. Sign in and use the playground at the top of this page to run Grok Imagine Video 1.5 with the same settings as the API. The playground's code views show the matching request for your settings, and the quick start below has copy-paste examples in cURL, Python, and JavaScript.