@sogni-ai/sogni-creative-agent-skill 3.71.0 → 3.71.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,7 +3,7 @@ name: sogni-creative-agent-skill
3
3
  description: "Generate and edit images, create Pixal3D 3D models, remove backgrounds with BiRefNet, synthesize Qwen3-TTS speech, upscale images, create video and music, animate image folders into seamless reels, and manage reusable personas with Sogni AI. Use when a Hermes user asks to draw, render, upscale, edit or restyle an image, animate an image, make a video, create music or lyrics, build a media workflow, build a playable world, apply a saved identity, or refine an earlier Sogni result."
4
4
  license: MIT
5
5
  metadata:
6
- version: "3.71.0"
6
+ version: "3.71.1"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -64,7 +64,7 @@ Prompt-only families return the directly runnable prompt with no label,
64
64
  Markdown fence, preamble, explanation, or render offer.
65
65
 
66
66
  <!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
67
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
67
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
68
68
 
69
69
  ## Per-model rules from Sogni's image prompt writer
70
70
 
@@ -798,6 +798,10 @@ no negative prompt and no ControlNet.
798
798
  longer than 15 s.
799
799
  - **Resolution**: 480p/720p/1080p/4K (up to 4398 pixels on the long side;
800
800
  default 1280×720). Request 4K explicitly with `--target-resolution 2160`.
801
+ With `--ref`/`--ref-end` frames and no `-w`/`-h`, the CLI uses Seedance 2.5's
802
+ own size for the first frame's shape at the requested resolution (854×480 for
803
+ a 16:9 still at 480p, 1080×1920 for a portrait still at 1080p) and sends the
804
+ frames at full size (up to 4K).
801
805
  - **Exports**: MP4 or MOV with `--output-format`, plus an optional final-frame
802
806
  image with `--return-last-frame` for the first frame of a subsequent clip.
803
807
  - **Workflows**: text-to-video, image-to-video from a first frame, first- and
@@ -847,7 +851,9 @@ no negative prompt and no ControlNet.
847
851
  a draft. If final resolution is unclear, ask which supported resolution they want.
848
852
  `--seedance-draft` renders a 480p draft at the
849
853
  480p price; any normal Seedance 2.5 input works, and the size must be 480p
850
- (the CLI picks it when you give none). An ordinary 480p render cannot be
854
+ (the CLI picks it when you give none). With `--ref`/`--ref-end` frames, the
855
+ frames are sent at full size, so the final is made from them.
856
+ An ordinary 480p render cannot be
851
857
  finalized later. Only a job submitted as a draft can. `--seedance-finalize
852
858
  <job-id>`, with the same `-m`, renders that draft at 1080p by default. Add
853
859
  `--target-resolution 2160` for 4K (or `1080` explicitly). It retains its ratio, with
@@ -124,7 +124,7 @@ LTX-2.5 text-to-video, one shot, so one sentence: "A medium shot frames a woman
124
124
  ```
125
125
 
126
126
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.5 -->
127
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
127
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
128
128
 
129
129
  ### Sogni's prompt rules: ltx-2.5
130
130
 
@@ -179,7 +179,7 @@ Preserve requested visual style and production value without adding new objects,
179
179
  <!-- END GENERATED PROMPT GUIDE: ltx-2.5 -->
180
180
 
181
181
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.3 -->
182
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
182
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
183
183
 
184
184
  ### Sogni's prompt rules: ltx-2.3
185
185
 
@@ -977,7 +977,7 @@ the exact waveform-conditioned lip-sync input. Remote audio URLs and additional
977
977
  audio references keep their existing handling.
978
978
 
979
979
  <!-- BEGIN GENERATED PROMPT GUIDE: minimax-h3 -->
980
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
980
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
981
981
 
982
982
  ### Sogni's prompt rules: minimax-h3
983
983
 
@@ -1195,7 +1195,7 @@ A low tracking shot races alongside a teal 1960s convertible down a sunlit coast
1195
1195
  ```
1196
1196
 
1197
1197
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.5 -->
1198
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1198
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1199
1199
 
1200
1200
  ### Sogni's prompt rules: seedance-2.5
