Generate image
OpenAI
GPT Image 2 Edit
POST
Generate image
Authorizations
Bearer authentication using API key
Body
application/json
Request payload
Request format for image generation models
Array of input images, which can be data URL or image URL
Required array length:
1 - 16 elementsModel name to use for the request
Available options:
openai/gpt-image-2-edit Text prompt for generation
Fixed size
Available options:
1024x768, 1024x1024, 1024x1536, 1920x1080, 2560x1440, 3840x2160 Mask image for inpainting, it can be data URL or image URL
Content moderation strategy
Available options:
auto, low Number of outputs to generate
Required range:
1 <= x <= 10Output format for the 3D model
Available options:
jpg, png Quality option
Available options:
low, medium, high 