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, GIF, or WEBP files
IMAGE_INACCESSIBLE
IMAGE_INACCESSIBLE
Description: One or more image URLs are inaccessibleSolution: Verify all image URLs are accessible via HTTPS
TOO_MANY_IMAGES
TOO_MANY_IMAGES
Description: More than 5 images providedSolution: Limit input images to maximum of 5 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 requestINVALID_DURATION
INVALID_DURATION
Description: Duration value not in allowed options (5, 10, 15)Solution: Use one of the supported duration values
INVALID_MODEL
INVALID_MODEL
Description: Model value not ‘kling_o3’ or ‘kling_o3_pro’Solution: Use ‘kling_o3’ for Standard or ‘kling_o3_pro’ for Pro quality
HTTP 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
- Mixed
images_urlandimages_base64
- Check webhook payload for specific error code
- Validate all images are accessible
- Use only one image input method
- Review content guidelines
Generation taking too long?
Generation taking too long?
Normal timeline:
- 5s Standard: 2-3 minutes
- 10s Standard: 3-5 minutes
- 15s Standard: 5-7 minutes
- Pro mode: Add 30-50% more time
Credits deducted but no video?
Credits deducted but no video?
If generation failed: Credits are automatically refunded within 5 minutesIf successful but no URL: Check the status endpoint - the webhook may have failed to deliverTo verify: Use
GET /v1/kling/o3-video/generations/{generation_id}Image input errors?
Image input errors?
Common mistakes:
- Using both
images_urlandimages_base64(pick one) - More than 5 images
- Images larger than 10 MB each
- Invalid image formats (use JPEG, PNG, GIF, WEBP)
- Images not accessible via HTTPS
Which model should I use?
Which model should I use?
Standard (kling_o3) - 720p:
- ✅ Faster generation (2-5 min)
- ✅ Lower cost
- ✅ Good for social media, previews
- ❌ Lower resolution
- ✅ Higher quality
- ✅ Better for professional use
- ❌ Slower generation (+30-50% time)
- ❌ Higher cost (~2x price)