
本 ComfyUI 工作流可将产品无缝集成到图片中角色的手中,适合制作个性化用户生成内容(UGC),让产品在真实场景中呈现。流程利用多个关键节点和模型实现该效果。首先通过 LoadImage 节点上传角色和产品图片。GeminiImage2Node(由 Gemini3 Pro Image Preview 模型驱动)处理图片,确保兼容性和最佳集成效果。该节点对最终图片的视觉一致性和写实度至关重要。流程还包含 e20a7fb5-3d72-41c9-a78c-fdf287ec46ec 节点,利用先进 AI 技术将产品准确放置在角色手中。最后,SaveImage 节点导出最终图片,便于用于营销或社交媒体。该流程适合企业和市场人员制作吸引人的产品展示内容。
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-subject_holding_product.app_api.json");
const asset = client.assets.fromFile("input.png");
wf.setInput("10", "image", asset); // LoadImage
const job = await client.run(wf);
await job.getOutputs("15")[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.
常见问题














