Generate Images
OpenAI
GPT Image 1.5
Generate images from text prompts using the GPT Image 1.5 model.
POST
Generate Images
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
application/json
Model ID.
Available options:
gpt-image-1.5 Example:
"gpt-image-1.5"
Text description of the desired image.
Example:
"A cute cat wearing a space suit floating in the galaxy"
Number of images to generate.
Required range:
1 <= x <= 4Example:
1
Output image size.
Available options:
1024x1024, 1536x1024, 1024x1536, auto Example:
"1024x1024"
Image quality.
Available options:
low, medium, high Example:
"high"
Output image format.
Available options:
png, webp, jpeg Example:
"png"
Background setting. transparent for transparent background, opaque for opaque background.
Available options:
transparent, opaque Example:
"opaque"
Content moderation level.
Available options:
auto, low Example:
"auto"
Compression level for jpeg and webp formats (0-100%).
Required range:
0 <= x <= 100Example:
80
Response
Images generated successfully.
Array of generated images.