Nodes/Tikpan Official Nodes/图片|GPT-Image-2 官方修图 V2
ComfyUI Node

图片|GPT-Image-2 官方修图 V2

Masks, 15 references, multipart uploads

By htrert·Created 5 months ago·Updated 2 months ago· 1
图片|GPT-Image-2 官方修图 V2
  • 主图像
  • 参考图1
  • 参考图2
  • 参考图3
  • 参考图4
  • 参考图5
  • 参考图6
  • 参考图7
  • 参考图8
  • 参考图9
  • 参考图10
  • 参考图11
  • 参考图12
  • 参考图13
  • 参考图14
  • 参考图15
  • 参考流
  • 遮罩掩码
  • 编辑结果
  • 渲染日志
💎_源头拿货价福利_💎
获取密钥请访问
API_密钥sk-
编辑指令请根据要求编辑图像;如果提供了遮罩,仅修改遮罩区域并尽量保持未遮罩区域不变。
生成张数1
分辨率档位2K
画面比例Auto
尺寸Auto
画质均衡质量|medium
背景模式自动背景|auto
审核等级auto
遮罩反相false
提示增强true
并发请求数2
超时秒数600
跳过错误false

This is the pack's flagship image editor, and it's a different beast from the legacy -C edit node. TikpanGptImage2OfficialEditV2 hits Tikpan's multipart /v1/images/edits endpoint with the full modern parameter set: a required main image, an optional mask for region-restricted redraws, up to 15 reference images (plus a 参考流 IMAGE-batch input), resolution/aspect/size control, quality tiers, background mode, and a batch mode that submits multiple edit requests concurrently. If the pack has a "do serious image editing in ComfyUI" node, this is it.

How it works

The 主图像 is uploaded via multipart along with any reference images and mask; the node locally preprocesses the image to the chosen size tier (分辨率档位) and aspect ratio before submitting, then polls for the result. The 生成张数 field (1–10) is handled smartly: instead of one giant request, the node submits one request at a time (n=1 each) to dodge per-request limits, optionally concurrent (并发请求数, up to 4). Local knobs like 提示增强 (appends quality phrasing to your edit instruction - not an upstream API param), 遮罩反相, and 超时秒数 round out the batch-control layer. Outputs: 编辑结果 (IMAGE) and 渲染日志 (STRING).

