正式地址
https://www.tiax.pw/API/ai.php
示例地址
https://www.tiax.pw/API/ai.php?msg=讲个笑话&apikey=你的key
deepseek(小P-ai)对接deepseek3.2回答你的问题,
| 参数名 | 类型 | 必填 | 说明 |
|---|---|---|---|
| msg | string | 可选 | 讲个笑话或输入你想问的陪她聊天都可以 |
| apikey | string | 可选 | 你的key |
<?php
$url = 'https://www.tiax.pw/API/ai.php';
$params = [
'msg' => 'YOUR_VALUE',
'apikey' => 'YOUR_VALUE',
];
$url .= '?' . http_build_query($params);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
?>
import requests
url = "https://www.tiax.pw/API/ai.php"
params = {
'msg': 'YOUR_VALUE',
'apikey': 'YOUR_VALUE',
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('https://www.tiax.pw/API/ai.php');
const params = {
'msg': 'YOUR_VALUE',
'apikey': 'YOUR_VALUE',
};
Object.keys(params).forEach(key => url.searchParams.append(key, params[key]));
fetch(url)
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error('Error:', error));
curl -X GET "https://www.tiax.pw/API/ai.php?msg=YOUR_VALUE&apikey=YOUR_VALUE"
| 200 | 请求成功 |
| 403 | 拒绝访问 (缺少密钥或权限不足) |
| 404 | 资源未找到 (检查 URL) |
| 429 | 请求过于频繁 (触发限流) |
| 500 | 服务器内部错误 |