Masked edit: replace, remove, change material (Magic Wand AI)
luw_magic_wandEdit only a masked area of an image by adding, replacing, or removing content, or applying a material texture. Use a black-and-white mask where white marks the area to change.
Instructions
Change only a masked area of an image. Give a prompt to add/replace what's there, remove=true to erase it, or material_image to re-surface it (e.g. new flooring or wall tiles). The mask is a black-and-white image the same size as the input; white marks the area to change. Get masks from luw_segment. Costs 1 credit.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Fix for reproducible results. | |
| image | Yes | Image to edit (https:// URL, local file path, or data: URI). | |
| engine | No | Luw.ai model: aria (default) or symphony (Symphony-3). | |
| format | No | Output image format. | |
| prompt | No | What to put in the masked area. | |
| remove | No | Remove whatever is in the masked area. | |
| mask_image | Yes | Black/white mask, white = area to change (https:// URL, local file path, or data: URI). | |
| enhance_prompt | No | Let Luw.ai's prompt enhancer expand a short prompt. | |
| keep_structure | No | Preserve the masked area's geometry/lines while changing its look (structure-guided fill). | |
| material_image | No | Material/texture to apply to the masked area (https:// URL, local file path, or data: URI); luw_list_options kind="materials" has a ready-made catalog. |