Learn how to use the OpenAI GPT-Image-1 API node to generate images in ComfyUI
Parameter | Type | Description |
---|---|---|
prompt | Text | Text prompt describing the image content you want to generate |
Parameter | Type | Options | Default | Description |
---|---|---|---|---|
seed | Integer | 0-2147483647 | 0 | Random seed used to control generation results |
quality | Option | low, medium, high | low | Image quality setting, affects cost and generation time |
background | Option | opaque, transparent | opaque | Whether the returned image has a background |
size | Option | auto, 1024x1024, 1024x1536, 1536x1024 | auto | Size of the generated image |
n | Integer | 1-8 | 1 | Number of images to generate |
Parameter | Type | Options | Default | Description |
---|---|---|---|---|
image | Image | Any image input | None | Optional reference image for image editing |
mask | Mask | Mask input | None | Optional mask for inpainting (white areas will be replaced) |
OpenAI GPT-Image-1
node, input the description of the image you want to generate in the prompt
node, connect a Save Image
node, and then run the workflow.
OpenAI GPT-Image-1
node to generate images and the Load Image
node to load the input image, then connect it to the image
input of the OpenAI GPT-Image-1
node.
Batch Images
node is used to load multiple images into the OpenAI GPT-Image-1
node.
Load Image
node through the right-click menu to draw a mask, then connect it to the mask
input of the OpenAI GPT-Image-1
node to complete the workflow.
Notes
Why can't I find the API nodes?
release
version may not be updated in time compared to the nightly
version.
Since we are still iterating quickly, please ensure you are using the latest version when you cannot find the corresponding node.Why can't I use / log in to the API Nodes?
127.0.0.1
or localhost
, which may mean that you cannot use the API Nodes in a ComfyUI service started with the --listen
parameter in a LAN environment.Why can't I use API node even after logging in, or why does it keep asking me to log in while using?
127.0.0.1
or localhost
access is supported.Can API Nodes be used for free?
How to purchase credits?
User
section in the settings menu to log in.Settings
→ Credits
. We use a prepaid system, so there will be no unexpected charges.Are unused credits refundable?
Can credits go negative?
Where can I check usage and expenses?
Is it possible to use my own API Key?
Do credits expire?
Can credits be transferred or shared?
Can I use the same account on different devices?
How can I request for my account or information to be deleted??