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