Deblurer API
The Deblurer API revolutionizes the way developers handle blurred images, offering a cutting-edge solution that restores clarity and detail with unparalleled precision.
Last updated
The Deblurer API revolutionizes the way developers handle blurred images, offering a cutting-edge solution that restores clarity and detail with unparalleled precision.
Last updated
curl -X 'POST' \
'https://api.magicapi.dev/api/v1/magicapi/deblurer/deblurer' \
-H 'accept: application/json' \
-H 'x-magicapi-key: API_KEY' \
-H 'Content-Type: application/json' \
-d '{
"image": "https://replicate.delivery/mgxm/e7a66188-34c6-483b-813f-be5c96a3952b/blurry-reds-0.jpg"
}'import requests
headers = {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY',
'Content-Type': 'application/json',
}
json_data = {
'image': 'https://replicate.delivery/mgxm/e7a66188-34c6-483b-813f-be5c96a3952b/blurry-reds-0.jpg',
}
response = requests.post('https://api.magicapi.dev/api/v1/magicapi/deblurer/deblurer', headers=headers, json=json_data)<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/magicapi/deblurer/deblurer');
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/json',
]);
curl_setopt($ch, CURLOPT_POSTFIELDS, "{\n \"image\": \"https://replicate.delivery/mgxm/e7a66188-34c6-483b-813f-be5c96a3952b/blurry-reds-0.jpg\"\n}");
$response = curl_exec($ch);
curl_close($ch);import axios from 'axios';
const response = await axios.post(
'https://api.magicapi.dev/api/v1/magicapi/deblurer/deblurer',
{
'image': 'https://replicate.delivery/mgxm/e7a66188-34c6-483b-813f-be5c96a3952b/blurry-reds-0.jpg'
},
{
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY',
'Content-Type': 'application/json'
}
}
);fetch('https://api.magicapi.dev/api/v1/magicapi/deblurer/deblurer', {
method: 'POST',
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
'image': 'https://replicate.delivery/mgxm/e7a66188-34c6-483b-813f-be5c96a3952b/blurry-reds-0.jpg'
})
});{
"request_id": REQUEST_ID
}curl -X 'GET' \
'https://api.magicapi.dev/api/v1/magicapi/deblurer/predictions/REQUEST_ID' \
-H 'accept: application/json' \
-H 'x-magicapi-key: API_KEY'import requests
headers = {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY',
}
response = requests.get('https://api.magicapi.dev/api/v1/magicapi/deblurer/predictions/REQUEST_ID', headers=headers)<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/magicapi/deblurer/predictions/REQUEST_ID');
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'GET');
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'accept: application/json',
'x-magicapi-key: API_KEY',
]);
$response = curl_exec($ch);
curl_close($ch);import axios from 'axios';
const response = await axios.get('https://api.magicapi.dev/api/v1/magicapi/deblurer/predictions/REQUEST_ID', {
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
}
});fetch('https://api.magicapi.dev/api/v1/magicapi/deblurer/predictions/REQUEST_ID', {
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
}
});{
"status": "succeeded",
"result": "RESULT_URL"
}