gpt-image-1-5
Model Overview
A powerful image generation and editing model that supports text-to-image, image-to-image, and inpainting with masks and reference inputs — all guided by a text prompt.
How to Make a Call
API Schema
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: Code Example
We obtained the following 1536×1024 image by running this code example (~26 s):

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