Skip to main content

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.

Request Format

All requests use JSON and require these headers:
Content-Type: application/json
Authorization: Bearer YOUR_API_KEY

Successful Responses

Response shapes vary by endpoint, each following its own API spec:
  • Chat Completions — OpenAI standard response format
  • Claude Messages — Anthropic standard response format
  • Gemini — Google standard response format
  • Asynchronous Tasks — QWave API unified task response format

Error Responses

Error structures differ slightly across endpoints: Synchronous endpoints (chat / messages / images, etc.) — OpenAI-compatible format with a type field:
{
  "error": {
    "message": "Detailed error description",
    "type": "invalid_request_error",
    "code": "invalid_request"
  }
}
Asynchronous task endpoints (/v1/tasks/...) — Simplified format with only message + code:
{
  "error": {
    "message": "Detailed error description",
    "code": "task_failed"
  }
}

Status Codes

CodeMeaningHow to Handle
400Invalid request parametersCheck the request payload
401Authentication failedVerify your API key
402Insufficient balanceTop up your account
404Task or resource not foundVerify the task_id and that it belongs to your account
429Rate limit exceededReduce request frequency
500Internal server errorRetry later