GPT-Image-2 Adds Transparent Backgrounds in API Preview
Table of Contents
OpenAI has introduced transparent backgrounds for GPT-Image-2 in the API, with the capability currently available in preview. The update allows developers to generate image assets that can be used on different backgrounds without an opaque background surrounding the subject.
OpenAI highlights applications including product imagery, graphic design, website mockups and marketing campaigns, where reusable visual assets can be placed into different designs and layouts.
Reusable Image Assets for Different Designs
Transparent image assets can be useful when the same visual needs to appear across multiple backgrounds or layouts.
For example, a generated product image with a transparent background can be incorporated into different promotional designs. Similarly, logos, stickers, presentation graphics and other isolated visual elements can be reused across creative projects.
OpenAI’s developer cookbook specifically demonstrates transparent assets for campaigns, presentations, product catalogs and design templates.
How Transparent Backgrounds Work
The API provides a background option that can be set to transparent, opaque or auto for supported GPT Image models. For GPT-Image-2, transparent-background support is currently in preview.
When using a transparent background with GPT-Image-2, OpenAI’s API documentation states that the output format should be PNG or WebP.
This gives developers a way to request transparent image output directly through the API rather than treating transparency as a separate design requirement.
Potential Uses for GPT-Image-2 Transparent Backgrounds
OpenAI specifically points to several areas where reusable transparent assets can be useful:
- Product imagery: Create product visuals that can be used across different layouts.
- Graphic design: Generate reusable visual elements for creative compositions.
- Website mockups: Place image assets against different webpage backgrounds.
- Marketing campaigns: Reuse visuals across campaign designs and promotional materials.
- Presentations: Add transparent graphics to presentation layouts.
These applications reflect the types of workflows OpenAI highlights for transparent image assets.
GPT-Image-2 API Continues to Expand
GPT-Image-2 is OpenAI’s image generation model for creating and editing images through its API. The API supports image generation and editing, while developers can customize outputs through options including size, quality, format and compression.
The addition of transparent backgrounds gives developers another output option when building applications that require reusable visual assets.
Because the transparency capability is currently in preview, developers should refer to OpenAI’s API documentation for the latest implementation requirements and availability.
Key Details
| Feature | Details |
| Model | GPT-Image-2 |
| Availability | API preview |
| New capability | Transparent backgrounds |
| Output formats for transparency | PNG or WebP |
| Use cases highlighted by OpenAI | Product imagery, graphic design, website mockups and marketing campaigns |
| Background options | Transparent, opaque or auto |
FAQs
What is new in GPT-Image-2?
GPT-Image-2 now supports transparent backgrounds through the API in preview, allowing developers to generate reusable image assets without an opaque background.
Is transparent background support generally available?
No. OpenAI’s documentation currently describes transparent-background support for GPT-Image-2 as being in preview.
Which formats support transparent backgrounds?
OpenAI states that developers should use PNG or WebP when requesting a transparent background.
What can transparent GPT-Image-2 assets be used for?
OpenAI highlights product imagery, graphic design, website mockups and marketing campaigns as examples.
Conclusion
The addition of GPT-Image-2 transparent backgrounds gives developers a new way to generate reusable visual assets through the OpenAI API. The preview capability is aimed at workflows including product imagery, graphic design, website mockups and marketing campaigns.
By supporting transparent output directly in the API, GPT-Image-2 can produce assets designed for use across different backgrounds and layouts. Since the feature remains in preview, developers should check OpenAI’s documentation for current requirements and availability.