Redesign

Redesign will redesign a room in a specific style.

Redesign will redesign a room in a specific style. If the room is empty it won't add many furnitures, use the Furnish mode if you need to add furnitures first.

👉 Redesign is the best to get a final photorealistic result.

🦋 Creativity: It lets you control how crazy Gepetto will be with your room. The higher the number is, the less it will look like the original photo.

Endpoint

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

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.

styleId*

String

roomId*

String

creativity*

Number

Number between 0 and 30.

The creativity tells how much freedom you give the AI. The higher the value is, the less likely the result will look like the original image.

mask

String (Url)

(Optional but recommended for more precision)

Custom mask image URL of the area to préserve or modify

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

preserveWindows

Boolean (true / false)

(optional) Will prevent the AI from modifying the existing windowpanes / doors and bay window from the original image.

preserveWalls

Boolean (true / false)

(optional) Will prevent the AI from modifying the walls from the original image.

preserveCeiling

Boolean (true / false)

(optional) Will prevent the AI from modifying the ceiling from the original image.

preserveFloor

Boolean (true / false)

(optional) Will prevent the AI from modifying the floor from the original image.

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/redesign' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "url": "https://theneo-prod-public.s3.amazonaws.com/images-1695201150801.jpg",
  "styleId": "demeures",
  "roomId": "living_room",
  "creativity": 15
}'

Results To Expect

Before
After

Last updated