skill

Video Outpainting

Video outpainting on RunComfy via the `runcomfy` CLI — extend the spatial canvas of a video, change aspect ratio (9:16 vertical to 16:9 horizontal or vice versa), add environment beyond the original frame while preserving the central action. Routes prompt-shaped spatial extension through Wan 2-7 edit-video and points the agent at dedicated ComfyUI outpaint workflows when seam quality matters for hero delivery. Triggers on "video outpaint", "video outpainting", "extend video canvas", "expand v...

prime-skills365,632+ installsVetted

About

# Video Outpainting

Extend a video's spatial canvas — uncrop vertically or horizontally, change aspect ratio while preserving the central action. This skill routes spatial extension through Wan 2-7 edit-video for prompt-shaped canvas changes, and points the agent at dedicated ComfyUI outpaint workflows when hero-grade seam quality matters.

[runcomfy.com](https://www.runcomfy.com/?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-outpainting) · [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) · [CLI docs](https://docs.runcomfy.com/cli/introduction?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-outpainting)

## 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. 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):**

```bash 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 ```

### Prompting tips

- **Lead with the canvas change**: `"Extend the canvas to 16:9"`, `"Extend downward to show more ground"`, `"Add environment on the left and right by ~30% each"`. - **Describe what extends**: same background style, same lighting, same depth of field, same camera distance. - **End with preservation**: `"Preserve the original action and subject framing in the center"` — without this Wan may restyle the central content. - **Expect quality variance at the seam.** Wan 2-7 wasn't trained specifically for outpaint; for hero delivery use a ComfyUI workflow.

---

## When you need hero-grade seam quality

The endpoint above handles aspect-ratio swap well for most uses. For spatial frame expansion with strict temporal consistency, seam handling, and motion-aware fill, RunComfy hosts dedicated ComfyUI workflows:

| Workflow | What | |---|---| | [LTX 2-3 outpainting in ComfyUI — spatial frame expansion](https://www.runcomfy.com/comfyui-workflows/ltx-2-3-outpainting-in-comfyui-spatial-frame-expansion-workflow?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-outpainting) | Dedicated video outpainting workflow using LTX 2-3 | | Browse [comfyui-workflows](https://www.runcomfy.com/comfyui-workflows?utm_source=skills.sh&utm_medium=skill&utm_campaign=video-outpainting) for "outpaint" | Additional video outpainting graphs from the community |

These are GUI workflows, not CLI endpoints. The CLI can't reach them — open them in the RunComfy ComfyUI cloud.

---

## Common patterns

### TikTok / Reels vertical → YouTube horizontal - **Route 1 (Wan 2-7 Edit-Video)** with aspect 16:9 prompt. Quick path for non-hero content. - **ComfyUI LTX 2-3 outpainting** for hero ad delivery.

### Square Instagram → wide brand banner - **Route 1** with prompt extending sides.

### Old 4:3 footage → modern 16:9 - **ComfyUI workflow** path — old-footage outpaint needs careful seam handling that prompt-shaped edit doesn't deliver.

### Multi-step outpaint - Pass 1 with Route 1 extends ~30%, then re-pass on the output. Quality degrades after 2 passes.

### What this skill doesn't do - **Image outpainting** (single still): see [`image-outpainting`](https://www.skills.sh/agentspace-so/runcomfy-agent-skills/image-outpainting). - **Video extend** (more frames in time): see [`video-extend`](https://www.skills.sh/agentspace-so

Install

Run this command

npx skills add prime-skills/runcomfy-agent-skills

Works with

claude appclaude codeclaude apicursorcodexwindsurfclinezed

Manual steps

Install with `npx skills add prime-skills/runcomfy-agent-skills`, or clone the repository and copy the `video-outpainting` folder into your Claude skills directory.

View source
License: MITBy prime-skills

Frequently asked questions

What is the Video Outpainting skill?

Video outpainting on RunComfy via the `runcomfy` CLI — extend the spatial canvas of a video, change aspect ratio (9:16 vertical to 16:9 horizontal or vice versa), add environment beyond the original frame while preserving the central action. Routes prompt-shaped spatial extension through Wan 2-7 edit-video and points the agent at dedicated ComfyUI outpaint workflows when seam quality matters for hero delivery. Trigg…

How do I install Video Outpainting?

Run this in your terminal:

npx skills add prime-skills/runcomfy-agent-skills
Which AI tools does Video Outpainting work with?

It works with claude_app, claude_code, claude_api, cursor, codex, windsurf, cline, zed.

Who made Video Outpainting?

prime-skills, released under the MIT license.

Is Video Outpainting free?

Yes, it is free to use under the MIT license.

Related assets

More curated picks in Productivity & Office.

All Video Outpainting alternatives →

Audit before you install

Run any source through our checks - AI visibility, security, performance, and stack detection.

More in Productivity & Office