NewOpenAI- and Anthropic-compatible — no migrationRead the announcement

Error codes

IQx Token Factory uses standard HTTP status codes. The response shape matches the SDK that issued the request — OpenAI SDK calls return OpenAI-style error envelopes, Anthropic SDK calls return Anthropic-style envelopes.

Cross-SDK error handling

StatusOpenAI typeAnthropic typeMeaning
400invalid_request_errorinvalid_request_errorMalformed payload
401invalid_api_keyauthentication_errorBad or missing key
403permission_deniedpermission_errorPlan / scope mismatch
404not_found_errornot_found_errorUnknown model or route
429rate_limit_errorrate_limit_errorBackoff and retry
500api_errorapi_errorProvider / gateway error

Rate limits & backoff

Rate limit exceeded?

Back off with exponential delay + full jitter. Read the X-RateLimit-Reset-Requests header on every 429 — it tells you the exact cooldown. Cap retries at 5 attempts before surfacing the error.