Declutter 🧹

Declutter mode allows you to remove objects and existing furnitures from a picture.

💵 Credit Cost

You have two options:

  • Automatic declutter (no mask provided): 2 credits

  • Manual declutter (user provides a mask): 1 credit

Endpoint

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

Headers

Name
Type
Description

Authorization*

String

Bearer {{API_KEY}}

Request Body

Name
Type
Description

url*

String

Image URL.

Example here

mask

String

(optional) 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 (automatic declutter)

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"
}'

Results

Automatic Decluttering

Automatic declutter of living room
Automatic declutter + upscale

Manual decluttering (with a mask)

BEFORE
MASK OF THE ELEMENTS TO REMOVE
AFTER DECLUTTER (with mask)

Last updated

Was this helpful?