# Local Zero-API-Cost Image-to-Video Pipeline with Wan 2.2 MoE & ComfyUI

> Run Apache 2.0 Alibaba Wan 2.2-A14B locally inside ComfyUI on a single 24GB GPU using FP8 quantization and dual-expert sampling (high-noise layout + low-noise refinement), then interpolate 16 fps output to 32/24 fps with RIFE and FFmpeg. API spend is $0.00 per clip with full studio privacy.

- **Canonical URL:** https://framesfield.com/workflows/open-weight-local-video-render
- **Difficulty:** Advanced
- **Estimated Time:** 40 min (first setup)
- **Estimated Cost:** $0.00 API (24GB local GPU)
- **Last Verified:** 2026-11-26
- **Tools Used:** Alibaba Wan 2.2 (A14B MoE) (https://framesfield.com/specs/wan-2-2), Black Forest Labs FLUX.1 Kontext Pro (https://framesfield.com/specs/flux-1-kontext-pro)

## Pipeline Architecture

01. **Start Keyframe** (FLUX.1 Kontext / Local Still): Prepare 1280×720 PNG multiple-of-16 input
02. **High-Noise Expert** (Wan 2.2 High FP8): Steps 0–10 establish motion & camera path
03. **Low-Noise Expert** (Wan 2.2 Low FP8): Steps 10–20 sharpen fine texture & edges
04. **VAE + Frame Interp** (ComfyUI + FFmpeg): Tiled VAE decode & 16→24fps delivery

## Playbook

## Why run Wan 2.2 locally instead of paying hosted video APIs?

Hosted APIs like [Veo 3.1](/specs/veo-3-1) and [Kling 2.6 Pro](/specs/kling-2-6) excel when you need native dialogue or zero hardware maintenance. However, when a client project forbids uploading NDA footage to third-party servers—or when look-dev requires 80 exploratory takes—[Alibaba Wan 2.2 (A14B MoE)](/specs/wan-2-2) under **Apache 2.0** removes per-second API friction entirely while giving full node-level access to LoRAs, ControlNets, and deterministic seeds.

## Step 1: Verify local hardware and memory profile

| GPU Tier | Recommended Checkpoint | Target Resolution | VAE Mode |
| --- | --- | --- | --- |
| 12GB–16GB VRAM | `Wan2.2-TI2V-5B` (BF16/FP8) | `1280×704` @ 24 fps | Tiled (`256`) |
| 24GB VRAM (RTX 4090) | `Wan2.2-I2V-A14B` (`FP8_scaled`) | `832×480` or `1280×720` @ 16 fps | Tiled (`256`) |
| 48GB–80GB VRAM (A6000/H100) | `Wan2.2-I2V-A14B` (`BF16`) | `1280×720` @ 16 fps | Standard |

## Step 2: Configure the dual-expert sampling boundary

Wan 2.2 splits denoising around noise level `t = 0.875` (in flow-matching schedule with `ModelSamplingSD3` shift = `5.0` to `8.0`):

1. **Sampler 1 (High-Noise Expert):** `steps = 20`, `start_at_step = 0`, `end_at_step = 10`, `add_noise = enable`, `return_with_leftover_noise = enable`, `sampler = euler`, `scheduler = simple`, `cfg = 3.5`.
2. **Sampler 2 (Low-Noise Expert):** `steps = 20`, `start_at_step = 10`, `end_at_step = 20`, `add_noise = disable`, `return_with_leftover_noise = disable`, `sampler = euler`, `scheduler = simple`, `cfg = 3.5`.

For the ready-to-import ComfyUI API JSON template, see our companion skill [ComfyUI Wan 2.2 Dual-Expert I2V Graph](/skills/comfyui-character-turnaround).

## Step 3: Post-process 16 fps output cleanly to 24 fps

Wan 2.2 A14B generates `81` frames (`5.06s` at `16 fps`). Never drop it directly into a `24 fps` timeline without optical-flow or neural frame interpolation, or pans will visibly stutter. Either add a `RIFE VFI` node (`multiplier: 2` -> `32 fps`, then conform to `24 fps`) inside ComfyUI or run FFmpeg's `minterpolate` filter for batch CLI automation:

```bash
ffmpeg -i wan22_raw_16fps.mp4 \
  -vf "minterpolate=fps=24:mi_mode=mci:mc_mode=aobmc:me_mode=bidir:vsbmc=1" \
  -c:v libx264 -crf 16 -pix_fmt yuv420p wan22_24fps_master.mp4
```

## Copyable Asset: Wan 2.2 ComfyUI Weight Fetch & Directory Bootstrap (setup-wan22-weights.sh)

```bash
#!/usr/bin/env bash
set -euo pipefail

COMFY_DIR="${1:-$HOME/ComfyUI}"
mkdir -p "$COMFY_DIR/models/diffusion_models" \
         "$COMFY_DIR/models/text_encoders" \
         "$COMFY_DIR/models/vae"

# Requires: pip install -U "huggingface_hub[cli]"
hf download Comfy-Org/Wan_2.2_ComfyUI_Repackaged \
  split_files/diffusion_models/wan2.2_i2v_high_noise_14B_fp8_scaled.safetensors \
  split_files/diffusion_models/wan2.2_i2v_low_noise_14B_fp8_scaled.safetensors \
  --local-dir "$COMFY_DIR/models"

hf download Comfy-Org/Wan_2.1_ComfyUI_repackaged \
  split_files/text_encoders/umt5_xxl_fp8_e4m3fn_scaled.safetensors \
  split_files/vae/wan_2.1_vae.safetensors \
  --local-dir "$COMFY_DIR/models"

echo "Weights verified under $COMFY_DIR/models"
```

## FAQ

### What happens if I run all 20 steps on only one Wan 2.2 expert checkpoint?

Running only the high-noise expert yields muddy surface textures; running only the low-noise expert freezes camera motion and produces stiff flickering frames. Both checkpoints must hand off at the mid-point boundary.

### Can I attach a custom character or camera LoRA to Wan 2.2 MoE?

Yes. Load camera-motion LoRAs primarily on the High-Noise expert (where trajectory forms) and identity/texture LoRAs on the Low-Noise expert (or both at 0.7/1.0 strength split).

### How fast does an 81-frame 720p clip render on a single RTX 4090?

With FP8 scaled weights, PyTorch 2.6+ SDPA/SageAttention, and 20 total steps (or 4–8 steps using LightX2V distillation LoRAs), expect roughly 90–180 seconds for 20 full steps or under 45 seconds with a step-distilled LoRA.
