Text-to-Video
AI-generatedSummary
Generate a video from a text prompt using the Kling models via the Kie.ai API, optionally waiting for the completion and receiving a callback webhook upon completion.
Inputs
- Model (required) — Choose the Kling model version for video generation (e.g., Kling 3.0, Kling 2.6). Kling 3.0 is recommended and supports additional features.
- Prompt (required) — Text prompt describing the desired video content.
- Duration (required) — Length of the generated video in seconds (5, 10, or 15 seconds; 15 seconds only for Kling 3.0).
- Aspect Ratio (required) — Aspect ratio of the output video, options include 16:9, 9:16, and 1:1.
- Generation Mode — For Kling 3.0 only: select 'Standard' or 'Pro' for higher resolution output; ignored for older models.
- Enable Sound Effects — For Kling 3.0 only: toggle native audio and sound effects to enrich the output (adds cost).
- CFG Scale — Controls creativity versus adherence to prompt on a scale from 0 (more creative) to 1 (more deterministic).
- Seed — Random seed integer; use 0 for a random seed.
- Negative Prompt — Specify unwanted elements to exclude from the generated video.
- Reply URL — Optional webhook URL to notify when the video generation task completes.
- Reply Ref — Custom reference string passed back with the webhook callback.
- Captcha Token — Your reCAPTCHA v3 Enterprise token; leave empty to let the service handle captcha validation.
- Wait for Completion — If true, the node polls the task status every 3 seconds up to 5 minutes and waits for completion before returning; if false, returns immediately with the task response.
Output shape
a JSON object containing the task creation response or the completed video task details if waiting for completion is enabled
If 'Wait for Completion' is true and the task ID is returned by the API, the node waits and polls for task completion and then outputs the final task response containing result video URLs. Otherwise, the immediate task creation response is returned. Webhook notifications are sent to the specified Reply URL (if provided) once the task completes.