
This ComfyUI workflow is designed to seamlessly integrate a product into a character's hand within an image, making it ideal for creating user-generated content (UGC) that features products in a personalized context. The workflow leverages several key nodes and models to achieve this effect. It begins with the 'LoadImage' node, which allows users to upload images of both the character and the product. The 'GeminiImage2Node', powered by the Gemini3 Pro Image Preview model, processes these images to ensure compatibility and optimal integration. This node is crucial for maintaining the visual integrity and realism of the final image. The workflow also incorporates the 'e20a7fb5-3d72-41c9-a78c-fdf287ec46ec' node, which utilizes advanced AI techniques to accurately position the product in the character's hand. Finally, the 'SaveImage' node allows users to export the final image, ready for use in marketing materials or social media. This workflow is particularly useful for businesses and marketers looking to create engaging visual content that showcases their products in a relatable and eye-catching manner.
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 "Add Product to Character’s Hand, AI UGC" (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.
FAQ














