Nodes/ERPK Collection/Grok Reference to Video
ComfyUI Node

Grok Reference to Video

Generate a video from reference images and a text prompt using xAI Grok. Up to 3 images; prompt may use <IMAGE_1>, <IMAGE_2>, <IMAGE_3> tokens.

By eRepublik-Labs·Created 10 months ago·Updated about a month ago· 0
Grok Reference to Video
  • reference_images
  • client
  • video_url
prompt
modelgrok-imagine-video
aspect_ratio16:9
resolution720p
duration5
seed-1
CategoryERPK/Grok/Video

Inputs (8)

NameTypeDefaultDescription
promptSTRINGText description of the video. Use <IMAGE_1>, <IMAGE_2>, <IMAGE_3> tokens to reference the connected images.
reference_imagesIMAGEBatched IMAGE input — up to 3 frames. Used as visual reference for the generated video. Convert to data URIs automatically.
clientoptGROK_API_CLIENTGrok API client from Grok API Client node. Optional: when unconnected, the key is resolved from ComfyUI Settings or grok/config.ini.
modeloptCOMBOgrok-imagine-videoxAI video model.
aspect_ratiooptCOMBO16:9Output aspect ratio.
resolutionoptCOMBO720pOutput resolution. 480p is faster; 720p is HD.
durationoptINT51–15Video duration in seconds (1–15).
seedoptINT-1-1–4294967295Seed for ComfyUI cache invalidation only — not forwarded to the API. -1 for random.

Outputs (1)

NameTypeDescription
video_urlSTRING