@acedatacloud/node-red-gpt-image 1.0.0
Generate, edit and retrieve GPT Image artwork in Node-RED.
GPT Image for Node-RED
Generate, edit and retrieve GPT Image artwork in Node-RED.
Install
Use Node.js 22+ and Node-RED 4+. In Manage palette → Install, search for @acedatacloud/node-red-gpt-image. For manual installation, run this command in your Node-RED user directory and restart the editor.
npm install @acedatacloud/node-red-gpt-image
Generate and check a result
- Import Generate and check a GPT Image image from Import → Examples → @acedatacloud/node-red-gpt-image.
- Open GPT Image generate and configure an Ace Data Cloud application token. Enter the raw token. Include
/openai/images/generationsand/openai/tasksin Allowed APIs. For editing, also include/openai/images/edits. - 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
GPT Image generate takes a request object in msg.payload. The node sets async: true and returns the original task ID as a string.
Select Edit and supply image as one URL or an array of URLs to modify existing images. Use the same task node to retrieve either operation. The result includes data[].url or data[].b64_json, depending on the API response.
GPT Image 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.