@acedatacloud/node-red-wan 1.0.0

Generate Wan videos from prompts and reference media, and retrieve results in Node-RED.

npm install @acedatacloud/node-red-wan

Wan for Node-RED

Wan

Generate Wan videos from prompts or reference media and retrieve them in a Node-RED flow. Both nodes use one Wan account configuration.

Install

Use Node.js 22+ and Node-RED 4+. In Manage palette → Install, search for @acedatacloud/node-red-wan. For manual installation, run this command in your Node-RED user directory and restart the editor.

npm install @acedatacloud/node-red-wan

Generate and retrieve a video

  1. Import Generate and check a Wan video from Import → Examples → @acedatacloud/node-red-wan.
  2. Open Wan generate and configure an Ace Data Cloud application token. Enter the raw token. If the key uses Allowed APIs, include /wan/videos and /wan/tasks.
  3. 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.
  4. Open Finished video and use msg.payload.result.video_url. To check a pending task again, put the original ID in Existing task ID, deploy, and click that Inject node. After an uncertain submission, check application history before retrying.

Node inputs and outputs

Wan generate takes a Wan video request in msg.payload. This example uses a Wan 2.6 text-to-video model.

{
  "model": "wan2.6-t2v",
  "action": "text2video",
  "prompt": "A paper lantern drifting over a foggy lake",
  "resolution": "720P",
  "duration": 5
}

For Wan 2.6 image-to-video, set action: "image2video", an image-to-video model, and image_url. Reference video uses wan2.6-r2v and reference_video_urls. Wan 3 accepts model: "wan3.0-video" with typed elements in media, such as { "type": "first_frame", "url": "https://example.com/starting-frame.jpg" }. The selected model, media and options pass through to the API. The node sets async: true and outputs the original task ID as a string.

Wan task accepts that ID or one copied from application history. Its outputs carry { id, state, result }. The first output carries a succeeded task with result.video_url and any available video ID, dimensions, and thumbnail URL. The second output carries pending tasks with result: null. A Catch node receives failed tasks and request errors.

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-wan-account
  • acedatacloud-wan-generate
  • acedatacloud-wan-task

Keywords

  • node-red
  • wan
  • video
  • acedatacloud

Maintainers