{"id":21022830,"url":"https://github.com/ubos-tech/node-red-contrib-image-generation-ubos","last_synced_at":"2025-10-08T14:36:35.830Z","repository":{"id":174703083,"uuid":"652553464","full_name":"UBOS-tech/node-red-contrib-image-generation-ubos","owner":"UBOS-tech","description":"A Node-RED node that interacts with OpenAI machine learning models to generate image outputs like 'DALL·E 2'.","archived":false,"fork":false,"pushed_at":"2023-06-19T14:29:15.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-14T00:01:11.983Z","etag":null,"topics":["ai","chatgpt","chatgpt-api","dall-e","dalle-2","image-generation","image-generator-using-openai-api","image-generators","machine-learning","no-code","node-red","node-red-flow","nodejs","openai"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/UBOS-tech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-12T09:59:26.000Z","updated_at":"2024-03-08T18:46:37.000Z","dependencies_parsed_at":"2023-07-13T14:00:39.405Z","dependency_job_id":null,"html_url":"https://github.com/UBOS-tech/node-red-contrib-image-generation-ubos","commit_stats":null,"previous_names":["ubos-tech/node-red-contrib-image-generation-ubos"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/UBOS-tech/node-red-contrib-image-generation-ubos","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UBOS-tech%2Fnode-red-contrib-image-generation-ubos","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UBOS-tech%2Fnode-red-contrib-image-generation-ubos/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UBOS-tech%2Fnode-red-contrib-image-generation-ubos/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UBOS-tech%2Fnode-red-contrib-image-generation-ubos/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/UBOS-tech","download_url":"https://codeload.github.com/UBOS-tech/node-red-contrib-image-generation-ubos/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/UBOS-tech%2Fnode-red-contrib-image-generation-ubos/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275082374,"owners_count":25402339,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","chatgpt","chatgpt-api","dall-e","dalle-2","image-generation","image-generator-using-openai-api","image-generators","machine-learning","no-code","node-red","node-red-flow","nodejs","openai"],"created_at":"2024-11-19T11:14:09.223Z","updated_at":"2025-09-17T16:43:41.656Z","avatar_url":"https://github.com/UBOS-tech.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"## node-red-contrib-image-generation-ubos\n\nA Node-RED node that interacts with OpenAI machine learning models to generate image outputs like 'DALL·E 2'.\n\n\u003cimg width=\"100%\"  alt=\"Ubos - End-to-End Software Development Platform\" src=\"https://ubos.tech/wp-content/uploads/2023/03/cropped-Group-21015-1.png\"\u003e\n\n\u003ch3 align=\"center\"\u003e\n  \u003cb\u003e\u003ca href=\"https://ubos.tech/\"\u003eUBOS\u003c/a\u003e\u003c/b\u003e\n  •\n  \u003ca href=\"https://community.ubos.tech/\"\u003eCommunity\u003c/a\u003e\n  •\n  \u003ca href=\"https://www.youtube.com/@ubos_tech\"\u003eYoutube\u003c/a\u003e\n  •\n  \u003ca href=\"https://discord.com/invite/dt59QaptH2\"\u003eDiscord\u003c/a\u003e\n  •\n  \u003ca href=\"https://github.com/UBOS-tech\"\u003eGitHub\u003c/a\u003e\n\u003c/h3\u003e\n\n\u003cdiv align=\"center\"\u003e\n \n[![flow](https://img.shields.io/badge/platform-Node--RED-red)](https://flows.nodered.org/node/node-red-contrib-image-generation-ubos)\n[![npm](https://img.shields.io/npm/v/node-red-contrib-image-generation-ubos)](https://www.npmjs.com/package/node-red-contrib-image-generation-ubos)\n \n\u003c/div\u003e\n\n### Quick Start\n\nInstall with the built in \u003cb\u003eNode-RED Palette manager\u003c/b\u003e or using npm:\n```\nnpm install node-red-contrib-image-generation-ubos\n```\n\n## Setup\n\nWhen editing the nodes properties, to get your `OPENAI_API_KEY` visit https://platform.openai.com/account/api-keys click \"+ Create new secret key\" then copy and paste the \"API key\" into the nodes `API_KEY` property value.\n\nTo get your `Organization` visit https://platform.openai.com/account/org-settings then copy and paste the \"OrganizationID\" into the nodes `Organization` property value.\n\n## Properties\n\n - **[Required]** `msg.OPENAI_API_KEY`: This is the API key provided by OpenAI. It is necessary for authentication when making requests to the OpenAI API.\n\n1. When `msg.type` is set to `create_image`:\n    - **[Required]** `msg.prompt`: A text description of the desired image(s). The maximum length is 1000 characters.\n\n    - `msg.n`: The number of images to generate. Must be between 1 and 10.\n    - `msg.size`: The size of the generated images. Must be one of ***256x256***, ***512x512***, or ***1024x1024***.\n    - `msg.response_format`: The format in which the generated images are returned. Must be one of ***url*** or ***b64_json***.\n    - `msg.user`: A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids)\n\n2. When `msg.type` is set to `create_image_edit`:\n    - **[Required]** `msg.image`: The image to edit. Must be a valid PNG file, less than 4MB, and square. If mask is not provided, image must have transparency, which will be used as the mask. For example:\n   ```js\n    msg.image = {\n        \"value\": msg.req.files[0].buffer,\n        \"options\": {\n            \"filename\": msg.req.files[0].originalname\n        }\n    };\n   ```\n\n    - `msg.mask`: An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where `image` should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as `image`. For example\n   ```js\n    msg.mask = {\n        \"value\": msg.req.files[1].buffer,\n        \"options\": {\n            \"filename\": msg.req.files[1].originalname\n        }\n    };\n   ```\n\n    - **[Required]** `msg.prompt`: A text description of the desired image(s). The maximum length is 1000 characters.\n\n    - `msg.n`: The number of images to generate. Must be between 1 and 10.\n    - `msg.size`: The size of the generated images. Must be one of ***256x256***, ***512x512***, or ***1024x1024***.\n    - `msg.response_format`: The format in which the generated images are returned. Must be one of ***url*** or ***b64_json***.\n    - `msg.user`: A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids)\n\n3. When `msg.type` is set to `create_image_variation`:\n    - **[Required]** `msg.image`: The image to use as the basis for the variation(s). Must be a valid PNG file, less than 4MB, and square. For example\n   ```js\n    msg.image = {\n        \"value\": msg.req.files[0].buffer,\n        \"options\": {\n            \"filename\": msg.req.files[0].originalname\n        }\n    };\n   ```\n    - `msg.n`: The number of images to generate. Must be between 1 and 10.\n    \n    - `msg.size`: The size of the generated images. Must be one of ***256x256***, ***512x512***, or ***1024x1024***.\n    - `msg.response_format`: The format in which the generated images are returned. Must be one of ***url*** or ***b64_json***.\n    - `msg.user`: A unique identifier representing your end-user, which can help OpenAI to monitor and detect abuse. [Learn more](https://platform.openai.com/docs/guides/safety-best-practices/end-user-ids)\n\n## Demo\n\n### Create image\n![Group 21](https://github.com/UBOS-tech/node-red-contrib-image-generation-ubos/assets/41735477/5b45a32f-5d3b-4507-a107-636f5c94dd16)\n\n### Image edit\n![Group 21](https://github.com/UBOS-tech/node-red-contrib-image-generation-ubos/assets/41735477/ef7e4f86-cc18-433b-9fa8-3fbfdea767a0)\n\n### Image variation\n![Group 21 (1)](https://github.com/UBOS-tech/node-red-contrib-image-generation-ubos/assets/41735477/cfec7633-1f90-4f5e-9ecd-1da1534110cb)\n\n### Bugs reports and feature requests\n\nPlease report any issues or feature requests at \u003ca href=\"https://github.com/UBOS-tech/node-red-contrib-image-generation-ubos/issues\"\u003eGitHub\u003c/a\u003e.\n\n## License\n\n[MIT License](https://github.com/UBOS-tech/node-red-contrib-image-generation-ubos/blob/main/LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubos-tech%2Fnode-red-contrib-image-generation-ubos","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fubos-tech%2Fnode-red-contrib-image-generation-ubos","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fubos-tech%2Fnode-red-contrib-image-generation-ubos/lists"}