SKILL.md
$29
3. Spatially extend a video (closest CLI-reachable approach)
runcomfy run wan-ai/wan-2-7/edit-video
--input '{"video_url": "...", "prompt": "...extend canvas..."}'
--output-dir ./out
CLI deep dive: [`runcomfy-cli`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/runcomfy-cli) skill.
---
## Pick the right model
**Wan 2-7 Edit-Video** — `wan-ai/wan-2-7/edit-video` *(default)*
> Prompt-driven video edit; accepts spatial extension language ("extend the canvas to 16:9 by adding matching environment on the left and right"). Wide enough quality for social and most internal uses.
> Pick for: aspect-ratio swap (vertical ↔ horizontal), social-cuts, uncrop where seam quality is acceptable.
> Avoid for: hero ad delivery with strict seam-quality requirements — use a ComfyUI outpainting workflow.
For broader video edit see [`video-edit`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/video-edit).
---
## 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-outpainting)
### Invoke
**Aspect-ratio swap (9:16 vertical → 16:9 horizontal):**
runcomfy run wan-ai/wan-2-7/edit-video \
--input '{
"video_url": "https://your-cdn.example/vertical-clip.mp4",
"prompt": "Extend the canvas to 16:9 horizontal by adding matching environment on the left and right sides. Continue the existing background style, lighting, and camera distance throughout the clip. Preserve the original action and subject framing in the center."
}' \
--output-dir ./out