inpaint_image_pro_flash
Repaint only the white-masked parts of an image using a text description, while keeping all unmasked pixels unchanged. Provide a source image, black/white mask, and prompt to generate the new content.
Instructions
Pro Flash inpainting: replace only the WHITE pixels of mask_image, preserving unmasked RGBA exactly. Source and mask must share identical supported native dimensions; mask RGB must be pure black/white (alpha is ignored) and may not be empty. output_method controls whether you get the full composite or only the changed pixels (transparent elsewhere). An optional context_image requires its bounding_box in the source. Runs as a background job.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Recorded seed (default 0); the Pro Flash provider does not promise deterministic output | |
| image | Yes | Source image at a supported native size | |
| mask_image | Yes | Black/white mask, same size as image; white = repaint | |
| project_id | No | Optional project ID to file the result under | |
| description | Yes | What to paint into the masked region (max 2000 chars) | |
| bounding_box | No | Where context_image sits in the source (required when context_image is given) | |
| crop_to_mask | No | Crop the working region to the mask bounds (default true) | |
| context_image | No | Optional native-size context image; requires bounding_box | |
| no_background | No | Return on a transparent background (default false) | |
| output_method | No | 'Modify current layer' returns the full composite (default); the other two return only the changed pixels, transparent outside the mask | |
| background_removal_task | No | Background removal complexity when no_background is set (default remove_simple_background) |