Visual Development
Image Inpainting
Paint a mask over the areas you want to change, write a prompt, and let AI fill in the rest — while keeping everything else untouched.
Sometimes you need to change part of an image without touching the rest. That's what inpainting is for.
The Problem
Standard image editing rewrites the entire image. If you ask "make the sky darker," the AI may also shift colors on your character, alter the background, or change the composition. You lose control over what stays and what changes.
The Solution
Inpainting lets you paint a mask directly on your image to mark exactly which pixels the AI should regenerate. Everything outside the mask stays pixel-perfect. You pair the mask with a text prompt describing what should appear in the masked region.
How to Start
- Select an image in the Preview Panel (click any generated or imported image)
- Click the Edit (Inpaint) button in the top-left corner of the image viewer
- The mask editor opens over your image
Inpainting is available for flat images only — panoramas and skyboxes are not supported.
Masking Tools
| Tool | What It Does |
|---|---|
| Brush | Paints white on the mask — marks areas the AI will regenerate |
| Eraser | Removes mask paint — restores areas the AI will preserve |
- Brush size: Adjustable from 4 px to 200 px via the slider
- Overlay toggle (eye icon): Show or hide the blue tint that highlights masked regions
- Clear mask (trash icon): Wipe the entire mask and start over
Workflow
- Paint the region you want to change using the Brush tool
- Refine your selection — use the Eraser to remove any overspill
- Write a prompt describing what should appear in the masked area
- Press Ctrl+Enter (or Cmd+Enter on Mac) to send
The editor automatically saves your mask, formats an inpaint message with @image and @mask references, and sends it to chat — no manual file management needed.
Example
Paint over the character's sword, then enter the prompt: "Replace the sword with a glowing staff made of crystal, matching the scene lighting"
Keyboard Shortcuts
| Shortcut | Action |
|---|---|
| Ctrl+Z / Cmd+Z | Undo last brush/eraser stroke |
| Ctrl+Shift+Z / Cmd+Shift+Z | Redo |
| Ctrl+Y / Cmd+Y | Redo (alternative) |
| Ctrl+Enter / Cmd+Enter | Send the inpaint prompt |
| Escape | Close help or cancel inpainting |
The editor supports up to 30 undo steps, so you can freely experiment with your mask.
Tips for Best Results
- Be precise with your mask — the tighter the mask, the less the AI has to guess, and the more consistent the result
- Describe both what to add and how it should blend — mention lighting, style, and material so the new region matches its surroundings
- Use the overlay toggle to double-check your mask before sending — the blue tint shows exactly what the AI will regenerate
- Iterate — if the first result isn't perfect, open the inpaint editor again and refine your mask or prompt