1201
1201
 
@@ -1269,7 +1269,7 @@ TARGET CAPABILITIES: Seedance 2.5 uses the same director-style prompt grammar an
1269
1269
  <!-- END GENERATED PROMPT GUIDE: seedance-2.5 -->
1270
1270
 
1271
1271
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.0 -->
1272
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1272
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1273
1273
 
1274
1274
  ### Sogni's prompt rules: seedance-2.0
1275
1275
 
@@ -1378,7 +1378,7 @@ writer uses close this section.
1378
1378
  motion timing, camera path, framing, and background.
1379
1379
 
1380
1380
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-2.2 -->
1381
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1381
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1382
1382
 
1383
1383
  ### Sogni's prompt rules: wan-2.2
1384
1384
 
@@ -1468,7 +1468,7 @@ The rules Sogni's own prompt writer uses close this section.
1468
1468
  - Prompts may run to 20,000 characters.
1469
1469
 
1470
1470
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-3 -->
1471
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1471
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1472
1472
 
1473
1473
  ### Sogni's prompt rules: wan-3
1474
1474
 
@@ -1523,7 +1523,7 @@ audio that is always on. What it renders well and the reference limits are in
1523
1523
  [models.md § HappyHorse 1.1](./models.md#happyhorse-11-prompting-tips).
1524
1524
 
1525
1525
  <!-- BEGIN GENERATED PROMPT GUIDE: happyhorse-1.1 -->
1526
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1526
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1527
1527
 
1528
1528
  ### Sogni's prompt rules: happyhorse-1.1
1529
1529
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.71.0",
3
+ "version": "3.71.1",
4
4
  "description": "Sogni Creative Agent: image, 3D, speech, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.71.0",
3
+ "version": "3.71.1",
4
4
  "description": "Create images, 3D models, speech, generative video, music, and image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ ## [3.71.1] - 2026-11-19
2
+
3
+ - Seedance videos made from a first or last frame (`--ref`, `--ref-end`) now render at the resolution you ask for. A 16:9 still at 480p (including Seedance 2.5 drafts), a portrait still at 720p and a 21:9 still at 480p were refused, and a portrait or square still at 1080p rendered and was billed at a lower resolution; it now renders at 1080p at the 1080p price. Seedance 2.5 gets the frames at full size, up to 4K, so a draft's 1080p or 4K final is made from them.
4
+ - Use Sogni SDK 5.86.1 and intelligence-client 4.32.1.
5
+
1
6
  ## [3.71.0] - 2026-11-17
2
7
 
3
8
  - Render Seedance 2.5 and Seedance 2.5 Uncensored videos in 4K with `-m seedance2-5 --target-resolution 2160` (or `-m seedance2-5-uncensored`), in text, image, reference, audio, edit and extend workflows. A kept draft finishes in 4K with `--seedance-finalize <jobId> --target-resolution 2160`; without the flag it still finishes at 1080p.
package/SKILL.md CHANGED
@@ -2,7 +2,7 @@
2
2
  name: sogni-creative-agent-skill
3
3
  description: "CLI and agent skill for personal LoRAs, image, video, and music generation using Sogni AI's decentralized GPU network. Supports Pixal3D single- and multi-view image-to-GLB, BiRefNet background removal, Qwen3-TTS speech/voice cloning/design, MiniMax Music 3, SAM 3 object selection, promptless RTX VSR image upscaling through 16K, promptless FlashVSR and RelayVSR video upscaling up to 2160p, one-click image-folder loop reels, personas (people with saved photos and voices), persistent memories, custom personality, style transfer, angle synthesis, MiniMax H3/H3 Balanced/LightX2V Turbo/FastH3 Turbo (including audio-to-video from an uploaded track)/Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"upscale an image\", \"upscale a video\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"build a playable world\", \"apply a style\", or \"generate me as a superhero\"."
4
4
  metadata:
5
- version: "3.71.0"
5
+ version: "3.71.1"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -2,7 +2,7 @@
2
2
  "manifest_version": "0.3",
3
3
  "name": "sogni-creative-agent",
4
4
  "display_name": "Sogni Creative Agent",
5
- "version": "3.71.0",
5
+ "version": "3.71.1",
6
6
  "description": "Generate images, video, and music on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
7
7
  "author": { "name": "Sogni AI", "url": "https://sogni.ai" },
8
8
  "homepage": "https://sogni.ai",
@@ -2,7 +2,7 @@
2
2
  "id": "sogni-creative-agent-skill",
3
3
  "name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
4
4
  "description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
5
- "version": "3.71.0",
5
+ "version": "3.71.1",
6
6
  "skills": [
7
7
  "."
8
8
  ],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sogni-ai/sogni-creative-agent-skill",
3
- "version": "3.71.0",
3
+ "version": "3.71.1",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, 3D, speech, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",
@@ -106,13 +106,13 @@
106
106
  "account-personas.mjs"
107
107
  ],
