Loading...
Loading...
Region edits across video frames on RunComfy via the `runcomfy` CLI — remove an object that appears across many frames, clean up wires or watermarks, replace a region with matching motion. Routes across Wan 2-7 edit-video (default, prompt-driven region edits with spatial language), Lucy Edit Restyle (identity-stable region-aware restyle), and Seedream 4-0 edit-sequential (when treating the clip as a frame stack). Picks the right route based on whether the change is prose-driven, identity-locked, or needs frame-by-frame still inpaint chained into a video. Triggers on "video inpaint", "video inpainting", "remove from video", "mask region in video", "clean up video", "remove object from clip", "video patch", "frame-by-frame edit", "remove watermark from video", "remove passing person", or any explicit ask to edit a region across video frames.
npx skill4agent add agentspace-so/runcomfy-agent-skills video-inpainting# 1. Install (see runcomfy-cli skill for details)
npm i -g @runcomfy/cli # or: npx -y @runcomfy/cli --version
# 2. Sign in
runcomfy login # or in CI: export RUNCOMFY_TOKEN=<token>
# 3. Edit a video (closest CLI-reachable approach)
runcomfy run wan-ai/wan-2-7/edit-video \
--input '{"video_url": "...", "prompt": "..."}' \
--output-dir ./outruncomfy-cliwan-ai/wan-2-7/edit-videoWan 2-7's video edit endpoint. Drive frame-by-frame edits via prompt + the source video. Pick for: "remove the watermark in the bottom-right", "replace the sky with a sunset" — prompt-driven region intent without an explicit mask. Avoid for: precise pixel-level region targeting — use a ComfyUI workflow.
decart/lucy-edit/restyleIdentity-stable video restyle that handles region-aware edits. Pick for: lightweight outfit / object swap that needs to track across frames. Avoid for: surgical mask-driven inpaint — ComfyUI workflow.
bytedance/seedream-4-0/edit-sequentialSequential still edits — feed a sequence of frames as inputs, apply the same edit instruction across each, useful if you're treating the video as a frame stack. Pick for: short, low-frame-rate sequences where each frame can be edited independently and a separate tool re-encodes to video. Avoid for: long clips, motion-coherent fills — temporal consistency degrades.
wan-ai/wan-2-7/edit-videoruncomfy run wan-ai/wan-2-7/edit-video \
--input '{
"video_url": "https://your-cdn.example/source.mp4",
"prompt": "Remove the watermark in the bottom-right corner across all frames. Preserve all other content exactly. Match background where the watermark was."
}' \
--output-dir ./out"bottom-right corner""the cables overhead""the second person from the left""Preserve all other content exactly"video-edit| Need | Workflow class |
|---|---|
| LTX 2-3 video inpaint (targeted frame editing) | |
| Flux inpainting (still) — chain frame-by-frame | |
| Flux ControlNet inpainting | |
| Wan 2-2 video edit (broader video edit including inpaint) | search comfyui-workflows for "wan 2-2 edit" |
"remove the person walking in the background, fill with matching environment"image-inpaintingvideo-outpaintingvideo-editwan-models| code | meaning |
|---|---|
| 0 | success |
| 64 | bad CLI args |
| 65 | bad input JSON / schema mismatch |
| 69 | upstream 5xx |
| 75 | retryable: timeout / 429 |
| 77 | not signed in or token rejected |
--output-dirnpm i -g @runcomfy/clinpx -y @runcomfy/cliruncomfy login~/.config/runcomfy/token.jsonRUNCOMFY_TOKEN--inputmodel-api.runcomfy.net*.runcomfy.net*.runcomfy.comBash(runcomfy *)runcomfy-clivideo-editimage-inpaintingvideo-outpaintingai-video-generation