@acedatacloud/node-red-midjourney 1.0.0
Generate, edit and animate Midjourney images in Node-RED with an Ace Data Cloud key that has Midjourney access.
Midjourney for Node-RED
Generate or edit a Midjourney image, animate an image, or retrieve an existing result in a Node-RED flow. Both nodes use one Midjourney account configuration.
Install
Use Node.js 22 or later with Node-RED 4 or 5. This integration requires an Ace Data Cloud application that already has Midjourney API access.
In Manage palette → Install, search for @acedatacloud/node-red-midjourney. For manual installation, run this command in your Node-RED user directory and restart Node-RED.
npm install @acedatacloud/node-red-midjourney
Generate and retrieve an image
- Import Generate and check a Midjourney image from Import → Examples → @acedatacloud/node-red-midjourney.
- Open Midjourney generate and open its Account configuration. Copy the raw token of an application with Midjourney access from Ace Data Cloud Applications and paste it into Token. If the key uses Allowed APIs, include
/midjourney/imagineand/midjourney/tasks. Add/midjourney/editsor/midjourney/videosto use those operations. - Deploy the flow and click Image 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.
- Read the result in Finished image. 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
Midjourney generate takes a Midjourney request in msg.payload. Select Imagine, Edit, or Video in the editor. Imagine accepts a prompt or an action with an existing image_id. Edit and video generation use a prompt and an image_url. Video extension uses action: "extend" and the original video_id. The node sets async: true and outputs the original task ID as a string.
Midjourney task accepts that ID or one copied from application history. Its outputs carry { id, state, result }. Finished results can include raw_image_url, image_url, sub_image_urls, image_id, and available actions, or video_urls and video_id. Existing Describe tasks return descriptions. The second output carries pending tasks with result: null. A Catch node receives failed tasks and request errors.