接口地址(base_url):
https://shundu-ai.com/v1
调用示例:
curl https://shundu-ai.com/v1/chat/completions \
-H "Authorization: Bearer sk-sd-你的密钥" \
-H "Content-Type: application/json" \
-d '{
"model": "deepseek-v4-flash",
"messages": [{"role": "user", "content": "你好"}]
}'
也可直接使用 OpenAI SDK,将 base_url 指向上述地址、api_key 填你的密钥。
扣费规则:按实际 prompt + completion 词元从账户余额扣除,与网页版同价;余额不足返回 402。所有调用经过平台内容安全护栏,触发拦截返回 content_filter 错误。
| HTTP | type | 含义 |
|---|---|---|
| 401 | authentication_error | 密钥缺失、无效或已禁用 |
| 400 | invalid_request_error | 请求格式错误 / 模型未接入 |
| 400 | content_filter | 内容未通过安全审核,已拦截 |
| 402 | insufficient_quota | 词元余额不足,请充值 |
| 502 | upstream_error | 上游模型调用失败(不扣费) |