What is Wan2.1?
Wan2.1 is an open-source video generation model developed by Alibaba.
It's a memorable model: you could say it's the one that got serious video generation going in the open-source world.
It supports three modes: text2video, image2video, and FLF2V. It can also be used as an image generation model by generating only 1 frame.
This is a fine point, but it's not that "video generation happens to include image generation". It's a video generation model designed from the start to do image generation too.
It comes in two sizes, 1.3B and 14B. The 1.3B model just isn't capable enough and hardly anyone uses it, so this page only uses 14B.
Recommended Settings
- Recommended Resolution
- 480p (854×480) - 720p (1280×720)
- Maximum Number of Frames
- 81 frames
- FPS
- Output is usually around 16fps
At 16fps the video often looks like slow motion, so save it at 24fps or drop frames to adjust.
Model Download
- diffusion models
- text encoder
- VAE
- gguf (Optional)
📂ComfyUI/
└── 📂models/
├── 📂diffusion_models/
│ ├── wan2.1_t2v_14B_fp8_e4m3fn.safetensors
│ ├── wan2.1_i2v_720p_14B_fp8_e4m3fn.safetensors
│ └── wan2.1_flf2v_720p_14B_fp8_e4m3fn.safetensors
├── 📂text_encoders/
│ └── umt5_xxl_fp8_e4m3fn_scaled.safetensors
├── 📂unet/
│ ├── wan2.1-t2v-14b-XXXX.gguf ← Only when using gguf
│ ├── wan2.1-i2v-14b-720p-XXXX.gguf ← Only when using gguf
│ └── wan2.1-flf2v-14b-720p-XXXX.gguf ← Only when using gguf
└── 📂vae/
└── wan_2.1_vae.safetensors
If you want the fp16 / bf16 versions, swap in those file names for the fp8 ones above. They go in the same folders.
text2video
This is the basic text2video workflow for Wan2.1.
-
🟦
Shiftin theModelSamplingSD3node controls how much movement you get.- Higher values mean bigger camera moves and more change in the subject, but too high and things start to break down. Leaving it at
8should be fine for now. - cf. Wan2.1 parameter sweep
- Higher values mean bigger camera moves and more change in the subject, but too high and things start to break down. Leaving it at
Quality Improvement Techniques
The difference isn't something you'd really notice, but these techniques improve quality with almost no downside and are available as core nodes, so you might as well use them.
-
🟦 UNetTemporalAttentionMultiply
- Reinforces consistency between frames and suppresses flickering.
-
🟦 CFG-Zero
- Prevents breakdown due to excessive correction by weakening CFG early in sampling.
image2video
When given an image, it generates a continuation from that image.
- 🟩 Input an appropriately resized image into both
CLIP Vision EncodeandWanImageToVideo.
FLF2V (First–Last Frame to Video)
Give two images and generate a video so that the gap between them is filled naturally.
- 🟩 Batch two images and input them into the
WanFirstLastFrameToVideonode.
Self Forcing (Fast Generation)
It was originally a technique for real-time video generation, but in ComfyUI we just use it as a speed-up: generating in a few steps.
Model Download
-
loras
📂ComfyUI/
└── 📂models/
└── 📂loras/
├── Wan21_T2V_14B_lightx2v_cfg_step_distill_lora_rank64.safetensors
└── Wan21_I2V_14B_lightx2v_cfg_step_distill_lora_rank64.safetensors
workflow
- Load the LoRA with the
LoraLoaderModelOnlynode. - Set
stepsinKSamplerto 4 - 8 andCFGto 1.0.
Self Forcing is the option for when you just want it fast. The quality loss is significant, though not to the point of being unacceptable.
Image Generation
Just use the text2video workflow and generate a 1-frame video.
