Error response format
All error responses share this structure:Error codes
Retry logic
Not all errors are worth retrying. Use this guidance to decide: Retry these errors — they are transient and typically resolve automatically:429 Too Many Requests— back off and retry after the interval in theRetry-Afterheader500 Internal Server Error— retry with exponential backoff503 Service Unavailable— retry with exponential backoff; consider adding fallback models viaX-Inferoute-Fallback
400 Bad Request— fix the request body before retrying401 Unauthorized— provide a valid API key402 Payment Required— upgrade your plan or wait for the billing period to reset404 Not Found— check the model ID and endpoint path422 Unprocessable Entity— correct the invalid parameter values