Nodes/ComfyUI-dapaoAPI/🦁GPT-image-2.6全能图像@炮老师的小课堂
ComfyUI Node

🦁GPT-image-2.6全能图像@炮老师的小课堂

Flare, Sunburst, and no invented model names

By paolaoshi·Created about a year ago·Updated 15 days ago· 246
🦁GPT-image-2.6全能图像@炮老师的小课堂
  • 🖼️ 图像1
  • 🖼️ 图像2
  • 🖼️ 图像3
  • 🖼️ 图像
  • 🔗 图片链接
  • 📋 响应信息
◄🔑 API密钥►
◄🤖 模型Flare(普通丨低价丨全分辨率)►
◄📝 提示词一张高端商业摄影海报,干净的自然光,细节清晰,质感高级►
◄📐 图片尺寸/比例模型默认►
◄🧩 清晰度1K►
◄🎨 画质medium(中质量)►
◄🖼️ 出图数量1►
◄⚡ 异步模式false►
◄🎲 随机种0►
◄🔁 最大轮询秒数1200►
◄⏱️ 轮询间隔5►
◄⌛ 请求超时900►

🦁GPT-image-2.6全能图像@炮老师的小课堂 is the still-image half of the dapaoAPI pack: text-to-image, or 1–3 reference images as an edit prompt, at 1K/2K/4K, returning an ordinary IMAGE batch you can wire straight into Save Image, an upscaler, or a masked composite. Nothing loads on your GPU. It calls https://api.dapaoai.com with your key and hands back tensors as if a local sampler had made them.

Why you'd reach for it: text inside images. GPT Image is what people use when the picture has to contain legible words - menus, posters, UI mockups - where local checkpoints still produce decorative gibberish. And "全能" is literal in one way: wiring any reference image flips it from generation to editing, so the same node does your one-shot prompt and your "keep this character, new jacket" pass.

What it isn't: a GIF or SVG node. The author's own description says so, because the wider image-2.6 family has those outputs elsewhere. Static images only.

How it works

The class subclasses the pack's 2.5 node, which subclasses the 2.0 one, so the plumbing is well-worn by now. 🤖 模型 has two labels - Flare(普通丨低价丨全分辨率) and Sunburst(高精丨低价丨全分辨率) - which resolve to gpt-image-2.6-flare and gpt-image-2.6-sunburst. One detail worth liking: 2.6 uses the same model id at every resolution, with the 1K/2K/4K choice passed as a separate resolution field. No -2k/-4k suffixes invented on top of a public id, which is exactly the kind of thing that silently breaks when a relay changes its routing.

Then it splits in two. With no reference images, your prompt goes to /v1/images/generations and rides the relay's persistent queue with polling. Add even one reference and it switches to POST /v1/images/edits, serialised as multipart with repeated image[] fields - synchronous, and deliberately with no async parameter. Every input is resized to a 2048px long edge and sent as PNG. Results are decoded to PIL and concatenated into a single batch tensor, with a guard that refuses mismatched dimensions rather than handing ComfyUI a malformed batch.

The inputs you actually set

  • 🔑 API密钥 - relay key. Per the tooltip, used only for api.dapaoai.com and never written to a config file.
  • 📝 提示词 - multiline, and it has a default you should overwrite.
  • 🧩 清晰度 - 1K, 2K, 4K. This is your pixel budget, and your bill.
  • 🖼️ 图像1–3 - up to three total, counting batches. Connecting one in switches you to edit mode.

Then the ones that matter more than they look. 🎨 画质 runs low → medium → high → xhigh → max; pushing past high costs time and money for a difference you may not see at 1K. 🖼️ 出图数量 is 1–10, and more than one only works cleanly when the relay returns matching dimensions. 📐 图片尺寸/比例 offers 模型默认 plus ratios from 1:1 to 2:1 in both orientations. ⚡ 异步模式 only affects the text-to-image path - the edit path ignores it and waits.

