ComfyUI Node
BYOKey GPT Image (OpenAI)
Generate images via OpenAI GPT Image / DALL-E 3 with your own API key (no ComfyOrg proxy).
BYOKey GPT Image (OpenAI)
- image
- mask
- image
◄api_key►
◄base_urlhttps://api.openai.com/v1►
◄prompt►
◄modelgpt-image-2►
◄sizeauto►
◄qualitylow►
◄backgroundauto►
◄n1►
◄seed0►
◄custom_width1024►
◄custom_height1024►
◄stylenatural►
Categoryapi/byokey/image
Inputs (14)
| Name | Type | Default | Description |
|---|---|---|---|
| api_key | STRING | Your OpenAI API key (sk-...). | |
| base_url | STRING | https://api.openai.com/v1 | OpenAI-compatible API base URL. Override for relays/proxies. |
| prompt | STRING | Text prompt for GPT Image. | |
| model | COMBO | gpt-image-2 | The OpenAI image model to use. |
| size | COMBO | auto | Image size. Select 'Custom' to use custom width/height (gpt-image-2 only). |
| quality | COMBO | low | Image quality. GPT Image: low/medium/high. DALL-E 3: standard/hd. |
| background | COMBO | auto | Return image with or without background. 'transparent' is not supported by gpt-image-2. |
| n | INT | 11–8 | How many images to generate. |
| seed | INT | 00–2147483647 | not implemented yet in backend |
| custom_widthopt | INT | 10241024–3840 | Used only when size is 'Custom'. Multiple of 16 (gpt-image-2 only). |
| custom_heightopt | INT | 10241024–3840 | Used only when size is 'Custom'. Multiple of 16 (gpt-image-2 only). |
| styleopt | COMBO | natural | DALL-E 3 only. Vivid leans hyper-real/dramatic; natural is more natural. |
| imageopt | IMAGE | Optional reference image(s) for editing (gpt-image-* only). | |
| maskopt | MASK | Optional inpaint mask (white areas replaced). Requires exactly one reference image. |
Outputs (1)
| Name | Type | Description |
|---|---|---|
| image | IMAGE | — |