> ## Documentation Index
> Fetch the complete documentation index at: https://docs.elumenta.ru/llms.txt
> Use this file to discover all available pages before exploring further.

# Inpaint

> Edit a region of an image by painting over a mask

Regenerate a selected region of an image. Send original image + mask as multipart form.

```bash theme={null}
curl -X POST https://elumenta.ru/api/v2/inpaint \
  -H "Authorization: Bearer nb_YOUR_API_KEY" \
  -F "image=@original.jpg" \
  -F "mask=@mask.png" \
  -F "prompt=A red balloon floating in the sky"
```

Poll status: `GET /api/v2/inpaint/{generation_id}`
