Enhanced
const apiKey = "YOUR_API_KEY";
const imageId = "ID_OF_YOUR_IMAGE";
const downloadEnhancedImage = async (imageId, apiKey) => {
const response = await fetch(
`https://api.autoenhance.ai/v3/images/${imageId}/enhanced`,
{
method: "GET",
headers: {
"x-api-key": apiKey,
},
}
);
const imageSource = await response.json()
return imageSource
}import requests
api_key = "YOUR_API_KEY"
image_id = "ID_OF_YOUR_IMAGE"
def download_enhanced_image(image_id, api_key):
url = f'https://api.autoenhance.ai/v3/images/{image_id}/enhanced'
headers = {
'x-api-key': api_key
}
response = requests.get(url, headers=headers)
image_source = response.json()
return image_sourceDevelopment mode
Specification
DPI of the image, must at least be 72.
Quality of the image, must be between 1 and 90.
Format of the image, must be one of 'avif', 'png', 'jpeg', 'jxl', or 'webp'.
Whether to show a lower quality preview version.
Whether to apply a watermark to the image.
Whether to apply finetuning to the image.
nullWhether to apply finetuning to the image. Deprecated: use 'finetuned' instead.
nullWhether to serve the restaged version of the image. Defaults to True (serve restaged if available). Set to False to serve the original enhanced image without restaging.
trueMaximum width of the image in pixels. Must be a positive integer.
Scale factor for the image, must be between 0.0 and 1.0.
Successful response
Authentication error
Not found
Validation error
Last updated
Was this helpful?