klingai-install-auth
Execute set up Kling AI API authentication and configure API keys. Use when starting a new Kling AI\nintegration or troubleshooting auth issues. Trigger with phrases like 'kling ai setup',\n'klingai api key', 'kling ai authentication', 'configure klingai'.
Installation
Pick a client and clone the repository into its skills directory.
Installation
About this skill
Execute set up Kling AI API authentication and configure API keys. Use when starting a new Kling AI\nintegration or troubleshooting auth issues. Trigger with phrases like 'kling ai setup',\n'klingai api key', 'kling ai authentication', 'configure klingai'.
How to use
Zaloguj się na konto Kling AI na stronie app.klingai.com/global/dev i przejdź do sekcji API Keys w konsoli deweloperskiej.
Kliknij przycisk Create API Key, aby wygenerować parę Access Key (AK) i Secret Key (SK). Zapisz oba klucze w bezpiecznym miejscu — Secret Key wyświetlany jest tylko raz.
Utwórz plik .env w swoim projekcie i dodaj zmienne środowiskowe: KLING_ACCESS_KEY="ak_your_access_key_here" oraz KLING_SECRET_KEY="sk_your_secret_key_here".
Zainstaluj wymaganą bibliotekę: dla Python uruchom pip install PyJWT, dla Node.js zainstaluj pakiet jwt.
Użyj skilla, wyzwalając go frazami takimi jak "kling ai setup", "klingai api key", "kling ai authentication" lub "configure klingai". Skill wygeneruje token JWT ważny przez 30 minut.
Wykorzystaj wygenerowany token w nagłówku Authorization każdego żądania do API Kling AI w formacie Bearer token, wysyłając zapytania na adres https://api.klingai.com/v1.