Start Me
API Stats
累计调用:11564
AI模型DeepSeek
GET|POSTDeepSeek正式发布,已在网页端和 API 全面上线,性能领先,速度飞跃,点击查看详情。在线体验网站
接口地址:
https://api.qster.top/API/v2/DeepSeek
接口示例:
https://api.qster.top/API/v2/DeepSeek/?qskey=qstertop&content=你好
请求参数
参数名 | 类型 | 必填 | 说明 |
---|---|---|---|
content | string | 是 | 问题 |
prompt | string | 否 | 绘画图片,目前仅支持流式stream为true时返回画图 |
frame_id | string | 否 | 分段获取返回内容,适合短时间内同时获取,在参数query_id=0的基础下,当frame_id=1时提交对话并获取对话结果 查看图片 frame_id=2时获取第二天信息以此类推![]() 查看图片 ![]() |
query_id | string | 否 | 查看信息的对话id,例如query_id=0是看第一个会话记录,下面是查看第二个会话的消息 查看图片 ![]() |
sessionid | string | 否 | 临时会话缓存ID 支持上下文聊天, 只存在会话ID时可查看过去的会话内容 |
character | string | 否 | 人物角色描述,如果配置人物描述完之后,query_id必须从1开始。角色模型不能使用r1 |
think | string | 否 | 深度思考R1,true为开启,默认开启,没有或者false就算v3模式,使用 |
use_enhance | string | 否 | 联网功能,true为开启,默认关闭 |
stream | string | 否 | 默认false,不开启流式返回,true为开启 |
qskey | string | 是 | |
免费密钥: qstertop | 建议注册账号获取密钥 延迟3秒返回响应,白名单不受影响 | 该密钥会限速影响体验 查看速率 | 当前速率:150次/300秒 可联系管理员过白账号 |
响应参数
参数 | 说明 |
---|---|
choices | 聊天返回消息 |
query_id | 最新的会话id记录 |
frame_id | 查询query_id该记录的对于id的消息条 |
next_frame_id | 是否存在下一消息条id,不存在的值为-1,存在就是例如2 |
code | 200正常400失败 查看更多 |
代码示例
data: {"id":"chatcmpl-6884c593f2c86-0","object":"chat.completion.chunk","created":1753531800,"model":"deepseek_v3","choices":[{"index":0,"delta":{"content":"<end-think>"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-1","object":"chat.completion.chunk","created":1753531800,"model":"deepseek_v3","choices":[{"index":1,"delta":{"content":"\u6211\u65e0\u6cd5\u751f\u6210\u6216\u63d0\u4f9b\u5305\u542b\u7279\u5b9a\u4eba\u7269\u5f62\u8c61\uff08\u5982\u201c\u7f8e\u5973\u201d\uff09\u7684\u56fe\u7247\u94fe\u63a5\u3002"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-2","object":"chat.completion.chunk","created":1753531801,"model":"deepseek_v3","choices":[{"index":2,"delta":{"content":"\u4e0d\u8fc7\uff0c\u6211\u53ef\u4ee5\u5e2e\u4f60\u751f\u6210\u4e00\u4e9b\u827a\u672f\u98ce\u683c\u6216\u62bd\u8c61\u6982\u5ff5\u7684\u56fe\u50cf\u3002"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-3","object":"chat.completion.chunk","created":1753531803,"model":"deepseek_v3","choices":[{"index":3,"delta":{"content":"\u5982\u679c\u4f60\u6709\u5176\u4ed6\u521b\u4f5c\u9700\u6c42\uff08\u4f8b\u5982\u98ce\u666f\u3001\u52a8\u7269\u3001\u79d1\u5e7b\u573a\u666f\u7b49\uff09\uff0c\u8bf7\u544a\u8bc9\u6211\u66f4\u5177\u4f53\u7684\u63cf\u8ff0\uff0c\u6211\u4f1a\u5c3d\u529b\u534f\u52a9\uff01 \n\n"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-4","object":"chat.completion.chunk","created":1753531805,"model":"deepseek_v3","choices":[{"index":4,"delta":{"content":"\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5c1d\u8bd5\u4fee\u6539\u4e3a\uff1a \n"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-5","object":"chat.completion.chunk","created":1753531807,"model":"deepseek_v3","choices":[{"index":5,"delta":{"content":"- \u201c\u4e00\u5e45\u5370\u8c61\u6d3e\u98ce\u683c\u7684\u590f\u65e5\u82b1\u56ed\u201d \n"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-6","object":"chat.completion.chunk","created":1753531808,"model":"deepseek_v3","choices":[{"index":6,"delta":{"content":"- \u201c\u672a\u6765\u8d5b\u535a\u670b\u514b\u98ce\u683c\u7684\u57ce\u5e02\u591c\u666f\u201d \n\n"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-7","object":"chat.completion.chunk","created":1753531810,"model":"deepseek_v3","choices":[{"index":7,"delta":{"content":"\u9700\u8981\u8c03\u6574\u65b9\u5411\u5417\uff1f\n"},"finish_reason":null}]}
data: {"id":"chatcmpl-6884c593f2c86-8","object":"chat.completion.chunk","created":1753531812,"model":"deepseek_v3","choices":[{"index":8,"delta":{"content":""},"finish_reason":null}]}
data: [DONE]
<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.qster.top/API/v2/DeepSeek",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_POSTFIELDS => [
"content" => "问题",
"prompt" => "绘画图片,目前仅支持流式stream为true时返回画图",
"frame_id" => "分段获取返回内容,适合短时间内同时获取,在参数query_id=0的基础下,当frame_id=1时提交对话并获取对话结果查看图片
frame_id=2时获取第二天信息以此类推查看图片
",
"query_id" => "查看信息的对话id,例如query_id=0是看第一个会话记录,下面是查看第二个会话的消息查看图片
",
"sessionid" => "临时会话缓存ID 支持上下文聊天, 只存在会话ID时可查看过去的会话内容",
"character" => "人物角色描述,如果配置人物描述完之后,query_id必须从1开始。角色模型不能使用r1",
"think" => "深度思考R1,true为开启,默认开启,没有或者false就算v3模式,使用分割思考内容",
"use_enhance" => "联网功能,true为开启,默认关闭",
"stream" => "默认false,不开启流式返回,true为开启",
"qskey" => "qstertop",
],
CURLOPT_HTTPHEADER => [
"User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/137.0.0.0 Safari/537.36 Edg/137.0.0.0",
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
?>
import requests
url = "https://api.qster.top/API/v2/DeepSeek";
params = {
"content" : "问题",
"prompt" : "绘画图片,目前仅支持流式stream为true时返回画图",
"frame_id" : "分段获取返回内容,适合短时间内同时获取,在参数query_id=0的基础下,当frame_id=1时提交对话并获取对话结果查看图片
frame_id=2时获取第二天信息以此类推查看图片
",
"query_id" : "查看信息的对话id,例如query_id=0是看第一个会话记录,下面是查看第二个会话的消息查看图片
",
"sessionid" : "临时会话缓存ID 支持上下文聊天, 只存在会话ID时可查看过去的会话内容",
"character" : "人物角色描述,如果配置人物描述完之后,query_id必须从1开始。角色模型不能使用r1",
"think" : "深度思考R1,true为开启,默认开启,没有或者false就算v3模式,使用分割思考内容",
"use_enhance" : "联网功能,true为开启,默认关闭",
"stream" : "默认false,不开启流式返回,true为开启",
"qskey" => "qstertop"
}
response = requests.get(url, params=params)
print(response.text)
function fetchData(url, params) {
const queryString = Object.keys(params)
.map(key => `${encodeURIComponent(key)}=${encodeURIComponent(params[key])}`)
.join('&');
const fullUrl = `${url}?${queryString}`;
fetch(fullUrl)
.then(response => response.text())
.then(data => {
const resultElement = document.createElement('pre');
resultElement.textContent = data;
document.body.appendChild(resultElement);
})
.catch(error => console.error('Error fetching data:', error));
}
// 示例用法
const url = "https://api.qster.top/API/v2/DeepSeek";
const params = {
"content" : "问题",
"prompt" : "绘画图片,目前仅支持流式stream为true时返回画图",
"frame_id" : "分段获取返回内容,适合短时间内同时获取,在参数query_id=0的基础下,当frame_id=1时提交对话并获取对话结果查看图片
frame_id=2时获取第二天信息以此类推查看图片
",
"query_id" : "查看信息的对话id,例如query_id=0是看第一个会话记录,下面是查看第二个会话的消息查看图片
",
"sessionid" : "临时会话缓存ID 支持上下文聊天, 只存在会话ID时可查看过去的会话内容",
"character" : "人物角色描述,如果配置人物描述完之后,query_id必须从1开始。角色模型不能使用r1",
"think" : "深度思考R1,true为开启,默认开启,没有或者false就算v3模式,使用分割思考内容",
"use_enhance" : "联网功能,true为开启,默认关闭",
"stream" : "默认false,不开启流式返回,true为开启",
"qskey" => "qstertop"
};
fetchData(url, params);
在线调试
小小赞助支持
