新增 MiniMax H3 Highspeed/Lite 与 Seedance 2.5 Flash,兼容视频参数和旧工作流

This commit is contained in:
Jony
2026-11-17 15:44:20 +08:00
parent af300996b9
commit 209100ecde
16 changed files with 598 additions and 70 deletions
+34 -5
View File
@@ -59,15 +59,30 @@ Only `omni_flash_abra_edit` task creation adds the `X-No-Watermark: video` heade
`clients/` owns request construction, provider endpoints, polling protocols, and response normalization. Its package exports are lazy so importing one provider does not initialize all providers. Video task polling uses the shared 2,000-second deadline unless a caller explicitly supplies a different value.
The `MiniMaxH3Video` node keeps its released node ID and original first four
inputs. Its append-only `模型` widget selects `MiniMax-H3` or
`MiniMax-H3-MAX`, followed by an append-only native `seed` widget. Workflow
migration supplies `MiniMax-H3` and seed `0` to older saved graphs. The seed is
The `MiniMaxH3Video` node keeps its released node ID and input IDs. Its schema
order is `提示词`, `模型`, `生成模式`, `分辨率`, `时长`, `seed`.
The model widget selects `MiniMax-H3`, `MiniMax-H3-MAX`,
`MiniMax-H3-Highspeed`, or `MiniMax-H3-Lite`. New nodes default to
`多模态生视频`, the first DynamicCombo option. Workflow migration first supplies
missing model/seed defaults, then moves the former trailing model to index 1
and renames `参考素材生视频` to `多模态生视频`. It preserves selected modes,
reference values, seed controls, and nested subgraphs; repeated migration is
idempotent. Request construction and execution retain the old mode as an alias.
See [ADR 0018](decisions/0018-minimax-model-order-and-multimodal-default.md).
The seed is
validated as an integer and passed unchanged in the provider request. Backend
validation owns the authoritative model-specific resolution, duration, mode,
and aggregate reference-count rules, while the frontend guard updates the
visible resolution and duration constraints and prevents H3 Max from selecting
reference mode.
reference mode. Highspeed and Lite allow 480P/768P and 4–15 seconds with the
same reference limits as H3. Lite reference mode requires a fixed ratio;
the frontend changes adaptive to 16:9 and the backend rejects missing/adaptive
ratios before uploads or submission. Frame modes retain adaptive for Lite.
Highspeed/Lite tail input requires a first frame, so the frontend selects the
existing first/last mode and the backend rejects tail-only requests; legacy
H3/Max tail-only workflows remain accepted. Migration recognizes all four
model IDs, including workflows with the native seed control serialized after
the seed, so new workflows are not mistaken for workflows missing a model.
The MiniMax client creates tasks through `/v1/video/generations` and queries
them through `/v1/videos/{task_id}` every 10 seconds. New API's documented
@@ -234,6 +249,20 @@ Seedance model capabilities are shared across the single, multimodal, and batch
`SeedanceMultiModal`, `SeedanceAutoPass`, and `SeedanceAutoPassBatch` expose both `国内` and `海外` model routes and default newly created nodes to `国内`; `海外` is the display-name replacement for the former `海外HC` value. The domestic route maps the four existing base-model choices to `doubao-seedance-2-0-260128-max`, `doubao-seedance-2-0-fast-260128-max`, `doubao-seedance-2-0-mini-260615-max`, and `doubao-seedance-2-5-260628-max`; it reuses the same capability envelope and new-format request body as the corresponding overseas choices. `SeedanceAutoPass` exposes `多模态`, `首尾帧`, `视频编辑`, and `视频延长`: the backend resolves prompt-only multimodal calls to `text`, resolves one or two frame images to `first_frame` or `first_last_frame`, and passes an explicitly selected edit/extend mode through with its single reference video plus any optional reference images and audio. Its `素材创建` branch mirrors the unified generator's `auto/manual` contract; automatic media is validated and converted into HC/Doubao assets, while manual IDs bypass upload and enter `build_seedance_video_body` through the `assets` fields. The node translates its Chinese widget values into `o1key_video_catalog.py` and submits through `SeedanceClient`, so the unified panel and graph node cannot drift in scalar parameters or request shape. `migrateWorkflow.js` performs an idempotent compatibility migration for the former four mode values, moved web-search widget, former route label, last-frame default, and newly added asset-creation selector. Seedance 2.5's draft flow is exposed through the append-only `样片模式` / `样片任务ID` widgets and the new `样片任务ID` output: `生成样片` submits the normal request body with `draft: true` and a forced `480p` resolution and returns the preview plus the provider task ID, while `按样片生成` submits only `content: [{"type": "draft_task", "draft_task": {"id": ...}}]` so the provider reuses the draft's prompt, media, duration, ratio, and audio and renders the 1080p final; both requests go through `SeedanceClient`, and the task ID is captured from the submission callback. The draft task ID can be typed into the widget or received through the optional `样片任务ID输入` STRING socket (a connected link wins over the widget); before submitting the final request the node queries the task once through `SeedanceClient.get_task_async`, requires a succeeded status, logs the reported model/resolution/duration, and reuses the reported model for the final body.
The graph-connected `SeedanceAutoPass` and its batch counterpart list
`seedance 2.5 flash` immediately after regular 2.5. The shared capability
registry includes `seedance-2.5-flash`, mapped only on the domestic route to
`doubao-seedance-2-5-flash`: 480p/720p, 4–30 seconds, 10 images, 5 videos,
5 audios, and 30-second reference limits. The curated panel and multimodal
node model menus remain unchanged. Shared normalization accepts the registry
superset so the graph nodes retain one source for limits and request bodies.
Flash follows 2.5 frame/edit/extend and audio-only-reference rules, including
MOV output and automatic ratio/duration normalization. The existing 1080p
draft-final workflow remains regular-2.5-only. The frontend clamps route and
resolution on model changes, and backend validation rejects incompatible
parameters before uploads or submission. Migration recognizes the new model
without changing widget order or defaults.
#### Panel-driven unified video generation
`O1keyVideoGenerator` exposes append-only `VIDEO` and `LAST_FRAME` outputs while keeping paid generation exclusively behind `POST /o1key/video/jobs`. Every panel click creates and connects a native `SaveVideo`; when `return_last_frame` is enabled, it also creates and connects a native `SaveImage`. The completed safe descriptors are dispatched to those native nodes for preview and persisted on them for workflow reload recovery. The generator's native `execute` may resolve only the latest completed local descriptors and can never submit or retry a paid request. `O1keyVideoResult` remains registered as deprecated compatibility support for saved workflows but is never created by the current panel. `ParallelVideoJobManager` still starts every accepted job immediately without entering ComfyUI's native queue or imposing an internal concurrency ceiling. Provider-side quotas and rate limits remain authoritative.
@@ -0,0 +1,38 @@
# 0018: MiniMax model order and multimodal default
- Status: Accepted
- Date: 2026-11-17
- Owners: Maintainers
## Context
The user requested the MiniMax model above generation mode and renamed the
reference-material mode to `多模态生视频`, with that mode as the default.
Saved workflows use positional widget values and previously kept the model
after duration, so a schema-only change would misassign saved parameters.
## Decision
Use `提示词`, `模型`, `生成模式`, `分辨率`, `时长`, `seed` as the schema order.
Place `多模态生视频` first in DynamicCombo options to select it for new nodes.
Keep node/input IDs and the execution signature stable. Migrate missing
model/seed defaults first, then move the trailing model to index 1 and rename
the old mode. Keep `参考素材生视频` as a backend execution/payload alias.
## Consequences
Existing workflows preserve their mode, references, duration, seed, and seed
control rather than inheriting the new default. Migration applies to root and
subgraph nodes and must remain idempotent. H3 Max continues to switch to text
mode because it does not support multimodal references.
## Alternatives considered
Moving only the displayed widget would leave schema and serialized order
inconsistent. Changing the schema without migration would break saved graphs.
## Validation
`tests/test_minimax_h3.py` covers schema order, default mode, and the old alias.
`tests/test_o1key_image_generator_frontend.mjs` covers old/current workflow
layouts, all four models, seed controls, subgraphs, and repeat migration.
+1
View File
@@ -29,3 +29,4 @@ Use ADRs for decisions that constrain future changes: node ID compatibility, pac
- [0015: Canonical image-generator workflow values](0015-image-generator-workflow-values.md)
- [0016: Add Kling 4.0 modes to the released K video node](0016-kling-v4-generation-modes.md)
- [0017: Remove retired Nano Banana models from the unified image generator](0017-remove-retired-unified-nano-models.md)
- [0018: MiniMax model order and multimodal default](0018-minimax-model-order-and-multimodal-default.md)
+7
View File
@@ -24,6 +24,13 @@ The left toolbar Update button sits after Token Manager and before Restart. Open
7. If widget order changes, add an idempotent migration to `web/js/migrateWorkflow.js`.
8. Add an offline test and update user/architecture docs when behavior is visible.
For `MiniMaxH3Video`, keep `模型` immediately before `生成模式` and keep
`多模态生视频` first in the DynamicCombo options so new nodes use it by default.
Preserve the backend `参考素材生视频` alias and the migration sequence that supplies
missing model/seed defaults before moving the former trailing model and renaming
the saved mode. Cover both root/subgraph workflows and optional seed controls in
`tests/test_o1key_image_generator_frontend.mjs` after changing these widgets.
For `O1keyPromptMultiFunction`, keep the original first two widgets unchanged and retain backend aliases for the legacy `随机抽取1套` / `随机抽取多套` values. The visible mode remains `随机抽取n套`; migration must map old single-random workflows to count `1`. Its dynamic extension may hide inactive selection widgets but must retain their values and serialization. Future selection controls must remain append-only, and every multi-prompt result must use a standalone `---` line so downstream batch nodes retain the same parsing contract.
## Add or change a provider client