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
复制





首页
