> ## Documentation Index
> Fetch the complete documentation index at: https://docs.omniall.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT-Image

> OpenAI GPT-Image series via /v1/images.

# GPT-Image

Use OpenAI GPT-Image models (e.g. `gpt-image-2`, `gpt-image-2.5`, `gpt-image-2.5-flare`, `gpt-image-2.5-exact`, `gpt-image-2.5-sunburst`) with:

* `POST /v1/images/generations` — generate
* `POST /v1/images/edits` — edit (JSON and `multipart/form-data`)

Common fields: `prompt`, `size` / `aspect_ratio`, `quality`, `n`, `background`, `output_format`, `response_format`; optional `stream` when supported. Pick `model` from the [Model Square](https://omniall.ai/pricing).

## Supported aspect ratios and resolutions

Pixel sizes by quality tier (1K / 2K / 4K) and aspect ratio:

| Ratio | 1K | 2K | 4K |
| - | - | - | - |
| 3:1 | 1536×512 | 3072×1024 | 3840×1280 |
| 21:9 | 1344×576 | 2688×1152 | 3840×1648 |
| 16:9 | 1280×720 | 2048×1152 | 3840×2160 |
| 3:2 | 1152×768 | 2304×1536 | 3520×2352 |
| 4:3 | 1024×768 | 2048×1536 | 3312×2480 |
| 1:1 | 1024×1024 | 2048×2048 | 2880×2880 |
| 3:4 | 768×1024 | 1536×2048 | 2480×3312 |
| 2:3 | 768×1152 | 1536×2304 | 2352×3520 |
| 9:16 | 720×1280 | 1152×2048 | 2160×3840 |
| 1:3 | 512×1536 | 1024×3072 | 1280×3840 |

You can also pass `size` directly (e.g. `1024x1024`, `2048x1152`, `3840x2160`, `auto`). For custom sizes: max side ≤ 3840px, both sides multiples of 16, aspect ratio ≤ 3:1, total pixels roughly 655360–8294400.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.