@acedatacloud/node-red-kling 1.0.0
Generate, extend, and retrieve Kling videos in Node-RED.
Kling for Node-RED
Generate or extend Kling videos and retrieve the original task in a Node-RED flow. Both nodes use one Kling account configuration.
Install
Use Node.js 22+ and Node-RED 4+. In Manage palette → Install, search for @acedatacloud/node-red-kling. For manual installation, run this command in your Node-RED user directory and restart the editor.
npm install @acedatacloud/node-red-kling
Generate and retrieve a video
- Import Generate and check a Kling video from Import → Examples → @acedatacloud/node-red-kling.
- Open Kling generate and configure an Ace Data Cloud application token. Enter the raw token. With Allowed APIs enabled, include
/kling/videosand/kling/tasks. A lookup-only flow needs/kling/tasks. - Deploy the flow and click Video idea once. Generation can use Credits. Save the original task ID from the Debug sidebar. The example waits 60 seconds and checks the same task once.
- Open Finished video and use
msg.payload.result.video_url. For a pending task, set Existing task ID to the saved ID and click that Inject node. After an uncertain submission, check application history before retrying.
Node inputs and outputs
Kling generate takes a Kling video request in msg.payload.
{
"action": "text2video",
"prompt": "A paper lantern drifting over a foggy lake",
"model": "kling-v3",
"mode": "std",
"duration": 5,
"aspect_ratio": "16:9"
}
For image-to-video, use action: "image2video" with start_image_url and, on supported models, end_image_url. To continue an existing clip, use action: "extend" with its provider video_id and a compatible model. The node forwards the options for that model, sets async: true, and outputs the original task ID from Ace Data Cloud.
Kling task accepts that task ID or one copied from application history. The first output carries a succeeded task with the clip in msg.payload.result.video_url and video_id when available. The second carries pending tasks with msg.payload.result set to null and the original ID in msg.payload.id. A Catch node receives failed tasks, missing results, and HTTP or transport errors.
The palette icon uses the product artwork from the existing Media package.