All errors return specific codes in the
message field for programmatic handling.Error Categories
- User Errors
- Content Errors
- System Errors
Issues caused by invalid requests or insufficient resources.
INSUFFICIENT_CREDITS
INSUFFICIENT_CREDITS
Description: Not enough credits to complete the requestSolution: Add more credits to your account
GENERATION_NOT_FOUND
GENERATION_NOT_FOUND
Description: Generation with specified ID does not existSolution: Verify the generation ID is correct
INVALID_PARAMETERS
INVALID_PARAMETERS
Description: Request parameters are invalid or missing required fieldsSolution: Check parameter values and types
INVALID_IMAGE
INVALID_IMAGE
Description: One or more input images are not validSolution: Ensure you’re uploading valid JPEG, PNG, or WEBP files
IMAGE_INACCESSIBLE
IMAGE_INACCESSIBLE
Description: One or more image URLs are inaccessibleSolution: Verify all image URLs are accessible via HTTPS
INVALID_RESOLUTION
INVALID_RESOLUTION
Description: Invalid resolution specified (must be 1k, 2k, or 4k)Solution: Use one of the supported resolution values
TOO_MANY_IMAGES
TOO_MANY_IMAGES
Description: More than 10 images providedSolution: Limit input images to maximum of 10 total
MIXED_IMAGE_INPUTS
MIXED_IMAGE_INPUTS
Description: Both
images_url and images_base64 provided in the same requestSolution: Use only one image input method per requestHTTP Status Code Reference
Generation created successfully
Request successful
Invalid parameters or request format
Invalid or missing API key
Insufficient credits
Generation not found
Invalid input format or missing required fields
Server-side error
Service temporarily unavailable
Common Issues & Solutions
Why is my generation failing immediately?
Why is my generation failing immediately?
Possible causes:
- Prompt contains prohibited content
- Invalid image format or corrupted file
- Image URLs are not accessible
Generation taking too long?
Generation taking too long?
Normal timeline:
- Simple text-to-image: 1-2 minutes
- With reference images: 2-3 minutes
- 4K resolution: May take longer
Credits deducted but no image?
Credits deducted but no image?
If generation failed: Credits are automatically refunded within 5 minutesIf successful but no URL: Check the status endpoint - the webhook may have failed to deliver