api账号管理系统
不会用curl命令,就点击网页右上角,查看profile页面,取出自己的uid和token,替换到下面get的链接
api使用方法 post 获取更新token,或者网页登陆更新token,有效期一天,每天免费使用token 3次。。。
curl -k -d "username=test&password=123456" https://api.haokan888.net/aichat/token.json
If the request is successful, you will receive a JSON response like so:
{"success": true, "token": "2uy-111111111111111", "uid": 1}
An invalid username and password pair will produce a response like so:
{"success": false, "errors": "Unable to log you in, please try again"}
查看profile页面,取出自己的uid和token,替换到下面token,uid,然后问题换成要问的!就可以用浏览器访问链接,直接提问
apikey=uid-token 例:1-2uy-111111111111111
model支持 doubao(抖音豆包 已失效,自动转元气), qwen(阿里千问 已失效,自动转元气), yuanqi(腾讯元气),github(国外模型GPT-4o),genai(google谷歌),cfqwai(千问)
api使用方法 get
curl https://api.haokan888.net/aichat/?model=qwen&apikey=1-2uy-111111111111111&ask=问题
If valid, you will receive the following JSON response:
{"success": true}
api使用方法 post
curl -X POST https://api.haokan888.net/aichat/ \
-H "Authorization: Bearer 1-2uy-111111111111111" \
-H "Content-Type: application/json" \
-d '{
"model": "qwen",
"messages": [
{"role": "system", "content": "机器人自动回复"},
{"role": "user", "content": "问题?"}
]
}'
You would receive the following response:
{"success": true, "test1": 49, "test2": "awesome"}