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.
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)
| Name | Type | Default | Description |
|---|---|---|---|
| prompt | STRING | Text description of the video. Use <IMAGE_1>, <IMAGE_2>, <IMAGE_3> tokens to reference the connected images. | |
| reference_images | IMAGE | Batched IMAGE input — up to 3 frames. Used as visual reference for the generated video. Convert to data URIs automatically. | |
| clientopt | GROK_API_CLIENT | Grok API client from Grok API Client node. Optional: when unconnected, the key is resolved from ComfyUI Settings or grok/config.ini. | |
| modelopt | COMBO | grok-imagine-video | xAI video model. |
| aspect_ratioopt | COMBO | 16:9 | Output aspect ratio. |
| resolutionopt | COMBO | 720p | Output resolution. 480p is faster; 720p is HD. |
| durationopt | INT | 51–15 | Video duration in seconds (1–15). |
| seedopt | INT | -1-1–4294967295 | Seed for ComfyUI cache invalidation only — not forwarded to the API. -1 for random. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| video_url | STRING | — |