wan-2-7
Generate text-to-video with Wan 2.7 (Wan-AI's flagship motion model) on RunComfy. Documents Wan 2.7's strengths (multi-reference conditioning, audio-driven lip-sync via `audio_url`, smoother transitions, prompt expansion), the duration / resolution / aspect-ratio schema, and when to route to HappyHorse 1.0 / Seedance 2.0 / Kling / LTX 2 instead. Calls `runcomfy run wan-ai/wan-2-7/text-to-video` through the local RunComfy CLI. Triggers on "wan", "wan 2.7", "wan-2-7", "wan video", or any explicit ask to generate video with this model.
1How It Works & Mechanism
Implemented via 'zero-code + external CLI delegation': wan-2-7/ contains only a single SKILL.md without scripts; at runtime, the host agent executes `runcomfy run wan-ai/wan-2-7/text-to-video --input '<JSON>' --output-dir <path>` via Bash, packaging prompts and parameters into JSON and delegating to the out-of-repo CLI. The skill's value-add lies in the documented schema and prompting methodology rather than any local inference capability (video generation itself occurs in the RunComfy cloud).
The skill invokes `runcomfy run wan-ai/wan-2-7/text-to-video` with a JSON body matching the schema.
The core differentiating capability is 'audio-track-driven lip-sync': the audio_url field accepts WAV/MP3 files (3–30s, ≤15MB) to drive lip-syncing; if omitted, background music is automatically generated. This serves as the key differentiator between Wan 2.7 and other video models in this family (others either self-generate speech or cannot accept external audio tracks).
| `audio_url` | string | no | — | WAV/MP3, 3–30s, ≤15MB. **Drives lip-sync.** Omit → background music auto-generated. |
The input schema comprises 8 fields covering duration, aspect ratio, resolution, negative prompts, prompt expansion, and reproducibility: prompt (~5000 characters / ~1500 tokens), aspect_ratio (5 values, defaults to 16:9), resolution (720p/1080p, defaults to 1080p), duration (2–15 seconds, defaults to 5), negative_prompt (≤500 characters), enable_prompt_expansion (defaults to true), and seed.
| `enable_prompt_expansion` | bool | no | true | Auto-rewrites short prompts. Disable for literal control. |
The prompting guide translates video generation into actionable rules: front-load camera angles and motion in plain English, specify one primary action, restrict negative_prompt to concrete issues, disable the default-on prompt expansion for brand-sensitive literal copy, and fix the seed to perform variant comparisons.
**Use `negative_prompt` for concrete issues.** Good: "no subtitles, no watermark, no flicker". Bad (vague): "no bad lighting".
The routing table cross-routes between this skill and other video models in the family: use Seedance 2.0 Pro for self-generated speech, HappyHorse 1.0 for top-tier leaderboard quality, Kling for motion editing on existing footage, and LTX 2 for ultra-fast iteration; if the user explicitly specifies Wan, unconditionally route back here.
| Lip-sync video to an audio track you supply | **Wan 2.7** (`audio_url`) |
Limitations and failure modes are explicitly defined: maximum duration of 15s (longer clips require stitching multiple invocations), maximum resolution of 1080p, strict audio specification constraints, a limit of 5 reference assets, and the operational boundary that 'this model does not generate speech; it only accepts audio tracks.'
- **For in-pass voice generation (no separate audio track), use Seedance 2.0 Pro** — Wan accepts audio rather than generating it.
2Core Capabilities
3External Dependencies
| Kind | Dependency / Endpoint |
|---|---|
| cli | runcomfy(RunComfy 官方 CLI) |
| package | @runcomfy/cli(npm 全局包) |
| package | npx skills(skills.sh 安装器) |
| api | RunComfy Model API(Wan 2.7 text-to-video) |
| network | RunComfy 产物下载白名单 |
| network | 用户传入的音轨/参考 URL(由 RunComfy 服务器抓取,非本机) |
| network | RunComfy 站点/文档(文档引用,非运行时调用) |
| network | GitHub(技能源码链接) |
4Recommended Governance & Evidence
- scripts/: Executes local script or command: (The skill itself contains no scripts) The host agent executes the external CLI via Bash: `runcomfy run <vendor>/<model>/<endp`
- 网络端点: Declares external network access: POST https://model-api.runcomfy.net/v1/models/wan-ai/wan-2-7/text-to-video (
- 本地工作目录: File read/write and artifact output: Generated artifacts are downloaded and written to `--output-dir` by the external CLI (documentation notes that single files > 2 GiB will abort to prevent disk exhaustion)
5Second-Pass Verification
- [ok] skill 目录内容 = 仅 SKILL.md — git ls-tree HEAD 与 ls -a 双向核实;仓库根仅 LICENSE + README.md + 31 个技能目录,无 scripts/、plugins/、.claude/。
- [ok] 全部外部依赖条目回查调用点真实存在 — runcomfy CLI 调用点 4 处(默认/带音轨/字面控制示例)、npm 安装 1 处、npx skills 1 处、model-api 端点 1 处(How it works)、下载白名单 1 处(Security & Privacy)、文档/模型页/GitHub 链接多处,均实读命中。
- [discrepancy] 『multi-reference conditioning / 最多 5 个参考素材』与输入 schema 一致 — description 写着 multi-reference conditioning,Where it shines 写 'Up to 5 reference media (image / video / voice)',Limitations 写 'Reference media cap 5 (image + video + voice combined)';但『Endpoints + input schema』表只有 prompt / audio_url / aspect_ratio / resolution / duration / negative_prompt / enable_prompt_expansion / seed 八个字段,没有任何 image/video 参考输入。结论:文档宣称了 schema 无法表达的能力(要么 schema 表不完整、要么能力被夸大),照 schema 写调用的 agent 拿不到该能力。
- [discrepancy] 路由建议的目标模型在本仓有对应技能 — 'Cinematic motion editing on existing footage | Kling Video O1' 与 'Ultra-fast iteration | LTX 2' 两个建议目标在仓库内没有同名技能目录(全仓无 ltx-* 目录;kling-3-0/SKILL.md 自称 'Kling 3.0 (also called Kling V3.0)',未使用 'Kling Video O1' 这一名称,该名称只出现在 wan-2-7/seedance-v2/happyhorse-1-0/ai-video-generation 四份文档里)。路由表能指向自家技能(Seedance/HappyHorse),但这两条是悬空引用。
- [unlocatable] Security & Privacy 的技术断言可在本仓证实 — token 权限 0600、2 GiB 下载上限、CLI 不做 shell 展开、下载白名单、退出码语义均为仓外 @runcomfy/cli 行为;仓内无 CLI 源码或版本 pin,只能作为文档自述引用。同仓 runcomfy-cli/SKILL.md 是同一套自述(同源转述,非独立证据)。
- [discrepancy] 安装一行与 GitHub 链接指向旧仓 agentspace-so/runcomfy-skills — SKILL.md 安装行写 `npx skills add agentspace-so/runcomfy-skills --skill wan-2-7 -g`,GitHub 链接指向 agentspace-so/runcomfy-skills;本仓储物 pin 在 prime-skills/runcomfy-agent-skills(README 亦用 runcomfy-agent-skills)。gh api:agentspace-so/runcomfy-skills 仍存在(5★、最后推送 2026-04-29、含 wan-2-7 目录),是另一份较旧仓;prime-skills/runcomfy-agent-skills 与 agentspace-so/runcomfy-agent-skills 为同一仓(gh 对两者返回相同 stats,full_name=prime-skills/runcomfy-agent-skills)。按文档安装可能装到旧版。
- [ok] 音轨规格纪律在正文各处一致 — schema 行(WAV/MP3, 3–30s, ≤15MB)、Prompting 段('`audio_url` must be 3–30s, ≤15MB, WAV/MP3. Out-of-range files reject.')、Limitations 段('Audio specs — 3–30s, ≤15MB, WAV/MP3 only.')三处口径一致。
- [ok] 时长/画幅/分辨率口径一致 — duration 2–15(default 5)与 Limitations 'Duration cap 15s' 一致;aspect_ratio 5 值与 'only the 5 documented values' 一致;resolution 720p/1080p 与 'No native 4K — 1080p ceiling' 一致。
6Verdict & Scenarios
63f9073a45acf23a…