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 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
}
Development mode
If you want to test downloading enhanced images without using your credits, you can include a request header x-dev-mode
.
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,
"x-dev-mode": true,
},
}
);
const imageSource = await response.json()
return imageSource
}
Once you are satisfied with the results, simply remove the header to start downloading fully enhanced images without the watermark (credits will be consumed).
Specification
Quality of the image, must be between 1 and 90.
Format of the image, must be one of 'png', 'jpeg', 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.
Maximum 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
GET /v3/images/{id}/enhanced HTTP/1.1
Host: api.autoenhance.ai
x-api-key: YOUR_API_KEY
Accept: */*
binary
Last updated