This ComfyUI workflow builds polished product B‑roll shots for ads using three practical paths: prompt-only generation, reference-guided inserts, and light video edits. At its core, ByteDance2TextToVideoNode synthesizes short clips from your text prompt, while ByteDance2ReferenceNode lets you anchor style and object identity with one or more images (for example, a product packshot and a scene still). LoadImage and LoadVideo nodes bring your assets into the graph, PrimitiveNode supplies key parameters (resolution, frame count, FPS, seed), Video Slice isolates a target segment from an input clip, and SaveVideo writes the final result. MarkdownNote inside the workflow documents the intended usage and includes example prompts.

Method 1 (Prompt Only) is the fastest way to create a fresh B‑roll shot: write a descriptive prompt (e.g., the provided smartphone-in-forest orbit example), set frames/FPS/size via PrimitiveNode, and render with ByteDance2TextToVideoNode. Method 2 (Reference Images) adds control: feed a product image and a scene still into ByteDance2ReferenceNode to match lighting, color, and composition before generation, producing an insert shot that blends into an existing edit. Method 3 (Video Edit) is for subtle replacements: use LoadVideo and Video Slice to define a segment you want to enhance, mirror its timing and dimensions with PrimitiveNode, guide generation with prompt and references, then export with SaveVideo for drop‑in replacement in your NLE.

Because the key parameters are explicit, it’s easy to keep outputs consistent: lock the seed for reproducibility, match FPS and resolution to your timeline, and keep clip lengths short (3–5 seconds) for sharper detail and steadier motion. The reference path is especially effective for maintaining product identity and scene continuity while still exploring creative camera moves or lighting within your prompt.

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.

603b2d01feb0.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 this workflow (TypeScript)
import { Comfy } from "@comfyorg/sdk";

const client = new Comfy({ apiKey: "comfyui-..." });
const wf = await client.workflows.fromFile("workflow_api.json");
const job = await client.run(wf);
await job.getOutputs("<output-node-id>")[0].toFile("output.png");

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.

FAQ

Frequently Asked Questions

View all workflows
Showing 30 of 30 templates