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.

Don't have any credits? Subscribe for a monthly plan, or top up in our web application.

Before you continue Enhanced images come in various resolutions. You can add a query parameter size into the request url in order to choose between small, large or big resolution. Don't want to specify the size? Simply don't include it in the URL, and we will default the download to the biggest resolution.

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

Last updated