Agent skill · creative production · jeremylongshore
klingai-text-to-video
Generate videos from text prompts with Kling AI. Use when creating videos
Why this skill is useful
Provides specific API commands and parameters for generating videos from text prompts that the AI wouldn't reliably generate on its own.
What it needs
Requires klingai 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 Text-to-Video Overview Generate videos from text prompts using the /v1/videos/text2video endpoint. Supports models v1 through v2.6, standard/professional modes, camera control, negative prompts, and native audio (v2.6+). Endpoint: POST https://api.klingai.com/v1/videos/text2video Request Parameters Parameter Type Required Description ----------- ------ ---------- ------------- modelname string Yes Model version (see model catalog) prompt string Yes Video description, max 2500 chars negativeprompt string No What to exclude from generation duration string Yes "5" or "10" seconds aspectratio string No "16:9" (default), "9:16", "1:1", etc. mode string No "standard" (default) or "professional" cfgscale float No Prompt adherence (0.0-1.0, default 0.5) cameracontrol object No Camera movement config callbackurl string No Webhook URL for completion notification Complete Example — Python With Camera Control Rule: Only one non-zero field in config for type: "simple". With Native Audio (v2.6 only) Prompt Engineering Tips Technique Example ----------- --------- Scene + action + style "A samurai walking through cherry blossoms, cinematic slow motion" Lighting cues "golden hour", "neon-lit", "overcast diffused light" Camera language "close-up", "wide establishing shot", "tracking shot" Negative prompt "blurry, watermark, text overlay, distorted faces" Material/texture "brushed steel", "hand-painted watercolor", "photorealistic" Cost Reference Duration Standard Professional ---------- ---------- ------------- 5 seconds 10 credits 35 credits 10 seconds 20 credits 70 credits Error Handling Error Cause Fix ------- ------- ----- 400 invalid prompt Empty or >2500 chars Check prompt length 400 invalid model Unsupported modelname Use valid model ID from catalog 402 insufficient credits Not enough credits Top up account taskstatus: failed Content policy violation or complexity Simplify prompt, remove restricted content Prerequisites An approved brief, rights-cleared or synthetic r …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills jeremylongshore/klingai-text-to-video