Making changes to an enhancement

If you’re unhappy with your edited image, then you can make changes.

If you want to change the vertical correction, which makes crooked lines straight, then set vertical_correction: false, and the AI will disable this.

If the image should have a sky replacement, and it hasn’t been achieved by the AI, then you can set sky_replacement: true, and the AI will apply a sky replacement to the image. If the image shouldn’t have a sky replacement, but the AI has applied one, then you can set sky_replacement: false, to disable the sky replacement.

Edit enhancement

POST https://api.autoenhance.ai/v2/image/:image_id/process

Path Parameters

Name
Type
Description

image_id

string

image_id was provided when you made your post request to /image in step 2.

Headers

Name
Type
Description

x-api-key

String

Provide your API key, found in the developer portal.

Request Body

Name
Type
Description

sky_replacement

boolean

When true the AI will try to replace the sky if it detects a sky in the image. When false the AI will not try to detect or replace the sky in the image.

vertical_correction

boolean

True to enable perspective correction and false to disable.

sky_type

String

Set specific sky type. (Options: UK_SUMMER, UK_WINTER or USA_SUMMER). Default is UK_SUMMER.

cloud_type

String

Set specific cloud type. (Options: CLEAR, LOW_CLOUD or HIGH_CLOUD). Default is HIGH_CLOUD.

contrast_boost

String

Set contrast boost level. (Options: NONE, LOW, MEDIUM or HIGH). Default is LOW.

threesixty

boolean

Enable/Disable 360 enhancement. By default, this is false. 360 enhancement requires a 360 panorama.

{
  "image_id": uuid,
  "order_id": uuid,
  "image_name": string,
  "enhance_type": string,
  "image_type": string,
  "status": string,
  "sky_replacement": boolean,
  "vertical_correction": boolean,
  "room_type": string
}

When the request has been made the image will be resubmitted to be processed by the AI. To check on the progress of the enhancement you may either call GET /image or GET /order to check the status of the image being processed. View "Checking an image/order has been enhanced" to understand how to check this.

Checking an image/order has been enhanced

Once updated, the image will be accessed from the same /preview or /enhanced endpoints.

Last updated

Was this helpful?