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

circle-check

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

mask

String

(optional) The mask image URL. Example herearrow-up-right

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)

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