Errors
Common error codes and how to handle them.
400 Bad Request — invalid parameters or unsupported model value.
401 Unauthorized — missing or invalid API key.
429 Too Many Requests — rate limit exceeded. Retry with exponential backoff.
500 Internal Server Error — provider or gateway issue. Retry the request.
Error responses include an error object with type and message fields.
