| 参数名称 | 类型 | 说明 |
|---|---|---|
| pic | string | 如果图片为URL,会返回URL |
| type | string | normal正常、sexy性感、porn色情、uncertain不确定 |
| score | string | 可信度 100分制 |
<?php
require_once 'curl.func.php';
$appkey = 'your_appkey_here';//你的appkey
$pic = 'https://api.binstd.com/imageidentification/2.jpg';
$url = "https://api.binstd.com/imageidentification/identify?appkey=$appkey&pic=$pic";
$result = curlOpen($url, ['ssl'=>true]);
$jsonarr = json_decode($result, true);
if($jsonarr['status'] != 0)
{
echo $jsonarr['msg'];
exit();
}
$result = $jsonarr['result'];
echo $result['pic'].' '.$result['type'].' '.$result['score'];
{
"status": "0",
"msg": "ok",
"result": {
"pic": "http://api.jisuapi.com/imageidentification/2.jpg",
"type": "normal",
"score": "95"
}
}
| 代号 | 说明 |
|---|---|
| 201 | 图片为空 |
| 202 | 图片格式错误 |
| 208 | 鉴定失败 |
| 210 | 没有信息 |
| 代号 | 说明 |
|---|---|
| 101 | APPKEY为空或不存在 |
| 102 | APPKEY已过期 |
| 103 | APPKEY无请求此数据权限 |
| 104 | 请求超过次数限制 |
| 105 | IP被禁止 |
| 106 | IP请求超过限制 |
| 107 | 接口维护中 |
| 108 | 接口已停用 |
| 名称 | 权限 | 价格 | |
|---|---|---|---|
| 免费套餐 | 5次 | 免费 | |
| Level1 | 60000次 | 200.00元 | |
| Level2 | 80000次 | 240.00元 | |
| Level3 | 100000次 | 290.00元 |
开通账号: