Declutter 🩹

Declutter mode allows you to remove the desired objects from a picture.

Endpoint

POST https://europe-west1-gepettoai.cloudfunctions.net/v1/declutter

Headers

NameTypeDescription

Authorization*

String

Bearer {{API_KEY}}

Request Body

NameTypeDescription

url*

String

Image URL.

Example here

mask*

String

The mask image URL. Example here

webhook

String

(optional) Webhook POST URL to send the result on completion. If not provided, the request will wait for the result.

{
  "base64": "<base64 encoded image>",
  "status": "success"
}

Code Examples

curl --location 'https://europe-west1-gepettoai.cloudfunctions.net/v1/decluter' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "url": "https://firebasestorage.googleapis.com/v0/b/gepettoai.appspot.com/o/raw-images%2F49d4311f-2d8e-459b-97c0-5543c544a2f0.jpeg?alt=media&token=6761e09c-bf49-4b34-9606-bc4ee9909d87",
  "mask": "https://firebasestorage.googleapis.com/v0/b/gepettoai.appspot.com/o/mask%2F268179cb-b5c7-46e3-81e8-4453a7aec8b8.jpeg?alt=media&token=f4faa70d-83a7-447d-802d-29b016ef3027"
}'

Results

Last updated