🚀 DeepSeek API 代理服务

这是一个DeepSeek API代理服务,提供认证和计费功能。

可用端点:

POST /api/v1/chat/completions

聊天补全接口,与DeepSeek原生API兼容。

认证: Bearer Token (API Key)

示例:

curl -X POST https://your-domain.com/api/v1/chat/completions \ -H "Authorization: Bearer your-api-key" \ -H "Content-Type: application/json" \ -d '{"messages":[{"role":"user","content":"你好"}]}'

GET /api/v1/user/balance

查询用户余额。

认证: Bearer Token (API Key)

GET /api/health

健康检查。

快速开始:

  1. 获取API密钥
  2. 在请求头中添加: Authorization: Bearer your-api-key
  3. 调用 /api/v1/chat/completions 接口
  4. 系统会自动从余额中扣除费用

注意: 这是演示版本,实际使用时需要配置数据库和支付接口。