{ "success": false, "error": "MISSING_API_TOKEN", "message": "Missing API token. Include it in Authorization header as \"Bearer YOUR_API_TOKEN\" or in X-API-Key header."}
HTTP 400 - Unable to download or process reference image from provided URL.
Copy
{ "success": false, "error": "IMAGE_DOWNLOAD_FAILED", "message": "Could not download image from the provided URL. Please verify the URL is accessible and points to a valid image."}
HTTP 402 - Account does not have enough credits for this generation.
Copy
{ "success": false, "error": "INSUFFICIENT_CREDITS", "message": "Not enough credits to complete this request. Required: 2 credits. Please add more credits to your account."}
HTTP 500 - Failed to update generation status in database.
Copy
{ "success": false, "error": "GENERATION_UPDATE_FAILED", "message": "Could not update the generation record. Please try again or contact support if the issue persists."}
HTTP 500 - Failed to start generation process on AI service.
Copy
{ "success": false, "error": "GENERATION_START_FAILED", "message": "Failed to start image generation. Your credits have been refunded. Please try again."}
HTTP 500 - Unexpected server error, contact support with error details.
Copy
{ "success": false, "error": "INTERNAL_SERVER_ERROR", "message": "An unexpected error occurred. Please try again or contact support if the issue persists."}