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

# GrokImageNode - ComfyUI Built-in Node Documentation

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

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

Grok Image 节点使用 Grok AI 模型，基于文本描述生成一张或多张图像。它会将您的提示词发送至外部服务，并将生成的图像作为可在工作流中使用的张量返回。

## 输入参数

| 参数                 | 数据类型   | 必填 | 取值范围                                                                                                                                                                          | 描述                                                         |
| ------------------ | ------ | -- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- |
| `model`            | COMBO  | 是  | `"grok-imagine-image-beta"`                                                                                                                                                   | 用于图像生成的具体 Grok 模型。                                         |
| `prompt`           | STRING | 是  | N/A                                                                                                                                                                           | 用于生成图像的文本提示词。此描述指导 AI 创建内容。                                |
| `aspect_ratio`     | COMBO  | 是  | `"1:1"`<br />`"2:3"`<br />`"3:2"`<br />`"3:4"`<br />`"4:3"`<br />`"9:16"`<br />`"16:9"`<br />`"9:19.5"`<br />`"19.5:9"`<br />`"9:20"`<br />`"20:9"`<br />`"1:2"`<br />`"2:1"` | 生成图像所需的宽高比。                                                |
| `number_of_images` | INT    | 否  | 1 到 10                                                                                                                                                                        | 要生成的图像数量（默认值：1）。                                           |
| `seed`             | INT    | 否  | 0 到 2147483647                                                                                                                                                                | 用于确定节点是否应重新运行的种子值。实际的图像结果具有不确定性，即使使用相同的种子，结果也会有所不同（默认值：0）。 |

**注意：** `seed` 参数主要用于控制节点在工作流中何时重新执行。由于外部 AI 服务的特性，生成的图像无法重现，即使使用完全相同的种子，多次运行的结果也不会完全相同。

## 输出参数

| 输出名称     | 数据类型  | 描述                                                                 |
| -------- | ----- | ------------------------------------------------------------------ |
| `output` | IMAGE | 生成的图像或图像批次。如果 `number_of_images` 为 1，则返回单个图像张量。如果大于 1，则返回一个图像张量批次。 |