The inputs that actually matter

  • API_密钥 - sk- from tikpan.com.
  • 主图像 - required; the image being edited.
  • 编辑指令 - what to change (default is a well-written brief: edit per the requirements, and if a mask is provided, only modify the masked region, keep the rest unchanged - worth reading, it's the model of a good edit prompt).
  • 遮罩掩码 - optional; white = redraw, black = keep.
  • 参考图1 … 参考图15 / 参考流 - up to 15 references, or a whole IMAGE batch in one wire.
  • 分辨率档位 / 画面比例 / 尺寸 - three stacked controls; 尺寸 overrides the first two when set, otherwise Auto.
  • 画质 - auto / low / medium (default) / high. Cost scales up with quality.
  • 生成张数 and 并发请求数 - batch volume and how fast it burns through it.

Installing it

cd ComfyUI/custom_nodes
git clone https://github.com/htrert/ComfyUI-Tikpan-Pro

restart (or Manager → "Tikpan"). No models - but note the 请求 scale: concurrency × generations is how a single node run multiplies spend.

Where people get burned

  • Local params aren't API params. 提示增强, 遮罩反相, 并发请求数, and 超时秒数 are explicitly local pre/post-processing knobs - the schema's tooltips say they're not passed upstream. Expect results consistent with that (e.g., mask invert happens before upload).
  • Concurrency is a spend multiplier. 4 concurrent × 10 generations = 40 billed edits racing. Start at 2 and check latency before cranking it.
  • Mask polarity. White redraws, black preserves - same convention as the legacy editor, and inverted masks are the classic silent failure.
  • Background mode is reduced. The background param exposes auto/opaque; the tooltip notes transparent isn't surfaced and old workflows get treated as auto. If you need true transparent backgrounds, that path isn't in this UI.
  • Size overrides can surprise. Setting a hard 尺寸 beats the aspect-ratio setting - know which knob is on top.

The bottom line: this is the editor to use for real GPT-Image-2 edit work - masked inpainting, multi-reference fusion, and batch output in one node. Read the tooltips on the local-vs-upstream params once and it's genuinely powerful; skip them and the batch controls will cost you.

Category👑 Tikpan 官方独家节点/01 图片 Image

Inputs (34)

NameTypeDefaultDescription
💎_源头拿货价福利_💎COMBO1 options: 🔥 0.6元RMB兑1美元余额全网底价
获取密钥请访问COMBO1 options: 👉 https://tikpan.com 官方授权获取Key
API_密钥STRINGsk-Tikpan 平台的 API 密钥,以 sk- 开头,从 https://tikpan.com 获取
主图像IMAGE要被编辑的原始图像(必填)
编辑指令STRING请根据要求编辑图像;如果提供了遮罩,仅修改遮罩区域并尽量保持未遮罩区域不变。告诉 AI 怎么改图,例如『把背景换成海边』『增加一只猫』。如果上传了遮罩,仅修改遮罩区域。
生成张数INT11–10本地会按次数分别提交编辑请求;每次请求固定 n=1,避免单次请求超限
分辨率档位COMBO2K本地把主图预处理到对应 Tikpan 支持尺寸后提交
画面比例COMBOAuto结果比例:Auto 跟随主图;选定后会缩放/补边到目标比例
尺寸COMBOAuto强制指定输出尺寸(覆盖档位+比例);一般选 Auto 由前两项决定
画质COMBO均衡质量|mediumlow=快且省钱;medium=日常推荐;high=精细但更慢更贵
背景模式COMBO自动背景|autoTikpan edit 接口 background 参数;transparent 当前不在 UI 暴露,旧工作流会按 auto 处理
审核等级COMBOautoTikpan edit 接口支持 auto / low
遮罩反相BOOLEANfalse本地遮罩预处理,不会作为模型参数传给上游
提示增强BOOLEANtrue本地给编辑指令补充质量描述,不是上游 API 参数
并发请求数INT21–4本地并发提交次数,不会作为模型参数传给上游
超时秒数INT60030–1800本地等待单次请求响应的最长秒数,不是模型参数
参考图1optIMAGE参考图 1:作为 multipart image 字段随主图一起上传
参考图2optIMAGE参考图 2:作为 multipart image 字段随主图一起上传
参考图3optIMAGE参考图 3:作为 multipart image 字段随主图一起上传
参考图4optIMAGE参考图 4:作为 multipart image 字段随主图一起上传
参考图5optIMAGE参考图 5:作为 multipart image 字段随主图一起上传
参考图6optIMAGE参考图 6:作为 multipart image 字段随主图一起上传
参考图7optIMAGE参考图 7:作为 multipart image 字段随主图一起上传
参考图8optIMAGE参考图 8:作为 multipart image 字段随主图一起上传
参考图9optIMAGE参考图 9:作为 multipart image 字段随主图一起上传
参考图10optIMAGE参考图 10:作为 multipart image 字段随主图一起上传
参考图11optIMAGE参考图 11:作为 multipart image 字段随主图一起上传
参考图12optIMAGE参考图 12:作为 multipart image 字段随主图一起上传
参考图13optIMAGE参考图 13:作为 multipart image 字段随主图一起上传
参考图14optIMAGE参考图 14:作为 multipart image 字段随主图一起上传
参考图15optIMAGE参考图 15:作为 multipart image 字段随主图一起上传
参考流optIMAGE批量参考图(接入一个 IMAGE 批次即可)
遮罩掩码optMASK可选遮罩:白色区域=要重绘,黑色区域=保持不变
跳过错误optBOOLEANfalse开启后异常时返回黑图,不打断后续工作流

Outputs (2)

NameTypeDescription
编辑结果IMAGE
渲染日志STRING