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
Authorizations
x-api-keystringRequired
Path parameters
idstringRequired
Query parameters
dpiinteger · min: 72Optional
DPI of the image, must at least be 72.
qualityinteger · min: 1 · max: 90Optional
Quality of the image, must be between 1 and 90.
formatstring · enumOptionalPossible values:
Format of the image, must be one of 'avif', 'png', 'jpeg', 'jxl', or 'webp'.
previewbooleanOptional
Whether to show a lower quality preview version.
watermarkbooleanOptional
Whether to apply a watermark to the image.
finetunebooleanOptional
Whether to apply finetuning to the image.
max_widthinteger · min: 1Optional
Maximum width of the image in pixels. Must be a positive integer.
scalenumber · max: 1Optional
Scale factor for the image, must be between 0.0 and 1.0.
Responses
200
Successful response
image/jpeg
Responsestring · binary
401
Authentication error
application/json
404
Not found
application/json
422
Validation error
application/json
get
/v3/images/{id}/enhancedLast updated
Was this helpful?