GPT Image 2 API

OpenAI's GPT Image 2 for generation and precise image editing

openai/gpt-image-2
OpenAIPicture

About this model

GPT Image 2 is the model OpenAI launched on April 21, 2026 behind ChatGPT Images 2.0. OpenAI says it is designed for complex visual tasks, with stronger editing, better layouts, improved text rendering and more reliable instruction-following, and it succeeds GPT Image 1 and GPT Image 1.5.

It supports text-to-image and editing: you can pass one image to edit it or several to combine styles, subjects or references, and masked editing changes only a selected region. OpenAI notes it does not support transparent backgrounds.

The later GPT Image 2.5 and 2.6 generations in the catalog split into Flare (faster) and Sunburst (higher detail). The catalog marks this model as supporting image edit.

Use cases

  • Text-to-image with legible text
  • Editing and combining reference images
  • Product mockups and style transfer

Input and output

Input
Text prompt, optional reference images
Output
Images
Developer
OpenAI
Type
Picture
Capabilities
Image editing

GPT Image 2 request example

Use https://gatelum.com/v1 as the base URL and pass openai/gpt-image-2 in the model field. You create the key in your account after signing up.

curl --silent --show-error --fail-with-body \
  --header 'Authorization: Bearer glt_YOUR_KEY' \
  'https://gatelum.com/v1/images/generations' \
  --header "Content-Type: application/json" \
  --data-binary @- <<'JSON'
{
  "model": "openai/gpt-image-2",
  "prompt": "A lighthouse on a rocky shore at sunset, watercolor",
  "n": 1
}
JSON