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.

GET https://comfy.org/workflows/download/603b2d01feb0.json
Fetching workflow JSON…

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

# Install (beta)
pip install comfy-sdk        # Python
npm i @comfyorg/sdk          # TypeScript

# Run this workflow (Python)
from comfy_sdk import Comfy

client = Comfy(api_key="comfyui-...")
wf = client.workflows.from_file("workflow_api.json")
job = client.run(wf)
for output in job.get_outputs("<output-node-id>"):
    output.to_file(output.name)

The SDK takes a workflow in API format: open this workflow in ComfyUI and use File → Export Workflow (API). API access requires a Comfy Cloud plan with an API key. SDK docs · Get an API key

FAQ

Frequently Asked Questions

View all workflows
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