gpt-image-2
OpenAI’s latest image generation and editing model with a reasoning thinking mode achieving 99%+ text rendering accuracy, supporting up to 2K resolution, flexible aspect ratios, and multilingual text, deeply integrated i
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
gpt-image-2 Length must be between 1 and 32000.
1 - 32000Up to 10 reference images.
1 - 10 elementsOptional mask for local editing; transparent areas are regenerated.
This field's allowed values depend on: images.
Must be one of: high, low, medium. Defaults to medium.
high, low, medium Must be one of: 1024x1024, 1024x1536, 1536x1024, 2048x1152, 2048x2048, 2160x3840, 3840x2160, auto. Defaults to auto.
1024x1024, 1024x1536, 1536x1024, 2048x1152, 2048x2048, 2160x3840, 3840x2160, auto Response
Business response. code=0 means the task was accepted; validation failures can return HTTP 200 with code=400.