klingai-upgrade-migration
jeremylongshore/claude-code-plugins-plus-skills
安全地遷移與升級 Kling AI SDK 版本。適用於更新依賴項或遷移設定時。 可透過「klingai upgrade」、「kling ai migration」、「update klingai」、「klingai breaking changes」等指令觸發。
...展開全部關於klingai-upgrade-migration
「klingai-upgrade-migration 」技能旨在協助安全地遷移與升級 Kling AI SDK。在升級依賴項、遷移設定,或處理 Kling AI 整合過程中的相容性變更時,此技能尤為實用。 此技能可確保 SDK 版本更新及適應新 API 變更的過程順暢無阻,從而降低遷移過程中的錯誤風險。它提供清晰的操作步驟,從檢視發行說明到逐步部署更新,確保過程中不會遺漏任何關鍵功能。
此技能主要協助更新 Kling AI SDK 及其依賴項,確保整合功能在整個升級過程中持續正常運作。 主要功能包括針對審閱破壞性變更、更新依賴項、調整程式碼以符合新 API 標準,以及在部署前徹底測試變更的詳細指引。此外,本技能亦強調回滾能力的重要性,以及「金絲雀部署」或「藍綠部署」等安全部署策略。透過運用此技能,開發人員可確保系統保持最新狀態,同時避免引入重大問題。
此技能主要針對在生產環境中管理 Kling AI 整合的開發人員或 DevOps 專業人員。 對於在升級依賴項的同時需要維持持續整合與交付(CI/CD)管道的團隊而言,這項技能尤為寶貴。對於從事 API 遷移或為系統提供長期支援的人員,此技能同樣大有裨益,可確保所有破壞性變更都能得到有效處理與緩解。
常見問題
如何觸發「klingai-upgrade-migration 」技能?
您可以使用「klingai upgrade」、「kling ai migration」、「update klingai」或「klingai breaking changes」等短語來觸發此技能。
使用此技能有哪些先決條件?
先決條件包括已部署的 Kling AI 整合、具備回滾功能的版本控制系統,以及用於驗證變更的測試環境。
我可以使用此技能進行完整的生產環境部署嗎?
可以,但建議採用漸進式部署策略(例如金絲雀部署或藍綠部署),以將生產環境中的風險降至最低。
若在遷移過程中發生錯誤,該如何處理?
有關詳細的錯誤處理說明,請參閱位於 '{baseDir}/references/' 目錄中的 'errors.md' 檔案。
哪裡可以找到有關遷移和 API 版本控制的額外資源?
您可透過提供的連結,在 Kling AI 變更日誌、遷移指南及 API 版本控制文件中找到更多相關資源。
Kling AI Upgrade & Migration
Overview
Guide for migrating between Kling AI model versions. Covers breaking changes, parameter differences, feature availability, and parallel testing strategies.
Version History
| Version | Release | Key Changes |
|---|---|---|
| v1.0 | 2024-06 | Initial T2V + I2V |
| v1.5 | 2024-09 | 1080p, motion brush, I2V-only model |
| v1.6 | 2024-11 | Lip sync, camera paths, effects API |
| v2.0 | 2025-03 | Quality leap, kling-v2-master |
| v2.1 | 2025-06 | Optimized I2V, kling-v2-1-master for T2V |
| v2.5 Turbo | 2025-09 | 40% faster, best speed/quality ratio |
| v2.6 | 2025-12 | Native audio, 30-48 FPS, highest quality |
Migration: v1.x to v2.x
# v1.x requestbody = { "model_name": "kling-v1-6", "prompt": "A sunset over mountains", "duration": "5", "mode": "standard",}# v2.x -- only model_name changesbody["model_name"] = "kling-v2-master"
Breaking changes:
kling-v2-1is I2V-only (no text-to-video support)- Camera control intensities produce different results at same values
- Generation times differ (v2.x generally slower, higher quality)
Migration: v2.x to v2.6 with Audio
body["model_name"] = "kling-v2-6"body["motion_has_audio"] = True # NEW: synchronized audio# Cost impact: audio multiplies credits 5x# 5s standard: 10 -> 50 credits
Feature Availability Matrix
| Feature | v1.0 | v1.5 | v1.6 | v2.0 | v2.1 | v2.5T | v2.6 |
|---|---|---|---|---|---|---|---|
| Text-to-video | Y | Y | Y | Y | I2V only | Y | Y |
| Image-to-video | Y | Y | Y | Y | Y | Y | Y |
| Camera control | - | - | Y | Y | Y | Y | Y |
| Motion brush | - | Y | Y | Y | Y | Y | Y |
| Lip sync | - | - | Y | Y | Y | Y | Y |
| Effects | - | - | Y | Y | Y | Y | Y |
| Native audio | - | - | - | - | - | - | Y |
| 1080p | - | Y | Y | Y | Y | Y | Y |
Parallel A/B Comparison
def compare_models(prompt, models): """Generate same prompt across models for comparison.""" results = {} for model in models: r = requests.post(f"{BASE}/videos/text2video", headers=get_headers(), json={ "model_name": model, "prompt": prompt, "duration": "5", "mode": "standard", }).json() results[model] = {"task_id": r["data"]["task_id"], "start": time.time()} # Poll all while any("url" not in r for r in results.values()): for model, info in results.items(): if "url" in info or "error" in info: continue r = requests.get( f"{BASE}/videos/text2video/{info['task_id']}", headers=get_headers() ).json() if r["data"]["task_status"] == "succeed": info["url"] = r["data"]["task_result"]["videos"][0]["url"] info["time"] = round(time.time() - info["start"]) elif r["data"]["task_status"] == "failed": info["error"] = r["data"].get("task_status_msg") time.sleep(10) for model, info in results.items(): print(f"{model}: {info.get('url', info.get('error'))} ({info.get('time', '?')}s)") return results
Rollback Strategy
# Feature flag for instant rollbackKLING_MODEL = os.environ.get("KLING_MODEL_VERSION", "kling-v2-master")body["model_name"] = KLING_MODEL# To rollback: export KLING_MODEL_VERSION=kling-v1-6
Resources
- Model Documentation
- Developer Portal
安裝 klingai-upgrade-migration
請下載並將技能檔案解壓縮至您的 .claude/skills/ 目錄中。
下載 ZIP複製儲存庫並將技能檔案複製到您的專案中。
git clone https://github.com/jeremylongshore/claude-code-plugins-plus-skills/blob/main/plugins/saas-packs/klingai-pack/skills/klingai-upgrade-migration/SKILL.md # Copy SKILL.md to your .claude/skills/ directory
複製





首頁
