GPT-Image-1
OpenAI's DALL-E powered image generation
GPT-Image-1
OpenAI's powerful image generation with multi-variant output.
Model ID
gpt-image-1
Price
$0.35/image
Speed
40-70 seconds
Type
Image
Capabilities
| Mode | Description |
|---|---|
gpt-image-1 | Text-to-image and image-to-image generation |
Parameters
For common parameters (request_type, callback_url), see Request Format.
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
mode | string | Yes | - | gpt-image-1 |
prompt | string | Yes | - | Image description (max 10,000 characters) |
image_urls | string[] | No | - | Up to 5 reference images |
aspect_ratio | string | Yes | 1:1 | Output ratio. Options: 1:1, 2:3, 3:2 |
nVariants | integer | Yes | 1 | Number of variations: 1, 2, or 4 |
isEnhance | boolean | No | false | Enable prompt enhancement |
Examples
Generate with Variants
Image Editing
Tips
- Polling: Wait 40 seconds, then poll every 10 seconds
- Timeout: Set max wait to 3 minutes
- Use
nVariants: 4to get multiple options, then iterate on the best one