GPT Image Editing
Image
GPT Image Editing
POST
GPT Image Editing
Use GPT image editing models to intelligently edit and modify existing images via text descriptions. Supports multiple image formats and quality options to meet various image editing needs.
Request Headers
string
required
Enum:
application/jsonstring
required
Bearer authentication format: Bearer {{API Key}}.
Request Body
string
required
The model used for image editing. Currently supports
gpt-image-1, gpt-image-1.5.file[]
required
Array of images to be edited (multipart/form-data).For
gpt-image-1, gpt-image-1.5, each image must be in png, webp, or jpg format, under 50MB per image, with a maximum of 16 images.string
required
Text description of the desired edited image.For
gpt-image-1, gpt-image-1.5, the maximum length is 32000 characters.string
Quality of the generated image, Default:
auto.For gpt-image-1, gpt-image-1.5, supported values are: auto, high, medium, low.integer
Number of images to generate, Range: 1~10, Default: 1.
string
Size of the generated image, Default:
auto.For gpt-image-1, gpt-image-1.5, supported values are:1024x1024: Square1536x1024: Landscape1024x1536: Portraitauto: Default
Response Parameters
integer
required
Unix timestamp (in seconds) of when the image was generated.
array
required
List of generated images.
object
Only supported by
gpt-image-1, gpt-image-1.5. Token usage information for image generation.