wan_text_to_video
Generate videos from text prompts using the Wan 2.2 local model. Customize video length, resolution, and sampling parameters for tailored output.
Instructions
Generate video from text using Wan 2.2 (local model).
All parameters except prompt are optional with sensible defaults. Auto-detects installed Wan model and UMT5-XXL text encoder.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cfg | No | Guidance scale. Default: 6.0. Typical: 3.0-10.0. | |
| seed | No | Random seed. Default: -1 (random). | |
| steps | No | Sampling steps. Default: 25. Typical: 20-35. | |
| width | No | Video width. Default: 832. Must be multiple of 16. | |
| height | No | Video height. Default: 480. Must be multiple of 16. | |
| length | No | Number of frames. Default: 81. Must be n*4+1 (e.g. 21, 41, 61, 81). At 16fps, 81 frames ~ 5 seconds. | |
| prompt | Yes | Text description of the desired video. | |
| sampler | No | Sampler algorithm. Default: "euler". Use list_samplers_and_schedulers() to see all. | euler |
| vae_name | No | VAE model. Default: "wan2.2_vae.safetensors". | wan2.2_vae.safetensors |
| clip_name | No | UMT5-XXL text encoder. Default: "" (auto-detects). Use list_models(folder="text_encoders") to see options. | |
| scheduler | No | Noise scheduler. Default: "normal". Use list_samplers_and_schedulers() to see all. | normal |
| frame_rate | No | Output FPS. Default: 16.0. | |
| diffusion_model | No | Wan 2.2 GGUF model. Default: "" (auto-detects). Use list_models(folder="diffusion_models") to see options. | |
| negative_prompt | No | Things to avoid. Default: "low quality, worst quality, deformed, distorted". | low quality, worst quality, deformed, distorted |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||