gpt-image-1
Model Overview
Setup your API Key
API Schemas
Generate image
The text prompt describing the content, style, or composition of the image to be generated.
Allows to set transparency for the background of the generated image(s). When auto is used, the model will automatically determine the best background for the image. If transparent, the output format needs to support transparency, so it should be set to either png (default value) or webp.
autoPossible values: Control the content-moderation level for images.
autoPossible values: The number of images to generate.
1Possible values: The compression level (0-100%) for the generated images.
100The format of the generated image.
pngPossible values: The quality of the image that will be generated.
mediumPossible values: The size of the generated image.
1024x1024Possible values: The format in which the generated images are returned.
urlPossible values: Edit image
Bearer key
The text prompt describing the content, style, or composition of the image to be generated.
The image(s) to edit. Must be a supported image file or an array of images. Each image should be a png, webp, or jpg file less than 50MB. You can provide up to 16 images.
An additional image whose fully transparent areas (e.g. where alpha is zero) indicate where image should be edited. If there are multiple images provided, the mask will be applied on the first image. Must be a valid PNG file, less than 4MB, and have the same dimensions as image.
Allows to set transparency for the background of the generated image(s). When auto is used, the model will automatically determine the best background for the image. If transparent, the output format needs to support transparency, so it should be set to either png (default value) or webp.
autoPossible values: The number of images to generate.
1The compression level (0-100%) for the generated images.
100The format of the generated image.
pngPossible values: The quality of the image that will be generated.
mediumPossible values: The size of the generated image.
1024x1024Possible values: The format in which the generated images are returned.
urlPossible values: Successfully edited image
Successfully edited image
Quick Examples
Generate image

"A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses. Realistic photo."Edit image: Combine images

Edit image: Use an image mask

Last updated
Was this helpful?