108
108
  "dependencies": {
109
- "@sogni-ai/sogni-intelligence-client": "4.32.0",
109
+ "@sogni-ai/sogni-intelligence-client": "4.32.1",
110
110
  "execa": "^10.0.1",
111
111
  "json5": "^2.2.3",
112
112
  "sharp": "0.35.5"
113
113
  },
114
114
  "overrides": {
115
- "@sogni-ai/sogni-client": "5.86.0",
115
+ "@sogni-ai/sogni-client": "5.86.1",
116
116
  "undici@7": "7.30.1"
117
117
  },
118
118
  "openclaw": {
@@ -64,7 +64,7 @@ Prompt-only families return the directly runnable prompt with no label,
64
64
  Markdown fence, preamble, explanation, or render offer.
65
65
 
66
66
  <!-- BEGIN GENERATED PROMPT GUIDE: image-models -->
67
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
67
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
68
68
 
69
69
  ## Per-model rules from Sogni's image prompt writer
70
70
 
@@ -798,6 +798,10 @@ no negative prompt and no ControlNet.
798
798
  longer than 15 s.
799
799
  - **Resolution**: 480p/720p/1080p/4K (up to 4398 pixels on the long side;
800
800
  default 1280×720). Request 4K explicitly with `--target-resolution 2160`.
801
+ With `--ref`/`--ref-end` frames and no `-w`/`-h`, the CLI uses Seedance 2.5's
802
+ own size for the first frame's shape at the requested resolution (854×480 for
803
+ a 16:9 still at 480p, 1080×1920 for a portrait still at 1080p) and sends the
804
+ frames at full size (up to 4K).
801
805
  - **Exports**: MP4 or MOV with `--output-format`, plus an optional final-frame
802
806
  image with `--return-last-frame` for the first frame of a subsequent clip.
803
807
  - **Workflows**: text-to-video, image-to-video from a first frame, first- and
@@ -847,7 +851,9 @@ no negative prompt and no ControlNet.
847
851
  a draft. If final resolution is unclear, ask which supported resolution they want.
848
852
  `--seedance-draft` renders a 480p draft at the
849
853
  480p price; any normal Seedance 2.5 input works, and the size must be 480p
850
- (the CLI picks it when you give none). An ordinary 480p render cannot be
854
+ (the CLI picks it when you give none). With `--ref`/`--ref-end` frames, the
855
+ frames are sent at full size, so the final is made from them.
856
+ An ordinary 480p render cannot be
851
857
  finalized later. Only a job submitted as a draft can. `--seedance-finalize
852
858
  <job-id>`, with the same `-m`, renders that draft at 1080p by default. Add
853
859
  `--target-resolution 2160` for 4K (or `1080` explicitly). It retains its ratio, with
