Add MJ image node, GIF save, and Kling/image generator updates

Ship o1key MJ图片生成 with content/style refs and prompt flags, save-GIF with preview, Kling 4.0 helpers, plus GPT/unified image node polish and docs.
This commit is contained in:
Jony
2026-11-09 09:11:12 +08:00
parent ff1cf830fa
commit a181cc1768
40 changed files with 6711 additions and 675 deletions
@@ -0,0 +1,40 @@
# 0016: Add Kling 4.0 modes to the released K video node
- Status: Accepted
- Date: 2026-10-30
- Owners: Maintainers
## Context
Kling 4.0 introduces separate text, keyframe, and Omni reference request
paths. The package already ships `K3Video`, and replacing it with a new node or
moving its widgets would invalidate saved workflows.
## Decision
Keep the `K3Video` node ID and append a `v4` DynamicCombo option. The v4 option
owns a `生成模式` selector with `文生视频`, `关键帧`, and `全能参考`. New keyframe
and reference sockets are appended after the released input block. Request body
validation lives in `clients/kling_video_client.py`; the node continues to use
the shared upload, polling, cancellation, and download lifecycle.
## Consequences
Existing v3, v2.6, and v3-omni workflows retain their positional widget
values. Kling 4.0 supports 3–30 seconds, 720p/1080p, up to ten keyframes, ten
reference images, and five reference videos through the new branch. Audio
voice-profile inputs and named elements remain outside this first integration
because the released node has no compatible AUDIO or element-ID sockets.
## Alternatives considered
- A new `Kling4Video` node would avoid a larger schema, but would split the K
video user experience and require a second registration and migration path.
- Reusing the v3 Omni payload without a mode selector would make text-only and
keyframe requests ambiguous and could send mutually exclusive media fields.
## Validation
`tests/test_kling_video.py` covers all three payload shapes, capability limits,
mutual exclusions, endpoint selection, and the Kling 4.0 result envelope.