Authorizations
Bearer token authentication. Get your API key from the dashboard.
Body
multipart/form-data
The model to use for image editing
Example:
"gpt-image-1"
The image to edit. Must be a valid PNG file, less than 4MB, and square.
An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.
A text description of the desired image(s). The maximum length is 1000 characters.
Maximum length:
1000The number of images to generate
Required range:
1 <= x <= 10The size of the generated images
Available options:
256x256, 512x512, 1024x1024 The format in which the generated images are returned
Available options:
url, b64_json A unique identifier representing your end-user