Decoration placement

Description

Add your decoration into the existing room. Spacely AI furniture placement AI will place the furniture into the room, making it smooth, seamless, and realistic. This API is better for a high detail decoration.

Use cases

  1. Visual style experimentation for client proposals.

  2. Rapid concept generation for design projects.

Credit

1 successful decoration placement API call = 1 credit.

API

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

This endpoint is used to standard generate

Headers

Request Body

{
  "data": REF_ID
}

Example

curl --location 'https://api.spacely.ai/api/v1/generate/decoration-placement' \
--header 'X-API-KEY: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--data '{
    "imageUrl": IMAGE_URL,
    "productImageUrl": IMAGE_URL,
    "productWidth": 100.1,
    "productHeight": 120.1,
    "referenceLine": [
        {
            "x": 361.1,
            "y": 424.1
        },
        {
            "x": 361.1,
            "y": 289.1
        }
    ],
    "lineLength": 100.1,
    "placement": {
        "x": 85.1,
        "y": 0.1,
        "w": 90.1,
        "h": 250.1
    },
    "isRemove": true,
    "removeArea": {
        "x": 85.1,
        "y": 0.1,
        "w": 90.1,
        "h": 250.1
    }
}'

Tips and tricks

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

Support

Any question? Contact us at support@spacely.ai

Last updated