Wiro - Image To Video Klingai V2 1
AI-generatedOverview
This node integrates with the KlingAI v2.1 image-to-video generation API provided by Wiro. It allows users to generate short videos (5 or 10 seconds) from a single input image frame, guided by a text prompt and optional negative prompt to exclude unwanted elements. Users can select video resolution modes (Pro for 1080p or Standard for 720p) and adjust the CFG scale to control the flexibility of the video generation relative to the prompt. The node sends a request to the API, waits for the video generation task to complete by polling, and outputs the final video URL and status.
Use Case Examples
- Generating a 10-second 1080p video from a given image URL with a descriptive prompt for marketing content.
- Creating a 5-second 720p video excluding certain elements by specifying a negative prompt for social media posts.
Properties
| Name | Meaning |
|---|---|
| Image First URL | The URL of the first frame image to start the video generation. |
| Prompt | The descriptive text prompt guiding the content of the generated video. |
| Negative Prompt | Text specifying elements or features to exclude from the generated video. |
| Mode | Video resolution mode; 'Pro' for 1080p and 'Standard' for 720p, both at 24fps. |
| Video Seconds | Duration of the generated video in seconds, either 5 or 10 seconds. |
| CFG Scale | Controls the flexibility of the video generation; higher values mean less flexibility and stronger adherence to the prompt. |
Output
JSON
taskid- The unique identifier of the video generation task.url- The URL of the generated video once the task is completed.status- The status of the video generation task, e.g., 'completed' or 'failed'.
Dependencies
- Wiro API key and secret credentials for authentication
Troubleshooting
- If the API response does not include a valid task ID or socket access token, the node throws an error indicating an invalid response from the Wiro API. Verify API credentials and request parameters.
- If the polling task status returns '-1', '-2', '-3', or '-4', the video generation is considered failed. Check the input parameters and API service status.
Links
- Wiro API Documentation - Official documentation for the Wiro API including image-to-video generation endpoints.