
kling-official
Official Kling direct API guidance for OpenMontage providers. Use before calling klingofficialvideo, klingofficialimage, klingtts, klingavatar, or klinglipsync.
- Installs
- 801
- Last 24h
- +12
- Trending rank
- #8116
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/calesthio/openmontage --skill kling-official- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads kling-official automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Kling Official Direct API
Use this skill for OpenMontage tools with provider="kling_official". This is not the fal.ai Kling gateway. Official Kling uses KLING_API_KEY, optional KLING_API_BASE_URL, and Authorization: Bearer <KLING_API_KEY>.
Provider Split
kling_videouses fal.ai,FAL_KEY, fal.ai queue URLs, andprovider="kling".kling_official_videouses Kling official API,KLING_API_KEY, official task protocols, andprovider="kling_official".kling_official_imageuses the same official auth and task protocol for image generation.kling_ttsuses the official audio TTS endpoint and stays in the existingttscapability.kling_avatarandkling_lip_syncuse official avatar/lip-sync endpoints and stay in the existingavatarcapability. They do not replace localtalking_headorlip_sync.
Never silently switch between these paths. If the selected provider is unavailable, surface the blocker and ask before substituting.
Auth And Endpoint
Default base URL:
https://api-singapore.klingai.com
Users may override it with KLING_API_BASE_URL, for example for a regional endpoint. All requests send JSON and:
Authorization: Bearer <KLING_API_KEY>
Task Protocols
Classic APIs:
- Create ID path:
data.task_id - Statuses:
submitted,processing,succeed,failed - Result paths:
data.task_result.videos[],data.task_result.images[],data.task_result.audios[]
Turbo APIs:
- Create ID path:
data.id - Poll path:
GET /tasks?task_ids=<id> - Statuses:
submitted,processing,succeeded,failed - Result path:
data[0].outputs[]
Keep the parsers separate. Do not write a fuzzy parser that guesses between task_id and id or between succeed and succeeded.
Omni References
Video Omni and Image Omni stay inside the existing provider tools through api_family="omni".
Do not create selector-level Omni operations.
Video Omni accepts official reference structures:
image_list[]withimage_urland optionaltypesuch asfirst_frameorend_frame.video_list[]withvideo_url, officialrefer_typevalues such asfeatureorbase, and optionalkeep_original_sound.element_list[]with officialelement_idvalues.- Structured
multi_prompt[]; do not split natural language into shots automatically.
Local image references may be normalized through tools/_kling/media.py. Local video paths must not be silently uploaded through fal.ai; ask for or require a reachable URL.
Image Omni accepts image_list[] with official image values. Prompt placeholders such as <<<image_1>>> must map stably to the provided image order. If the prompt already contains placeholders, validate that the referenced images exist and do not insert duplicates.
Capability Boundaries
TTS, avatar, and lip sync are provider additions to existing OpenMontage capabilities. Audio effects and video effects are official Kling endpoints, but they are not registered as default OpenMontage tools until a pipeline has a stable capability slot for them.
- Do not add
sound_effectsorvideo_effectscapabilities from inside a provider implementation. - Do not let video effects enter the ordinary
video_generationselector path. - Do not disguise short sound effects as long background music unless a pipeline explicitly consumes that shape and the tool's
best_for/not_good_forsays so.
Video Parameters
Use operation for OpenMontage semantics:
text_to_videoimage_to_videoreference_to_video
Use api_family for official protocol choice:
classicturboomni
Important constraints:
- Official video provider input schema must not expose top-level
image_url; usereference_image_urlorreference_image_path. - Classic image-to-video accepts
reference_image_urlor a local path converted to raw base64 in official fieldimage. - Turbo image-to-video requires a URL first frame. Do not upload local files through fal.ai as a fallback.
- Send
aspect_ratioonly where the current schema supports it: Classic text-to-video, Turbo text-to-video, and Video Omni. - Default paid path should avoid
4k, native sound, or batch behavior unless explicitly selected.
Image Parameters
Use api_family="generation" for /v1/images/generations and api_family="omni" for /v1/images/omni-image.
Generation/edit path:
promptis required and should stay under the official 2500 character limit.image_urlpasses through as officialimage.image_pathis converted to raw base64 and sent as officialimage.image_referencecan besubjectorface.
Omni path:
- Put references in
image_list[]using officialimagevalues. - Use prompt placeholders such as
<<<image_1>>>only when the prompt needs to bind a specific reference image.
TTS Parameters
kling_tts uses:
textvoice_idvoice_language, currentlyzhorenvoice_speed
Require an explicit voice_id unless an official account-specific default has been verified. Do not hard-code a made-up voice. Download every returned audio item, set data.output_path to the first local file, and include voice_id, voice_language, voice_speed, task_id, and non-zero cost_usd.
Avatar Parameters
kling_avatar uses /v1/videos/avatar/image2video and accepts:
- avatar image via URL or local path converted to raw base64
audio_idorsound_file- optional
prompt mode, such asstdorpro
Keep it separate from local talking_head. Pipelines that want Kling avatar output must list and choose it explicitly.
Lip Sync Parameters
kling_lip_sync has two steps:
POST /v1/videos/identify-facewithvideo_idorvideo_url; read faces fromdata.face_data[]POST /v1/videos/advanced-lip-syncwithsession_idand oneface_choose[]item containingface_id,audio_idorsound_file, and the sound start/end/insert times
Local video paths must not be silently uploaded through fal.ai or any other provider. If multiple faces are returned and the user did not pass face_id or face_choose, stop and return the face list for confirmation unless auto_select_face=True was explicitly set. If auto-selecting, record the selection reason and selected face in the result/artifact.
Audio Effects And Video Effects
Official Kling audio effects (/v1/audio/text-to-audio, /v1/audio/video-to-audio) and video effects (/v1/videos/effects) are intentionally not default OpenMontage selector tools. Record the non-mapping reason in docs/tests instead of registering tools that current pipelines might misuse.
Elements Helper
Elements are an internal Kling Official helper, not a new OpenMontage tool capability.
Use tools/_kling/elements.py to normalize element_list[].element_id, optionally query read-only element endpoints, and record element metadata when queried. Do not create or delete elements from the default provider path.
Account Usage Helper
Account Usage is diagnostic only. Use tools/_kling/account.py for low-frequency /account/costs checks, with local cache and throttle protection. Do not call it before every generation and do not put it in selectors or production pipeline stages.
For 1101 or 1102, surface that the account or resource pack is exhausted and include an account-usage diagnostic hint.
Callback Notes
Providers may accept callback_url, but polling remains the default execution mode.
- Classic and Omni paths pass
callback_urlat the top level. - Turbo paths pass it as
options.callback_url. - Successful results should record
callback_requested=true,polling_used=true, thecallback_url, andtask_id. - Validate callback URLs before sending; only absolute
httporhttpsURLs should pass.
Error Handling
Surface official code, message, and request_id whenever available.
Do not retry:
- Auth failures:
1000-1004 - Balance/resource-pack exhaustion:
1101,1102 - Permission/model access:
1103 - Parameter errors:
1200,1201 - Safety policy:
1301
Limited retry is acceptable for:
1302request too fast1303concurrency/resource-pack slot limit5000,5001,5002server/maintenance/backlog errors
For 1303, explain that the account hit a concurrency or resource-pack slot limit.
Cost Governance
Official Kling is a paid remote API. Provider tools must return non-zero conservative estimates from estimate_cost() and include cost_usd on successful paid results. Treat estimates as low-confidence until account usage reconciliation is implemented.
High-cost Omni inputs such as multiple references, element IDs, result_type="series", mode="4k", and sound="on" must increase or flag the cost estimate.
Prompt Notes
For video, start from the universal OpenMontage video prompt skeleton: subject, subject motion, scene, spatial framing, and camera. Kling tends to respond well to clear temporal action order, camera movement verbs, and concise negative prompts. For reference workflows, state what should stay consistent from the reference and what should change.
FAQ
What does the kling-official skill do?
Official Kling direct API guidance for OpenMontage providers. Use before calling klingofficialvideo, klingofficialimage, klingtts, klingavatar, or klinglipsync.
How do I install kling-official?
Run npx skills add https://github.com/calesthio/openmontage --skill kling-official in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/kling-official/ (personal) or .claude/skills/kling-official/ (project).
Which AI agents can use kling-official?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is kling-official safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains kling-official?
It is published by calesthio in calesthio/openmontage. It has 801 recorded installs.
More from calesthio/openmontage
video-edit
calesthio/openmontage
Edit videos locally using ffmpeg. Trim, concat, resize, speed, overlay, extract audio, compress, and convert. Use when: (1) Trimming or cutting video segments, (2) Concatenating multiple clips, (3) Resizing video for social platforms, (4) Extracting or replacing audio, (5) Compressing video, (6) Converting video formats, (7) Getting video info.
video-understand
calesthio/openmontage
Understand video content locally using ffmpeg frame extraction and Whisper transcription. No API keys needed. Use when: (1) Understanding what a video contains, (2) Transcribing video audio locally, (3) Extracting key frames for visual analysis, (4) Getting video content without API keys.
svg-character-animation
calesthio/openmontage
Animate SVG character rigs with GSAP, CSS transforms, Remotion frame control, and HyperFrames-compatible browser previews.
ai-video-gen
calesthio/openmontage
Generate AI videos from text prompts using multiple provider gateways. Use when: (1) Generating videos from text descriptions, (2) Creating AI-generated video clips for content production, (3) Image-to-video generation with a reference image, (4) Choosing between video generation providers (VEO, Kling, Sora, Runway, Seedance, MiniMax, Gemini Omni). Supports gateways: HeyGen API, fal.ai API, Kling official direct API, and the Gemini API (Gemini Omni Flash).
video-download
calesthio/openmontage
Download video and audio from YouTube and 1000+ sites using yt-dlp. No API keys needed. Use when: (1) Downloading a video from YouTube or other sites, (2) Extracting audio from a video URL, (3) Downloading subtitles/captions from a video, (4) Getting video metadata without downloading.
remotion
calesthio/openmontage
Toolkit-specific Remotion patterns — custom transitions, shared components, and project conventions. For core Remotion framework knowledge (hooks, animations, rendering, etc.), see the remotion-official skill.
Popular media & creative skills
hyperframes
heygen-com/hyperframes
Read first to make, edit, animate or render any video with HyperFrames (HTML rendered to video), including launch films, explainers, music videos, charts, maps, vertical clips, title cards, captions and overlays. Holds the render contract, the work loop and what each kind of video needs.
media-use
heygen-com/hyperframes
Get or make any media for a HyperFrames video - music, sound effects, images, icons, logos, voiceover, avatar and generated video, transcripts, cutouts, colour grades and looks - with HeyGen or free local tools, and mix placed audio. Also for footage that looks dark, flat or dull, or should be stylized or hidden.
hyperframes-registry
heygen-com/hyperframes
About 450 ready-made HyperFrames blocks and components installed as editable source - transitions, overlays, titles, kinetic type, captions, charts, map overlays, 3D, camera moves. Use it before hand-building any named visual (CRT scanlines, glitch, film grain, a chart); also for hyperframes add and catalog.
hyperframes-creative
heygen-com/hyperframes
Non-animation creative direction for HyperFrames videos. Use for design spec (frame.md / design.md) handling, palettes, typography, narration, beat planning, audio-reactive visuals, composition patterns, and brand / style decisions. For atomic motion patterns and scene blueprints, use hyperframes-animation.
ai-video-generation
101-skills/superpowers
Generate AI videos with Google Veo, Seedance 2.0, HappyHorse, Wan, Grok and 40+ models via inference.sh CLI. Models: Veo 3.1, Veo 3, Seedance 2.0, HappyHorse 1.0, Wan 2.5, Grok Imagine Video, OmniHuman, Fabric, HunyuanVideo. Capabilities: text-to-video, image-to-video, reference-to-video, video editing, lipsync, avatar animation, video upscaling, foley sound. Use for: social media videos, marketing content, explainer videos, product demos, AI avatars. Triggers: video generation, ai video, text to video, image to video, veo, animate image, video from image, ai animation, video generator, generate video, t2v, i2v, ai video maker, create video with ai, runway alternative, pika alternative, sora alternative, kling alternative, seedance, happyhorse
ai-image-generation
101-skills/superpowers
Generate AI images with GPT-Image-2, FLUX, Gemini, Grok, Seedream, Reve and 50+ models via inference.sh CLI. Models: GPT-Image-2, FLUX Dev LoRA, FLUX.2 Klein LoRA, Gemini 3 Pro Image, Grok Imagine, Seedream 4.5, Reve, ImagineArt. Capabilities: text-to-image, image-to-image, inpainting, LoRA, image editing, upscaling, text rendering. Use for: AI art, product mockups, concept art, social media graphics, marketing visuals, illustrations. Triggers: flux, image generation, ai image, text to image, stable diffusion, generate image, ai art, midjourney alternative, dall-e alternative, text2img, t2i, image generator, ai picture, create image with ai, generative ai, ai illustration, grok image, gemini image, gpt image, openai image, chatgpt image