VOID: Video Inpainting - After
VOID: Video Inpainting - Before

This ComfyUI tutorial shows how to remove objects from a video using the VOID: Video Inpainting workflow. The graph is simple and fast to learn: LoadVideo reads your clip, a single VOID inpainting node (c3157b75-484a-459e-b8de-57823bef5130) performs segmentation and temporal inpainting, and SaveVideo writes the cleaned result. A MarkdownNote in the canvas provides inline guidance. Under the hood, segmentation is powered by SAM3 (using the sam3.1_multiplex_fp16.safetensors checkpoint). You can guide what to erase with a text cue encoded by a T5-XXL text encoder, a hand-drawn mask, or both for maximum precision.

Technically, the core VOID node runs a two-pass, temporally-aware inpainting model from the Netflix/void-model project. Pass one removes the masked content per frame and estimates plausible backgrounds; pass two propagates structure over time to reduce flicker and preserve motion parallax. This makes it well-suited for real object removal rather than single-frame patching: reflections, shadows, and brief occlusions are handled more coherently across frames. Because it operates in fp16, it balances quality and speed on modern GPUs while keeping memory use manageable.

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.

fa1f01a51d17.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