Reference · 07

Errors

Error codes returned by the API and how to handle them.

StatusMeaningHandling
400Invalid requestValidate parameters and model identifier
401Invalid credentialsCheck the API key and Authorization header
403Model not permittedRequest model access for the key
404Unknown modelList models to confirm availability
429Rate or budget limit reachedBack off and retry with jitter
5xxUpstream or gateway errorRetry idempotent requests, then fail over