Preview

Preview images are lower resolution enhanced images.

The only requirement for downloading preview images is the image_id, you don't need an API key in order to be able to download the image.

const downloadPreviewImage = async (imageId) => {
    const response = await fetch(
        `https://api.autoenhance.ai/v3/images/${imageId}/preview`,
        { method: "GET" }
    );
    const imageSource = await response.json()
    
    return imageSource
}

Specification

Download Preview Image

GEThttps://api.autoenhance.ai//v3/images/{id}/preview
Path parameters
id*string
Response

Successful response

Body
string (binary)
Request
const response = await fetch('https://api.autoenhance.ai//v3/images/{id}/preview', {
    method: 'GET',
    headers: {},
});
const data = await response.json();
Response
binary

Last updated