Operations / Upscaling
Image upscaling or, more specifically, image super-resolution enhances the resolution of input images allowing you to upscale your visuals up to 16x. The neural networks powering this operation accurately predict the fine details that would've been otherwise lost during the upscaling process.
The SupaRes API exposes five super-resolution factors: 1
, 2
, 4
, 8
, and 16
. For example, if you supply an image which is 400×300 in size and request upscaling with factor of 4
, the resulting image will have dimensions of 1600×1200.
{
"upscale": {
"factor": 4
}
}
A special mode of quality enhancement with super-resolution is enabled when the upscaling factor of 1
is used. In that mode, the API will render output image of the same size as your inputs. In other words, the factor of 1
will enhance your visuals while keeping the original image dimensions intact.
{
"upscale": {
"factor": 1
}
}
An example cURL request with Image Fetch method of applying upscaling operation will look like the following:
curl https://api.supares.com/1.0/fetch
--user your-api-key: \
--header "Content-Type: application/json" \
--data '{
"url": "https://www.website.com/image.jpg",
"upscale": {
"factor": 4
}
}'