← Back
gpt-image-2
openai/gpt-image-2
Image
🔑 API Key
👁
Required — enter your API key to use the playground
n
— Number of images to generate
1
size
— Output image size
1024x1024
1536x1024
1024x1536
2048x2048
auto
quality
— Rendering quality
low
medium
high
auto
background
— Background type (gpt-image-2 does not support transparent)
opaque
auto
output_format
— Output file format
png
jpeg
webp
▶ Playground
📖 API & Code
mask
— Mask image for partial editing (PNG with alpha channel)
📎 Upload
image
— Reference images for editing (base64 data URL or HTTP URL)
+ Add item
prompt
*
— Text description of the image to generate or edit
🖼️ Generate Image