Execute set up Kling AI API authentication and configure API keys. Use when starting a new Kling AI integration or troubleshooting auth issues. Trigger with phrases like 'kling ai setup', 'klingai api key', 'kling ai authentication', 'configure klingai'.
Install with Tessl CLI
npx tessl i github:jeremylongshore/claude-code-plugins-plus-skills --skill klingai-install-auth68
Does it follow best practices?
If you maintain this skill, you can automatically optimize it using the tessl CLI to improve its score:
npx tessl skill review --optimize ./path/to/skillValidation for skill structure
Python environment setup and authentication
requests library
100%
100%
KLINGAI_API_KEY env var name
0%
100%
Correct base URL
100%
100%
Bearer token header
100%
100%
Content-Type header
100%
100%
Read key from env
100%
100%
.env file pattern
0%
100%
Correct video endpoint
100%
100%
Function accepts prompt and duration
100%
100%
No hardcoded credentials
100%
100%
Without context: $0.3530 · 1m 20s · 23 turns · 24 in / 4,063 out tokens
With context: $0.4135 · 1m 14s · 30 turns · 27 in / 4,122 out tokens
TypeScript/Node.js client configuration
axios library
100%
100%
axios.create() pattern
100%
100%
KLINGAI_API_KEY env var name
0%
100%
Correct base URL
50%
100%
Bearer token header
100%
100%
Content-Type header
100%
100%
Correct video endpoint
100%
100%
.env file variables
0%
100%
axios in package.json
100%
100%
No hardcoded credentials
100%
100%
Without context: $0.2895 · 1m 5s · 19 turns · 19 in / 3,417 out tokens
With context: $0.2941 · 54s · 20 turns · 52 in / 2,918 out tokens
API error handling and retry logic
Exponential backoff for 429
100%
100%
Retry on 500
100%
100%
Backoff on 500
100%
100%
401 diagnosis message
100%
100%
403 diagnosis message
100%
100%
Correct base URL used
100%
100%
Correct endpoint path
100%
100%
Bearer auth header
100%
100%
requests library
100%
100%
No hardcoded wait values hiding backoff
100%
100%
Without context: $0.4276 · 1m 45s · 25 turns · 25 in / 5,897 out tokens
With context: $0.2546 · 1m 11s · 16 turns · 842 in / 3,599 out tokens
Table of Contents
If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.