此 ComfyUI 工作流程專為將產品圖像無縫整合至背景場景並進行真實重光設計。流程以 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.
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"); // SaveImageThe 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.
常見問題
常見問題
Showing 30 of 30 templates
















