Image-to-Video
AI-generatedSummary
Generate a video from a single input image using a chosen Wan model. Optionally provide a prompt, an end frame image URL, aspect ratio, duration, negative prompt, seed for reproducibility, webhook callback URL and reference, captcha token, and control whether to wait for completion synchronously.
Inputs
- Model — Select the specific Wan image-to-video model to use for generation.
- Prompt — Optional text prompt to guide video generation from the input image.
- Image URL (required) — URL of the input image to convert into a video.
- End Frame URL — Optional URL of an end frame image for transition or ending frame in the video.
- Aspect Ratio — Choose the video's aspect ratio (16:9, 9:16, or 1:1).
- Duration — Select the duration of the generated video (5 or 10 seconds).
- Negative Prompt — Text describing elements to exclude from the generated video.
- Seed — Seed number for reproducible video outputs (0 means random).
- Reply URL — Webhook URL to notify when the generation task completes.
- Reply Ref — Custom reference string returned in the webhook callback.
- Captcha Token — reCAPTCHA token if required by the API.
- Wait for Completion — Whether to block execution and poll the task status until completion (default true).
Output shape
a JSON object representing the API response for the video generation task, including task ID and upon completion, result video URLs
If 'Wait for Completion' is true, the node waits (polling every 3 seconds, timeout 5 minutes) for the generation task to finish and returns the completed result. Otherwise, it returns the initial task creation response with task ID. The response JSON includes parsed nested fields with accessible video URLs for use in downstream n8n workflow nodes.
Examples
Example 1: Generate a 5-second video from a provided image URL using the Wan 2.6 image-to-video model, with a prompt 'sunset over mountains' and an aspect ratio of 16:9. Wait for completion to get final video URLs in the output.
Set 'Model' to 'Wan 2.6', 'Image URL' to input image, 'Prompt' to 'sunset over mountains', 'Aspect Ratio' to 16:9, 'Duration' to 5 seconds, and ensure 'Wait for Completion' is true.