Below are detailed descriptions of error codes.
{"message":"Invalid API key.", "statusCode":401}| Status Code | Message | Description |
|---|---|---|
| 400 | Input validation errors | Invalid parameters detected. Check the error details for specific parameter requirements. |
| 401 | Invalid API key | The provided API key is invalid or not associated with a Pro account. |
| 403 | Forbidden | No credits left. Upgrade your plan or refill credits. |
| 404 | Generation ID not found. generationId: xxxxxx | The specified generation ID could not be located. Check and correct your generation ID. |
| 422 | Failed to generate text. Check your inputs and try again. | Generation produced an empty output. Review your input parameters and ensure your instructions are clear. |
| 429 | Too many requests | Too many requests have been made. Retry after the rate limit period. |
| 500 | An error occurred while generating the gamma. | An unexpected error occurred while generating the gamma. Contact support with the x-request-id header for troubleshooting assistance. |
| 502 | Bad gateway | The request could not be processed due to a temporary gateway issue. Try again. |
