All errors return specific HTTP status codes and detailed error messages in the
detail field.Error Categories
- User Errors
- Version Errors
- Generation Errors
- System Errors
Issues caused by invalid requests or insufficient resources.
INSUFFICIENT_CREDITS
INSUFFICIENT_CREDITS
HTTP Status: 402 Payment RequiredDescription: Not enough credits to complete the requestSolution: Add more credits to your account
Generation Not Found
Generation Not Found
HTTP Status: 404 Not FoundDescription: Generation with specified ID does not existSolution: Verify the generation ID is correct
Missing Credentials
Missing Credentials
HTTP Status: 401 UnauthorizedDescription: API key not provided or invalidSolution: Include valid Bearer token in Authorization header
Invalid Parameters
Invalid Parameters
HTTP Status: 422 Validation ErrorDescription: Request parameters are invalid or missing required fieldsSolution: Check parameter values and types
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
Model Compatibility Matrix
Use this matrix to understand which features are supported by each model version.
| Feature | 1.6 | 2.1 Pro | 2.1 Master | 2.5 Turbo | 2.6 |
|---|---|---|---|---|---|
| Text-to-Video | Yes | No | Yes | Yes | Yes |
| Image-to-Video | Yes | Yes | Yes | Yes | Yes |
| Audio Support | No | No | No | No | Yes |
| Negative Prompt | Yes | Yes | Yes | No | No |
| CFG Scale | Yes | No | No | No | No |
| Standard Mode | Yes | No | Yes | Yes | No |
| Professional Mode | Yes | Yes | Yes | Yes | Always |
| Priority Processing | No | No | No | No | Yes |
Webhook Error Codes
When using webhooks with Kling 2.6 or O1 Photo, you may receive these error codes in themessage field:
Generation exceeded 15-minute timeout limit (automatic refund)
Content violates usage policies
Generation failed due to system error (automatic refund)
Provided image is not valid or corrupted
Image URL is inaccessible or invalid