All models
Grok Imagine Video 1.5 Preview
xai/grok-imagine-video-1.5-preview
xAI Video GenerationImage-to-VideoMultimodal
xAI's next-generation video generation model. Generates, edits, and extends videos from text and image inputs. Supports multiple aspect ratios and resolutions with improved quality over the previous generation.
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-1.5-preview",
"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-1.5-preview", "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