Skip to main content
GPT Image 2.5 is OpenAI’s image generation and editing model family. AnyFast exposes both models through the Image API: Both models accept text and image inputs and return images. Use POST /v1/images/generations to create an image from text, or POST /v1/images/edits to edit one or more uploaded images.

What changed in GPT Image 2.5

  • Higher reference fidelity — Subjects, distinctive features, lighting, and textures are more likely to remain recognizable after transformation.
  • More precise edits — The model is better at changing the requested element while preserving the surrounding subject, composition, and visual treatment.
  • More consistent iteration — Successive edits are less likely to undo earlier changes or degrade image quality.
  • Faster generation — OpenAI positions Flare as the default choice for most applications and reports up to 50% lower latency than GPT Image 2.
  • Better layout handling — Complex visual instructions, transparent backgrounds, and layout-sensitive creative work are more reliable.

Official editing example

This OpenAI launch example changes the subject’s clothing while preserving the person, pose, printed-photo setting, and blue background.
Input photograph of a printed child portrait with a red shirt and blue background

Input — OpenAI official example

Edited printed child portrait with an ivory tuxedo while preserving the pose and blue background

Edited result — OpenAI official example

These assets come from the OpenAI GPT Image 2.5 launch article. They illustrate upstream model behavior and are not presented as an AnyFast-generated validation result.

Key capabilities

  • Text-to-image — Generate an image from a natural-language prompt
  • Image editing — Apply broad or localized edits to uploaded images
  • Flexible dimensions — Use recommended sizes or valid custom WIDTHxHEIGHT dimensions up to 4K
  • Expanded quality controls — Select low, medium, high, xhigh, max, or auto
  • Transparent output — Request a transparent background with PNG or WebP output
  • Multiple outputs — Use n to request more than one result in one generation request
Send a JSON request to POST /v1/images/generations. Choose Sunburst for maximum editing and rendering precision, or Flare when latency matters more.
cURL

Output controls

Custom size rules

Custom dimensions must satisfy all of the following requirements:
  • Width and height are multiples of 16 pixels.
  • The aspect ratio is between 1:3 and 3:1.
  • Neither edge exceeds 3,840 pixels.
  • Total pixels are between 655,360 and 8,294,400.
  • Resolutions above 2560x1440 are experimental.

Image editing inputs

  • Upload a single source image with image, or up to 16 source images with image[].
  • Use multipart form uploads rather than public image URLs for the Image API edit endpoint.
  • An optional mask must have an alpha channel and match the first source image’s format and dimensions.
  • The source image and mask must each be smaller than 50 MB.

Response handling

GPT Image models return image data in data[].b64_json. Decode the Base64 value and save it using the extension reported by output_format. The response_format parameter used by DALL·E models does not apply to GPT Image 2.5.
Decode the first result
The upstream OpenAI API also lets supported mainline models call GPT Image 2.5 through the Responses API image-generation tool. This page documents the direct AnyFast Image API endpoints.
See the OpenAI image generation guide, Create image API, Create image edit API, Sunburst model page, and Flare model page for the upstream model specification.

GPT Image 2.5 API Reference

View generation and editing request fields and response schemas.