Furnish

Furnish will let you add furnitures to empty rooms.

Before
After

Endpoint

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

Headers

Name
Type
Description

Authorization*

String

Bearer {{API_KEY}}

Request Body

Name
Type
Description

url*

String (URL)

Image URL of the room to be redesigned.

Ex: Base Image

mask

String (URL)

(Optional but recommended for more precision)

Custom mask image URL of the area to furnish. Ex: Mask Image

⚠️ The mask should have the same dimension as the base image url parameter. If set, preserveWindows is ignored

roomId*

String

The room ID that can be fetched on the Get Rooms endpoint.

styleId*

String

The style ID that can be fetched on the Get Styles endpoint.

webhook

String (URL)

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

preserveWindows

Boolean (true / false)

(optional but highly recommend to set true)

Tells explicitly to not touch windows, doors, french doors and bay windows and thus not modify the view.

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

Code Examples

curl --location 'https://europe-west1-gepettoai.cloudfunctions.net/v1/furnish' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "url": "https://thumbs.dreamstime.com/b/empty-room-26533582.jpg",
  "styleId": "demeures",
  "roomId": "living_room",
  "preserveWindows": true
}'

Empty room (before)
Room furnish with scandinave style (after furnish + upscale)
Room furnish with retro style (after furnish + upscale)

Empty room (before)
Mask of the space to furnish
Room with haussmann style (after furnish + upscale)

Last updated

Was this helpful?