Error Handling
Here is an overview of the error codes you may encounter:
| Code | Message | Description |
|---|---|---|
| 400 | Token limit exceeded | Please ensure you are using the correct API key and sending it properly. |
| 401 | Incorrect API key provided | Please ensure you are using the correct API key and sending it properly. |
| 401 | Tier not found | You are currently on an invalid service tier. Please contact us for assistance. |
| 402 | spend_cap_exceeded | Your API key or your organization has reached its monthly spend cap. In the developer console, raise or remove the organization cap under Billing & Usage, or the key's own cap in the API Console — or wait for the next billing period. |
| 429 | Too many requests | You have exceeded the rate limit. Please check your usage and upgrade to a paid plan if necessary. |
| 500 | Internal server error | Issue on our end. Please try again later, check our status page, or contact us for assistance. |