Image Upscale API
Image Upscale API is a powerful tool designed to upscale the resolution and size of an image by 2x , 4x and 8x.
About
CURL and Response
Request
curl -X 'POST' \
'https://api.magicapi.dev/api/v1/magicapi/upscaler/upscale2x/' \
-H 'accept: image/jpeg' \
-H 'x-magicapi-key: API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"url": "https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg"
}'const fetch = require('node-fetch');
let url = 'https://api.magicapi.dev/api/v1/magicapi/upscaler/upscale2x/';
let options = {
method: 'POST',
headers: {'x-magicapi-key': 'SOME_STRING_VALUE', 'content-type': 'application/json'},
body: '{"url":"https://production-media.paperswithcode.com/datasets/Set5-0000002728-07a9793f_zA3bDjj.jpg"}'
};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error('error:' + err));Responses :
For /upscale2x/
/upscale2x/ 





For /upscale4x/
/upscale4x/





For /upscale8x/
/upscale8x/





Last updated