kling-official
Skill này làm gì
Skill này giải thích cách dùng API Kling chính thức cho video AI và các tác vụ liên quan. Nó dành cho người sáng tạo có tài khoản Kling riêng và muốn dùng trực tiếp.
Khi nào nên dùng
- ✓Khi bạn muốn tạo video AI hoặc ảnh qua dịch vụ Kling chính thức.
- ✓Khi bạn cần chuyển văn bản thành giọng nói, avatar hoặc lip sync từ Kling.
- ✓Khi bạn muốn biết đường Kling chính thức khác đường Kling của fal.ai thế nào.
Liên kết skill
https://github.com/calesthio/OpenMontage/blob/main/.agents/skills/kling-official/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Tạo một video Kling ngắn từ prompt này bằng tài khoản Kling chính thức của tôi.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent dùng khóa API Kling của bạn để gửi tác vụ, kiểm tra trạng thái cho đến khi xong, rồi lưu kết quả. Nó sẽ không chuyển sang nhà cung cấp khác mà không hỏi bạn trước.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
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_urlpa
Câu hỏi thường gặp
Tôi cần khóa nào?
Bạn cần KLING_API_KEY, và có thể đặt địa chỉ cơ sở theo khu vực nếu cần.
Đây có phải cùng đường với Kling của fal.ai không?
Không. Đường chính thức dùng khóa và luồng tác vụ riêng, và skill tách hai đường này.
Nó có tự chuyển nhà cung cấp không?
Không. Skill nói nhà cung cấp khác chỉ được dùng sau khi bạn đồng ý.
Chi tiết
Mô tả gốc của tác giả
Official Kling direct API guidance for OpenMontage providers. Use before calling `kling_official_video`, `kling_official_image`, `kling_tts`, `kling_avatar`, or `kling_lip_sync`.
repo: calesthio/OpenMontage
Độ phổ biến
- Sao GitHub
- 75k
- Vị trí xếp hạng
- #2668
- Giấy phép
- AGPL-3.0
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
3d-asset-generation
75kGiúp agent của bạn chọn cách tạo đối tượng 3D cho một cảnh, bằng thư viện có sẵn, các tool chuyển văn bản hoặc ảnh thành 3D, và Blender để lắp ráp cuối cùng.
acestep
75kGiúp agent của bạn tạo nhạc nền, bài hát, jingle và các stem cho video bằng trình tạo nhạc mã nguồn mở ACE-Step.
agents
75kGiúp agent của bạn xây dựng trợ lý AI giọng nói bằng ElevenLabs, như bot chăm sóc khách hàng và nhân vật giọng nói tương tác.
ai-video-gen
75kGiúp agent của bạn tạo các đoạn video AI từ mô tả bằng văn bản hoặc ảnh tham khảo, chọn trong số nhiều dịch vụ tạo video.
Skill tương tự
taste-application
280kGiúp agent tạo video theo phong cách cụ thể: sao chép nhịp dựng từ video mẫu, tạo cảnh mới, chỉnh màu và ghép với các đoạn có sẵn.
taste-distillation
280kGiúp agent phân tích video để tạo style pack gồm màu sắc, nhịp cắt và yếu tố hình ảnh, tái sử dụng để tạo video mới cùng phong cách.
ui-demo
280kGiúp agent ghi lại video demo giao diện chỉn chu. Hữu ích để tạo hướng dẫn hoặc cho thấy một ứng dụng web hoạt động ra sao.