Wan 2.1 Image-to-Video
Video
Wan 2.1 Image-to-Video
POST
Wan 2.1 Image-to-Video
Accelerated inference for the Wan 2.1 14B image-to-video model, a comprehensive and open video foundation model suite that pushes the boundaries of video generation. By default, the API generates a 5-second video.
Request Headers
Enum value:
application/jsonBearer authentication format: Bearer {{API Key}}.
Request Body
The prompt text used to guide the desired generation.Value range:
[1, 2000].The image URL used for video generation.
The negative prompt tells the model which elements to avoid generating.Value range:
[0, 2000].The width of the output video.Enum values:
480, 720, 832, 1280.Default: 832. If width or height is not specified, width and height will be forced to 832 and 480.The height of the output video.Supported:
- (480p) When width is
480, height is set to832 - (480p) When width is
832, height is set to480 - (720p) When width is
720, height is set to1280 - (720p) When width is
1280, height is set to720
480. If width or height is not specified, width and height will be forced to 832 and 480.LoRA models applied to video generation.Supports specifying up to 3 LoRA models.
Random seed, the number used by Stable Diffusion to generate noise. Value range:
[-1, 9999999999]. Default value is -1.Number of iteration steps, the number of iterations in the image creation process. Value range:
[1, 40]. Default: 30.The guidance scaling parameter controls how closely the generated content follows the prompt. Value range:
[0, 10]. Default: 5.0.The flow_shift parameter mainly affects the speed and magnitude of object motion in the video. Higher values produce more noticeable and faster motion, while lower values make motion slower and more subtle.Value range:
[1, 10]. Default: 5.0.The enable_safety_checker parameter controls whether to apply a safety filter to the generated content. When enabled, it helps filter potentially harmful or inappropriate content from the video output.Default:
true.Whether to enable fast mode, which will generate videos faster but may reduce quality and price.Default:
false.Response Information
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generation result