Wiro - Text to Video (KlingAI 1.6) icon

Wiro - Text to Video (KlingAI 1.6)

Generates high-quality video from text prompts using KlingAI

Overview

This node generates high-quality videos from text prompts using the KlingAI 1.6 model via the Wiro API. It is designed to transform descriptive text into short video clips, making it useful for content creators, marketers, educators, or anyone needing quick video generation based on textual descriptions. For example, you could input a prompt describing a nature scene and receive a short video visualizing that description.

Properties

Name Meaning
Prompt Describe what the video should show.
Negative Prompt Describe what you do NOT want to appear in the video (e.g., blurry, distorted, bad anatomy).
Video Duration (Seconds) Length of the generated video in seconds. Options: 5s, 10s.
Video Mode Select video generation mode. Options: Standart (std), Professional (pro).
Scale Classifier-free guidance scale, controls how strongly the model follows the prompt (default "0.5").

Output

The node outputs a JSON object with the following structure:

{
  "taskid": "string",       // The unique identifier of the video generation task.
  "url": "string",          // URL to access the generated video once completed.
  "status": "string"        // Status of the task: "completed" if successful, "failed" otherwise.
}
  • The url field contains the direct link to the generated video.
  • The status indicates whether the video generation succeeded or failed.
  • No binary data output is produced directly by this node; instead, users retrieve the video via the provided URL.

Dependencies

  • Requires an API key credential for authenticating with the Wiro API service.
  • Uses the external Wiro API endpoint at https://api.wiro.ai/v1/Run/klingai/text-to-video-klingai-v1++6.
  • Relies on helper functions for authentication header generation and polling the task status until completion.
  • Network connectivity to the Wiro API is necessary.

Troubleshooting

  • Missing or invalid API credentials: Ensure that the API key and secret are correctly configured in the node credentials.
  • API response missing task ID or socket token: This error occurs if the Wiro API does not return expected identifiers. Verify the prompt parameters and API availability.
  • Task failure statuses (-1, -2, -3, -4): These indicate various failure modes in video generation. Check the prompt quality, negative prompt restrictions, and video mode settings.
  • Timeouts during polling: If the task takes too long or never completes, verify network stability and API service status.
  • Invalid property values: Make sure required fields like "Prompt" and "Video Duration" are set properly.

Links and References

Discussion