@@ -124,7 +124,7 @@ LTX-2.5 text-to-video, one shot, so one sentence: "A medium shot frames a woman
124
124
  ```
125
125
 
126
126
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.5 -->
127
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
127
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
128
128
 
129
129
  ### Sogni's prompt rules: ltx-2.5
130
130
 
@@ -179,7 +179,7 @@ Preserve requested visual style and production value without adding new objects,
179
179
  <!-- END GENERATED PROMPT GUIDE: ltx-2.5 -->
180
180
 
181
181
  <!-- BEGIN GENERATED PROMPT GUIDE: ltx-2.3 -->
182
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
182
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
183
183
 
184
184
  ### Sogni's prompt rules: ltx-2.3
185
185
 
@@ -977,7 +977,7 @@ the exact waveform-conditioned lip-sync input. Remote audio URLs and additional
977
977
  audio references keep their existing handling.
978
978
 
979
979
  <!-- BEGIN GENERATED PROMPT GUIDE: minimax-h3 -->
980
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
980
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
981
981
 
982
982
  ### Sogni's prompt rules: minimax-h3
983
983
 
@@ -1195,7 +1195,7 @@ A low tracking shot races alongside a teal 1960s convertible down a sunlit coast
1195
1195
  ```
1196
1196
 
1197
1197
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.5 -->
1198
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1198
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1199
1199
 
1200
1200
  ### Sogni's prompt rules: seedance-2.5
1201
1201
 
@@ -1269,7 +1269,7 @@ TARGET CAPABILITIES: Seedance 2.5 uses the same director-style prompt grammar an
1269
1269
  <!-- END GENERATED PROMPT GUIDE: seedance-2.5 -->
1270
1270
 
1271
1271
  <!-- BEGIN GENERATED PROMPT GUIDE: seedance-2.0 -->
1272
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1272
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1273
1273
 
1274
1274
  ### Sogni's prompt rules: seedance-2.0
1275
1275
 
@@ -1378,7 +1378,7 @@ writer uses close this section.
1378
1378
  motion timing, camera path, framing, and background.
1379
1379
 
1380
1380
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-2.2 -->
1381
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1381
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1382
1382
 
1383
1383
  ### Sogni's prompt rules: wan-2.2
1384
1384
 
@@ -1468,7 +1468,7 @@ The rules Sogni's own prompt writer uses close this section.
1468
1468
  - Prompts may run to 20,000 characters.
1469
1469
 
1470
1470
  <!-- BEGIN GENERATED PROMPT GUIDE: wan-3 -->
1471
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1471
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1472
1472
 
1473
1473
  ### Sogni's prompt rules: wan-3
1474
1474
 
@@ -1523,7 +1523,7 @@ audio that is always on. What it renders well and the reference limits are in
1523
1523
  [models.md § HappyHorse 1.1](./models.md#happyhorse-11-prompting-tips).
1524
1524
 
1525
1525
  <!-- BEGIN GENERATED PROMPT GUIDE: happyhorse-1.1 -->
1526
- <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.0; edit the rules there, not here. -->
1526
+ <!-- Generated by npm run sync:prompt-guides from @sogni-ai/sogni-intelligence-client 4.32.1; edit the rules there, not here. -->
1527
1527
 
1528
1528
  ### Sogni's prompt rules: happyhorse-1.1
1529
1529
 
@@ -3,12 +3,12 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "4.32.0",
6
+ "@sogni-ai/sogni-intelligence-client": "4.32.1",
7
7
  "execa": "^10.0.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "0.35.5"
10
10
  },
11
11
  "overrides": {
12
- "@sogni-ai/sogni-client": "5.86.0"
12
+ "@sogni-ai/sogni-client": "5.86.1"
13
13
  }
14
14
  }
package/sogni-agent.mjs CHANGED
@@ -2421,6 +2421,87 @@ function wan3FrameCanvas(frameWidth, frameHeight, tier) {
2421
2421
  return landscape ? { width: longSide, height: shortSide } : { width: shortSide, height: longSide };
2422
2422
  }
2423
2423
 
