Agent skill · writing content · jeremylongshore
klingai-hello-world
Create your first Kling AI video generation with a minimal working example.
Why this skill is useful
Provides specific API commands and workflows for generating videos using the Kling AI REST API that the AI wouldn't reliably generate on its own.
What it needs
Requires node, python installed locally. Requires kling-ai account access. About 3k tokens when loaded. Last updated 2026-08-07. 2,604 stars on the source repository.
What this skill does
Kling AI Hello World Overview Generate your first AI video in under 20 lines of code. This skill walks through the complete create-poll-download cycle using the Kling AI REST API. Base URL: https://api.klingai.com/v1 Prerequisites Completed klingai-install-auth setup Python 3.8+ with requests and PyJWT At least 10 credits in your Kling AI account Minimal Example — Python Minimal Example — Node.js Response Shape Task Status Values Status Meaning -------- --------- submitted Task queued, waiting for processing processing Video generation in progress succeed Complete — video URL available failed Generation failed — check taskstatusmsg Common First-Run Issues Problem Fix --------- ----- 401 response JWT token expired or AK/SK wrong taskstatus: failed Prompt too vague — add visual detail Empty videos array Task still processing — poll longer Slow generation Standard mode takes 60-120s; use mode: "standard" for first test Cost 5-second standard video = 10 credits Free tier: 66 credits/day (refreshes daily, no rollover) Instructions 1. Run the first request in a sandbox using a synthetic or rights-cleared brief and an approved credit cap; never paste credentials into code or logs. 2. Request one watermarked, draft-only canary and verify the task state, policy outcome, rights status, and destination before review. 3. Cancel and remove the draft if quality, policy, attribution, or budget checks fail; do not publish from the smoke test. 4. Record only a redacted receipt and delete temporary assets at the approved retention boundary. Output Produce a first-render receipt with environment, brief classification, model/mode, duration, credit estimate, task state, policy/rights checks, draft-only assertion, owner, and cleanup reference. Exclude prompts, asset URLs, identities, and secrets. Error Handling Condition Response --- --- Policy, rights, or attribution concern Cancel the task, delete the draft, and route a redacted record for owner review. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/klingai-hello-world