BaiAPI

校长bloG 支持并维护的API接口项目,致力于为用户提供稳定、快速的API接口服务平台。

总调用: 68293
今日调用: 65
接口数量: 26

DeepSeek

接口描述

基于DeepSeek官方的API接口

接口地址

https://baiapi.cn/api/deepseek

请求方式

GETPOST

返回格式

JSON
参数名称 必填 类型 描述
content 必填 string 需要提交的问题
key 必填 string DeepSeek API Key
model 可选 string 模型选择 (默认: V3, 可选: V3, R1)

请求示例

https://baiapi.cn/api/deepseek/?key=sk-xxx&content=你好&model=V3

返回示例

{
    "id": "chatcmpl-12345",
    "object": "chat.completion",
    "created": 1691234567,
    "model": "deepseek-chat",
    "choices": [
        {
            "index": 0,
            "message": {
                "role": "assistant",
                "content": "你好!有什么我可以帮助你的吗?"
            },
            "finish_reason": "stop"
        }
    ],
    "usage": {
        "prompt_tokens": 10,
        "completion_tokens": 20,
        "total_tokens": 30
    }
}