inpaint_v3
Edit pixel art by masking areas to generate or preserve content. White mask creates new pixels, black mask keeps original.
Instructions
Edit a specific region of a pixel art image using a mask. White mask = generate, black mask = preserve. Image 32-512px, optional context image up to 1024x1024. Preferred over legacy inpaint (which caps at 200px).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| seed | No | Seed for deterministic generation (default 0) | |
| mask_image | Yes | Mask (white=generate, black=preserve) | |
| description | Yes | What to generate in the masked area | |
| bounding_box | No | Precise editing area within the image (deprecated) | |
| crop_to_mask | No | Whether to crop generated content to mask boundary (default true) | |
| context_image | No | Style guidance image (up to 1024x1024) (deprecated) | |
| no_background | No | Generate with transparent background | |
| inpainting_image | Yes | Image to edit |