新增 MiniMax H3 Highspeed/Lite 与 Seedance 2.5 Flash,兼容视频参数和旧工作流
This commit is contained in:
+34
-5
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user