@acedatacloud/node-red-media 1.1.0
Search for reference images with Google and generate or retrieve audio, images and video using ten Ace Data Cloud media services in Node-RED.
Ace Data Cloud media for Node-RED
Generate music with Suno or ACE Music, images with Nano Banana, GPT Image, Seedream or FLUX, and video with Seedance, Kling, Veo or Hailuo. The Ace image search node finds reference images and their source pages. The Ace media generate node submits one job per input. The Ace media task node looks up an existing job and routes the available media.
Install
Search for @acedatacloud/node-red-media in Manage palette → Install, or run this command in your Node-RED user directory and restart Node-RED.
npm install @acedatacloud/node-red-media
Use Node.js 22+ and Node-RED 4 or 5. Find the three flow nodes in the network category. The separate @acedatacloud/node-red-acemusic package continues to handle flows using the original ACE Music task node.
Find reference images
Use Ace image search with a Google Search application token. Send a string query in msg.payload and optionally select an image size in the editor. The node makes one synchronous, billable image search per input. The output payload is the images array in search order. Use image_url to reference the image and keep link to identify its source page. An empty array indicates no matches. A Catch node receives request errors.
Import Find reference images from the package examples to try a query and inspect its results in Debug. See the Google Search API contract for the returned fields.
Submit a job
- Add Ace media generate, select a service, and configure an account with an Ace Data Cloud application token that can access that service. Node-RED stores the token in the shared account's password credential.
- Connect an Inject node configured to send JSON. Select a request from the table or use the service's linked API contract for its supported settings. The node sets
async: trueand sends one request per input. Submitting a job can incur charges. - Save the returned task ID from
msg.payload. The node also setsmsg.aceServicefor downstream task lookup. A Catch node receives request errors. If a submission times out, check your application history before retrying.
| Service and request format | Example input in msg.payload |
|---|---|
| Suno | {"action":"generate","prompt":"An upbeat instrumental about a paper boat","instrumental":true} |
| ACE Music | {"action":"generate","prompt":"An upbeat song about a paper boat"} |
| Nano Banana | {"action":"generate","prompt":"A paper boat on a pond"} |
| GPT Image | {"model":"gpt-image-2","prompt":"A paper boat on a pond"} |
| Seedream | {"model":"doubao-seedream-5-0-lite-260128","prompt":"A paper boat on a pond"} |
| FLUX | {"action":"generate","prompt":"A paper boat on a pond","size":"1024x1024"} |
| Seedance | {"model":"doubao-seedance-1-5-pro-251215","content":[{"type":"text","text":"A paper boat drifting on a pond"}]} |
| Kling | {"action":"text2video","prompt":"A paper boat drifting on a pond"} |
| Veo | {"action":"text2video","prompt":"A paper boat drifting on a pond"} |
| Hailuo | {"action":"generate","model":"minimax-t2v","prompt":"A paper boat drifting on a pond"} |
Check an existing task
Import Examples → @acedatacloud/node-red-media → Check a media task. Select the service and account that created your task and put its ID in the Inject node's string payload. Deploy the flow and click Inject to perform one lookup.
Both outputs preserve other message properties and set msg.payload to an object containing id, service, state and assets. On the first output, an asset contains its type (audio, image or video) and its HTTPS url. GPT Image and Seedream can also return inline image data as b64_json. The node reads primary media such as a Suno track's audio, a Seedance task's content video or a Kling task's top-level video. A partial task can already contain media.
The second output carries tasks without media. Inspect state before deciding whether to look up the same ID again. To perform another lookup, put msg.payload.id back into msg.payload. An unknown ID, an inconsistent task ID, a credential failure or a network error triggers a Catch node. Keep task IDs and private result links within your own flows.