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

# GrokVideoNode - ComfyUI Built-in Node Documentation

> Grok Video 节点根据文本描述生成短视频。

Grok Video 节点根据文本描述生成短视频。它可以使用提示词从零开始创建视频，也可以根据单个输入图像生成视频。该节点将请求发送到外部 API，并返回生成的视频。

## 输入

| 参数             | 描述                                                       | 数据类型   | 是否必需 | 范围                                                                                                    |
| -------------- | -------------------------------------------------------- | ------ | ---- | ----------------------------------------------------------------------------------------------------- |
| `model`        | 用于视频生成的模型。                                               | COMBO  | 是    | `"grok-imagine-video"`<br />`"grok-imagine-video-1.5"`                                                |
| `prompt`       | 所需视频的文本描述。当提供输入图像并使用 `grok-imagine-video-1.5` 时，此参数为可选项。 | STRING | 是    | -                                                                                                     |
| `resolution`   | 输出视频的分辨率。1080p 仅适用于 `grok-imagine-video-1.5`。            | COMBO  | 是    | `"480p"`<br />`"720p"`<br />`"1080p"`                                                                 |
| `aspect_ratio` | 输出视频的宽高比。                                                | 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` 时，仅支持一个输入图像；提供多个图像会导致错误。当未提供图像时，或使用 `grok-imagine-video` 时（即使提供了图像），`prompt` 在去除空白后必须为非空。对于 `grok-imagine-video-1.5`，仅在提供输入图像时 `prompt` 才是可选的。`1080p` 分辨率仅适用于 `grok-imagine-video-1.5`。当 `aspect_ratio` 设置为 `"auto"` 时，宽高比由服务自动选择。

## 输出

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

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

***

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