@acedatacloud/node-red-nano-banana 1.0.0
Generate, edit and retrieve Nano Banana images in Node-RED.
Nano Banana for Node-RED
Generate, edit and retrieve Nano Banana images in Node-RED.
Install
Use Node.js 22+ and Node-RED 4+. In Manage palette → Install, search for @acedatacloud/node-red-nano-banana. For manual installation, run this command in your Node-RED user directory and restart the editor.
npm install @acedatacloud/node-red-nano-banana
Generate and check a result
- Import Generate and check a Nano Banana image from Import → Examples → @acedatacloud/node-red-nano-banana.
- Open Nano Banana generate and configure an Ace Data Cloud application token. Enter the raw token. Include
/nano-banana/imagesand/nano-banana/tasksin Allowed APIs. - 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
Nano Banana generate takes a request object in msg.payload. The node sets async: true and returns the original task ID as a string.
For editing, send action: "edit" with a prompt and one or more reference URLs in image_urls. The result includes data[].image_url.
Nano Banana task accepts that ID or one copied from application history. Its outputs carry { id, state, result }. The first output carries a finished result. The second carries a pending task with result: null. A Catch node receives failed tasks and request errors.