skill
Video Inpainting
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-lock...
About
# Video Inpainting
Region edits across video frames — remove an object that appears across many frames, clean up wires or watermarks, replace a region with motion that matches the rest of the clip. This skill routes across the prompt-driven video edit endpoints in the RunComfy catalog and gives the agent a clear default for each intent.
[runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-inpainting) · [Wan 2-7 edit-video](https://www.runcomfy.com/models/wan-ai/wan-2-7/edit?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-inpainting) · [CLI docs](https://docs.runcomfy.com/cli/introduction?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-inpainting)
## Powered by the RunComfy CLI
```bash # 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 ./out ```
CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill.
---
## Pick the right model
Routes via prompt-driven region edits — the model resolves the targeted region from spatial language across all frames.
**Wan 2-7 Edit-Video** — `wan-ai/wan-2-7/edit-video` *(default)* > Wan 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.
**Lucy Edit Restyle** — `decart/lucy-edit/restyle` > Identity-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.
**Seedream 4-0 Edit-Sequential** — [`bytedance/seedream-4-0/edit-sequential`](https://www.runcomfy.com/models/bytedance/seedream-4-0/edit-sequential?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-inpainting) > Sequential 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.
---
## Route 1: Wan 2-7 Edit-Video — closest CLI path
**Model**: `wan-ai/wan-2-7/edit-video` **Catalog**: [Wan 2-7 edit-video](https://www.runcomfy.com/models/wan-ai/wan-2-7/edit?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-inpainting)
### Invoke
```bash runcomfy 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 ```
### Prompting tips
- **Describe the region in spatial language** — `"bottom-right corner"`, `"the cables overhead"`, `"the second person from the left"`. - **Lead with preservation**: `"Preserve all other content exactly"` — without this Wan may restyle frames inadvertently. - **One change per call.** Compound edits (remove A and replace B) tend to drift; split into sequential edit passes.
For broader video edit, see [`video-edit`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/video-edit).
---
## When you need pixel-precise mask propagation
The endpoints above are prompt-driven — they resolve the target region from spatial language. For pixel-precise mask propagation with SAM2 segmentation tracking + temporal-aware inpaint backfill, RunComfy hosts dedicated ComfyUI workflows:
| Need | Workflow class | |---|---| | LTX 2-3 video inpaint (targeted frame editing) | `ltx-2-3-inpaint-in-comfyui-targeted-video-frame-editing` | | Flux inpainting (still) — chain frame-by-frame | `comfyui-flux-inpainting-workflow` | | Flux ControlNet inpainting | `flux-controlnet-inpainting-image-repair` | | Wan 2-2 video edit (broader video edit including inpaint) | search [comfyui-workflows](https://www.runcomfy.com/comfyui-workflows?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-inpainting) for "wan 2-2 edit" |
These are GUI workflows, not CLI endpoints. The CLI can't reach them — open them in the RunComfy ComfyUI cloud for proper mask propagation + temporal consistency.
---
## Common patterns
### Remove watermark / logo across entire clip - **Route 1 (Wan 2-7 Edit-Video)** with spatial language. Acceptable for most cases. - If quality not enough: open [LTX 2-3 inpaint workflow](https://www.runcomfy.com/comfyui-workflows/ltx-2-3-inpaint-in-comfyui-targeted-video-
Install
Run this command
npx skills add prime-skills/runcomfy-agent-skillsWorks with
Manual steps
Install with `npx skills add prime-skills/runcomfy-agent-skills`, or clone the repository and copy the `video-inpainting` folder into your Claude skills directory.
Frequently asked questions
What is the Video Inpainting skill?
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). Pi…
How do I install Video Inpainting?
Run this in your terminal:
npx skills add prime-skills/runcomfy-agent-skillsWhich AI tools does Video Inpainting work with?
It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.
Who made Video Inpainting?
prime-skills, released under the MIT license.
Is Video Inpainting free?
Yes, it is free to use under the MIT license.
npx skills add vercel-labs/skills
npx skills add mattpocock/skills
npx skills add mattpocock/skills
npx skills add mattpocock/skills
npx skills add mattpocock/skills
npx skills add genmedia-labs/skills
Audit before you install
Run any source through our checks - AI visibility, security, performance, and stack detection.
Automated Web Security Scan
security
PageSpeed Analyzer
performance
AI Content Quality Test
arabic content
AI Agent / MCP Server Tester
ai testing
Site Stack Detector
migration
AI SEO / AEO / GEO Audit
ai visibility
llms.txt Generator
ai visibility
Readability Score
arabic content
Schema / JSON-LD Builder
ai visibility
AI Cost Calculator
ai testing
Headline Analyzer
arabic content