Kling AI icon

Kling AI

Consume Kling AI API

Actions12

Overview

The "Image to Video" operation of the Kling AI node generates animated videos from a single input image. It uses AI models to animate the provided image, optionally guided by a prompt and other parameters such as video duration and style mode. This node is useful for creating dynamic video content from static images, such as animating portraits, product images, or artwork to produce engaging short videos.

Practical examples include:

  • Animating a character portrait to create a short video clip.
  • Turning a product photo into an eye-catching promotional video.
  • Creating social media content by adding motion to still images.

Properties

Name Meaning
API Token JWT token for authenticating with the Kling AI API. Must be generated with specific header and payload claims (issuer, expiration, not-before). Do not include "Bearer" prefix.
Model The AI model used for video generation. Options: "Kling V1", "Kling V1-5", "Kling V1-6".
Mode Video generation mode. Options: "Standard" (std), "Professional" (pro).
Image URL or Base64-encoded string of the image to animate. Required.
Prompt Optional text prompt to guide the animation style or content.
Duration Length of the generated video. Options: "5 Seconds", "10 Seconds".
Additional Options Collection of optional parameters:
- End Frame Image URL or Base64-encoded image to use as the end frame of the video.
- Negative Prompt Text prompt specifying what to avoid in the animation.
- CFG Scale Number between 0 and 1 controlling flexibility in video generation (default 0.5).
- Callback URL URL to be called when video generation is complete. Useful for asynchronous processing.
- External Task ID Custom identifier for tracking the task externally.

Output

The node outputs JSON data representing the response from the Kling AI API after submitting the image-to-video generation request. This typically includes metadata about the created video generation task, such as task IDs, status, and URLs to access the generated video once ready.

If a callback URL is provided, the actual video file may be delivered asynchronously via that endpoint.

No binary data is directly output by this node; all information is contained within the JSON response.

Dependencies

  • Requires access to the Kling AI API endpoint at https://api.klingai.com.
  • Requires a valid JWT API token credential for authentication.
  • Network connectivity to the API service.
  • Properly formatted input images either as accessible URLs or Base64-encoded strings.

Troubleshooting

  • Authentication errors: If you receive an authentication failure, verify your JWT token is correctly generated without the "Bearer" prefix and contains valid issuer and timing claims.
  • Missing required fields: Ensure the "Image" property is provided and correctly formatted as a URL or Base64 string.
  • API errors: The node surfaces error messages returned by the Kling AI API. Review these messages for details on invalid parameters or service issues.
  • Callback URL issues: If using a callback URL, ensure it is reachable and can handle incoming requests from the Kling AI service.
  • Timeouts or no response: Check network connectivity and API service status.

Links and References

Discussion