Skip to main content

Error Codes

GLBWinTK returns standard HTTP status codes with JSON error bodies.

Common Codes

StatusMeaningTypical Fix
400Invalid request body or missing field.Check JSON syntax and required fields.
401Missing or invalid API key.Send Authorization: Bearer YOUR_API_KEY.
403The key cannot access the requested resource.Check key status and account configuration.
404Endpoint or model id was not found.Confirm the URL and call /models.
429Rate or quota limit reached.Retry later or adjust usage.
500Internal service error.Retry with backoff and capture the request id.
502Upstream model request failed.Retry later or choose another enabled model id.

Error Body

Example shape:

{
"error": {
"message": "Invalid API key",
"type": "authentication_error",
"code": "invalid_api_key"
}
}

Actual fields can vary by endpoint and upstream response.

Debug Checklist

  1. Confirm the base URL is https://api.glbwintk.com/v1.
  2. Confirm the Authorization header is present.
  3. Confirm the model id appears in /models.
  4. Capture the HTTP status code and response body.
  5. Retry transient failures with exponential backoff.