POST https://api.magicapi.dev/api/v1/capix/inpainting/inpainting
{
"image_url": "https://telegra.ph/file/1dbd57f8abf95e6ae2911.png",
"mask_url": "https://telegra.ph/file/2402e4a3dd551cc0bca33.png"
}
curl -X 'POST' \
'https://api.magicapi.dev/api/v1/capix/inpainting/inpainting' \
-H 'accept: application/json' \
-H 'x-magicapi-key: API_KEY' \
-H 'Content-Type: application/x-www-form-urlencoded' \
-d 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F1dbd57f8abf95e6ae2911.png&mask_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F2402e4a3dd551cc0bca33.png'
fetch('https://api.magicapi.dev/api/v1/capix/inpainting/inpainting', {
method: 'POST',
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
},
body: new URLSearchParams({
'image_url': 'https://telegra.ph/file/1dbd57f8abf95e6ae2911.png',
'mask_url': 'https://telegra.ph/file/2402e4a3dd551cc0bca33.png'
})
});
<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, 'https://api.magicapi.dev/api/v1/capix/inpainting/inpainting');
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, 'image_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F1dbd57f8abf95e6ae2911.png&mask_url=https%3A%2F%2Ftelegra.ph%2Ffile%2F2402e4a3dd551cc0bca33.png');
$response = curl_exec($ch);
curl_close($ch);
import axios from 'axios';
const response = await axios.post(
'https://api.magicapi.dev/api/v1/capix/inpainting/inpainting',
new URLSearchParams({
'image_url': 'https://telegra.ph/file/1dbd57f8abf95e6ae2911.png',
'mask_url': 'https://telegra.ph/file/2402e4a3dd551cc0bca33.png'
}),
{
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
}
}
);
fetch('https://api.magicapi.dev/api/v1/capix/inpainting/inpainting', {
method: 'POST',
headers: {
'accept': 'application/json',
'x-magicapi-key': 'API_KEY'
},
body: new URLSearchParams({
'image_url': 'https://telegra.ph/file/1dbd57f8abf95e6ae2911.png',
'mask_url': 'https://telegra.ph/file/2402e4a3dd551cc0bca33.png'
})
});