Skip to main content
GregAPI error responses follow a unified format for programmatic handling and troubleshooting.

Response format

OpenAI-compatible interfaces (/v1/*) return a standard structure on error:
Query authorization interfaces (/api/query/v1/*) use a unified envelope:

Common HTTP status codes

Common error types (type / code)

  • authentication_error / invalid_api_key: invalid token.
  • invalid_request_error / model_not_found: model name does not exist or is unavailable.
  • invalid_request_error / context_length_exceeded: context length exceeded.
  • rate_limit_error: rate limit triggered.
  • insufficient_quota: insufficient or exhausted quota.
  • permission_error: account not enabled for this model or capability.

Request ID in error responses

Error responses may carry a request ID (see Request ID):
Include this ID when submitting tickets to help support locate the call record.

Troubleshooting tips

  1. First confirm the token is valid, unexpired, and has the required permissions.
  2. Record the X-Oneapi-Request-Id response header for reconciliation and ticket tracking.
  3. For 401 / 403, check your auth method and permission points first (see Authentication).
  4. For 429, reduce concurrency, retry with backoff, or contact support to raise quota.
  5. 500 / 502 / 503 are usually transient; retry later. Submit a ticket if they persist.