Furniture placement

Before
After - Furniture placed

Description

Add your furniture into the existing room. Spacely AI furniture placement AI will place the furniture into the room, making it smooth, seamless, and realistic.

Use cases

  1. Visual the furniture for client.

  2. Rapid visualization furnitures for sales purposes.

Credit

1 successful furniture placement API call = 1 credit.

API

POST https://api.spacely.ai/api/v1/generate/furniture-placement

This endpoint is used to furniture placement generate

Headers

Name
Type
Description

X-API-KEY*

String

Request Body

Name
Type
Description

imageUrl*

String

This field contains the URL of the background image where furniture will be placed.

(e.g., https://storage.googleapis.com/spacely-dev/product-placement-images/2e53a5ce9664dee4a2177bee61716893.jpg")

productImageUrl*

String

This field contains the URL of the furniture product image that will be placed within the background image. (e.g., https://storage.googleapis.com/spacely-dev/product-placement-images/1.png")

placement*

Object

This object describes the position and size of the furniture within the background image. It includes four attributes:

x: The x-coordinate (horizontal position) of the top-left corner of the furniture placement.

y: The y-coordinate (vertical position) of the top-left corner of the furniture placement.

w: The width of the furniture placement.

h: The height of the furniture placement.

Please note that the x,y coordinate starts at the top-left corner of the image and can only be positive.

area*

Object

This object defines the area within the background image where the furniture can be placed. It includes four attributes similar to placement, defining a larger bounding box where the furniture can be positioned.

{
  "data": REF_ID
}

Example

curl --location 'https://api.spacely.ai/api/v1/generate/furniture-placement' \
--header 'X-API-KEY: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "imageUrl": "https://storage.googleapis.com/spacely-dev/product-placement-images/2e53a5ce9664dee4a2177bee61716893.jpg",
    "productImageUrl": "https://storage.googleapis.com/spacely-dev/product-placement-images/1.png",
    "placement": {
        "x": 310,
        "y": 0,
        "w": 90.0,
        "h": 120.0
    },
    "area": {
        "x": 305,
        "y": 0,
        "w": 100.0,
        "h": 130.0
    }
}'

Tips and tricks

After receiving the response, use this api to retrieve the data.

Get Resources

Support

Any question? Contact us at [email protected]

Last updated