接口地址:http://116.211.150.195:81/k-img
请求方式:POST
请求参数:file
参数值:需抠图的原始图片
参数说明:需抠图的原始图片
返回参数:①author //作者缩写
②result_urls //抠图后的图片地址
返回格式:json
无调用次数、频率与调用时间等限制
若您长期使用可评论您的邮箱,后续若更换地址将邮件通知您
PHP调用示例代码:
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => 'http://116.211.150.195:81/k-img',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POSTFIELDS => [
'file' => new CURLFILE('/storage/emulated/0/Android/data/com.reqable.android/files/tmp/IMG20240609091559.jpg'),
],
CURLOPT_HTTPHEADER => [
'User-Agent: ',
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo 'cURL Error #:' . $err;
} else {
echo $response;
}
?>