Skip to content
FramesField
ComfyUI JSON Developer / Local Tooling wan22-i2v-121f-apache.api.json
Verified Nov 29, 2026

ComfyUI Wan 2.2 I2V 121-Frame Apache 2.0 Graph

How to install this ComfyUI JSON

Download pure API JSON directly from /raw/skills/comfyui-wan-2-2-i2v-apache-graph, then queue via the ComfyUI REST API below OR import via Settings → Enable Dev Mode Options → Load (API Format).

Stock ComfyUI API JSON graph for Alibaba Wan 2.2 Image-to-Video (Apache 2.0 commercial open weights): animates any 1280x704 (/32-aligned) opening PNG into a 121-frame (4n+1, 5.04s @ 24fps) offline MP4 using native WanImageToVideo, CreateVideo, and SaveVideo nodes with zero cloud API fees and zero NDA data exposure.

Compatible agent hosts
ComfyUI Claude Code Python API
Target tool: ComfyUI / Alibaba Wan 2.2 I2V (Apache 2.0) · License: MIT
  1. STEP 01
    Install Apache 2.0 Wan 2.2 FP8 weights

    Place wan2.2_i2v_14B_fp8_scaled.safetensors (diffusion_models/), umt5_xxl_fp8_e4m3fn_scaled.safetensors (text_encoders/), and wan_2.1_vae.safetensors (vae/).

  2. STEP 02
    Keep canvas /32 and frames 4n+1 (121)

    Pre-configured to 1280x704 (divisible by 32) and length: 121 (4*30+1 = 5.04s at 24fps) so the 3D video VAE never throws tensor mismatch errors.

  3. STEP 03
    Queue via API or Dev Mode → Load (API Format)

    Terminates cleanly in CreateVideo + SaveVideo so /prompt renders ComfyUI/output/video/wan22_i2v_*.mp4 without 'Prompt has no outputs'.

1. Install for your tool

Pick the app you use below for the exact verified command or config—zero manual guessing.

Direct raw file (wan22-i2v-121f-apache.api.json) ↓
Option A: Download & Queue via ComfyUI API (Headless Batch) bash
Downloads verified Wan 2.2 I2V JSON from /raw/skills/comfyui-wan-2-2-i2v-apache-graph, wraps inside {"prompt": ...}, and queues locally on 127.0.0.1:8188:
curl -fsSL https://framesfield.com/raw/skills/comfyui-wan-2-2-i2v-apache-graph -o wan22-i2v-121f-apache.api.json
python3 -c 'import json, urllib.request; g=json.load(open("wan22-i2v-121f-apache.api.json")); req=urllib.request.Request("http://127.0.0.1:8188/prompt", data=json.dumps({"prompt": g}).encode(), headers={"Content-Type": "application/json"}); print(urllib.request.urlopen(req).read().decode())'

2. Inspect or download the full ComfyUI JSON file

This is the exact raw file served at /raw/skills/comfyui-wan-2-2-i2v-apache-graph.

