gpt-image-1-mini
Model Overview
How to Make a Call
API Schema
post
Body
modelstring · enumRequiredPossible values:
promptstring · max: 32000Required
The text prompt describing the content, style, or composition of the image to be generated.
backgroundstring · enumOptionalDefault:
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: moderationstring · enumOptionalDefault:
Control the content-moderation level for images.
autoPossible values: nnumber · enumOptionalDefault:
The number of images to generate.
1Possible values: output_compressioninteger · max: 100OptionalDefault:
The compression level (0-100%) for the generated images.
100output_formatstring · enumOptionalDefault:
The format of the generated image.
pngPossible values: qualitystring · enumOptionalDefault:
The quality of the image that will be generated.
mediumPossible values: sizestring · enumOptionalDefault:
The size of the generated image.
1024x1024Possible values: response_formatstring · enumOptionalDefault:
The format in which the generated images are returned.
urlPossible values: Responses
200Success
application/json
post
/v1/images/generations200Success
Code Example

"A T-Rex relaxing on a beach, lying on a sun lounger and wearing sunglasses. Realistic photo."Last updated
Was this helpful?