GET
AI 对话
AI
使用免费的智谱模型glm-4-flash,可连续对话
累计调用 13
今日调用 0
更新于 2026-10-16
调用地址
GET
https://itapi.top/api/BigModel
请求参数
| 参数名 | 类型 | 必填 | 说明 | 示例 |
|---|---|---|---|---|
| id | string | 可选 | 唯一标识符,可连续对话 | 暂无 |
| cache | string | 可选 | 是否刷新缓存(清理对话),不为空则刷新 | 暂无 |
| message | string | 必填 | 对话内容 | 暂无 |
| system | string | 可选 | 设定,例如你是个猫娘,每句话结尾都要加喵 | 暂无 |
| data | array | 可选 | 请求对话的元数据 | 暂无 |
| auth | string | 可选 | 使用豆包与deep seek时官方给出的apikey | 暂无 |
| model | string | 可选 | 使用的模型,默认为智谱免费模型 | 暂无 |
返回字段
| 字段名 | 类型 | 说明 |
|---|---|---|
| code | number | 状态码 |
| message | string | 返回提示 |
| data | array | 对话成功的数组 |
| data.*.role | string | 对话人,分别为system,user,assistant(系统,用户,智谱) |
| data.*.content | string | 对话内容 |
响应示例
200 OK
{
"code": -500,
"message": "实例化失败: app\\apis\\BigModel\\BigModel::model(): Argument #2 ($array) must be of type array, int given, called in /www/wwwroot/oiapi.net/app/apis/BigModel/api.php on line 56 line 142in api.php"
}
在线测试
代码示例
cURL · GET
curl "https://itapi.top/api/BigModel?id=%E6%9A%82%E6%97%A0&cache=%E6%9A%82%E6%97%A0&message=%E6%9A%82%E6%97%A0&system=%E6%9A%82%E6%97%A0&data=%E6%9A%82%E6%97%A0&auth=%E6%9A%82%E6%97%A0&model=%E6%9A%82%E6%97%A0"
PHP
<?php
$res = file_get_contents("https://itapi.top/api/BigModel?id=%E6%9A%82%E6%97%A0&cache=%E6%9A%82%E6%97%A0&message=%E6%9A%82%E6%97%A0&system=%E6%9A%82%E6%97%A0&data=%E6%9A%82%E6%97%A0&auth=%E6%9A%82%E6%97%A0&model=%E6%9A%82%E6%97%A0");
$json = json_decode($res, true);
print_r($json);
JavaScript
const res = await fetch("https://itapi.top/api/BigModel?id=%E6%9A%82%E6%97%A0&cache=%E6%9A%82%E6%97%A0&message=%E6%9A%82%E6%97%A0&system=%E6%9A%82%E6%97%A0&data=%E6%9A%82%E6%97%A0&auth=%E6%9A%82%E6%97%A0&model=%E6%9A%82%E6%97%A0");
const json = await res.json();
console.log(json);
Python
import requests
r = requests.get("https://itapi.top/api/BigModel?id=%E6%9A%82%E6%97%A0&cache=%E6%9A%82%E6%97%A0&message=%E6%9A%82%E6%97%A0&system=%E6%9A%82%E6%97%A0&data=%E6%9A%82%E6%97%A0&auth=%E6%9A%82%E6%97%A0&model=%E6%9A%82%E6%97%A0", timeout=10)
print(r.json())