Retrieveing
const imageId = "ID_OF_YOUR_IMAGE";
const getImage = async (imageId) => {
const getImageResponse = await fetch(
`https://api.autoenhance.ai/v3/images/${imageId}`,
{ method: "GET" }
);
const image = await getOrderResponse.json();
}image_id = "ID_OF_YOUR_IMAGE";
def get_image(image_id):
url = f"https://api.autoenhance.ai/v3/images/{image_id}"
response = requests.get(url)
response_data = response.json()
return response_data$image_id = "ID_OF_YOUR_IMAGE";
function get_image($image_id) {
$url = "https://api.autoenhance.ai/v3/images/$image_id";
$options = array(
'http' => array(
'method' => 'GET',
),
);
$context = stream_context_create($options);
$result = file_get_contents($url, false, $context);
if ($result === FALSE) {
return 'Error getting image';
}
$image = json_decode($result, true);
return $image;
}
Specification
Successful response
The version of the AI model to use for enhancing the image. Versions ending in an .x will use the latest minor version as soon as it's published.
The type of clouds in the new sky to replace the original sky with. Options include: CLEAR, LOW_CLOUD, HIGH_CLOUD
The date the image was registered with Autoenhance.
Whether image has been already downloaded and paid for.
Whether to enhance the image.
trueThe type of enhancement to apply to the image. PROPERTY or PROPERTY_USA is used with AI version < 4.0, for >= 4.0 use WARM or NEUTRAL..
Correct any lens distortion in the image.
trueThe ID of the parent image if this is a sub-image created for premium restaging. Null for original images.
The ID of the preset that was applied to the image.
Whether to blur any faces or license plates in the image.
A rating between 0 and 5 on how good the image enhancmeent. Higher is better.
Restage options for in-painting or modifying scene elements. Allows correcting details like lighting a fireplace, removing fingerprints from a TV screen, or removing unwanted items like tripods.
The detected scene of the image i.e garden, patio, kitchen, etc.
Whether the sky replacement feature was enabled for the image.
The status of the order.
Reason for the image's current status
Whether to upscale the image.
The user ID of the user who uploaded (owns) the image.
Whether the vertical correction feature was enabled for the image.
What type of window pull to apply to the image (Available since AI version >= 4.0, WITH_SKIES can only be used from AI version 5.2 or higher).
Not found
Last updated
Was this helpful?