All models

Grok Imagine Video

xai/grok-imagine-video
xAI Video GenerationImage-to-VideoMultimodal

xAI's video generation model. Generates, edits, and extends videos from text and image inputs with native synchronized audio including dialogue, sound effects, and music. Supports multiple creative modes (normal, fun, custom).

Quick start

# Inspect the price — a plain request returns the 402 challenge:
curl -i https://api.glianalabs.com/v1/infer \
  -H "content-type: application/json" \
  -d '{
    "model": "xai/grok-imagine-video",
    "prompt": "<your prompt>"
  }'

# Pay + run in one step with the mppx CLI (create a wallet: npx mppx account create):
npx mppx https://api.glianalabs.com/v1/infer \
  -J '{"model": "xai/grok-imagine-video", "prompt": "<your prompt>"}'

Examples

Parameters

Input
aspect_ratio string optional

Output aspect ratio (e.g. 16:9, 1:1, 9:16).

duration integer optional

Length of the output in seconds.

image object optional

Input image (HTTPS URL or upload) to guide or edit from.

prompt string optional

Text prompt describing what to generate.

reference_images array optional

Reference images that guide characters, style, or composition.

resolution string optional

Output resolution / quality tier.

size string optional

Output dimensions (width × height).

user string optional

Optional end-user identifier for abuse monitoring; not required.

video object optional

Input video (HTTPS URL or upload) to edit or extend.

Output
video: string