🎲 随机种 is the trap for newcomers: it controls ComfyUI's cache and the local job identity, and is never sent to the API. Changing it doesn't reseed GPT - it just guarantees a fresh, freshly-billed request. The optional tail is 🔁 最大轮询秒数 (1200), ⏱️ 轮询间隔 (5s) and ⌛ 请求超时 (900s).

Outputs

🖼️ 图像 is a standard ComfyUI IMAGE (batch, one frame per returned picture). 🔗 图片链接 is the newline-joined URL list, handy if you want the hosted original. 📋 响应信息 is a Chinese report: mode, the actual model id sent, images requested versus returned, elapsed time, raw JSON.

Notice what's missing: a price. The author deliberately stopped printing one, because the old documented per-image number didn't match what the relay charged. With 4K that matters - watch the relay's billing page, not the node.

Installing it

ComfyUI Manager → search dapaoAPI → install → restart. Or:

cd ComfyUI/custom_nodes
git clone https://github.com/paolaoshi/ComfyUI-dapaoAPI
cd ComfyUI-dapaoAPI
pip install -r requirements.txt

That installs requests, Pillow, torch, numpy, zhipuai, aiohttp, nest-asyncio, scipy - Python only, zero model downloads. Restart ComfyUI properly; a browser refresh won't load new Python. Then get a key: register at the relay, buy a redemption code, create an API key under the default group, paste it into 🔑 API密钥.

Where it breaks

The edit path is the one to respect. It's synchronous - no polling, no task id to recover - so ⌛ 请求超时 is a real deadline, not a formality. If a 4K edit times out, the request may still have been processed and billed, and the POST is never retried automatically. Check the relay's usage log before you hit Run again.

The other repeat offender is the reference limit. It counts across all input slots plus image batches, so an IMAGE batch of four feeding 🖼️ 图像1 fails with a message naming the three-image cap. Same story for mixed-dimension returns when 🖼️ 出图数量 is above one.

Finally, the honest framing: this pack and its relay have no Reddit footprint at all in our corpus, so there's no thread where someone already hit your error. 📋 响应信息 carries the raw request and response - that's your debugging surface. And since it's a third-party wrapper holding your key, sending prompts and reference photos to a server you don't control, from a README that doubles as a storefront, treat the prices as claims until your own invoice agrees.

Category🤖dapaoAPI/🍬大炮AI主力维护🍬

Inputs (15)

NameTypeDefaultDescription
🔑 API密钥STRING密钥只用于请求 https://api.dapaoai.com,不会写入配置文件。
🤖 模型COMBOFlare(普通丨低价丨全分辨率)2 options: Flare(普通丨低价丨全分辨率), Sunburst(高精丨低价丨全分辨率)
📝 提示词STRING一张高端商业摄影海报,干净的自然光,细节清晰,质感高级—
📐 图片尺寸/比例COMBO模型默认16 options: 模型默认, 1:1, 3:2, 2:3, 4:3, 3:4, +10
🧩 清晰度COMBO1K3 options: 1K, 2K, 4K
🎨 画质COMBOmedium(中质量)5 options: low(低质量), medium(中质量), high(高质量), xhigh(超高), max(最高)
🖼️ 出图数量INT11–10—
⚡ 异步模式BOOLEANfalse文生图沿用妙笔工坊队列;接入参考图后自动使用图生图编辑接口同步等待,不向编辑接口发送异步参数。提示词列表仍支持并发。
🎲 随机种INT00–18446744073709550000仅控制 ComfyUI 缓存,不发送给接口。
🔁 最大轮询秒数optINT120060–3600—
⏱️ 轮询间隔optINT53–30—
⌛ 请求超时optINT90030–1800—
🖼️ 图像1optIMAGE接入任意参考图后自动切换为图生图,所有接口和批次合计最多3张。
🖼️ 图像2optIMAGE接入任意参考图后自动切换为图生图,所有接口和批次合计最多3张。
🖼️ 图像3optIMAGE接入任意参考图后自动切换为图生图,所有接口和批次合计最多3张。

Outputs (3)

NameTypeDescription
🖼️ 图像IMAGE—
🔗 图片链接STRING—
📋 响应信息STRING—