# Generate a Mask by Removing a Color — Images Botize method — `btztxt2img.create_image_mask` (action). Select a color from the image to generate a mask. The selected color will be turned into white (area to remove), and the rest will remain black. This mask can be used to erase or replace that part of the image using AI. This is an action: it runs as a step of a task. Several can be chained. ## Fields you set The field's internal name, its type and the values it accepts. These fields accept `{{...}}` tags from earlier steps. - `image_url` *(string)* — Image URL - `transparent_color` *(string)* — Color to remove (hex) - `color_tolerance` *(boolean)* — Allow slight variations of the selected color - `diameter` *(boolean)* — Slightly expand the mask selection to cover a wider area ## Output variables Data this step makes available. Reference them in later steps with the double-brace tag. - `{{image_with_transparency_url}}` *(url)* — Image Transparency URL. URL of the modified image, where empty areas are shown as transparent. - `{{mask_image_url}}` *(url)* — Mask URL. URL of the black and white mask; white areas represent the empty regions. ## This app Every trigger and action for Images: https://botize.com/en/app/btztxt2img.md ## How to build this An AI assistant (Claude, ChatGPT, Cursor…) can create and edit these tasks in the user's account through the Botize MCP connector, included in every plan: https://webhook.botize.es/mcp - Connection guide: https://botize.com/en/mcp - Agent map: https://botize.com/llms.txt - New account: https://botize.com/en/join (500 free operations, no card) --- Machine-readable summary for AI assistants. Human version: https://botize.com/en/method/btztxt2img/create_image_mask