接入前准备
- 邮箱登录或注册,进入控制台复制 API Key。
- 点击“检测连接”读取模型列表,确认 Key 和 Base URL 可用。
- 选择套餐充值,待人工核对入账后发送 Chat Completions。
Developer Docs
复制 API Key,替换 Base URL,即可用现有 OpenAI SDK 调用狻猊api。模型列表检测不扣余额,Chat Completions 会按 token 扣费。
正在读取 Base URL
Authorization: Bearer sk-...Content-Type: application/json/v1/chat/completions
调用模型列表只验证 Key、Base URL 和限流状态,不扣余额,也不会写入用量记录。
| HTTP | 错误类型 | 含义 | 处理方式 |
|---|---|---|---|
| 401 | invalid_api_key | Key 无效或缺失 | 重新复制控制台 API Key。 |
| 402 | insufficient_quota | 余额或 token 不足 | 充值并等待入账后重试。 |
| 429 | rate_limit_exceeded | 超过每分钟请求限制 | 按响应头 Retry-After 稍后重试。 |
| 502 | upstream_error | 上游模型返回异常 | 稍后重试或切换模型。 |
当前采用人工核对。创建订单后复制付款备注,扫码付款并提交凭证;处理人员确认后,余额和 token 会更新到控制台。
去充值默认 API Key 限制为 60 requests / minute。超过限制会返回 429,并带有 Retry-After、X-RateLimit-Limit 等响应头。