智能AI聊天
智能AI聊天
更多新api接口访问https://api.wanghun.top

接口地址: https://wanghun.top/api/v5/smartai.php

返回格式: json/text

请求方式: GET/POST

请求示例: https://wanghun.top/api/v5/smartai.php?msg=笨蛋

请求参数说明:

名称 必填 类型 说明
msgstring你想搜的内容
typestring&type=json(输出json,默认输出text)

例:
https://wanghun.top/api/v5/smartai.php?msg=笨蛋

返回结果:
不同意~我才不是大笨蛋~

返回参数说明:

名称 类型 说明
textString聊天返回文本
heuristicString重复聊天返回文本

返回错误码说明:

名称 类型 说明
200String请求成功
400String请求错误

json返回示例:

{
    "code": "200",
    "data": {
        "text": "我很聪明的呀",
        "heuristic": [
            "null"
        ]
    },
    "yaohu": "妖狐api提供"
    }

{
    "code": "200",
    "data": {
        "text": "那个谁,楼下的,你怎么看",
        "heuristic": [
            "null"
        ]
    },
    "yaohu": "妖狐api提供"
    }

    {
    "code": "200",
    "data": {
        "text": "我是很笨哦,聪明的话就不跟你聊天了。",
        "heuristic": [
            "null"
        ]
    },
    "yaohu": "妖狐api提供"
    }


重复聊天返回
    {
    "code": "200",
    "data": {
        "text": "开启反弹模式",
        "heuristic": [
            "你发什么我反弹给你,嘻嘻"
        ]
    },
    "yaohu": "妖狐api提供"
}