Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.varios-ai.com/llms.txt

Use this file to discover all available pages before exploring further.

Options

model
string
required
xAI model id for video generation (for example grok-imagine-video).
credential
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.
endpointUrl
string
Optional base URL. If omitted or empty, defaults to https://api.x.ai/v1.
costs
number
Optional flat cost per successful run.

Arguments

prompt
string
required
Description of the desired scene.
duration
integer
Clip length in seconds (1–15), default 8.
aspect_ratio
string
1:1, 16:9, 9:16, 4:3, 3:4, 3:2, 2:3; default 16:9.
resolution
string
480p or 720p; default 720p.
lastImagesCount
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

\Avency\BotAPI\Service\Adapter\XaiImagineVideo::execute