Errors
Status codes
| Code | Meaning | What to do |
|---|---|---|
| 400 | Malformed JSON or missing model/messages | Fix the body |
| 401 | Key missing, invalid or revoked | Create a key |
| 402 | Key cap reached or balance empty | Add credits or raise the cap |
| 429 | Rate or concurrency limit | Back off; raise limits on the key |
| 502 | Upstream failed | Retry with backoff |
Shape
{"error":{"message":"rate limit exceeded (200/min)"}}