@acedatacloud/node-red-happyhorse 1.0.0
Generate and edit HappyHorse videos and retrieve the finished clip in Node-RED.
HappyHorse for Node-RED
![]()
Generate or edit HappyHorse videos and recover the same task from a Node-RED flow. Both nodes use one HappyHorse account configuration.
Install
Use Node.js 22+ and Node-RED 4+. In Manage palette → Install, search for @acedatacloud/node-red-happyhorse. You can also install it in your Node-RED user directory and restart the editor.
npm install @acedatacloud/node-red-happyhorse
Generate and retrieve a video
- Import Generate and check a HappyHorse video from Import → Examples → @acedatacloud/node-red-happyhorse.
- Open HappyHorse generate and set the example’s HappyHorse account to an Ace Data Cloud application token. Enter the raw token. If the key uses Allowed APIs, include
/happyhorse/videosand/happyhorse/tasks. - Deploy the flow and click Video idea once. Generation can use Credits. Save the original task ID shown in the Debug sidebar. The example waits 60 seconds and checks the same task once.
- Open the Finished video debug message and use
msg.payload.videos[0].url. If the task is still pending, put the original ID in Existing task ID, deploy the change, and click that Inject node to check again. After an uncertain submission, check application history before retrying.
HappyHorse generate accepts a HappyHorse video request in msg.payload, such as this text-to-video example.
{
"prompt": "A white horse walks past a pine forest at sunrise",
"resolution": "720P",
"duration": 5
}
For image-to-video, use action: "image_to_video" with image_url and an optional prompt. Reference-to-video uses action: "reference_to_video" with prompt and 1–9 URLs in image_urls. Video edit uses action: "video_edit" with prompt, video_url, and up to 5 optional image_urls. The node sets async: true and outputs the original task ID as a string.
HappyHorse task accepts that ID or one copied from application history. Its outputs carry { id, state, videos }. The first output carries a succeeded task with playable video. The second carries a pending task. A Catch node receives failed tasks and request errors. Video entries include id, url, duration, resolution, and ratio when provided by the API.