← Back

Inpaint · mask-based edit

Regenerate just the part you don't like.

Mask out a region (transparent PNG), describe what should appear there, keep everything else identical.

🚧 Visual mask editor lands W2.

The drag-paint UI is being built. Until then, use the API directly — it works today:

Direct API usage

curl -X POST https://gptimage2.veilo.dev/api/inpaint \
  -F "image=@source.png" \
  -F "mask=@mask.png" \
  -F "prompt=A vase of pink peonies on the desk" \
  -F "size=1024x1024" \
  -F "turnstileToken=<token>"

The mask.png must be the same dimensions as image with transparent pixels marking the region to regenerate.

▶ Try /edit (no mask needed) →