Errors

Status codes

CodeMeaningWhat to do
400Malformed JSON or missing model/messagesFix the body
401Key missing, invalid or revokedCreate a key
402Key cap reached or balance emptyAdd credits or raise the cap
429Rate or concurrency limitBack off; raise limits on the key
502Upstream failedRetry with backoff

Shape

{"error":{"message":"rate limit exceeded (200/min)"}}