产品场景合成与重新光照 - After
产品场景合成与重新光照 - Before

本 ComfyUI 工作流旨在将产品图片无缝融合到背景场景中,并通过先进 AI 技术实现真实重光。流程以 LoadImage 节点加载产品和背景图片开始,随后利用 RegexReplace 节点为合成做准备。核心为 ByteDanceSeedreamNode,调用 Seedream 4.5 模型智能重光合成图片,确保光影自然一致。该技术特别适合无需复杂拍摄或手动编辑即可制作专业产品图片。自动化合成与重光流程,节省时间并提升产品图片视觉吸引力。

API

Use this workflow from code

Every Comfy workflow is a JSON graph. The payload below is this workflow, exactly as ComfyUI runs it — fetch it from the URL, keep it in version control, or load it in ComfyUI and run it node by node.

templates-product_scene_relight.json
Fetching workflow JSON…

Run it from TypeScript or Python with the Comfy SDK. The same code targets Comfy Cloud or a ComfyUI you host yourself — only the base URL changes.

// Install (beta)
npm i @comfyorg/sdk

// Run "产品场景合成与重新光照" (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });

// This workflow, exported in API format (see note below)
const wf = await client.workflows.fromFile("templates-product_scene_relight_api.json");

const asset = client.assets.fromFile("input.png");
wf.setInput("1", "image", asset); // LoadImage

const job = await client.run(wf);
await job.getOutputs("23")[0].toFile("output.png"); // SaveImage

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API).

Comfy Cloud API access requires a plan with an API key.

常见问题

常见问题

查看所有工作流
Character
Cinematic
Image to Video
Lip Sync
Multiple Angles
Portrait
Style Reference
Style Transfer
Text to Video
Video Generation
Video
Showing 30 of 30 templates