▥ Seedance 2.5 is here! ›
MODEL MAKER

xAI models on MLMux

xAI makes the Grok Imagine video models, which can generate sound with the clip. They are billed per second of video, and the default official-cheap route costs 90% of the list price.

Models

Every xAI model on MLMux, with its options and the estimated price on the default official-cheap route. The official route runs at the list price.

Model and API model IDOptionsPrice on official-cheap (default)
Grok Imagine Video 1.5xai/grok-imagine-video-1.5Video modelSizes: 480p, 720p, 1080p1–15 second clips$0.126 per second of 720pofficial: $0.14
Grok Imagine Video 1.5 Litexai/grok-imagine-video-1.5-liteVideo modelSizes: 480p, 720p, 1080p1–15 second clips$0.027 per second of 720pofficial: $0.03

Quick start

  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

    The example sends Grok Imagine Video 1.5 (xai/grok-imagine-video-1.5) to https://api.mlmux.com/v1/videos/generations. Change the model ID to any model in the table above.

  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.

    Video API reference
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"

Frequently asked questions

Which xAI models can I use on MLMux?

2 models: Grok Imagine Video 1.5 and Grok Imagine Video 1.5 Lite. Each one has its own page with its options, prices and a playground to try it in the browser.

How much do xAI models cost on MLMux?

The lowest-cost one is Grok Imagine Video 1.5 Lite at $0.027 per second of 720p on the default official-cheap route. Every price is pay as you go with no subscription, and failed requests are not charged.

How do I call a xAI model through the API?

Send the model ID, such as xai/grok-imagine-video-1.5, to https://api.mlmux.com/v1/videos/generations with your MLMux API key. The request format is the same for every model on MLMux, so switching models means changing one field.

Is MLMux affiliated with xAI?

No. MLMux is an independent service that runs xAI models on official provider routes. Model names and trademarks belong to their owners.