Furnish

Furnish will let you add furnitures to empty rooms.

⚠️ You can use it on already furnished rooms but you won't get the best results out of it.

🔥 Try to use the result of Furnish with Redesign, you will get a better photorealistic result.

Endpoint

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

Headers

NameTypeDescription

Authorization*

String

Bearer {{API_KEY}}

Request Body

NameTypeDescription

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

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

Last updated