2424
+ // Seedance 2.5 with a first/last frame (--ref/--ref-end). The wrapper fitted the
2425
+ // frame inside the CLI's canvas and then took the fitted frame's size as the
2426
+ // canvas, which drops below the requested size whenever the shapes differ: a
2427
+ // 16:9 still at 480p went out as 848x477 and a portrait still at 720p as 405x720
2428
+ // (both refused by the SDK, whose video sides must be at least 480), and a
2429
+ // portrait still at 1080p as 608x1080, which Sogni bills and renders as 480p.
2430
+ // The server reads only a ratio and a resolution band from the canvas. So such
2431
+ // a take gets Seedance 2.5's own size for the frame's nearest ratio at the
2432
+ // requested band, and sends its frames as given: a draft's final at 1080p or 4K
2433
+ // is made from them too.
2434
+ // The live presets: GET /api/v1/size-presets/network/fast/model/seedance-2-5
2435
+ // (sogni-socket SIZE_PRESETS_VIDEO_SEEDANCE_2_5), as of 2026-11.
2436
+ const SEEDANCE_25_SIZE_PRESETS = Object.freeze({
2437
+ '16:9': { '480p': [854, 480], '720p': [1280, 720], '1080p': [1920, 1080], '4k': [3840, 2160] },
2438
+ '9:16': { '480p': [480, 854], '720p': [720, 1280], '1080p': [1080, 1920], '4k': [2160, 3840] },
2439
+ '4:3': { '480p': [752, 560], '720p': [1112, 834], '1080p': [1664, 1248], '4k': [3326, 2494] },
2440
+ '3:4': { '480p': [560, 752], '720p': [834, 1112], '1080p': [1248, 1664], '4k': [2494, 3326] },
2441
+ '1:1': { '480p': [640, 640], '720p': [960, 960], '1080p': [1440, 1440], '4k': [2880, 2880] },
2442
+ '21:9': { '480p': [992, 432], '720p': [1470, 630], '1080p': [2206, 946], '4k': [4398, 1886] },
2443
+ });
2444
+ // The band a canvas renders and bills at, by area like sogni-socket's
2445
+ // resolveSeedanceResolution: the midpoints between these nominal areas.
2446
+ const SEEDANCE_BAND_AREAS = [['480p', 854 * 480], ['720p', 1280 * 720], ['1080p', 1920 * 1080], ['4k', 3840 * 2160]];
2447
+ // A frame is never sent larger than a 4K render's (short side 2160).
2448
+ const SEEDANCE_FRAME_MAX_SHORT_SIDE = 2160;
2449
+
2450
+ function seedanceResolutionBand(width, height) {
2451
+ const area = Number(width) * Number(height);
2452
+ let band = SEEDANCE_BAND_AREAS[0][0];
2453
+ for (let index = 1; index < SEEDANCE_BAND_AREAS.length; index++) {
2454
+ if (area >= (SEEDANCE_BAND_AREAS[index - 1][1] + SEEDANCE_BAND_AREAS[index][1]) / 2) band = SEEDANCE_BAND_AREAS[index][0];
2455
+ }
2456
+ return band;
2457
+ }
2458
+
2459
+ // The preset for the ratio nearest the frame's (log-aspect distance, as the
2460
+ // socket snaps a canvas to a ratio) at the given band.
2461
+ function seedanceFrameCanvas(frameWidth, frameHeight, band) {
2462
+ const aspect = Math.log(frameWidth / frameHeight);
2463
+ const ratio = Object.keys(SEEDANCE_25_SIZE_PRESETS)
2464
+ .map((key) => {
2465
+ const [ratioWidth, ratioHeight] = key.split(':').map(Number);
2466
+ return { key, distance: Math.abs(aspect - Math.log(ratioWidth / ratioHeight)) };
2467
+ })
2468
+ .sort((left, right) => left.distance - right.distance)[0].key;
2469
+ const [width, height] = SEEDANCE_25_SIZE_PRESETS[ratio][band];
2470
+ return { width, height };
2471
+ }
2472
+
2473
+ // The frames a Seedance 2.5 frame take sends: each at its own size (shrunk only
2474
+ // past a 4K render's), and the last frame cover-cropped to the first frame's
2475
+ // size as the wrapper does.
2476
+ async function prepareSeedanceFrames(first, last) {
2477
+ const capped = async (buffer) => {
2478
+ const dims = buffer ? await getVideoImageDimensionsFromBuffer(buffer) : null;
2479
+ if (!dims?.width || !dims?.height || Math.min(dims.width, dims.height) <= SEEDANCE_FRAME_MAX_SHORT_SIDE) {
2480
+ return buffer;
2481
+ }
2482
+ return sharp(buffer)
2483
+ .resize(dims.width >= dims.height
2484
+ ? { height: SEEDANCE_FRAME_MAX_SHORT_SIDE }
2485
+ : { width: SEEDANCE_FRAME_MAX_SHORT_SIDE })
2486
+ .toBuffer();
2487
+ };
2488
+ const sentFirst = await capped(first);
2489
+ let sentLast = await capped(last);
2490
+ if (sentFirst && sentLast) {
2491
+ const [firstDims, lastDims] = await Promise.all([
2492
+ getVideoImageDimensionsFromBuffer(sentFirst),
2493
+ getVideoImageDimensionsFromBuffer(sentLast)
2494
+ ]);
2495
+ if (firstDims?.width && firstDims?.height && lastDims?.width && lastDims?.height &&
2496
+ (firstDims.width !== lastDims.width || firstDims.height !== lastDims.height)) {
2497
+ sentLast = await sharp(sentLast)
2498
+ .resize(firstDims.width, firstDims.height, { fit: 'cover', position: 'center' })
2499
+ .toBuffer();
2500
+ }
2501
+ }
2502
+ return { first: sentFirst, last: sentLast };
2503
+ }
2504
+
2424
2505
  function isWan3ModelSelectionLocal(modelId) {
2425
2506
  const normalized = String(modelId || '').trim().toLowerCase().replace(/_/g, '-');
2426
2507
  return WAN3_REGULAR_MODEL_SELECTIONS.has(normalized) || WAN3_ENHANCED_MODEL_SELECTIONS.has(normalized);
@@ -8528,9 +8609,27 @@ if (options.video) {
8528
8609
  });
