跳转到主要内容

Documentation Index

Fetch the complete documentation index at: https://docs.qingbo.dev/llms.txt

Use this file to discover all available pages before exploring further.

请求格式

所有请求使用 JSON 格式,需要以下 headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

成功响应

不同端点的响应结构有所不同,但都遵循各自的 API 规范:
  • Chat Completions — OpenAI 标准响应格式
  • Claude Messages — Anthropic 标准响应格式
  • Gemini — Google 标准响应格式
  • 异步任务 — 清波 API 统一任务响应格式

错误响应

不同端点的错误结构略有差异: 同步端点(chat / messages / images 等)— OpenAI 兼容格式,带 type 字段:
{
  "error": {
    "message": "具体的错误描述信息",
    "type": "invalid_request_error",
    "code": "invalid_request"
  }
}
异步任务端点(/v1/tasks/...)— 简化格式,只 message + code:
{
  "error": {
    "message": "具体的错误描述信息",
    "code": "task_failed"
  }
}

状态码

状态码说明处理方式
400请求参数无效检查请求参数格式
401认证失败检查 API Key 是否正确
402余额不足充值账户
404任务/资源未找到检查 task_id 是否正确 / 是否归当前账号
429请求频率超限降低请求频率
500服务器内部错误稍后重试