> ## Documentation Index
> Fetch the complete documentation index at: https://docs.comfy.org/llms.txt
> Use this file to discover all available pages before exploring further.

# GrokVideoReferenceNode - ComfyUI Built-in Node Documentation

> Complete documentation for the GrokVideoReferenceNode node in ComfyUI. Learn its inputs, outputs, parameters and usage.

> This documentation was AI-generated. If you find any errors or have suggestions for improvement, please feel free to contribute! [Edit on GitHub](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/GrokVideoReferenceNode/en.md)

The Grok Reference-to-Video node generates a video based on a text prompt, using up to seven reference images to guide the style and content of the output. It connects to an external API to create the video, which is then downloaded and returned.

## Inputs

| Parameter                | Data Type | Required | Range                                                                                   | Description                                                                                                   |
| ------------------------ | --------- | -------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------- |
| `prompt`                 | STRING    | Yes      | N/A                                                                                     | Text description of the desired video.                                                                        |
| `model`                  | COMBO     | Yes      | `"grok-imagine-video"`                                                                  | The model to use for video generation.                                                                        |
| `model.reference_images` | IMAGE     | Yes      | 1 to 7 images                                                                           | Up to 7 reference images to guide the video generation.                                                       |
| `model.resolution`       | COMBO     | Yes      | `"480p"`<br />`"720p"`                                                                  | The resolution of the output video.                                                                           |
| `model.aspect_ratio`     | COMBO     | Yes      | `"16:9"`<br />`"4:3"`<br />`"3:2"`<br />`"1:1"`<br />`"2:3"`<br />`"3:4"`<br />`"9:16"` | The aspect ratio of the output video.                                                                         |
| `model.duration`         | INT       | Yes      | 2 to 10                                                                                 | The duration of the output video in seconds (default: 6).                                                     |
| `seed`                   | INT       | No       | 0 to 2147483647                                                                         | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0). |

**Note:** The `model` parameter is a group containing `reference_images`, `resolution`, `aspect_ratio`, and `duration`. You must provide at least one reference image, and you can provide up to seven.

## Outputs

| Output Name | Data Type | Description               |
| ----------- | --------- | ------------------------- |
| `video`     | VIDEO     | The generated video file. |

***

**Source fingerprint (SHA-256):** `df50e80ca403d05469881e1c456ca4777d70989d8950c5e3844271c3ff8df85a`
