@acedatacloud/node-red-happyhorse 1.0.0

Generate and edit HappyHorse videos and retrieve the finished clip in Node-RED.

npm install @acedatacloud/node-red-happyhorse

HappyHorse for Node-RED

HappyHorse

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

  1. Import Generate and check a HappyHorse video from Import → Examples → @acedatacloud/node-red-happyhorse.
  2. 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/videos and /happyhorse/tasks.
  3. 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.
  4. 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.

Node Info

Version: 1.0.0
Updated 5 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-happyhorse-account
  • acedatacloud-happyhorse-generate
  • acedatacloud-happyhorse-task

Keywords

  • node-red
  • happyhorse
  • video
  • acedatacloud

Maintainers