For the complete documentation index, see llms.txt. This page is also available as Markdown.
Page cover

Floor Editor

Edit or replace flooring within an image with the floor_editor endpoint. This tool enables users to change floor types and textures, helping them visualize different materials in a given space.

ENDPOINT

POST /floor_editor

An API URL would be like https://homedesigns.ai/api/v2/floor_editor

Floor Editor feature of HomeDesignsAI! With the Floor Editor, you can customize and redesign the flooring of your home with ease.

An API request must be in the form-data format.

Request

Parameters & Data Type
Value
Description

image

file[ .jpg, .jpeg, .png] / base64 Image string

-

The image to be processed by the API. The image dimensions must be 512x512 pixels or greater for optimal results. (Required Parameter)

texture_image file[ .jpg, .jpeg, .png]

The texture image should be uploaded according to your preference.

The image will be processed by the API. (Image size is not required.) (Required Parameter)

no_of_texture

The number of textures must be either 1 X 1, 2 X 2, 3 X 3, or 4 X 4.

The number of textures can be changed according to your preference. (Required Parameter)

Parameters & Errors

image

Error Messages
Reason

Image field required

Image not provided

Invalid image size. The image width and height must be 512x512 or greater than 512x512 pixels.

Image Size Not Proper.

Invalid image format. Only PNG, JPEG and JPG images are allowed.

Image Format not valid.

texture_image

Error Messages
Reason

The texture_image field is required.

whether the texture_image is required to get the results.

The texture_image field must be a file of type: jpeg, png, jpg

sNoWktPI0bBy-hBiRyrKaDmkk

Image Format is not valid.

no_of_texture

Error Messages
Reason

no_of_texture field required

no_of_texture not provided

no_of_texture value is not a valid enumeration member; permitted: 1 X 1, 2 X 2, 3 X 3, or 4 X 4.

sNoWktPI0bBy-hBiRyrKaDmkk

no_of_texture not provided properly

Last updated