Create Mask Image

Generate a mask image to isolate specific objects in a photo. The create_maskimage endpoint allows for a precise selection of areas or items to edit or remove, essential for detailed design work.

ENDPOINT

POST /create_maskimage

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

Creating a mask image involves creating an image with black and white areas that correspond to the areas you want to be transparent or opaque in the target image.

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

Request

Parameters & Data TypeValueDescription

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.

labels string

Select labels based on the options available in the image.

A string of object names separated by a pipe (|). Each object in the list will be detected in the image, and a corresponding mask will be generated for it. For example, floor|wall will detect both "floor" and "wall" in the image. For more objects, please check the Objects List Tab

Last updated