gpt-image-2

Open in ShowDoc → · All docs

gpt-image-2

Image

General image generation, text/img-to-image, 27 fixed sizes.

POST /v1/videos

SpecDetail
Modestext→img · img→img
Size10 ratios × 1K/2K/4K (30 total) or auto
Seconds—(image)
Refsup to 5, optional
Billingper image × resolution (1K/2K/4K)

Supported sizes

1K 1024x1024 1024x1536 1536x1024 1152x1536 1536x1152 1216x1520 1520x1216 1536x864 864x1536 2016x864

2K 2048x2048 1344x2016 2016x1344 1536x2048 2048x1536 1600x2000 2000x1600 2048x1152 1152x2048 2688x1152

4K 2880x2880 2336x3504 3504x2336 2448x3264 3264x2448 2560x3200 3200x2560 3840x2160 2160x3840 3360x1440

Model notes

Request example

{
  "model": "gpt-image-2",
  "prompt": "a neon fox, cinematic",
  "size": "1024x1024",
  "tier": "2k"
}