Page cover image

Paint Visualizer

The paint_visualizer endpoint allows you to transform the look and feel of your interiors and exteriors with our Paint Visualizer tool. This feature enables you to effortlessly change the paint color of any wall, whether interior or exterior, using either our preset options or colors you upload.

You can select areas to paint using Automated Selection or Manual Selection. Choose colors from our Presets OR use the color picker OR upload an image with your sample color. For the best results, ensure your selection is as accurate as possible.

ENDPOINT

POST /paint_visualizer

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

The paint_visualizer endpoint lets you easily change the paint color of any wall using preset options or custom colors.

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)

masked_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. Click Here to generate a mask image Video Tutorial. (Required Parameter)

no_design

integer

Min - 1, Max - 4

Specifies the number of design variations you want the API to generate. The minimum is 1 and the maximum is 4. (Required Parameter)

color_image

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

Color Image should be as per your choice

The image to be processed by the API.

(Required if rgb_color is not available).

rgb_color RGB Color string code with ',' comma seperated value. Example: '183,42,42'

RGB color should be as per RGB color code

An rgb_color value is specified with: rgb( RED , GREEN , BLUE ). Each parameter defines the intensity of the color as an integer between 0 and 255. For example, rgb(0,0,255) is rendered as blue, because the blue parameter is set to its highest value (255) and the others are set to 0. Click Here to choose the color code.

(Required if color_image is not available)

Last updated

Was this helpful?