Error codes

Below are detailed descriptions of error codes.

{"message":"Invalid API key.", "statusCode":401}
Status CodeMessageDescription
400Input validation errorsInvalid parameters detected. Check the error details for specific parameter requirements.
401Invalid API keyThe provided API key is invalid or not associated with a Pro account.
403ForbiddenNo credits left. Upgrade your plan or refill credits.
404Generation ID not found. generationId: xxxxxxThe specified generation ID could not be located. Check and correct your generation ID.
422Failed to generate text. Check your inputs and try again.Generation produced an empty output. Review your input parameters and ensure your instructions are clear.
429Too many requestsToo many requests have been made. Retry after the rate limit period.
500An 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.
502Bad gatewayThe request could not be processed due to a temporary gateway issue. Try again.