This endpoint is used to upscale images using version 1 of the upscaling algorithm.
{
"scale": 2,
"image_url": "https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg"
}
This endpoint is used to upscale images using version 2 of the upscaling algorithm.
{
"scale": 2,
"image_url": "https://storage.ws.pho.to/s2/7aa4876bc1f50bc92fc54cb3c326181ac5bbf5ef_m.jpeg"
}
curl -X 'POST' \
'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/' \
-H 'accept: application/json' \
-H 'x-magicapi-key: API_KEY' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'scale=2&image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fd0cf3f2b22461f5fcb2a1.png'
import requests
headers = {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY',
'Content-Type': 'application/x-www-form-urlencoded',
}
data = {
'scale': '2',
'image_url': 'https://telegra.ph/file/d0cf3f2b22461f5fcb2a1.png',
}
response = requests.post('https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'accept: application/json',
'x-magicapi-key: API_KEY',
'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'scale=2&image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fd0cf3f2b22461f5fcb2a1.png');
$response = curl_exec($ch);
curl_close($ch);
import axios from 'axios';
const response = await axios.post(
'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/',
new URLSearchParams({
'scale': '2',
'image_url': 'https://telegra.ph/file/d0cf3f2b22461f5fcb2a1.png'
}),
{
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
}
}
);
fetch('https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v1/', {
method: 'POST',
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
},
body: new URLSearchParams({
'scale': '2',
'image_url': 'https://telegra.ph/file/d0cf3f2b22461f5fcb2a1.png'
})
});
curl -X 'POST' \
'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/' \
-H 'accept: application/json' \
-H 'x-magicapi-key: API_KEY' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'scale=2&image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fd0cf3f2b22461f5fcb2a1.png'
import requests
headers = {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY',
'Content-Type': 'application/x-www-form-urlencoded',
}
data = {
'scale': '2',
'image_url': 'https://telegra.ph/file/d0cf3f2b22461f5fcb2a1.png',
}
response = requests.post('https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/', headers=headers, data=data)
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'POST');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'accept: application/json',
'x-magicapi-key: API_KEY',
'Content-Type: application/x-www-form-urlencoded',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, 'scale=2&image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2Fd0cf3f2b22461f5fcb2a1.png');
$response = curl_exec($ch);
curl_close($ch);
import axios from 'axios';
const response = await axios.post(
'https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/',
new URLSearchParams({
'scale': '2',
'image_url': 'https://telegra.ph/file/d0cf3f2b22461f5fcb2a1.png'
}),
{
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
}
}
);
fetch('https://api.magicapi.dev/api/v1/capix/upscaler/upscaler/v2/', {
method: 'POST',
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
},
body: new URLSearchParams({
'scale': '2',
'image_url': 'https://telegra.ph/file/d0cf3f2b22461f5fcb2a1.png'
})
});