Install and start
The default uses one GPU.wan22_dp2.yaml runs two replicas, while wan22_cfg_parallel_2gpu.yaml puts guidance branches on separate GPUs.
wan22
Text, image → video. The default wan22.yaml uses 1 GPU. The weights use Apache-2.0.
Send a request
Run either client example in a second terminal after/health returns 200.
Generate a clip
These examples save an 81-frame MP4 at 1280×704. To condition it on a first frame, resize the image to exactly 1280×704 before uploading it. Pass the file inimages with the SDK or as an image data URI on /v1/videos/generations. If you change the output size, resize the image to match. Both dimensions must be multiples of 32 and the frame count must be of the form 4k + 1.
Python SDK
Deployment configs
sp_size must divide the DiT’s 24 attention heads.
To use an alternative, pass --config configs/<file> after the launcher name. From a wheel installation, copy the shipped YAML and pass its local path.
Settings and defaults
Requests default to 1280×704 pixels, 81 frames, 50 denoising steps and guidance scale 5. Setwidth and height to positive multiples of 32 and match the conditioning image to that exact size. Set num_frames to one plus a multiple of four, such as 33 or 81. Use num_inference_steps and guidance_scale to override the denoising settings.
Set the following deployment options under model_kwargs in the config.
backend: sdpa on the dit_self_attn resource runs torch’s SDPA instead of the engine’s ragged attention.
Limits
- No video conditioning;
videoin the request body is a 400. - Each axis must fit the DiT’s 1,024 rotary positions (
num_framesup to 4,093), and height and width are at most 16,384. - No accelerator-graph capture and no component offload.
backend: sdpaondit_self_attnis refused on SP ranks.