gpt-image-2

gpt-image-2

An efficient AI solution for diverse text and image tasks, including high quality, and editing scenarios
Azure OpenAI
Direct from Azure
Version: 2026-04-21
Direct from Azure models are a select portfolio curated for their market-differentiated capabilities:
  • Secure and managed by Microsoft: Purchase and manage models directly through Azure with a single license, consistent support, and no third-party dependencies, backed by Azure's enterprise-grade infrastructure.
  • Streamlined operations: Benefit from unified billing, governance, and seamless PTU portability across models hosted on Azure - all part of Microsoft Foundry.
  • Future-ready flexibility: Access the latest models as they become available, and easily test, deploy, or switch between them within Microsoft Foundry; reducing integration effort.
  • Cost control and optimization: Scale on demand with pay-as-you-go flexibility or reserve PTUs for predictable performance and savings.
Learn more about Direct from Azure models .

About this model

GPT-image-2 is OpenAI's latest cutting-edge image generation model. Key value adds include better performance, quality, editing controls, and face preservation.
The model supports high input_fidelity and adding/removing one aspect of the image while retaining others. This model includes improvements in aspect ratio, resolution, and editing capabilities.

Key model capabilities

  • Includes all capabilities of gpt-image-1, gpt-image-2
  • Text to image generation
  • Image to image generation
  • Inpainting
  • High quality image generations: supports any resolution in size parameter, as long as it meets the following constraints:
    • The maximum edge length must be less than 3840px
    • Both edges must be a multiple of 16
    • The ratio between the long edge and the short edge must not be greater than 3:1
    • The total maximum number of pixels in the requested resolution must not exceed 8,294,400.
    • The total minimum number of pixels in the requested resolution must not be less than 655,360.
    • Face preservation

Quick facts

Model providerAzure OpenAI
TypeText to image, Image to image
LifecycleGenerally available (GA)
Input typetext, image
Output typeimage