Get API Key:
Visit the API Key Management Page to get your API Key
Add to request header:
Authorization: Bearer YOUR_API_KEYImage generation model name
gpt-image-1.5-lite "gpt-image-1.5-lite"
Prompt describing the image you want to generate, or describing how to edit the input image. Limited to 2000 tokens
2000"A beautiful colorful sunset over the ocean"
Size of the generated image, supports two formats:
Aspect Ratio Format:
1:1: Square2:3: Portrait3:2: LandscapePixel Format:
1024x1024: Square1024x1536: Portrait1536x1024: Landscape1:1, 2:3, 3:2, 1024x1024, 1024x1536, 1536x1024 "1024x1024"
Quality of the generated image
Supported quality levels:
low: Low quality, faster generationmedium: Medium qualityhigh: High quality, slower generationauto: Automatic selection (default)low, medium, high, auto "auto"
Reference image URL list for image-to-image and image editing features
Notes:
1~16 images per request50MB.jpeg, .jpg, .png, .webp.png, .jpg)[
"https://example.com/image1.png",
"https://example.com/image2.png"
]Number of images to generate, currently only supports 1
1 1
Image task created successfully
Task creation timestamp
1757156493
Task ID
"task-unified-1757156493-imcg5zqt"
Actual model name used
"gpt-image-1.5-lite"
Task object type
image.generation.task Task progress percentage (0-100)
0 <= x <= 1000
Task status
pending, processing, completed, failed "pending"
Async task information
Task output type
text, image, audio, video "image"
Usage and billing information