Kling AI Known Pitfalls Overview Documented mistakes, gotchas, and anti-patterns from real Kling AI integrations. Each pitfall includes the symptom, root cause, and tested fix. Pitfall 1: Duration as Integer Symptom: on valid-looking requests. The API requires as a string or , not an integer. Pitfall 2: JWT Without Explicit Headers Symptom: even with correct AK/SK. Some JWT libraries don't include by default. Kling requires it. Pitfall 3: Token Generated Once at Import Time Symptom: Works for 30 minutes, then all requests fail with . JWT tokens expire after 30 minutes. Always implement auto-r…