OpenAI GPT-Image generation — multi-generation lineup, multi-ratio multi-resolution, reference images and mask inpainting
OpenAI’s GPT-Image generation models, across three generations:Documentation Index
Fetch the complete documentation index at: https://docs.qingbo.dev/llms.txt
Use this file to discover all available pages before exploring further.
| Model | Price (per image) |
|---|---|
gpt-image-2 | $0.006375 |
gpt-image-1.5-official | $0.09044 |
gpt-image-1-official | $0.11356 |
| Mode | Trigger Fields | Supported Versions |
|---|---|---|
| Text-to-image | prompt only, action: "generate" (default) | All |
| Image-to-image | + image_urls + action: "image2image" | All |
| Image editing | + image_urls + action: "edit" | All |
| Multi-image reference | + image_urls (multiple) + action: "reference" | All (up to 16) |
| Inpainting (mask) | + image_urls + mask_url + action: "inpaint" | All |
GET /v1/tasks/{task_id}. See Task System for details.
| Model ID | Description |
|---|---|
gpt-image-2 | Flagship new release, 13 ratios × 1K/2K/4K, up to 16 reference images |
gpt-image-1.5-official | Upgraded GPT-Image-1 with significantly improved visual quality and instruction following |
gpt-image-1-official | Multimodal text + image understanding, suited for high-quality generation and editing |
generate — text-to-image (default)image2image — image-to-image (requires image_urls)edit — image editingreference — multi-image reference fusioninpaint — inpainting (requires mask_url)-1 means random. A fixed value reproduces similar results.auto / 1:1 / 3:2 / 2:3 / 4:3 / 3:4 / 5:4 / 4:5 / 16:9 / 9:16 / 2:1 / 1:2 / 21:9 / 9:21 (14 total)1:1 / 3:2 / 2:3 (3 only)1k — 1K tier2k — 2K tier4k — 4K tier (only 6 ratios available: 16:9 / 9:16 / 2:1 / 1:2 / 21:9 / 9:21)["completed", "failed"]generate / image2image / edit / reference / inpaintaspect_ratio (14): auto / 1:1 / 3:2 / 2:3 / 4:3 / 3:4 / 5:4 / 4:5 / 16:9 / 9:16 / 2:1 / 1:2 / 21:9 / 9:21resolution: 1k / 2k / 4k (4K limited to 16:9 / 9:16 / 2:1 / 1:2 / 21:9 / 9:21)Highlights: 13 ratios × three resolution tiers with independent billing, up to 16 reference images (URL / base64), OpenAI per-image pixel ceiling of 8.29M.auto — automatic (default)low — low qualitymedium — medium qualityhigh — high qualityauto — automatic (default)opaque — opaquetransparent — transparent background (not supported on the official channel)action: "inpaint")auto — automatic (default)low — low restrictionpng — defaultjpegwebpjpeg / webp.gpt-image-2-official channel| Item | Limit |
|---|---|
| Reference image count | Up to 16 (URL or base64) |
| Per-image pixel ceiling | 8.29M pixels (OpenAI’s official limit) |
| Per-image size | ≤ 30MB; supports JPG/PNG/WEBP |
| Output resolution | GPT-Image-2 up to 4K (select ratios); others use default |
| Output file | PNG (default) / JPEG / WEBP (GPT-Image-2 only); URLs valid for 24 hours |
| Transparent background | background: transparent only supported on non-official channels |