AI Image Enhancement
Submit an AI Image Enhancement Order
Explanation
This API endpoint allows users to submit new orders within the service-image-enhancement service.
POST https://api.aihomedesign.com/v1/order
Request Body
Ensure that your request body is in the RAW-JSON format.
The service-image-enhancement accepts Enhancement Options as an optional widget. To include a widget in the request body, specify the widget's ID in the selected_widgets as id and the selected widget item's ID as item_id.
{
    "order_id": string,
    "space_name": string,
    "selected_widgets" : 
    [
        {
            "id" : string,
            "item_id" : string
        }
    ]
}order_id: This should match theorder_idreturned by the Image Upload API.space_name: Retrieve thespace_nameusing theservice_namefrom the Get Spaces endpoint.selected_widgets:id: Retrieve theidforselected_widgetsbased on theservice_namefrom the Get Widgets and Items endpoint.item_id: Retrieve theitem_idfor each widget by using itsidinitemskey from the Get Widget and Items endpoint.
In the Image Enhancement service, we offer two spaces: Indoor and outdoor, as shown in the picture below.

In the Image Enhancement service, the Enhancement option is presented as a widget, with the toggles within it functioning as widget items.

Headers
x-api-key*
{your_api_key_here}
Response
{
   "order_id": string,
   "image_id": string,
   "eta": integer
}{
    "error": string,
    "key": string
}Last updated