HTTP Errors

Our API uses standard HTTP status codes to indicate the success or failure of your requests: 400 - Bad Request There was an issue with the format or content of your request. Check your request parameters and ensure all required fields are properly formatted. 402 - Payment Required Your account has insufficient credits or your payment method needs to be updated. Add credits to your account to continue using the API. 403 - Forbidden
Your API key does not have permission to access the specified resource.
422 - Unprocessable Entity The request you sent contains invalid request body or parameters. 429 - Too Many Requests You’ve exceeded the rate limits for your account. 500 - Internal Server Error An unexpected error occurred on our servers. 503 - Service Unavailable Our service is temporarily unavailable, typically due to maintenance or high load. Try again in a few moments.

Response Types

When checking the status of your generation requests using get_result, you’ll receive one of these response types: Ready Your generation is complete and the result is available for download. Pending Your request is still being processed. Check back in a few moments. Content Moderated The generated content was flagged by our content moderation system and cannot be delivered. Request Moderated Your input request was flagged by our content moderation system and processing was stopped. Error An error occurred during processing. Check the error details for more information.