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

# ComfyUI 中的 Grok Imagine Image：AI 图像生成与编辑

> 使用 ComfyUI 中的 Grok Imagine Image 模型生成和编辑图像：文生图和自然语言图像编辑

Grok 图像是 xAI 的图像生成模型，可通过 Grok 合作节点在 ComfyUI 中使用。它可以根据文本提示生成图像，也可以根据自然语言指令编辑上传的图像，支持 13 种宽高比和 1K 或 2K 输出。

## Grok Imagine Image 擅长什么

* **文生图生成**：根据描述场景和风格的文本提示词创建单张图像
* **自然语言图像编辑**：根据您的提示词编辑上传的图像，同时保留原始构图，更改场景、光照或风格
* **灵活的宽高比**：支持 13 种宽高比，包括 `1:1`、`16:9` 和 `9:16`
* **分辨率选项**：输出为 1K 或 2K

## 示例输出

通过单个提示词进行文生图生成：

![Grok 文生图输出](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_grok_text_to_image.png)

使用自然语言指令编辑图像，保留原始构图：

![Grok 图像编辑输出](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/output/api_grok_image_edit.png)

## 在 ComfyUI 中使用

<Card title="Grok Imagine Image 工作流" icon="diagram-project" href="/zh/tutorials/partner-nodes/grok/grok-image/workflow">
  在 ComfyUI 中运行文生图和图像编辑工作流，可在本地或 Comfy Cloud 上运行
</Card>
