用户协议
AI内容检测器-检测API
一键检测内容是否AI生成还是人工生成的
  • 接口状态:正常
  • 接入服务商: 5118.com
  • 应用类别: 智能文本
  • 上线时间:2023-09-26
低至: 0.001  元/次 ( 查询1次,计1次调用 )
  • API说明
  • 错误码参照
  • 价格与请求限制
  • 示例代码
详细说明:
  • 接口地址:http://apis.5118.com/aidetect
  • 返回格式:json
  • 请求方式:POST
  • 在线调试

请求示例:http://apis.5118.com/aidetect
提交任务调试工具: Postman示例
提交任务请求参数说明:
名称 类型 必填 默认值 说明
content string 要检测的内容(文本长度不能低于100字,不能超过6000字)
提交任务返回参数说明:
名称 类型 默认值 说明
errcode string 0 返回的错误代码
errmsg string 返回的错误说明
linescore string 每段内容分值,分值小于3疑似AI内容
percent string 内容含有AI的比率,分值越高,文章Ai内容占比越高
mintxt string 正常返回0,返回1是内容太短,目前服务限制不能低于100字,少于100字效果会大打折扣
JSON返回示例:
	{
    "errcode": "0",
    "errmsg": "",
    "data": {
        "linesscore": [
            {
                "score": 2,
                "txt": "xxxxxxxxxxx,xxxxxxxxxxxxxx,xxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxx。"
            },
            {
                "score": 3,
                 "txt": "xxxxxxxxxxx,xxxxxxxxxxxxxx,xxxxxx,xxxxxxxxxxxxxxxxxxxxxxxxxx。"
            },
           ...
        ],
        "percent": 43,
        "mintxt": 0
    }
}

提交充值订单
状态回调配置说明
服务级错误码参照(error_code):
错误码 说明
100101 调用次数不够,请充值
100102 服务每秒调用量超限
100103 服务每小时调用量超限
100104 服务每天调用量超限
100111 调用字数不够,请充值
100201 url无法解析
100202 请求缺少apikey
100203 无效的apikey
100204 api不存在
100205 api已经关闭
100206 后端服务响应status非200
100207 后端服务未正确接入
100208 请求方式不支持
100301 Api商城 内部错误
100302 请求后端服务过程中错误
100303 系统繁忙稍候再试
100403 您输入的apikey不正确
系统级错误码参照:
错误码 说明
200110 操作异常提示
200201 传进参数为空
200202 用户ID为空
200505 服务器异常或超时
错误码格式说明:
2 002 01
服务器错误(1:为系统级别错误) 服务模块代码(即数据ID) 具体错误代码
资费说明:
名称 价格 次数 说明
试用套餐 0.00 100
套餐一 50.00 10000
套餐二 300.00 100000
套餐三 1500.00 1000000
套餐四 6000.00 10000000
示例代码:
  1. <?php
  2. $host = "http://apis.5118.com";
  3. $path = "/aidetect";
  4. $method = "POST";
  5. $apikey = "你要调用API的apikey,到 https://account.5118.com/signin/myapi 获取";
  6. $headers = array();
  7. array_push($headers, "Authorization:" . $apikey);
  8. //根据API的要求,定义相对应的Content-Type
  9. array_push($headers, "Content-Type".":"."application/x-www-form-urlencoded; charset=UTF-8");
  10. $querys = "";
  11. $bodys = "content=你要检测的内容";
  12. $url = $host . $path;
  13. $curl = curl_init();
  14. curl_setopt($curl, CURLOPT_CUSTOMREQUEST, $method);
  15. curl_setopt($curl, CURLOPT_URL, $url);
  16. curl_setopt($curl, CURLOPT_HTTPHEADER, $headers);
  17. curl_setopt($curl, CURLOPT_FAILONERROR, false);
  18. if (1 == strpos("$".$host, "https://"))
  19. {
  20. curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, false);
  21. curl_setopt($curl, CURLOPT_SSL_VERIFYHOST, false);
  22. }
  23. curl_setopt($curl, CURLOPT_POSTFIELDS, $bodys);
  24. curl_exec($curl);
  25. ?>
推荐API
百亿长尾词库,含指数和搜索量
获取域名(含子域名)PC端排名词

系统通知