Refresh 🎨

The Refresh endpoint allows you to transform interior spaces by changing wall colors or floor types using advanced AI image processing.

Wall Colors (8 options)

  • white - Clean, bright white walls

  • egg shell - Soft, warm off-white tone

  • black - Bold, dramatic black walls

  • gray - Modern, neutral gray

  • blue - Classic blue accent

  • deep blue - Rich, sophisticated navy

  • olive - Earthy, natural green tone

  • terracotta - Warm, Mediterranean orange-red

Floor Types (5 options)

  • parquet

  • tile

  • marble

  • carpet

  • concrete

Endpoint

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

Headers

Name
Type
Description

Authorization*

String

Bearer {{API_KEY}}

Request Body

Name
Type
Description

url*

String (Url)

transformation*

String

The type of transformation: walls or floor

value*

String

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/refresh' \
--header 'Authorization: Bearer {{API_KEY}}' \
--header 'Content-Type: application/json' \
--data '{
  "url": "https://theneo-prod-public.s3.amazonaws.com/images-1695201150801.jpg",
  "transformation": "walls",
  "value": "white"
}'

Results To Expect

Before
After
transformation: walls, value: white
transformation: floor, value: parquet

Last updated

Was this helpful?