> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apiyi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GPT Image Mask Text Editing Docs: Black Blocks and Transparency

> The mask guide now covers text/logo replacement prompts, background opaque, padded rectangle masks, size guidance, and corrected 2.6 parameter notes.

**2026/11/27 14:14 (UTC+8)** · Docs Update · OpenAI

📄 **The GPT Image mask inpainting guide now covers text/logo replacement, `background: "opaque"`, black-block troubleshooting, and corrected 2.6 parameters.**

Three common traps when replacing text: a vague prompt like "change the text to X" can fill the mask with a solid color; omitting `background` can return RGBA with transparent areas that preview as black blocks or color noise; a fixed landscape `size` can crop or stretch portrait posters. The guide now adds an original-text → new-text prompt template, padded rectangle masks, `opaque` usage, and a client-side composite for strict preservation outside the mask. The parameter page now also lists the 2.6 models and corrects the `transparent` / `xhigh` / `max` support range.

📚 [Mask Inpainting Guide](https://docs.apiyi.com/en/api-capabilities/gpt-image-2/mask-editing.md) · [Image Edit API](https://docs.apiyi.com/en/api-capabilities/gpt-image-2/image-edit.md)

***

← [Back to Live Updates](https://docs.apiyi.com/en/live.md) · 📚 [Monthly Archive](https://docs.apiyi.com/en/live/archive.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.