Nodes/comfyui-byokey/BYOKey GPT Image (OpenAI)
ComfyUI Node

BYOKey GPT Image (OpenAI)

Generate images via OpenAI GPT Image / DALL-E 3 with your own API key (no ComfyOrg proxy).

By MeteorAndy·Created 3 months ago·Updated 2 months ago· 0
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)

NameTypeDefaultDescription
api_keySTRINGYour OpenAI API key (sk-...).
base_urlSTRINGhttps://api.openai.com/v1OpenAI-compatible API base URL. Override for relays/proxies.
promptSTRINGText prompt for GPT Image.
modelCOMBOgpt-image-2The OpenAI image model to use.
sizeCOMBOautoImage size. Select 'Custom' to use custom width/height (gpt-image-2 only).
qualityCOMBOlowImage quality. GPT Image: low/medium/high. DALL-E 3: standard/hd.
backgroundCOMBOautoReturn image with or without background. 'transparent' is not supported by gpt-image-2.
nINT11–8How many images to generate.
seedINT00–2147483647not implemented yet in backend
custom_widthoptINT10241024–3840Used only when size is 'Custom'. Multiple of 16 (gpt-image-2 only).
custom_heightoptINT10241024–3840Used only when size is 'Custom'. Multiple of 16 (gpt-image-2 only).
styleoptCOMBOnaturalDALL-E 3 only. Vivid leans hyper-real/dramatic; natural is more natural.
imageoptIMAGEOptional reference image(s) for editing (gpt-image-* only).
maskoptMASKOptional inpaint mask (white areas replaced). Requires exactly one reference image.

Outputs (1)

NameTypeDescription
imageIMAGE