Original
Original images are either original single-bracket or merged HDR image that you've uploaded. The only requirement for downloading original images is the image_id, you don't need an API key in order to be able to download the image.
const size = "big"
const downloadOriginalImage = async (imageId, size) => {
const response = await fetch(
`https://api.autoenhance.ai/v3/images/${imageId}/original${size ? size : ''}`,
{ method: "GET" }
);
const imageSource = await response.json()
return imageSource
}import requests
size = "big"
def download_original_image(image_id,size):
url = f'https://api.autoenhance.ai/v3/images/{image_id}/original{size if size else ""}'
response = requests.get(url)
image_source = response.json()
return image_sourceSpecification
DPI of the image, must at least be 72.
Quality of the image, must be between 1 and 90.
Format of the image, must be one of 'avif', 'png', 'jpeg', 'jxl', or 'webp'.
Whether to show a lower quality preview version.
Whether to apply a watermark to the image.
Whether to overlay an AI disclosure label on the image.
falseWhether to apply finetuning to the image.
nullWhether to apply finetuning to the image. Deprecated: use 'finetuned' instead.
nullWhether to serve the restaged version of the image. Defaults to True (serve restaged if available). Set to False to serve the original enhanced image without restaging.
trueMaximum 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}/original HTTP/1.1
Host: api:8080
x-api-key: YOUR_API_KEY
Accept: */*
binaryLast updated
Was this helpful?