OpenAI's GPT-Image-2 Now Supports Direct Transparent Background Image Generation
OpenAI has updated its GPT-Image-2 image generation API to support the direct creation of PNG images with transparent backgrounds. Users can now generate these background-free images by enabling a specific parameter in their API requests. This update eliminates the need for post-processing background removal tools, streamlining workflows for e-commerce design, stickers, and presentation assets. Direct alpha channel transparency integration provides cleaner edges and higher-quality compositing than traditional post-generation background removal algorithms. The feature is currently available only via the API by enabling the `background=transparent` parameter. OpenAI advises users to avoid describing backgrounds in their prompts and to carefully verify any numbers generated in the output images.
## BACKGROUND
GPT-Image-2 is OpenAI's advanced image generation and editing model designed for high-quality, instruction-following visual creation. Traditionally, creating transparent images with AI required generating a full image and then using secondary computer vision models to mask and remove the background, which often resulted in jagged edges.