Skip to main content

Options

string
required
xAI model id for video generation (for example grok-imagine-video).
string
required
Reference to stored credentials. Use credential parameters apiKey or xaiApiKey for Bearer auth against https://api.x.ai/v1/. See the xAI video generations guide.
string
Optional base URL. If omitted or empty, defaults to https://api.x.ai/v1.
number
Optional flat cost per successful run.

Arguments

string
required
Description of the desired scene.
integer
Clip length in seconds (1–15), default 8.
string
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3; default 16:9.
string
480p or 720p; default 720p.
integer
Optional: how many of the latest chat images (max. 3) to send as image (data URL) for image-to-video or guidance.

Prompt function