# Design Critique

Upload a picture of your space, and our AI will analyze it to provide detailed, constructive feedback on how to enhance and refine your design, helping you achieve a more polished and stylish look.

## ENDPOINT&#x20;

<mark style="color:green;">**`POST`**</mark>  <mark style="color:purple;">**`/design_critique`**</mark>

An API URL would be like <mark style="color:blue;"><https://homedesigns.ai/api/v2/design\\_critique></mark>

{% hint style="info" %} <mark style="color:blue;">The goal of a design critique is to identify strengths and weaknesses in the design and provide constructive criticism to help enhance the final outcome.</mark>
{% endhint %}

{% tabs %}
{% tab title="Request" %}
{% hint style="info" %} <mark style="color:blue;">An API request must be in the</mark> <mark style="color:orange;">**`form-data`**</mark> <mark style="color:blue;">format.</mark>
{% endhint %}

### Request

<table><thead><tr><th width="232">Parameters &#x26; Data Type</th><th width="203">Value</th><th>Description</th></tr></thead><tbody><tr><td><p><mark style="color:red;"><strong><code>image</code></strong></mark>  </p><p>file[ .jpg, .jpeg, .png] / base64 Image <mark style="color:green;"><code>string</code></mark></p></td><td>-</td><td>The image to be processed by the API. The image dimensions must be 512x512 pixels or greater for optimal results. <strong>(Required Parameter)</strong></td></tr><tr><td><mark style="color:red;"><strong><code>imageType</code></strong></mark> <br><mark style="color:green;"><code>string</code></mark></td><td>Interior, Exterior, Garden</td><td>Specify the type of image you want feedback on and provide detailed, constructive comments on how to enhance and refine the design. This will help you achieve a more polished and stylish look. <strong>(Required Parameter)</strong></td></tr></tbody></table>
{% endtab %}

{% tab title="Errors" %}

### Parameters & Errors

<mark style="color:red;">**`image`**</mark>

<table><thead><tr><th width="327">Error Messages</th><th>Reason</th></tr></thead><tbody><tr><td>Image field required</td><td>Image not provided</td></tr><tr><td>Invalid image size. The image width and height must be 512x512 or greater than 512x512 pixels.</td><td>Image Size Not Proper.</td></tr><tr><td>Invalid image format. Only PNG, JPEG and JPG images are allowed.</td><td>Image Format not valid.</td></tr></tbody></table>

<mark style="color:red;">**`image_type`**</mark>

<table><thead><tr><th width="327">Error Messages</th><th>Reason</th></tr></thead><tbody><tr><td>image_type field required</td><td>Image type not provided</td></tr><tr><td>image_type value is not a valid</td><td>image type not provided properly</td></tr></tbody></table>
{% endtab %}

{% tab title="Response" %}

<pre class="language-json"><code class="lang-json"><strong>
</strong><strong>//Output should be in list of array depends on no of designs as shown below:
</strong>

{
    "success": true,
    "data": "You have a vibrant and eclectic space with a strong mid-century modern influence that is both inviting and stylish. Here’s some constructive feedback to enhance the design even further:\n\n1. Color Balance: You have great use of color in the room with the furniture and artwork. To ensure the space doesn't feel too saturated, you may want to balance bold colors with more neutral tones in accessories or textiles. For example, you might introduce some neutral-colored cushions or a rug with subtler 
    hues to act as a visual palette cleanser.\n\n2. Artwork Placement: Your artwork makes a bold statement and enlivens the walls beautifully. Consider the spacing and alignment of the wall art; creating a visual connection between pieces can heighten the sense of harmony in the room. The distance between them should ideally reflect the proportion and scale of the space.\n\n3. Lighting: The starburst chandelier is a striking piece; ensure it provides adequate lighting for the room’s needs. You can layer the lighting with various intensities and heights, perhaps by adding a floor lamp or wall sconces, to control the ambiance of the room.\n\n4. Plant Placement: The plants add a fresh, organic touch to the space. Look at the positioning and scale of your plants. They should help frame the space without obstructing visual flow or seating areas. Some plants could be elevated on stands to diversify the heights and draw the eye upward.\n\n5. Decoration Clustering: Grouping decorative items in threes or odd numbers can create visual interest on surfaces like the coffee table. You might also consider a tray to corral smaller items to avoid a cluttered appearance.\n\n6. Textural Contrast: Introduce a variety of textures to increase the tactile appeal of your space. For instance, consider adding a plush throw blanket, or woven baskets to contrast with the sleek lines of the furniture.\n\n7. 
    Cohesion: Your furniture pieces are individually stunning, but consider how they work together as a whole. Achieving a cohesive look might involve repeating a particular material, shape, or design element throughout the space.\n\nYour home already presents a delightful composition of color, texture, and form. With a few tweaks, you can refine and enhance the overall aesthetic, ensuring both visual balance and functional comfort."
}




</code></pre>

{% endtab %}
{% endtabs %}