8529
8610
  }
8530
8611
 
8612
+ // A Seedance 2.5 take with a first/last frame keeps the band of the canvas
8613
+ // asked for (a draft is always 480p) and takes the preset for a local frame's
8614
+ // shape, sent exactly (no grid rounding: 854 is not a multiple of 8). A URL
8615
+ // frame is measured once it is downloaded, at the render.
8616
+ const seedanceFrames = seedanceFramesAsGiven();
8617
+ if (seedanceFrames) {
8618
+ options._seedanceFrameBand = options.seedanceDraft ? '480p' : seedanceResolutionBand(options.width, options.height);
8619
+ const framePath = options.refImage || options.refImageEnd;
8620
+ if (!isHttpUrl(framePath) && existsSync(framePath)) {
8621
+ const dims = getImageDimensionsFromBuffer(readFileSync(framePath));
8622
+ if (dims?.width && dims?.height) {
8623
+ Object.assign(options, seedanceFrameCanvas(dims.width, dims.height, options._seedanceFrameBand));
8624
+ }
8625
+ }
8626
+ }
8627
+
8531
8628
  const originalVideoWidth = options.width;
8532
8629
  const originalVideoHeight = options.height;
8533
- const normalizedVideoDims = normalizeVideoDimensionsLikeWrapper(options.width, options.height, videoDimensionRules);
8630
+ const normalizedVideoDims = seedanceFrames
8631
+ ? { width: options.width, height: options.height, adjusted: false }
8632
+ : normalizeVideoDimensionsLikeWrapper(options.width, options.height, videoDimensionRules);
8534
8633
  // Wan 2.2 renders at most 1,048,576 pixels per frame, with each side between
8535
8634
  // 480 and 1536. Since 2026-09-26 the network scales a larger request down to
8536
8635
  // about 1 MP (a side below 480 is still refused, error 4101). A size the user
@@ -8566,7 +8665,7 @@ if (options.video) {
8566
8665
  );
8567
8666
  }
8568
8667
 
