Image generation and reference-image editing with flexible output dimensions.
Model ID
Pass this exact public ID in the top-level model field. Do not substitute an upstream provider alias.
Supported modes
image_generation
image_edit
Outputs
Capabilities
Text-to-image
Image editing
Additional capabilities
Reference images
Transparent backgrounds (preview)
Technical details
Generated images are returned as public HTTPS URLs only. Each URL is retained for 24 hours; copy the image to storage you control before it expires.
See the OpenAI image API reference for generation and editing examples, custom size constraints, request limits, and errors. GENGEN accepts only the model IDs listed in that reference, not dated OpenAI snapshots.
Try GPT Image 2 in API Explorer.
See the API reference overview for authentication, request conventions, and response schemas.