Errors
All Kling-compatible video endpoints use the same error format and error types.
Error Format
json
{
"error": {
"type": "invalid_request",
"message": "invalid request parameter"
}
}| HTTP status | error.type | Typical meaning |
|---|---|---|
400 | invalid_request | Invalid JSON or request parameter. |
401 | unauthorized | Missing or invalid API key. |
402 | quota_exhausted | Quota or balance exhausted. |
403 | forbidden | Token disabled, expired, or not allowed. |
404 | task_not_found | Task not found. |
429 | rate_limited | Too many requests. |
502 | upstream_error | Upstream submit or query failure. |
503 | no_channel / async_task_unavailable | No available channel or async task service unavailable. |
