Enhanced
Enhanced images are the final processed output from the AI.
By default this endpoint will return a preview image you can show to your customers before they purchase the image. When they decide they want to download the image simply send ?preview=false to purchase and download the full sized image from Autoenhance.
During development you can test this workflow without using your credits by utilizing development mode, simply set the x-dev-mode to true. You can learn more about the development mode here.
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
}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
If you want to test downloading enhanced images without using your credits, you can include a request header x-dev-mode .
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
Last updated