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

# OpenAIGPTImageGIFNode - ComfyUI Built-in Node Documentation

> OpenAI GPT Image 2.6 GIF 使用 OpenAI 的 GPT Image 模型根据提示词生成动画 GIF，并将其以帧批次的形式连同帧率一起返回，因此可以直接接入视频或动画图像保存节点。

## 概述

OpenAI GPT Image 2.6 GIF 使用 OpenAI 的 GPT Image 模型根据提示词生成动画 GIF，并将其以帧批次的形式连同帧率一起返回，因此可以直接接入视频或动画图像保存节点。提供两种模型：`gpt-image-2.6-flare` 和 `gpt-image-2.6-sunburst`。

## 输入

### 通用输入

| 参数 | 描述 | 数据类型 | 必填 | 范围 |
| - | - | - | - | - |
| `model` | 用于生成动画的 GPT Image 模型。 | DYNAMIC\_COMBO | 是 | `"gpt-image-2.6-flare"` `"gpt-image-2.6-sunburst"` |

### gpt-image-2.6-flare 和 gpt-image-2.6-sunburst 输入

两种模型共享相同的参数。

| 参数 | 描述 | 数据类型 | 必填 | 范围 |
| - | - | - | - | - |
| `model.prompt` | 要制作成动画的内容。（默认：`""`） | STRING | 是 | N/A |
| `model.size` | 每一帧的尺寸。尺寸越大，仅支持越低的帧数。（默认：`"512x512"`） | COMBO | 是 | `"384x384"` `"512x512"` `"640x640"` `"720x720"` `"768x768"` `"960x960"` `"512x288"` `"288x512"` `"1024x576"` `"576x1024"` `"1280x720"` `"720x1280"` |
| `model.frame_count` | 帧数。帧按阶梯计费：2 到 8、9、10 到 12、13 到 16。（默认：`9`） | INT | 是 | 2 到 16 |
| `model.frame_duration_ms` | 每一帧的显示时长，单位为毫秒。（默认：`200`） | INT | 是 | 20 到 2000（步长 10） |
| `model.background` | 帧背景。透明度由使用 vp9 的 Save WEBM、Save Animated WEBP 和 Save Animated PNG 保留。（默认：`"opaque"`） | COMBO | 是 | `"opaque"` `"transparent"` |
| `model.quality` | 图像质量。等级越高，费用越高、耗时越长。（默认：`"low"`） | COMBO | 是 | `"low"` `"medium"` `"high"` `"xhigh"` `"max"` |
| `model.complexity` | 模型在渲染前对动画进行规划的程度。（默认：`"high"`） | COMBO | 是 | `"low"` `"medium"` `"high"` |
| `model.seed` | 控制节点是否重新运行；无论种子为何，结果都是不确定的。（默认：`42`） | INT | 是 | 0 到 2147483647 |

**参数约束与限制：**

* 帧率由 `model.frame_duration_ms` 计算得出：200 毫秒对应 5 fps。
* 较大的 `model.size` 与较高的 `model.frame_count` 组合不可用，价格标签上会显示“Size too large for this frame count”。

## 输出

| 输出名称 | 描述 | 数据类型 |
| - | - | - |
| `frames` | 以帧批次形式返回的动画，可直接用于视频或动画图像保存节点。 | IMAGE |
| `fps` | 每秒帧数，从返回的 GIF 帧时长中读取。 | FLOAT |

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

***

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


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