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

# OpenAI GPT Image 2.6: Flare 与 Sunburst 工作流

> 在 ComfyUI 中使用 OpenAI GPT Image 2.6 Flare 与 Sunburst 合作节点生成和编辑图像：快速草稿、细节优先渲染，以及四个工作流模板。

GPT Image 2.6 是 OpenAI 的图像模型系列，在 ComfyUI 中通过 **OpenAI GPT Image 2.6** 合作伙伴节点使用。它有两个变体：

* **Flare**（`gpt-image-2.6-flare`）：几秒内返回草稿，在密集的海报和产品图上能保持版面结构稳定。适用于概念稿、情绪板和文字较多的草稿
* **Sunburst**（`gpt-image-2.6-sunburst`）：将渲染预算用于精细纹理、小号文字和材质，并在多轮生成之间保持主体和光照一致。适用于成品视觉效果，以及对细节要求较高的密集布局

两个变体都支持文本生成图像和图像编辑，最多可使用 16 张参考图像，可选遮罩用于 inpainting，质量等级从 `low` 到 `max`，还提供 `complexity` 控制项，用于设定模型在渲染前对图像的规划程度。该节点同时还提供 GPT Image 2.5、GPT Image 2 和 GPT Image 1.5。

> [!TIP]
>
> 使用 API 节点需要保证你已经正常登录，并在受许可的网络环境下使用，请参考[API 节点总览](https://docs.comfy.org/zh/tutorials/partner-nodes/overview.md)部分文档来了解使用 API 节点的具体使用要求。

> [!TIP]
>
> > [tab] 本地用户
> >
> > 请确保你的 ComfyUI 已经更新。
> >
> > * [ComfyUI 下载](https://www.comfy.org/download)
> > * [ComfyUI 更新教程](https://docs.comfy.org/zh/installation/update_comfyui.md)
> >
> > 本指南里的工作流可以在[工作流模板](https://docs.comfy.org/zh/interface/features/template.md)中找到。如果找不到，可能是 ComfyUI 没有更新。
> >
> > 如果加载工作流时有节点缺失，可能原因有：
> >
> > 1. 你用的不是最新版（每夜版）。
> > 2. 启动时有些节点导入失败。
>
> > [tab] 云端用户
> >
> > * [Cloud](https://cloud.comfy.org) 会在 ComfyUI 稳定版本发布后更新。
> >
> > 所以，如果你发现本文档中有任何核心节点缺失，可能是因为新核心节点尚未在最新稳定版中发布。请等待下一个稳定版发布。

## 入门

1. 将 ComfyUI 更新到 0.44.1 或更高版本
2. 在节点库中搜索 **OpenAI GPT Image 2.6** 并添加该节点
3. 将 `model` 设置为 `gpt-image-2.6-flare` 或 `gpt-image-2.6-sunburst`
4. 将该节点的图像输出连接到保存图像节点，或打开下方四个模板之一

## 节点设置

* **model**：`gpt-image-2.6-flare` 用于快速迭代，`gpt-image-2.6-sunburst` 用于细节优先的渲染
* **prompt**：要生成的内容；当连接了参考图像时，则是编辑指令
* **size**：`auto`、`1024x1024` 或 `3840x2160` 这类预设，或 `Custom`
* **custom\_width / custom\_height**：仅在 `size` 为 `Custom` 时使用，取值为 480 到 3840，步长为 16
* **background**：`auto`、`opaque` 或 `transparent`
* **quality**：`low`、`medium`、`high`、`xhigh` 或 `max`。影响成本和生成时间
* **complexity**：`low`、`medium` 或 `high`（默认）。模型在渲染前对图像进行多少规划
* **images**：可选的参考图像，用于编辑，最多 16 张
* **mask**：可选的遮罩，用于 inpainting，白色区域会被替换。需要恰好一张参考图像
* **n**：要生成多少张图像，1 到 8
* **seed**：为 API 兼容性而保留，后端尚未使用

Flare 是更省钱的方式，用来找到一个可用的 prompt。以 `low` 或 `medium` 质量运行它，直到构图稳定下来，再把胜出的 prompt 放到 Sunburst 上重新运行，得到最终图像。

## GPT Image 2.6 Flare：文生图

根据文本提示词生成海报。该模板要求渲染文字并采用密集排版，这正是 Flare 的速度优势所在：你可以反复调整措辞，而无需每次都付出最终质量的成本。

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt_image_26_flare_t2i.json)
>
> 下载 JSON，或在模板库中搜索“GPT Image 2.6 Flare”

![GPT Image 2.6 Flare 文生图工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt_image_26_flare_t2i-1.webp)

## GPT Image 2.6 Flare：图像编辑

只更改照片中的一个细节，其余部分保持不变：保留面部、姿势、构图和光照，然后更改服装、发型或单个物体。

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt_image_26_flare_image_edit.json)
>
> 下载 JSON，或在模板库中搜索“GPT Image 2.6 Flare”

![GPT Image 2.6 Flare 图像编辑工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt_image_26_flare_image_edit-1.webp)

将此文件上传到 `Load Image` 节点：

> [card] [输入图像：young\_man\_windblown.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/young_man_windblown.png)
>
> 示例输入图像，或使用你自己的图像

## GPT Image 2.6 Sunburst：文生图

生成一张带渲染文字和细腻纹理的成品海报。模板提示词会逐层描述：场景、主体、排版、小型图形元素，然后是配色和渲染风格。

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt_image_26_sunburst_t2i.json)
>
> 下载 JSON 或在模板库中搜索“GPT Image 2.6 Sunburst”

![GPT Image 2.6 Sunburst 文生图工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt_image_26_sunburst_t2i-1.webp)

## GPT Image 2.6 Sunburst：图像编辑

在保持相机角度、构图、主体位置和光线完全一致的前提下编辑照片。Sunburst 能渲染精细的纹理和小号文字，因此海报和密集场景在第二次或第三次处理时依然清晰可靠。

> [card] [下载工作流](https://github.com/Comfy-Org/workflow_templates/blob/main/templates/api_openai_gpt_image_26_sunburst_image_edit.json)
>
> 下载 JSON，或在模板库中搜索“GPT Image 2.6 Sunburst”

![GPT Image 2.6 Sunburst 图像编辑工作流预览](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/templates/api_openai_gpt_image_26_sunburst_image_edit-1.webp)

将此文件上传到 `Load Image` 节点：

> [card] [输入图像：api\_openai\_gpt\_image\_26\_sunburst\_image\_edit\_input.png](https://raw.githubusercontent.com/Comfy-Org/workflow_templates/main/input/api_openai_gpt_image_26_sunburst_image_edit_input.png)
>
> 示例输入图像，也可以使用你自己的图像


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