Key capabilities
- Text-to-Image — Generate images from natural language descriptions
- Image editing — Edit existing images with precise instructions
- Enhanced text — Dense text, small lettering, infographics, and UI mockups
- World knowledge — Context-aware generation with built-in reasoning
- Transparent background — Generate images with transparent backgrounds
- Batch generation — Generate up to 4 images per request
Output specifications
| Property | Value |
|---|---|
| Sizes | 1024x1024, 1536x1024, 1024x1536, auto |
| Quality | low, medium, high |
| Formats | png, webp, jpeg |
| Background | transparent, opaque |
Quick example
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
model | string | Yes | Must be gpt-image-1.5 |
prompt | string | Yes | Text description of the desired image |
n | integer | No | Number of images to generate (1–4). Default: 1 |
size | string | No | 1024x1024, 1536x1024, 1024x1536, auto. Default: auto |
quality | string | No | low, medium, high. Default: medium |
output_format | string | No | png, webp, jpeg. Default: png |
background | string | No | transparent or opaque. Default: opaque |
moderation | string | No | auto or low. Default: auto |
output_compression | integer | No | Compression level for jpeg/webp (0–100). |
API Reference
View the interactive API playground for GPT Image 1.5.