Kling 节点接入官方 4.0 / Flash(文生/图生/Omni)

This commit is contained in:
Jony
2026-11-10 12:50:52 +08:00
parent b4ddd35a6c
commit af300996b9
8 changed files with 974 additions and 179 deletions
@@ -38,3 +38,14 @@ because the released node has no compatible AUDIO or element-ID sockets.
`tests/test_kling_video.py` covers all three payload shapes, capability limits,
mutual exclusions, endpoint selection, and the Kling 4.0 result envelope.
## Official path update (2026-11-10)
The first integration used a proxy-compatible `model_name` / `metadata`
envelope and `/kling/v1/videos/*` paths. The published O1Key Kling 4.0 / Flash
docs now require official paths, `contents` / `settings` / `options` bodies,
and the `{code, message, request_id, data}` query envelope. The `v4` option is
retained as the stored Kling 4.0 value; `v4-flash` is appended, and both are
shown with Chinese display names. Flash is limited to 720p and 3–20 seconds.
Element and voice management remain outside this integration unless the
caller already has IDs.