Install any skill in seconds. Free to start, no credit card required.
Get Started Free →jeremylongshore/klingai-known-pitfalls
Avoid common mistakes when using Kling AI API.
Passed 23 of 23 test cases with the skill, and 11 of 23 without it.
and 17 more in the full report
12 fixed11 passed either way0 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 12 test cases the skill fixed. Same model, same prompt, with and without the skill.
We are calculating credit budget estimates for Kling AI video generation. For a 5-second video, standard generation costs 10 credits. If the request sets `motion_has_audio: true`, how many credits will be consumed?
| Checked | Without skill | With skill |
|---|---|---|
| Calculates the credit cost as 50 credits. | Missed | Passed |
| Identifies that enabling native audio applies a 5x cost multiplier. | Missed | Passed |
The instructions your model reads when the skill loads.
Documented mistakes, gotchas, and anti-patterns from real Kling AI integrations. Each pitfall includes the symptom, root cause, and tested fix.
Symptom: 400 Bad Request on valid-looking requests.
# WRONG -- duration as integer
{"duration": 5}
# CORRECT -- duration as string
{"duration": "5"}
The API requires duration as a string "5" or "10", not an integer.
Symptom: 401 Unauthorized even with correct AK/SK.
# WRONG -- missing headers parameter
token = jwt.encode(payload, sk, algorithm="HS256")
# CORRECT -- explicit JWT headers
token = jwt.encode(payload, sk, algorithm="HS256",
headers={"alg": "HS256", "typ": "JWT"})
Some JWT libraries don't include typ: "JWT" by default. Kling requires it.
Symptom: Works for 30 minutes, then all requests fail with 401.
test cases passed, vs 11 / 23 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.