Wan 2.2 Animate Move (Image-to-Video)

This documentation is valid for the following list of our models:

  • alibaba/wan2.2-14b-animate-move

This model produces high-quality character animations, accurately capturing expressions and movements from reference videos.

Setup your API Key

If you don’t have an API key for the AI/ML API yet, feel free to use our Quickstart guide.

How to Make a Call

Step-by-Step Instructions

Generating a video using this model involves sequentially calling two endpoints:

  • The first one is for creating and sending a video generation task to the server (returns a generation ID).

  • The second one is for requesting the generated video from the server using the generation ID received from the first endpoint.

Below, you can find two corresponding API schemas and examples for both endpoint calls.

API Schemas

Video Generation

This endpoint creates and sends a video generation task to the server — and returns a generation ID.

post
Body
modelstring · enumRequiredPossible values:
video_urlstring · uriRequired

A HTTPS URL pointing to a video or a data URI containing a video. This video will be used as a reference during generation.

image_urlstring · uriRequired

A direct link to an online image or a Base64-encoded local image. If the input image does not match the chosen aspect ratio, it is resized and center cropped

resolutionstring · enumOptional

The resolution of the output video, where the number refers to the short side in pixels.

Default: 480pPossible values:
num_inference_stepsintegerOptional

Number of inference steps for sampling. Higher values give better quality but take longer

Default: 20
enable_safety_checkerbooleanOptional

If set to true, the safety checker will be enabled.

shiftnumberOptional

Shift value for the video.

Default: 5
video_qualitystring · enumOptional

The quality of the generated video.

Default: highPossible values:
video_write_modestring · enumOptional

The write mode of the output video. Faster write mode means faster results but larger file size, balanced write mode is a good compromise between speed and quality, and small write mode is the slowest but produces the smallest file size

Default: balancedPossible values:
Responses
200Success
application/json
post
/v2/video/generations
200Success

Fetch the video

After sending a request for video generation, this task is added to the queue. This endpoint lets you check the status of a video generation task using its id, obtained from the endpoint described above. If the video generation task status is complete, the response will include the final result — with the generated video URL and additional metadata.

get
Query parameters
generation_idstringRequired
Responses
200

Successfully generated video

application/json
get
/v2/video/generations
200

Successfully generated video

Full Example: Generating and Retrieving the Video From the Server

The code below creates a video generation task, then automatically polls the server every 10 seconds until it finally receives the video URL.

Response

Last updated

Was this helpful?