Nodes/ComfyUI-dapaoAPI/🧩Seedream-v5-pro图层拆分@炮老师的小课堂
ComfyUI Node

🧩Seedream-v5-pro图层拆分@炮老师的小课堂

One image in, background plus 16 transparent layers out — Seedream's layer decomposition as a node

By paolaoshi·Created 10 months ago·Updated a day ago· 217
🧩Seedream-v5-pro图层拆分@炮老师的小课堂
  • 🖼️ 待拆分图像
  • 🖼️ 基础背景图
  • 🧩 透明图层批次
  • 🎭 图层蒙版批次
  • 🔗 结果链接
  • 📋 图层信息
  • 🗂️ PSD透明图层批次
🔑 API密钥
🤖 模型seedream-v5-pro/layer-decomposition
📝 拆分要求
🧩 清晰度自动
🧠 拆分优化标准模式
📦 基础图格式JPEG
🎲 随机种0
🔁 最大轮询秒数1200
⏱️ 轮询间隔5
⌛ 请求超时900

If you've ever tried to cut a subject out of a generated image for compositing, you know the drill: background-removal models give you one alpha, and that's it. DapaoSeedreamV5ProLayerDecompositionNode ("🧩Seedream-v5-pro图层拆分@炮老师的小课堂") is different - it calls ByteDance's seedream-v5-pro/layer-decomposition endpoint and asks the model to actually understand the image's structure. One image goes in; you get the background plus up to 16 transparent layers out, which is the difference between "a cutout" and "a workable layered file."

What it does

The endpoint splits a single image into a base background and individually separated subject layers with alpha - think of it as a very smart, very literal interpretation of "decompose this scene into its pieces." You get the layers as an IMAGE batch, their corresponding MASK batch, and even a "PSD" layer batch for stacking back together. That's a genuinely useful capability for character cards, merch mockups, or any compositing workflow that used to mean hours of manual masking.

Inputs that matter

  • 🖼️ 待拆分图像 - the image to decompose. Tooltip is firm: exactly one image, 512–6000px, up to 30MB.
  • 📝 拆分要求 - natural language: "split out the person and the coffee cup" - or a structured <bbox>x1 y1 x2 y2</bbox> bounding-box tag if you want to force specific regions. Coordinates are 0–1000.
  • 🧩 清晰度 - 自动 / 1K / 1.5K / 2K.
  • 🧠 拆分优化 - 标准模式 or 快速模式.
  • 📦 基础图格式 - JPEG or PNG for the background. The transparent layers are always PNG, regardless.
  • 🎲 随机种 - the layer endpoint has no seed; cache control only.

Outputs

Six of them: 🖼️ 基础背景图 (the clean background), 🧩 透明图层批次 (IMAGE batch - each subject as its own alpha layer), 🎭 图层蒙版批次 (MASK batch matching those layers), 🔗 结果链接, 📋 图层信息 (what each layer is), and 🗂️ PSD透明图层批次 (the same layers arranged for reassembly). If you're building a compositing graph, the IMAGE and MASK batches are the pair you'll wire onward.

Install and expectations

Standard pack install (Manager → search dapaoAPI, or clone + pip install -r requirements.txt + restart) and a dapaoAI API key. No local models.

Set expectations before you spend: this is a cloud call against a very new API endpoint, and layer decomposition is only as smart as the model's understanding of your image. Clean, well-separated subjects work great; a crowded scene with overlapping elements will produce layers that need cleanup - the endpoint is impressive, not magic. Also note the 404 branch in the source is handled: if your relay hasn't configured this model yet, you get a clear "中转站没有配置 layer-decomposition" error rather than a cryptic failure. It's the sort of node that's either exactly what your workflow needs or a fun toy you run twice - but for anyone doing layered asset work from generated images, it's the only tool of its kind in this pack, and arguably the most novel one in it.

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

Inputs (11)

NameTypeDefaultDescription
🔑 API密钥STRING密钥只用于请求 https://api.dapaoai.com,不会写入配置文件。
🤖 模型COMBOseedream-v5-pro/layer-decomposition1 options: seedream-v5-pro/layer-decomposition
🖼️ 待拆分图像IMAGE必须接入且只能接入1张图像;支持512到6000像素、最大30MB。
📝 拆分要求STRING可用自然语言指定对象,也支持 <bbox>x1 y1 x2 y2</bbox>,坐标范围0到1000。
🧩 清晰度COMBO自动4 options: 自动, 1K, 1.5K, 2K
🧠 拆分优化COMBO标准模式2 options: 标准模式, 快速模式
📦 基础图格式COMBOJPEG透明图层始终返回PNG。
🎲 随机种INT00–18446744073709550000专用拆层接口没有 seed 参数;此值只控制 ComfyUI 缓存和重新执行。
🔁 最大轮询秒数optINT120060–3600
⏱️ 轮询间隔optINT53–30
⌛ 请求超时optINT90030–1800

Outputs (6)

NameTypeDescription
🖼️ 基础背景图IMAGE
🧩 透明图层批次IMAGE
🎭 图层蒙版批次MASK
🔗 结果链接STRING
📋 图层信息STRING
🗂️ PSD透明图层批次IMAGE