接口大厅/DeepSeek
01
Request Info
请求信息
Endpoint
GET
http://cyapi.top/API/deepseek.php
Example
http://cyapi.top/API/deepseek.php?id=YOUR_VALUE&msg=YOUR_VALUE&prompt=optional&dl=optional
02
Parameters
4 params| Name | Type | Required | Description |
|---|---|---|---|
| apikey | string | 是 | 填入你的 API Key |
| id | string | 是 | 对话ID,建议编复杂点,不然和别人重复了会串对话 |
| msg | string | 是 | 提问内容 |
| prompt | string | 否 | 非必填,AI的人物设定 |
| dl | string | 否 | 传入true,用于删除对应ID的对话记忆 |
03
Status Codes
状态码| Code | Meaning |
|---|---|
| 200 | 请求成功 |
| 403 | 无权限或密钥无效 |
| 404 | 接口不存在或参数错误 |
| 429 | 请求过于频繁,已达限额 |
| 500 | 服务器内部错误 |
04
Online Test
在线测试请求参数
响应结果
点击「立即测试」查看接口返回结果
05
Code Examples
调用示例<?php $url = 'http://cyapi.top/API/deepseek.php?apikey=' . urlencode($params['apikey']) . '&id=' . urlencode($params['id']) . '&msg=' . urlencode($params['msg']) . '&prompt=' . urlencode($params['prompt']) . '&dl=' . urlencode($params['dl'])'; $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 = 'http://cyapi.top/API/deepseek.php'
params = {
'apikey': 'YOUR_API_KEY',
'id': 'YOUR_VALUE',
'msg': 'YOUR_VALUE',
'prompt': 'YOUR_VALUE',
'dl': 'YOUR_VALUE'
}
response = requests.get(url, params=params)
print(response.text)
const url = new URL('http://cyapi.top/API/deepseek.php');
const params = new URLSearchParams();
params.append('apikey', 'YOUR_API_KEY');
params.append('id', 'YOUR_VALUE');
params.append('msg', 'YOUR_VALUE');
params.append('prompt', 'YOUR_VALUE');
params.append('dl', 'YOUR_VALUE');
url.search = params.toString();
fetch(url)
.then(res => res.text())
.then(data => console.log(data));