@acedatacloud/node-red-gpt-image 1.0.0

Generate, edit and retrieve GPT Image artwork in Node-RED.

npm install @acedatacloud/node-red-gpt-image

GPT Image for Node-RED

GPT Image

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

  1. Import Generate and check a GPT Image image from Import → Examples → @acedatacloud/node-red-gpt-image.
  2. Open GPT Image generate and configure an Ace Data Cloud application token. Enter the raw token. Include /openai/images/generations and /openai/tasks in Allowed APIs. For editing, also include /openai/images/edits.
  3. 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.
  4. 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.

Node Info

Version: 1.0.0
Updated 5 days ago
License: MIT
Rating: not yet rated

Categories

Actions

Rate:

Downloads

0 in the last week

Nodes

  • acedatacloud-gpt-image-account
  • acedatacloud-gpt-image-generate
  • acedatacloud-gpt-image-task

Keywords

  • node-red
  • gpt-image
  • image
  • acedatacloud

Maintainers