GPT Image is the image generation and editing capability in the OpenAI API, provided for developers. According to the official documentation, it uses image generation models such as gpt-image-2.5-sunburst and gpt-image-2.5-flare: Sunburst focuses on editing precision, while Flare focuses on fast, high-quality everyday image generation. The documentation also mentions that GPT-Image-2.6 includes Sunburst and Flare, both of which support complexity control, markup-guided editing, SVG output, and animated GIF output.
Uses and integration methods Developers can use image generation capabilities through two APIs:
- Image API: provides two endpoints. Generations generates images from scratch based on text prompts; Edits uses new prompts to partially or wholly modify existing images. If you only need to generate or edit a single image based on a single prompt, the documentation recommends using the Image API.
- Responses API: allows image generation in conversations or multi-step workflows, treats image generation as a built-in tool, and accepts image input and output in context. Compared with the Image API, it adds multi-turn editing (high-fidelity iterative modification of images through prompts) and more flexible input (it can accept an image File ID as the input image, not just byte data). If you need to build a conversational, editable image experience, the documentation recommends using the Responses API.
Main capabilities
- Text-to-image: create images through prompts, and use the n parameter to generate multiple images in a single request (one is returned by default).
- Image editing: modify existing images using new prompts, with partial or whole adjustments.
- Multi-turn image generation and editing: in the Responses API, you can iteratively refine prompts, apply new instructions, and evolve visual output across multiple turns by providing the output of an image generation call in context (image IDs can also be used), or by using the previous_response_id parameter. The image generation tool supports the action parameter: auto lets the model decide whether to generate or edit, generate always creates a new image, and edit forces editing when there is an image in context; if editing is forced but there is no image in context, the call returns an error.
- Streaming generation: both the Responses API and the Image API support streaming image generation, allowing partial images to be received as a stream; partial_imageThe s parameter can be set from 0 to 3. When set to 0, only the final image is received; when greater than 0, if the full image is generated faster, you may not receive all requested partial images.
- Output customization: both APIs can adjust quality, size, format, and compression.
- Complexity control: use the complexity request field to control how much planning the model performs before rendering. It supports low, medium, and high, and defaults to high when omitted. Lower complexity suits focused edits (such as changing the background or signage); higher complexity helps with dense text, complex layouts, and object relationships; increasing complexity may add latency and introduce unwanted changes. Adjusting complexity is not charged separately. A separate quality setting controls rendering quality.
- Safety identifier: if the application serves individual end users, it is recommended to include a stable, privacy-preserving safety_identifier in every image generation or edit request, hashing the username or email rather than sending identity information, with a length of no more than 128 characters. This identifier is recommended rather than required. The Images API user parameter is deprecated; use safety_identifier instead; existing requests that use user are still supported. A non-empty safety_identifier takes precedence over user; when safety_identifier is omitted, is null, or is an empty string, the API uses user when available.
Model selection and invocation location When using the Image API, set model directly to gpt-image-2.5-sunburst or gpt-image-2.5-flare. When using the Responses API, select a supported mainline model at the top level, and specify gpt-image-2.5-sunburst or gpt-image-2.5-flare in the model field of the image generation tool. For mainline models that can invoke the image generation tool, refer to the supported model list in the documentation.
Prerequisites and limitations To ensure responsible use of the models, API Organization Verification in the developer console may be required before using GPT Image models. The documentation also provides a GPT Image prompt guide and an image generation demo repository to help obtain reliable results and try generation and editing examples.
Use cases Suitable for developers who need to integrate image generation or editing into products, such as singleprompt image generation, refinement based on existing images, conversational multi-turn image iteration, streaming display of the generation process, and workflows that require controlling planning complexity, output formats (including SVG and animated GIF), and output quality. Specific billing, pricing, available countries, and platform details are not yet fully described in the provided materials and are subject to the official documentation.