Fill Spaces
This fill spaces endpoint is designed for filling in missing objects or replacing parts of a design. It requires two images: the actual image and a masked image. You'll need to create functionality for masking the image to indicate the areas that need inpainting.
ENDPOINT
POST
/fill_spaces
An API URL would be like https://homedesigns.ai/api/v2/fill_spaces
Request
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
-
design_type
string
Interior, Exterior, Garden
Specifies the type of area you want to design. API users must specify whether they are designing an interior space, an exterior area, or a garden. (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)
design_style
string
Design style should be as per design type.
Defines the overall aesthetic style you want to achieve, such as 'Bohemian', 'Industrial', 'Scandinavian', etc.
(Required Parameter)
Here you can see the more design styles.
room_type
string
Room style should be as per design type
house_angle
string
House angle should be as per design type
garden_type
string
Garden type should be as per design type
prompt
null
or string
Write a Custom Prompt
An optional text prompt that can guide the AI in generating the design. This could be something like "Create a cozy and warm living room".
strength
integer
The strength field must be between 1 and 10.
Last updated
Was this helpful?