# OpenAI previews native transparent backgrounds for GPT-Image-2 API

> Source: <https://mlq.ai/news/openai-previews-native-transparent-backgrounds-for-gpt-image-2-api/>
> Published: 2026-08-22 10:15:09.435304+00:00

# OpenAI previews native transparent backgrounds for GPT-Image-2 API

- Transparent-background generation is available in preview for `gpt-image-2` through the API, using `background="transparent"`.
[[1]](https://developers.openai.com/cookbook/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations) - PNG is the default output format in the documented examples; WebP is also suitable for transparency, while JPEG cannot carry an alpha channel.
[[2]](https://developers.openai.com/api/docs/models/gpt-image-2) - GPT-Image-2 pricing is token-based: $8 per million image-input tokens, $30 per million image-output tokens and $5 per million text-input tokens at standard rates.
[[3]](https://openai.com/api/pricing/)

OpenAI has added preview support for native transparent backgrounds to GPT-Image-2 through its API, allowing developers to generate reusable assets without a separate background-removal step. [[1]](https://developers.openai.com/cookbook/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations)

## How developers use it

The feature is enabled by passing `background="transparent"` to an image-generation request using the `gpt-image-2` model. OpenAI’s example requests PNG output, uses the image-generation endpoint, and checks the returned file with Pillow to confirm that it has an RGBA color mode and fully transparent pixels. [[1]](https://developers.openai.com/cookbook/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations)

OpenAI’s cookbook demonstrates the workflow with e-commerce product shots, PowerPoint charts, design elements and print-on-demand artwork. The company says prompts should focus on an isolated subject: describing a scene, backdrop or background can cause the model to generate one despite the parameter. [[1]](https://developers.openai.com/cookbook/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations)

## Preview limits and cost

The capability remains in preview, and OpenAI’s own examples call for human review of edge quality, brand fit and chart labels. The cookbook also warns that generated charts are raster graphics and that exact numerical content should be checked manually. [[1]](https://developers.openai.com/cookbook/examples/multimodal/transparent-image-assets-for-campaigns-and-presentations)

GPT-Image-2 is available through OpenAI’s API, including image generation and editing endpoints. Standard pricing is calculated from token usage rather than a single fixed per-image rate: image inputs cost $8 per million tokens, image outputs $30 per million, and text inputs $5 per million. Larger or higher-quality images generally use more output tokens. [[2]](https://developers.openai.com/api/docs/models/gpt-image-2)[[3]](https://openai.com/api/pricing/)

## Companies mentioned

## Further sources

The stories that matter, in one email. Free — unsubscribe anytime.
