Decoration placement
Last updated
Last updated
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.
Visual style experimentation for client proposals.
Rapid concept generation for design projects.
1 successful decoration placement API call = 1 credit.
POST
https://api.spacely.ai/api/v1/generate/decoration-placement
This endpoint is used to standard generate
X-API-KEY*
String
imageUrl*
String
This field contains the URL of the background image where decoration will be placed.
productImageUrl*
String
This field contains the URL of the PNG decoration product image that will be placed within the background image.
The product should be in PNG format with no background.
(e.g., https://storage.googleapis.com/spacely-dev/product-placement-images/1.png")
productWidth*
Float
The actual width of the product image. Must be in the same unit as productHeight and lineLength
If the product image has lots of padding, the productWidth might need to be bigger than the actual product width.
productHeight*
Float
The actual height of the product image. Must be in the same unit as productWidth and lineLength
If the product image has lots of padding, the productHeight might need to be bigger than the actual product height.
referenceLine*
Object[]
The reference line in the background image that the actual length is known.
The Object has 2 attributes: x, y.
e.g.
[{ "x": 0, "y": 0},{"x":100.2,"y":100.2}]
lineLength*
Float
The actual length of the referenceLine.
Must be in the same unit as productWidth and productHeight.
placement*
Object
This object describes the position and size of the decoration within the background image. It includes four attributes:
x: The x-coordinate (horizontal position) of the top-left corner of the decoration placement.
y: The y-coordinate (vertical position) of the top-left corner of the decoration placement.
w: The width of the decoration placement.
h: The height of the decoration placement.
Please note that the x,y coordinate starts at the top-left corner of the image and can only be positive.
isRemove
Boolean
Whether or not to remove something from the background image before placing the decoration.
removeArea
Object
This object defines the area within the background image where there is existing decoration and should be removed.
It includes four attributes similar to placement.
After receiving the response, use this api to retrieve the data.
Get ResourcesAny question? Contact us at support@spacely.ai