Precision
This precision 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
/precision
An API URL would be like https://homedesigns.ai/api/v2/precision
Use this to automatically fill in the missing or damaged part of the design.
An API request must be in the form-data
format.
Request
Parameters & Data Type | Value | Description |
---|---|---|
file[ .jpg, .jpeg, .png] / base64 Image | - | The image to be processed by the API. The image dimensions must be 512x512 pixels or greater for optimal results. |
| - | 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. |
| 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. |
| 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. |
| Design style should be as per design type. | Defines the overall aesthetic style you want to achieve, such as 'Bohemian', 'Industrial', 'Scandinavian', etc. Here you can see the more design styles. |
| Room style should be as per design type | Required if design_type is Interior, Indicates the type of room for which the design is intended, like 'Living Room', 'Bedroom', 'Kitchen', etc. Click here to see more room types. |
| House angle should be as per design type | Required if design_type is Exterior, Indicates the angle of house for which the design is intended, like 'Side of house, 'Front of house', 'Back of house'. Click here to see more house angles. |
| Garden type should be as per design type | Required if design_type is Garden, Indicates the type of garden for which the design is intended, like 'Backyard', 'Front Yard', 'Courtyard', etc. Click here to see more garden types. |
| 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". |
Last updated