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