@acedatacloud/node-red-hailuo 1.0.0
Generate and retrieve Hailuo videos from prompts or an initial image in Node-RED.
Hailuo for Node-RED
Generate Hailuo videos from text or an initial image and retrieve the original task in a Node-RED flow. Both nodes use one Hailuo account configuration.
Install
Use Node.js 22+ and Node-RED 4+. In Manage palette → Install, search for @acedatacloud/node-red-hailuo. For manual installation, run this command in your Node-RED user directory and restart the editor.
npm install @acedatacloud/node-red-hailuo
Generate and retrieve a video
- Import Generate and check a Hailuo video from Import → Examples → @acedatacloud/node-red-hailuo.
- Open Hailuo generate and configure an Ace Data Cloud application token. Enter the raw token. With Allowed APIs enabled, include
/hailuo/videosand/hailuo/tasks. A lookup-only flow needs/hailuo/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
Hailuo generate takes a Hailuo video request in msg.payload.
{
"action": "generate",
"prompt": "A paper lantern drifting over a foggy lake",
"model": "minimax-t2v"
}
For image-to-video, select minimax-i2v or minimax-i2v-director and pass the initial frame URL in first_image_url. The node forwards the options for that model, sets async: true, and outputs the original task ID.
Hailuo task accepts that task ID or one copied from application history. The first output carries a succeeded task with the first clip in msg.payload.result.video_url and all playable clips in msg.payload.result.videos. 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.