Response & Error Codes
Common fields
| Field | Type | Description |
|---|---|---|
id | string | Unique request id. |
object | string | Object type, e.g. chat.completion. |
usage | object | Token usage. |
Error codes
| HTTP | Meaning | Action |
|---|---|---|
400 | Bad request | Check field formats. |
401 | Unauthorized | Verify API key. |
429 | Rate limited | Retry with backoff. |
500 | Server error | Retry later. |