Enhanced
Enhanced images are the final processed output from the AI. In order to download enhanced images, you need to have a paid subscription or a credit, API key, and the image_id.
const apiKey = "YOUR_API_KEY";
const imageId = "ID_OF_YOUR_IMAGE";
const size = "big";
const downloadEnhancedImage = async (imageId, apiKey, size) => {
const response = await fetch(
`https://api.autoenhance.ai/v3/images/${imageId}/enhanced${size ? size : ''}`,
{
method: "GET",
headers: {
"x-api-key": apiKey,
},
}
);
const imageSource = await response.json()
return imageSource
}
Specification
Authorizations
Path parameters
idstringRequired
Query parameters
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 'png', 'jpeg', 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
GET /v3/images/{id}/enhanced HTTP/1.1
Host: api.autoenhance.ai
x-api-key: YOUR_API_KEY
Accept: */*
binary
Last updated