Text-to-Video
AI-generatedSummary
Generate a video from a text prompt using the selected Wan model via the Kie.ai API.
Inputs
- Model — Select the Wan model version to use for text-to-video generation (Wan 2.6, Wan 2.5, or Wan 2.2 Turbo). Defaults to Wan 2.6.
- Prompt (required) — The textual input describing the video content to generate.
- Aspect Ratio — Choose the video's aspect ratio: 16:9, 9:16, or 1:1. Defaults to 16:9.
- Duration — Select the length of the generated video, either 5 or 10 seconds. Defaults to 5 seconds.
- Negative Prompt — Specify elements or features to avoid in the generated video.
- Seed — Seed number for reproducibility of the video output. Use 0 for random seeding. Defaults to 0.
- Reply URL — Webhook URL to notify when the video generation task completes.
- Reply Ref — Custom reference string returned in the webhook callback for tracking.
- Captcha Token — reCAPTCHA token to authenticate API request if required.
- Wait for Completion — If true (default), the node will poll every 3 seconds up to 5 minutes to wait for the video generation task to complete before returning the result; otherwise, it returns immediately after task creation.
Output shape
a JSON array of responses from the Kie.ai API, typically including task status and result URLs to the generated video.
If 'Wait for Completion' is enabled and the API returns a task ID, the node polls the task status until completion or timeout. The output includes parsed nested response fields with easily accessible video URLs. In case of failure, error information is returned in the output.
Examples
Example 1: Generate a 5-second video with a 16:9 aspect ratio using Wan 2.6 model, waiting for completion
Set Model to Wan 2.6, enter a descriptive Prompt, keep default Aspect Ratio (16:9) and Duration (5 seconds), leave other optional fields empty, and enable Wait for Completion.