> ## 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.

# GrokVideoExtendNode - ComfyUI Built-in Node Documentation

> The Grok Video Extend node extends an existing video with a seamless continuation based on a text prompt.

The Grok Video Extend node extends an existing video with a seamless continuation based on a text prompt. Provide a short source video and describe what should happen next; the node returns a new video clip that continues from the original.

## Inputs

### Common Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `model` | The model to use for video extension. Selecting the `"grok-imagine-video"` option reveals its model-specific settings. | DYNAMIC\_COMBO | Yes | `"grok-imagine-video"` |
| `prompt` | Text description of what should happen next in the video. | STRING | Yes | N/A |
| `video` | Source video to extend. MP4 format, 2-15 seconds. | VIDEO | Yes | MP4, 2-15 seconds, maximum 50MB |
| `seed` | Seed to determine if node should re-run; actual results are nondeterministic regardless of seed (default: 0). | INT | Yes | 0 to 2147483647 |

### grok-imagine-video Inputs

| Parameter | Description | Data Type | Required | Range |
| - | - | - | - | - |
| `duration` | Length of the extension in seconds (default: 8). | INT | Yes | 2 to 10 |

**Parameter Constraints:**

* The `video` input must be an MP4 file between 2 and 15 seconds in length and cannot exceed 50MB in file size.
* The `prompt` must contain at least one character after whitespace is trimmed.
* The `model` parameter is a dynamic combo. Selecting the `"grok-imagine-video"` option reveals the nested `duration` parameter.

## Outputs

| Output Name | Description | Data Type |
| - | - | - |
| `output` | The newly generated video extension. | VIDEO |

> 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/GrokVideoExtendNode/en.md)

***

**Source fingerprint (SHA-256):** `5009c007b6f93cd44f2742b024b65f1ac92ab9bca3b85a55554b1d99649e323b`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.