ComfyUI Wan 2.2 I2V 121-Frame Apache 2.0 Graph wan22-i2v-121f-apache.api.json
{
  "1": {
    "class_type": "UNETLoader",
    "inputs": {
      "unet_name": "wan2.2_i2v_14B_fp8_scaled.safetensors",
      "weight_dtype": "fp8_e4m3fn"
    }
  },
  "2": {
    "class_type": "CLIPLoader",
    "inputs": {
      "clip_name": "umt5_xxl_fp8_e4m3fn_scaled.safetensors",
      "type": "wan"
    }
  },
  "3": {
    "class_type": "VAELoader",
    "inputs": {
      "vae_name": "wan_2.1_vae.safetensors"
    }
  },
  "4": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": ["2", 0],
      "text": "Slow locked-rail 50mm dolly push-in along center axis. Warm espresso steam drifts steadily upward behind a matte stoneware carafe resting on pale travertine. Soft 5600K daylight, rigid stationary label and tabletop, natural film motion."
    }
  },
  "5": {
    "class_type": "CLIPTextEncode",
    "inputs": {
      "clip": ["2", 0],
      "text": "morphing text, warped bottle proportions, flickering exposure, oversaturated plastic glow, jittery camera shake, frozen static image"
    }
  },
  "6": {
    "class_type": "LoadImage",
    "inputs": {
      "image": "hero_keyframe_1280x704.png"
    }
  },
  "7": {
    "class_type": "WanImageToVideo",
    "inputs": {
      "positive": ["4", 0],
      "negative": ["5", 0],
      "vae": ["3", 0],
      "start_image": ["6", 0],
      "width": 1280,
      "height": 704,
      "length": 121,
      "batch_size": 1
    }
  },
  "8": {
    "class_type": "ModelSamplingSD3",
    "inputs": {
      "model": ["1", 0],
      "shift": 5.0
    }
  },
  "9": {
    "class_type": "KSampler",
    "inputs": {
      "model": ["8", 0],
      "positive": ["7", 0],
      "negative": ["7", 1],
      "latent_image": ["7", 2],
      "seed": 491028,
      "steps": 20,
      "cfg": 3.5,
      "sampler_name": "uni_pc",
      "scheduler": "simple",
      "denoise": 1.0
    }
  },
  "10": {
    "class_type": "VAEDecode",
    "inputs": {
      "samples": ["9", 0],
      "vae": ["3", 0]
    }
  },
  "11": {
    "class_type": "CreateVideo",
    "inputs": {
      "images": ["10", 0],
      "fps": 24
    }
  },
  "12": {
    "class_type": "SaveVideo",
    "inputs": {
      "video": ["11", 0],
      "filename_prefix": "video/wan22_i2v_apache",
      "format": "auto",
      "codec": "auto"
    }
  }
}

3. Test it right away (sample prompt & result)

Sample prompt / input
Drop a 1280x704 lossless PNG keyframe into ComfyUI/input/hero_keyframe_1280x704.png, update Node 4 motion prompt, and run Option A via curl + Python.
What happens when it runs
Executes 20-step uni_pc sampling across 121 frames (5.04s @ 24fps) completely offline under Apache 2.0 weights and writes ComfyUI/output/video/wan22_i2v_apache_00001_.mp4.

What you need & known limits

Requirements

  • ComfyUI current release with native WanImageToVideo, ModelSamplingSD3, CreateVideo, and SaveVideo nodes
  • 16GB–24GB NVIDIA GPU (enable --lowvram or GGUF Q4/Q6 loader on 12GB–16GB cards; see VRAM Calculator)
  • Apache 2.0 Alibaba Wan 2.2 I2V checkpoint + UMT5-XXL FP8 text encoder + Wan VAE

Watch out for

  • Keep length strictly 4n+1 (e.g., 81 = 3.4s, 121 = 5.04s) and width/height divisible by 32 (1280x704 or 832x480) to avoid VAE tensor crashes
  • Outputs silent video—layer ElevenLabs TTS/SFX or Suno v6 stems in post and finish with FFmpeg yuv420p + -14 LUFS

Why every NDA studio keeps an offline Apache 2.0 Wan 2.2 I2V graph ready

When an enterprise client forbids uploading unreleased hardware prototypes to cloud video APIs—or when you need 40 B-roll motion tests overnight for $0 marginal API cost—local Alibaba Wan 2.2 inside ComfyUI is the clean commercial baseline. This stock-node graph eliminates custom-node breakage, aligns strictly to 1280×704 (/32) and 121 frames (4n+1), and terminates cleanly in CreateVideo + SaveVideo so headless batch scripts never fail with "Prompt has no outputs".

Check GPU memory fit before downloading weights with our Local VRAM & Quantization Calculator, and troubleshoot 16GB offloading or tensor errors using our ComfyUI 16GB OOM Fix and Wan/LTX Frame-Count Fix.

Frequently Asked Questions

Why does this Wan 2.2 graph use 1280x704 and 121 frames instead of 1920x1080 and 120 frames?
Wan 2.2's 3D video VAE requires spatial dimensions cleanly divisible by 16/32 (1080 / 32 = 33.75 fails cleanly) and temporal lengths matching 4n+1 (121 = 4×30 + 1). Render cleanly at 1280x704 and 121 frames, then upscale to 1920x1080 during your final FFmpeg grain/color pass.
Can agencies run this graph offline for strict NDA client campaigns?
Yes. Alibaba Wan 2.2 is released under the permissive Apache 2.0 open-source license with zero revenue caps, and running locally on 127.0.0.1 ensures unreleased product frames never leave studio hardware.
Use this page in AI tools or notes
raw .md