Gengxi API Developer Docs

Troubleshooting

Diagnose authentication, model, quota, upstream, and streaming failures.

Recommended diagnostic order

  1. Check the API key and authorization header.
  2. Call GET /v1/models with the same key.
  3. Check /usage for balance and quota.
  4. Retry safely with exponential backoff when appropriate.
  5. Contact Support with the Request ID if the issue persists.

Common failures

SymptomCheck
401Missing, invalid, disabled key, or inactive user
403Expired key, insufficient balance, or denied access
404 modelModel identifier and current key/group model list
429Retry-After, quota, rate, and rolling limits
500Request ID and safe retry
502 / 503Temporary upstream or capacity issue; retry later
Streaming interruptionSSE parsing, network timeout, cancellation, and terminal events

Streaming checks

  • Confirm Content-Type is text/event-stream.
  • Parse complete SSE frames.
  • Handle response.failed for Responses.
  • Do not require [DONE] for Responses streams.
  • Retry only when repeating the request is safe.

Contact Support

When contacting Support, include the Request ID, approximate time, endpoint, status code, and a redacted request summary. Never send your full API key.

Contact Support →