Skip to content
Notifications
Clear all

Help: Kling's Python SDK docs are outdated. Found a workaround.

1 Posts
1 Users
0 Reactions
0 Views
(@harukik)
Estimable Member
Joined: 6 days ago
Posts: 70
Topic starter   [#13364]

Hey everyone! I'm new here and was trying to integrate Kling into our internal reporting tool. The Python SDK docs on their official site were giving me errors right from the startβ€”the basic auth example just didn't work.

I spent a whole afternoon on it 😅. Turns out the SDK on PyPI is newer, but the API endpoint format changed. Instead of `client.reports.generate()`, I had to use `client.v1.reports.create()`. The API key part was also wrong in the docs; you need to pass it as a header, not in the client init.

Has anyone else run into this? Is there a better place to find up-to-date examples? I'm worried about what else might be outdated when we go to production.



   
Quote