> ## Documentation Index
> Fetch the complete documentation index at: https://dripart-mintlify-b90d3c69.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# GrokVideoNode - ComfyUI Built-in Node Documentation

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

Grok Video 节点可根据文本描述生成短视频。它可以通过提示词从零创建视频，或基于提示词对单张输入图像进行动画处理。该节点向外部 API 发送请求并返回生成的视频。

## 输入

| 参数             | 描述                                        | 数据类型   | 是否必填 | 取值范围                                                                                                  |
| -------------- | ----------------------------------------- | ------ | ---- | ----------------------------------------------------------------------------------------------------- |
| `model`        | 用于视频生成的模型。                                | COMBO  | 是    | `"grok-imagine-video"`<br />`"grok-imagine-video-beta"`                                               |
| `prompt`       | 所需视频的文本描述。                                | STRING | 是    | -                                                                                                     |
| `resolution`   | 输出视频的分辨率。                                 | COMBO  | 是    | `"480p"`<br />`"720p"`                                                                                |
| `aspect_ratio` | 输出视频的宽高比（默认值："auto"）。                     | COMBO  | 是    | `"auto"`<br />`"16:9"`<br />`"4:3"`<br />`"3:2"`<br />`"1:1"`<br />`"2:3"`<br />`"3:4"`<br />`"9:16"` |
| `duration`     | 输出视频的时长（秒）（默认值：6）。                        | INT    | 是    | 1 至 15                                                                                                |
| `seed`         | 用于确定节点是否应重新运行的种子；实际结果与种子无关，具有不确定性（默认值：0）。 | INT    | 是    | 0 至 2147483647                                                                                        |
| `image`        | 可选的输入图像，用于生成动画。                           | IMAGE  | 否    | -                                                                                                     |

**注意：** 如果提供了 `image`，则仅支持单张图像。提供多张图像将导致错误。`prompt` 在去除首尾空格后至少需要包含 1 个字符。

## 输出

| 输出名称     | 描述     | 数据类型  |
| -------- | ------ | ----- |
| `output` | 生成的视频。 | VIDEO |

> 本文档由 AI 生成。如果您发现任何错误或有改进建议，欢迎贡献！ [在 GitHub 上编辑](https://github.com/Comfy-Org/embedded-docs/blob/main/comfyui_embedded_docs/docs/GrokVideoNode/zh.md)

***

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