Wan (Kie.ai) icon

Wan (Kie.ai)

Generate videos using Wan via Kie.ai API

Animate

AI-generated

Summary

Animate an image with motion using either 'Animate Move' or 'Animate Replace' methods via the Kie.ai API.

Inputs

  • Animate Type (required) — Choose between 'Animate Move' to animate by moving elements or 'Animate Replace' to animate by replacing parts using a mask.
  • Prompt — Optional text prompt to guide the animation generation.
  • Image URL (required) — URL of the input image to animate.
  • Video URL (required) — URL of the video providing motion for the animation.
  • Mask URL — Mask URL to specify areas for replacement animation (only used if Animate Type is 'Animate Replace').
  • Reply URL — Webhook URL to receive a callback when the animation task is complete.
  • Reply Ref — Custom reference string included in the webhook callback to identify the request.
  • Captcha Token — reCAPTCHA token if required by the API to authorize the request.
  • Wait for Completion — Boolean flag to determine whether the node waits for the animation task to complete before returning (polls every 3 seconds with a 5 minute timeout).

Output shape

A JSON object containing the response from Kie.ai API, including task ID and final animation URLs when waiting for completion.

If 'Wait for Completion' is true, the node polls the task status until the animation completes or fails (up to 5 minutes), returning the full completed task result. Otherwise, it returns the immediate creation response with a taskId for manual status checks. Webhook callback can be configured for asynchronous notification using 'Reply URL'.

Examples

Example 1: Animate an image by applying motion from a video using 'Animate Move', waiting for completion.

Set Animate Type to 'Animate Move', provide an Image URL and Video URL, optionally add a prompt, and enable 'Wait for Completion'.

Links

Discussion