Object Remover

Inpaints selected parts of the images

Try Demo

Details

Endpoint

POST https://api.magicapi.dev/api/v1/capix/inpainting/inpainting

Request Headers

  • Content-Type: application/json

  • x-magicapi-key: API_TOKEN

Request Body

{
  "image_url": "https://telegra.ph/file/1dbd57f8abf95e6ae2911.png",
  "mask_url": "https://telegra.ph/file/2402e4a3dd551cc0bca33.png"
}
  • image_url: URL of the image for which inpainting will be performed.

  • mask_url: URL of the mask image indicating areas to be inpainted.

Result

Code Examples

curl -X 'POST' \
  'https://api.magicapi.dev/api/v1/capix/inpainting/inpainting' \
  -H 'accept: application/json' \
  -H 'x-magicapi-key: API_KEY' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -d 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F1dbd57f8abf95e6ae2911.png&mask_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F2402e4a3dd551cc0bca33.png'

Last updated