Skill 详情
video-inpainting
通过 `runcomfy` CLI 在 RunComfy 上跨视频帧进行区域编辑——移除出现在多帧中的物体、清理电线或水印、用匹配的运动替换某个区域。在 Wan 2-7 edit-video(默认,使用空间语言进行提示驱动的区域编辑)、Lucy Edit… 之间路由。
匹配原因: AI 视频区域编辑,直接与视频编辑方面相关。
使用前先检查
自动化审核只检查相关性,不代表安全审查或推荐。使用前请阅读来源中的说明。
SKILL.md
这段内容是审核时保存的快照。外部来源才是完整且最新的版本。
---
name: video-inpainting
allowed-tools: Bash(runcomfy *)
displayName: "Video Inpainting"
description: >
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.
homepage: https://www.runcomfy.com
license: MIT
---
# 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_ur在 GitHub 阅读完整来源 (打开外部页面)