Text-to-Video
AI-generatedSummary
Generate a video from a text prompt using the specified Hailuo model via the Kie.ai API, optionally waiting for the video generation task to complete before returning the result.
Inputs
- Model — Select between 'Hailuo 02 Pro' or 'Hailuo 02 Standard' models to use for the video generation.
- Prompt (required) — Provide the text prompt that describes the content to generate in the video.
- Aspect Ratio — Choose the video's aspect ratio (16:9, 9:16, or 1:1).
- Duration (Seconds) — Specify the length of the generated video, either 5 or 10 seconds.
- Negative Prompt — List elements to avoid in the generated video.
- Seed — Set a number for seed reproducibility; 0 means a random seed will be used.
- Reply URL — A webhook URL to be called when the video generation task completes.
- Reply Ref — A custom reference string that will be passed back in the webhook callback.
- Wait for Completion — Decide whether the node should wait and poll for the video generation task to finish before returning the result (polls every 3s with a 5-minute timeout).
Output shape
a JSON array where each item contains the API response for the video generation task; if 'Wait for Completion' is true, the item includes the finished task details with video URLs, otherwise the immediate task creation response.
The node supports multiple input items; each triggers a separate video generation task. When waiting for completion, the node polls the task status until success or failure. On failure or timeout, an error is thrown unless 'Continue on Fail' is enabled. Resulting data includes parsed nested JSON fields for easy access to generated video URLs.