artokun/comfyui-mcp/wan-flf-video
Claude Code and agent skill by artokun/comfyui-mcp
- community
Checking that the SKILL.md file is still in the repository.
Build WAN 2.2 First-Last-Frame video workflows. Native dual hi-lo (required), and WanVideoWrapper VACE approaches
Install
npx vskill@latest install artokun/comfyui-mcp/wan-flf-videoSKILL.md
The same SKILL.md was published earlier as artokun/comfyui-mcp/wan-flf-video.
WAN 2.2 First-Last-Frame (FLF) Video Workflows
Overview
First-Last-Frame (FLF) video generation takes a start image and an end image and generates a smooth video transition between them. The WAN 2.2 I2V (Image-to-Video) 14B model is good at this.
CRITICAL: Dual Hi-Lo Architecture (REQUIRED)
WAN 2.2 I2V uses a split-noise architecture. Unlike WAN 2.1, the 2.2 model was trained with separate HighNoise and LowNoise components that handle different denoising ranges. You MUST use both models in a two-pass KSamplerAdvanced setup. Using a single model produces low-quality, broken output.
- HighNoise model (pass 1, steps 0→N/2) establishes structure, motion, and composition
- LowNoise model (pass 2, steps N/2→N) refines details and keeps fidelity to input frames
- Both passes share the same conditioning from
WanFirstLastFrameToVideo - Pass 1 returns noisy latent → Pass 2 continues from there
NEVER use a single KSampler with only one model for WAN 2.2 I2V.
Two native approaches are available:
- Native Dual Hi-Lo (Default):
WanFirstLastFrameToVideo+ dualKSamplerAdvancedtwo-pass - WanVideoWrapper:
WanVideoVACEStartToEndFrame+WanVideoVACEEncode+WanVideoSampler(VACE, caching, context windows)
Models
UNET Pairs (Always load BOTH Hi and Lo)
Remix NSFW (Recommended, built-in lightning, fp16):
| Model | Loader | Notes | |
|---|---|---|---|
Wan2.2_Remix_NSFW_i2v_14b_high_lighting_fp16_v2.1.safetensors | UNETLoader | HighNoise, built-in lightning acceleration | |
Wan2.2_Remix_NSFW_i2v_14b_low_lighting_fp16_v2.1.safetensors | UNETLoader | LowNoise, built-in lightning acceleration |
GGUF Q8 (Alternative, needs external lightning LoRAs):
| Model | Loader | Notes | |
|---|---|---|---|
Wan2.2-I2V-A14B-HighNoise-Q8_0.gguf | UnetLoaderGGUF | HighNoise, quantized | |
Wan2.2-I2V-A14B-LowNoise-Q8_0.gguf | UnetLoaderGGUF | LowNoise, quantized |
Official fp8:
| Model | Loader | Notes | |
|---|---|---|---|
wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors | UNETLoader | HighNoise, needs lightning LoRA | |
wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors | UNETLoader | LowNoise, needs lightning LoRA |
Text Encoder
| Model | Node | Notes | |
|---|---|---|---|
nsfw_wan_umt5-xxl_bf16_fixed.safetensors | CLIPLoaderGGUF (type=wan) | NSFW-tuned, pair with Remix models | |
umt5_xxl_fp8_e4m3fn_scaled.safetensors | CLIPLoader (type=wan) | Standard UMT5-XXL fp8 |
CLIP Vision + VAE
| Component | Node | Model | |
|---|---|---|---|
| CLIP Vision | CLIPVisionLoader | clip_vision_h.safetensors | |
| VAE | VAELoader | wan_2.1_vae.safetensors |
ModelSamplingSD3 (REQUIRED)
WAN 2.2 uses flow matching and requires ModelSamplingSD3 applied to each UNET:
shift=5 for lightning/Remix models. shift=8 for standard (non-lightning) models.
Lightning LoRAs
Remix NSFW models have lightning baked in. No external LoRA needed.
For GGUF/fp8 models, use paired hi/lo lightning LoRAs:
wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensors→ HighNoise UNETwan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors→ LowNoise UNET
LoRA Stacks (rgthree)
Each model path has two stacked loaders (Common + Specific), each supporting 4 LoRA slots:
Common stacks hold shared LoRAs (quality/style). Specific stacks hold model-variant LoRAs. Set slots to "None" when unused. Even with no LoRAs, include the stacks. They pass CLIP through for text encoding.
Image Resizing (ImageResizeKJv2)
Input frames MUST be resized to the target video resolution before FLF and CLIPVisionEncode. The end frame inherits width/height from the start frame's resize so the dimensions match.
KSamplerAdvanced Two-Pass Settings
| Parameter | Pass 1 (Hi) | Pass 2 (Lo) | |
|---|---|---|---|
| model | Hi LoRA stack output | Lo LoRA stack output | |
| add_noise | enable | disable | |
| steps | 4 | 4 | |
| cfg | 1 | 1 | |
| sampler_name | uni_pc | uni_pc | |
| scheduler | beta | beta | |
| start_at_step | 0 | 2 | |
| end_at_step | 2 | 4 | |
| return_with_leftover_noise | enable | disable | |
| latent_image | WanFLF output[2] | Pass 1 output[0] |
Both passes share the same positive/negative conditioning from WanFirstLastFrameToVideo outputs [0] and [1].
For standard (non-lightning) models: steps=20, split at step 10, cfg=4, sampler=euler, scheduler=simple, shift=8.
Negative Prompt (REQUIRED)
Always include a quality negative prompt:
Node: WanFirstLastFrameToVideo
Pipeline Flow
Complete workflow (API JSON)
The full Native FLF (Remix NSFW + Lightning) graph is in `references/workflows.md`.
Optional: Video Upscaling with SeedVR2
Add after VAEDecode for AI-powered video upscaling to 1080p. Use VRAM_Debug to free VRAM between generation and upscaling:
Alternative: GGUF Models with Lightning LoRAs
When using GGUF Q8 models instead of Remix, add paired lightning LoRAs:
LoRA files:
Unknown\no tags\wan2.2_i2v_lightx2v_4steps_lora_v1_high_noise.safetensorsUnknown\no tags\wan2.2_i2v_lightx2v_4steps_lora_v1_low_noise.safetensors
Approach 2: WanVideoWrapper (Advanced Control)
Uses the WanVideoWrapper custom node pack for more control over conditioning, caching, context windows, and advanced features.
Key Differences from Native
- Uses
WANVIDEOMODELtype instead of genericMODEL - Uses
WANVIDIMAGE_EMBEDSfor conditioning instead ofCONDITIONING - Has own sampler (
WanVideoSampler) with shift parameter and scheduler options - Supports TeaCache, MagCache, EasyCache for speed optimization
- Supports context windows for longer videos
- VACE module provides more flexible frame conditioning
VACE-Based FLF Pipeline
WanVideoSampler Settings
| Parameter | Standard | Lightning | Notes | |
|---|---|---|---|---|
| steps | 30 | 4 | ||
| cfg | 6.0 | 1.0 | ||
| shift | 5.0 | 5.0 | Flow matching shift | |
| scheduler | unipc | euler | WanVideoWrapper has own schedulers | |
| force_offload | true | true | Move model to CPU after sampling |
When to Use WanVideoWrapper vs Native
| Feature | Native | WanVideoWrapper | |
|---|---|---|---|
| Simplicity | Simpler | More complex | |
| Dual Hi-Lo | Manual two-pass | May handle internally | |
| LoRA loading | Lora Loader Stack (rgthree) | WanVideoLoraSelect → WanVideoModelLoader lora (see merge_loras caveat) | |
| Caching (TeaCache) | Not available | Built-in | |
| Context windows | Not available | WanVideoContextOptions | |
| Block swap (VRAM) | Not available | WanVideoBlockSwap | |
| VACE conditioning | Not available | Full VACE support | |
| Long video (>81 frames) | Limited | InfiniteTalk / context windows |
Recommendation: use Native dual hi-lo for standard FLF transitions. Use WanVideoWrapper when you need caching, context windows, VRAM management, or advanced conditioning.
⚠️ CRITICAL: merge_loras=false with fp8-scaled models
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugin/skills/wan-flf-video/SKILL.md
Popularity
- Repository stars
- 651
- Repository forks
- 101
- Repository npm downloads, 7 days
- 35,200
- 7-day trend score
- 56
Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 30 Jul 2026, 4 months ago.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/artokun/comfyui-mcp/wan-flf-video)