@acedatacloud/node-red-dreamina 1.0.0
Create talking videos from a photo and audio and retrieve the original Dreamina task in Node-RED.
Dreamina for Node-RED
Create a lip-synced video from a photo and audio, then look up its original task in Node-RED.
Install
Search for @acedatacloud/node-red-dreamina in Manage palette → Install. You can also install it with npm install @acedatacloud/node-red-dreamina in your Node-RED user directory and restart it. Use Node.js 22 or later with Node-RED 4 or 5.
Configure a raw Ace Data Cloud application token scoped to the operations used in your flow. Node-RED stores the token as a password credential outside the exported flow.
Generate and check a video
- Set
msg.payloadon Dreamina generate to{ "image_url": "https://example.com/photo.jpg", "audio_url": "https://example.com/voice.wav" }. Use a photo and audio you have permission to use. Optionalpromptandmask_urlfields are documented in the API reference. - Save the original task ID emitted as a string. Each input sends one asynchronous submission that may use Credits. Check application history before repeating an uncertain submission.
- Pass the original ID to Dreamina task. You can also import the Check an existing Dreamina task example and set an ID from application history. The first output carries a completed video at
msg.payload.result.video_url. The second carries a pending or temporarily unavailable task withmsg.payload.idfor another lookup.
Route request failures and failed tasks through a Catch node. Each lookup sends one request using the same task ID.