Retouch one object in an image (masked edit)
vivid_retouchEdit one object or area of an image while every other pixel stays byte-identical. Target it by plain-text description, region box, or mask; returns a new asset id and download URL.
Instructions
Edit ONLY one object/area of an image and leave every other pixel untouched — e.g. "the ring on the left hand" → "make it a plain yellow gold band". Say WHERE with target (plain text: the tool locates it with a two-pass labelled-grid vision step, ~40–60 s), or region {x,y,w,h} as fractions of the frame, or a mask image (white = edit). A square crop around the target goes to the edit model at full resolution and the original bytes are composited back outside a feathered region, so the rest of the photo is byte-identical. Models: nano-banana (default, 6 credits), seedream (4), grok (3), z-image (2, true mask inpaint — needs region or mask). Returns the new asset id + download URL; chain with vivid_compare_product to verify against the SKU and feed its fixPrompt back here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mask | No | Mask image (white = edit, black = keep), any size: local path, URL or asset id. | |
| model | No | nano-banana | |
| prompt | Yes | What the target should become. Be concrete about material, colour, shape; the tool adds the "change nothing else" constraints. | |
| region | No | Explicit bounding box, fractions of width/height (top-left origin). Skips the locate step. | |
| source | Yes | Asset id (32 hex), VIVID temp URL, other URL or local file path of the image to edit. | |
| target | No | Plain-text description of the object/area to edit, e.g. "the ring on the ring finger". | |
| filename | No | Name of the new asset in the gallery. | |
| outputDir | No | Also download the result into this local directory. |