8569
- if (videoWorkflowHasFrameAnchors() && (options.refImage || options.refImageEnd)) {
8668
+ if (!seedanceFrames && videoWorkflowHasFrameAnchors() && (options.refImage || options.refImageEnd)) {
8570
8669
  const references = [
8571
8670
  {
8572
8671
  key: 'refImage',
@@ -14611,6 +14710,19 @@ function videoWorkflowHasFrameAnchors() {
14611
14710
  || (options.videoWorkflow === 'ia2v' && isMiniMaxH3AudioGuideModel(options.model));
14612
14711
  }
14613
14712
 
14713
+ // A Seedance 2.5 take (or draft) whose --ref/--ref-end are its first/last frames
14714
+ // takes the preset for the frame's shape and sends the frames as given
14715
+ // (seedanceFrameCanvas). A size asked for in pixels, or an explicit
14716
+ // --auto-resize-assets choice, keeps the wrapper's frame fit.
14717
+ function seedanceFramesAsGiven() {
14718
+ return isSeedance25ModelSelectionLocal(options.model)
14719
+ && options.seedanceFinalize === null
14720
+ && !options.seedanceTaskType
14721
+ && Boolean(options.refImage || options.refImageEnd)
14722
+ && options.autoResizeVideoAssets === null
14723
+ && !cliSet.width && !cliSet.height && !exactPixelsFromPrompt;
14724
+ }
14725
+
14614
14726
  // The keyframes a render pinned, for --json output and render info.
14615
14727
  function describeKeyframesForOutput() {
14616
14728
  return options.keyframes.map(({ image, seconds, frameIndex }) => ({
@@ -16093,10 +16205,21 @@ async function main() {
16093
16205
  }
16094
16206
  }
16095
16207
 
16208
+ // Seedance 2.5 frame take: the frames go out as given and the canvas is the
16209
+ // preset for the first frame actually sent (seedanceFrameCanvas).
16210
+ const sendSeedanceFramesAsGiven = seedanceFramesAsGiven() && Boolean(imageBuffer || endImageBuffer);
16211
+ if (sendSeedanceFramesAsGiven) {
16212
+ ({ first: imageBuffer, last: endImageBuffer } = await prepareSeedanceFrames(imageBuffer, endImageBuffer));
16213
+ const frameDims = await getVideoImageDimensionsFromBuffer(imageBuffer || endImageBuffer);
16214
+ if (frameDims?.width && frameDims?.height) {
16215
+ Object.assign(options, seedanceFrameCanvas(frameDims.width, frameDims.height, options._seedanceFrameBand));
16216
+ }
16217
+ }
16218
+
16096
16219
  // Pre-resize reference images to model-compatible dimensions if needed for i2v workflow.
16097
16220
  // The earlier preflight can inspect local files, but HTTPS references are downloaded only
16098
16221
  // here. Re-check the actual buffer so remote and local inputs follow the same grid rules.
16099
- if (videoWorkflowHasFrameAnchors() && imageBuffer) {
16222
+ if (!sendSeedanceFramesAsGiven && videoWorkflowHasFrameAnchors() && imageBuffer) {
16100
16223
  const dims = await getVideoImageDimensionsFromBuffer(imageBuffer);
16101
16224
  if (dims?.width && dims?.height) {
16102
16225
  const predicted = predictSharpInsideResizeDims(dims.width, dims.height, options.width, options.height);
@@ -16136,7 +16259,7 @@ async function main() {
16136
16259
  }
16137
16260
  }
16138
16261
  }
16139
- if (videoWorkflowHasFrameAnchors() && endImageBuffer && options._needsRefEndResize) {
16262
+ if (!sendSeedanceFramesAsGiven && videoWorkflowHasFrameAnchors() && endImageBuffer && options._needsRefEndResize) {
16140
16263
  const dims = getImageDimensionsFromBuffer(endImageBuffer);
16141
16264
  if (dims?.width && dims?.height) {
16142
16265
  const resizedBuffer = await resizeImageBufferForVideo(endImageBuffer, dims.width, dims.height, videoDimensionRules);
@@ -16210,7 +16333,7 @@ async function main() {
16210
16333
  projectConfig.autoResizeVideoAssets = false;
16211
16334
  } else if (options.autoResizeVideoAssets !== null) {
16212
16335
  projectConfig.autoResizeVideoAssets = options.autoResizeVideoAssets;
16213
- } else if (options._ltxReferencePassthrough) {
16336
+ } else if (options._ltxReferencePassthrough || sendSeedanceFramesAsGiven) {
16214
16337
  projectConfig.autoResizeVideoAssets = false;
16215
16338
  }
16216
16339
 
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.71.0';
1
+ export const PACKAGE_VERSION = '3.71.1';