@sogni-ai/sogni-creative-agent-skill 3.54.1 → 3.54.3

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, apply a saved identity, or refine an earlier Sogni result."
4
4
  license: MIT
5
5
  metadata:
6
- version: "3.54.1"
6
+ version: "3.54.3"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -370,8 +370,10 @@ H3 clip. Its schema description, identical on all three tools:
370
370
  frame, or more than 8 is refused with a `PARAMETER_INVALID` error that says
371
371
  what to change; nothing is clamped or dropped. Set `duration` so every keyframe
372
372
  falls inside the clip.
373
- - Keyframes add to the first and last frame and are never `<Picture N>`
374
- references; on `generate_video` they do not go in `referenceImageIndices`.
373
+ - Keyframes add to the first and last frame and are not references (on
374
+ `generate_video` they do not go in `referenceImageIndices`), but the H3
375
+ prompt names each one `<Picture N>`, numbered in time order after the
376
+ first/last-frame or reference pictures.
375
377
  - Price: two keyframes are included; each additional keyframe adds 0.75 s of
376
378
  output time on FastH3 (0.3 s on other tiers) at the job's rate.
377
379
  - Error 4100 means no online worker serving that model can pin keyframes right
@@ -702,6 +702,14 @@ so a prompt is not rewritten twice.
702
702
  - **No edit/extend task:** video references are loose conditioning for a new
703
703
  generation. Alibaba exposes no edit/extend task mode or task-type field; use
704
704
  a dedicated video-to-video model when source-preserving editing is required.
705
+ - **Size:** `--target-resolution 480`, `720` (the default), or `1080` picks the
706
+ tier, and the CLI sends Alibaba's exact size for that tier and
707
+ `--wan3-ratio` (16:9 when adaptive): at 1080 that is 1920x1080, 1440x1080,
708
+ 1080x1080, 1080x1440, or 1080x1920. Image-to-video keeps the first frame's
709
+ shape with its short side at the tier (an 832x1216 frame at 1080 becomes
710
+ 1080x1578); a fixed `--wan3-ratio` does not crop the frame. Explicit
711
+ `-w`/`-h` are sent as given, 480-1920 per side. The network prices the tier
712
+ from the canvas, so 1080P costs twice the 720P rate per second.
705
713
  - **Cost (as of 2026-08):** platform artist pricing is $0.065/s at 480P,
706
714
  $0.13/s at 720P, and $0.26/s at 1080P; native audio does not change the rate.
707
715
 
@@ -717,7 +725,8 @@ the Sogni model `wan3.0-spicy-video`; MuleRouter's provider ID is
717
725
  `w3.0-video`. Public surfaces call it **Wan 3.0 Enhanced**. It renders fixed or
718
726
  smart 2–30 second clips at 30 fps with native audio and 480P, 720P, or 1080P
719
727
  output. Supported ratios are `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, and
720
- `3:4`.
728
+ `3:4`. Sizes follow the Wan 3 rules above: 720P unless `--target-resolution`
729
+ says otherwise.
721
730
 
722
731
  - Use t2v for prompt-only video, i2v for first/optional last frame, r2v for
723
732
  loose media references, and a2v/ia2v when audio drives the result.
@@ -985,9 +994,12 @@ clip, in addition to `--ref` / `--ref-end`.
985
994
  yet, the network refuses the job with error 4100. The CLI reports it as a
986
995
  retryable `MODEL_UNAVAILABLE` error: try again shortly, or render without
987
996
  keyframes.
988
- - **Prompt:** H3 never sees the keyframe images in the prompt. Describe what each
989
- one shows at its time, and cut to a new shot at a keyframe that changes the
990
- camera angle, place, or light. Read
997
+ - **Prompt:** name each keyframe `<Picture N>`, numbered in time order after the
998
+ mode's own pictures, and list it in the alignment line (Ref2VA: a keyframe
999
+ entry, `keyframe completion`, and a retention entry). H3's text encoder never
1000
+ sees the keyframe images, so describe what each one shows at its time, and
1001
+ cut to a new shot at a keyframe that changes the camera angle, place, or
1002
+ light. Read
991
1003
  [`video-prompting.md` § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
992
1004
  before writing the prompt.
993
1005
  - **Hosted tools:** `animate_photo`, `sound_to_video`, and `generate_video`
@@ -1061,7 +1073,8 @@ At least one image or video is required; audio alone is invalid. For a prompt-on
1061
1073
  interpolate between two anchors use `minimax-h3-flf2v`. r2v has no frame anchors
1062
1074
  at all, so an end-frame parameter is rejected rather than ignored. It can still
1063
1075
  pin stills strictly inside the clip with `--keyframe`; keyframes are not
1064
- references, take no `<Picture N>` label, and use no reference slot (see
1076
+ references and use no reference slot, but the prompt names each one
1077
+ `<Picture N>` after the reference pictures (see
1065
1078
  [MiniMax H3 keyframes](#minimax-h3-keyframes)).
1066
1079
 
1067
1080
  Ref2VA uses exactly six fields in this order:
@@ -187,8 +187,8 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
187
187
  - **Intermediate keyframes pin extra images at chosen times.** Repeatable
188
188
  `--keyframe <image>@<seconds>` (up to 8) works on the image-to-video,
189
189
  first/last-frame, Sound to Video, and Ref2VA selectors, in addition to
190
- `--ref` / `--ref-end`. H3 never sees a keyframe in the prompt, so the prompt
191
- must describe each one at its time; see
190
+ `--ref` / `--ref-end`. The prompt names each keyframe `<Picture N>` and, since
191
+ H3's text encoder never sees keyframe images, describes each one at its time; see
192
192
  [Intermediate keyframes](#intermediate-keyframes) below.
193
193
  - **Sogni's H3 tiers render the 768p-class open-weights release.** Only FastH3
194
194
  Two-Stage delivers 1080p or 2K (Sogni's own latent enlargement); do not claim
@@ -542,7 +542,8 @@ is invalid. r2v
542
542
  has no frame anchors at all—for
543
543
  a locked opening frame use `minimax-h3-i2v`, and for a first-to-last-frame
544
544
  transition use `minimax-h3-flf2v`. Ref2VA can still pin stills strictly inside
545
- the clip with `--keyframe`; those are not references and take no label (see
545
+ the clip with `--keyframe`; those are not references, but each is named
546
+ `<Picture N>` after the reference pictures (see
546
547
  [Intermediate keyframes](#intermediate-keyframes)).
547
548
 
548
549
  Ref2VA does not use the three-field Standard contract. Write exactly these six
@@ -673,21 +674,40 @@ Text-to-video cannot pin keyframes.
673
674
  `--ref` and `--ref-end`, never to a keyframe, and two keyframes cannot share a
674
675
  frame. The CLI refuses anything else and names the range to use; it never
675
676
  moves or drops a keyframe.
676
- - **H3 never sees the keyframe images in the prompt.** They are not
677
- `<Picture N>` or `<Subject N>` references: never label one, never put one in
678
- the alignment line or in Ref2VA's `subject_definitions` and
679
- `retention_analysis`, and never write the words keyframe, still, or pinned
680
- in the prompt. H3 knows what a keyframe shows only from your words, so describe
681
- each one at its time.
677
+ - **Name each keyframe `<Picture N>` (MiniMax's keyframe format).** Keyframes
678
+ are numbered in time order after the mode's own pictures: after the first
679
+ frame `<Picture 1>` on I2V and IA2V, after the last frame `<Picture 1>` on L2V,
680
+ after `<Picture 1>` (first) and `<Picture 2>` (last) on FLF2V and FLFA2V, from
681
+ `<Picture 1>` on A2V, and after the last reference `<Picture N>` on Ref2VA.
682
+ They are still not references, get no `<Subject N>`, and never count toward
683
+ the reference caps. The word keyframe is allowed.
684
+ - **I2V, L2V, FLF2V, and Sound to Video:** the first line is one alignment
685
+ line listing every picture at its mark (frame ÷ 24, two decimals; the last
686
+ frame at the clip's end), in time order, each credited to the shot on
687
+ screen there. It replaces the I2V and L2V preambles:
688
+ `How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 2.88-second mark of the target video.`
689
+ - **Ref2VA:** add `<Picture N> is the keyframe of [Shot M], showing …` to
690
+ `subject_definitions`, `keyframe completion` to the summary task prefix (as
691
+ in `[reference generation + keyframe completion]`), and
692
+ `<Picture N> ([Shot M] keyframe): fully_preserved - …` to
693
+ `retention_analysis`.
694
+ - The shot where a keyframe lands names it: "the shot's keyframe corresponds
695
+ to `<Picture N>`", or, at a cut, `[Shot N] At MM:SS.mmm, the camera cuts to
696
+ …, whose keyframe corresponds to <Picture N>.` (Ref2VA: "the shot cuts to").
697
+ - **H3's text encoder never sees the keyframe images.** Only the frame-pinning
698
+ node receives them, so H3 knows what a keyframe shows only from your words:
699
+ describe each one where it lands.
682
700
  - **Compare each keyframe with the anchor before it** (the first frame or the
683
701
  previous keyframe):
684
702
  - **Same camera angle, place, and light; only the subjects moved.** Stay in the
685
703
  same shot and bring the action to the pose, position, facing, expression,
686
704
  and props the keyframe shows, ordered with words (`as she reaches the rail`),
687
- never with a clock time. A tighter framing from the same angle can arrive as
688
- a push-in.
705
+ never with a clock time, and write "the shot's keyframe corresponds to
706
+ `<Picture N>`" where that moment arrives. A tighter framing from the same
707
+ angle can arrive as a push-in.
689
708
  - **New camera angle, place, or light.** Start a new shot exactly at its time,
690
- `[Shot N] At MM:SS.mmm, the camera cuts to …`, and open that shot with the
709
+ `[Shot N] At MM:SS.mmm, the camera cuts to …, whose keyframe corresponds to
710
+ <Picture N>`, and open that shot with the
691
711
  keyframe's composition: shot size, camera angle, where each subject stands
692
712
  and faces, the setting, and the light. An action in progress carries across
693
713
  the cut. These cuts apply even when the request prefers one continuous shot,
@@ -715,9 +735,9 @@ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./alley.png --ref-
715
735
  ```
716
736
 
717
737
  ```text
718
- How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 8.00-second mark of the target video.
738
+ How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 3 (from Shot 2) aligns with the 4.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 8.00-second mark of the target video.
719
739
 
720
- integrated_multimodal_description: [Shot 1] Live-action, cinematic. In the position and framing established by Picture 1, a bike courier in a yellow rain jacket wheels her bike down a narrow wet alley toward a steel side door while rain drips from the fire escape above. She leans the bike against the brick, hauls the door open, and steps through as the static wide shot holds on the alley. [Shot 2] At 00:04.000, the camera cuts to a low-angle shot inside a bare concrete stairwell lit by a caged orange bulb, the courier on the bottom step with her helmet in one hand, facing up the stairs. She climbs two steps at a time, one hand sliding along the painted rail, and settles into the pose, spacing, and composition established by Picture 2 at the end of the shot.
740
+ integrated_multimodal_description: [Shot 1] Live-action, cinematic. In the position and framing established by Picture 1, a bike courier in a yellow rain jacket wheels her bike down a narrow wet alley toward a steel side door while rain drips from the fire escape above. She leans the bike against the brick, hauls the door open, and steps through as the static wide shot holds on the alley. [Shot 2] At 00:04.000, the camera cuts to a low-angle shot inside a bare concrete stairwell lit by a caged orange bulb, whose keyframe corresponds to <Picture 3>: the courier on the bottom step with her helmet in one hand, facing up the stairs. She climbs two steps at a time, one hand sliding along the painted rail, and settles into the pose, spacing, and composition established by Picture 2 at the end of the shot.
721
741
 
722
742
  overall_soundscape: Rain patters on metal in the alley, the steel door clangs shut behind her, and her footsteps echo up the stairwell.
723
743
 
@@ -753,7 +773,7 @@ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./first.png --ref-
753
773
  sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo --ref ./first.png --ref-audio ./voice.m4a --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt with the uploaded words in <d> tags>"
754
774
 
755
775
  # Intermediate keyframes: repeat --keyframe <image>@<seconds> (up to 8) on i2v, flf2v, Sound to Video, or Ref2VA
756
- sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --keyframe ./turn.png@3.5 --keyframe ./wave.png@6 --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt that reaches each keyframe at its time>"
776
+ sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --keyframe ./turn.png@3.5 --keyframe ./wave.png@6 --duration 8 -o ./video.mp4 "<keyframe alignment line plus three-field H3 prompt that names each keyframe <Picture N> where it lands>"
757
777
 
758
778
  # Reference-to-video (reference order defines the prompt ordinals)
759
779
  sogni-agent -q --video -m minimax-h3-r2v --ref ./identity.png -c ./wardrobe.png --ref-video ./motion.mp4 --ref-audio ./voice.m4a --duration 8 -w 1344 -h 768 -o ./video.mp4 "<six-field Ref2VA prompt>"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.54.1",
3
+ "version": "3.54.3",
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.54.1",
3
+ "version": "3.54.3",
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,18 @@
1
+ ## [3.54.3] - 2026-09-27
2
+
3
+ ### Bug Fixes
4
+
5
+ * MiniMax H3 keyframes are now named in the prompt, the way MiniMax's own keyframe workflow does it. Each keyframe is `<Picture N>`, numbered after the first frame, last frame or references; it is listed with its time in the prompt's alignment line and tied to its shot with "the shot's keyframe corresponds to `<Picture N>`". On Reference to Video it also gets a keyframe entry, `keyframe completion` in the summary and a retention line. The guidance used to say keyframes are never named. The video prompting guide, the models reference and the hosted API notes follow.
6
+ * Update the intelligence client to 4.6.3 and the bundled runtime to creative agent 2.7.3, which write and check keyframe prompts in that format and state Sound to Video's real length (6 seconds renders 158 frames).
7
+
8
+ ## [3.54.2] - 2026-09-27
9
+
10
+ ### Bug Fixes
11
+
12
+ * Wan 3 and Wan 3.0 Enhanced can render 1080p from the CLI. Every Wan 3 size was cut to a 1536 px long side, so `--target-resolution 1080` (1920x1080) went out as 1536x864, which Sogni prices and renders as 720p. `-w 1080 -h 1920` did the same. Billing matched the 720p that was delivered, but there was no way to get 1080p. The CLI now sends Alibaba's exact size for the tier and ratio. At 1080 that is 1920x1080, 1440x1080, 1080x1080, 1080x1440 or 1080x1920; the ratio comes from `--wan3-ratio`, a ratio named in the prompt, or 16:9. Image-to-video keeps the first frame's shape with its short side at the tier (an 832x1216 frame at 1080 renders at 1080x1578), including a first frame given as a URL. A fixed `--wan3-ratio` that does not match the frame prints a notice instead of cropping it. Explicit `-w`/`-h` are sent as given, up to 1920 per side.
13
+ * The Wan 3 default stays 720p, the size and price CLI renders already had. 1080p is `--target-resolution 1080` and costs twice as much per second (52 instead of 26 Spark per second on Wan 3, 64 instead of 32 on Enhanced, before subscription discounts). `--estimate-video-cost` quotes the size that will be sent.
14
+ * Update the intelligence client to 4.6.2, which lets Wan 3 keep sizes up to 1920 instead of clamping them to 1536.
15
+
1
16
  ## [3.54.1] - 2026-09-27
2
17
 
3
18
  ### Bug Fixes
package/README.md CHANGED
@@ -240,10 +240,10 @@ The same command can be added permanently from `goose configure` as a Command-li
240
240
 
241
241
  ### OpenClaw plugin
242
242
 
243
- The skill is published on ClawHub under `fishmongr`. Specify the publisher because more than one listing uses this skill name:
243
+ The skill is published on ClawHub by the `sogni-ai` publisher (through 3.54.2 it was listed under `fishmongr`). Specify the publisher because more than one listing uses this skill name:
244
244
 
245
245
  ```bash
246
- npx -y clawhub@latest install @fishmongr/sogni-creative-agent-skill
246
+ npx -y clawhub@latest install @sogni-ai/sogni-creative-agent-skill
247
247
  ```
248
248
 
249
249
  To install as a code plugin instead, use OpenClaw's `npm:` source prefix (the npm package is scoped, so a bare `openclaw plugins install sogni-creative-agent-skill` will not resolve it):
@@ -472,7 +472,7 @@ sogni-agent --video -m seedance2 --workflow t2v \
472
472
  --ref-audio https://cdn.example.com/music.m4a \
473
473
  "Use @Image1 for product identity, @Video1 for camera movement, and @Audio1 for music rhythm"
474
474
 
475
- # Alibaba Wan 3 unified video (2-30s, fixed 30fps, native audio, 480P/720P/1080P)
475
+ # Alibaba Wan 3 unified video (2-30s, fixed 30fps, native audio, 480P/720P/1080P; 720P by default)
476
476
  sogni-agent --video -m wan3 --target-resolution 1080 --duration 8 \
477
477
  'A presenter walks through a detailed studio and says "Welcome."'
478
478
  sogni-agent --video -m wan3 --ref first.png --ref-end last.png \
@@ -518,7 +518,7 @@ sogni-agent --video -m minimax-h3-fasth3-a2v-turbo --ref-audio song.mp3 --audio-
518
518
  # MiniMax H3 keyframes: the clip passes through extra images at chosen times (repeat --keyframe, up to 8)
519
519
  sogni-agent --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png \
520
520
  --keyframe turn.png@3.5 --keyframe wave.png@6 --duration 8 \
521
- "<FLF2V preamble plus three-field H3 prompt that describes each keyframe at its time>"
521
+ "<keyframe alignment line plus three-field H3 prompt that names each keyframe <Picture N> and describes it at its time>"
522
522
 
523
523
  # Image-to-video (i2v; defaults to wan_v2.2-14b-fp8_i2v_lightx2v)
524
524
  sogni-agent --video --ref cat.jpg "gentle camera pan"
@@ -779,7 +779,7 @@ sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video s
779
779
  ## Video Sizing & Aspect Ratios
780
780
 
781
781
  - **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
782
- - **Wan 3** (`wan3.0-video`) is a Premium Spark Alibaba model with fixed 30 fps, fixed or smart 2–30 s output, native audio, 480P/720P/1080P tiers, and `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, or `9:16` output. It accepts one first frame plus an optional last frame, or loose references up to 10 images, 5 videos, and 5 audio clips. It can also use one public document (PDF/Office/text/Markdown/Keynote/Pages/Numbers, up to 100 MB; PDF/DOCX/DOC/PPTX/PPT/Keynote/Pages up to 50 pages) or one public webpage; file and link context are mutually exclusive and cannot be combined with first/last anchors. Each video/audio reference is 1–15 s and each modality's clips total at most 15 s. Video references condition a new generation; Alibaba exposes no edit/extend task mode or task-type field, so use a dedicated video-to-video model when source-preserving editing is required. Provider prompt expansion defaults on; `--no-expand-prompt` preserves the exact prompt. Watermark defaults off. Send no negative prompt, steps, guidance, sampler, scheduler, ControlNet, or mask. Sogni retail rates before subscription discounts are $0.065/$0.13/$0.26 per output second at 480p/720p/1080p (as of 2026-08).
782
+ - **Wan 3** (`wan3.0-video`) is a Premium Spark Alibaba model with fixed 30 fps, fixed or smart 2–30 s output, native audio, 480P/720P/1080P tiers, and `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, or `9:16` output. It accepts one first frame plus an optional last frame, or loose references up to 10 images, 5 videos, and 5 audio clips. It can also use one public document (PDF/Office/text/Markdown/Keynote/Pages/Numbers, up to 100 MB; PDF/DOCX/DOC/PPTX/PPT/Keynote/Pages up to 50 pages) or one public webpage; file and link context are mutually exclusive and cannot be combined with first/last anchors. Each video/audio reference is 1–15 s and each modality's clips total at most 15 s. Video references condition a new generation; Alibaba exposes no edit/extend task mode or task-type field, so use a dedicated video-to-video model when source-preserving editing is required. Provider prompt expansion defaults on; `--no-expand-prompt` preserves the exact prompt. Watermark defaults off. Send no negative prompt, steps, guidance, sampler, scheduler, ControlNet, or mask. Sogni retail rates before subscription discounts are $0.065/$0.13/$0.26 per output second at 480p/720p/1080p (as of 2026-08). The CLI renders 720P unless `--target-resolution 480` or `1080` is given, sending Alibaba's exact size for that tier and ratio; image-to-video keeps the first frame's shape with its short side at the tier.
783
783
  - **Wan 3.0 Enhanced** (`wan3.0-spicy-video`; MuleRouter provider ID `w3.0-video`; aliases `wan3-enhanced`, `wan3-spicy`) runs at fixed 30 fps with fixed or smart 2–30 s output, native audio, prompt expansion, 480P/720P/1080P, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`. It accepts either first/last-frame anchors or up to 10 image, 5 video, and 5 audio loose references; the two modes cannot be mixed. It has no document/web context, watermark, negative prompt, source-video edit, or extend mode. Standard PAYG is $0.08/$0.16/$0.32 per output second at 480P/720P/1080P (as of 2026-09). Existing paid subscribers receive a one-time $10 Unlimited / $20 Unlimited Pro model credit through September 1, 2026 00:00 UTC (August 31 at 5:00 PM PT); this is a launch credit, not subscription coverage.
784
784
  - **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 normally default to 1344×768 or 768×1344; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. FL2VA H3 Turbo defaults to `er_sde` on Socket and permits `euler`, `er_sde`, or `sa_solver`; Ref2VA Turbo and the separate FastVideo VSA FastH3 engine use Euler/simple only. The CLI omits the sampler unless `--sampler` is passed. FastH3 is about 2x faster than LightX2V Turbo and up to 6x faster than Standard for comparable 768p, 15-second requests; it supports T2V/I2V/FLF2V, never R2V. Guidance 1 is fixed and there is no negative-prompt input. Every Ref2VA tier accepts up to 9 images, 3 videos, and 3 audios, capped at 12 files; at least one visual reference is required. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. The other FL2VA/Balanced/Turbo and image-only R2V paths require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See `references/video-prompting.md` § MiniMax H3 Prompting for the exact contracts.
785
785
  - **LTX family** (`ltx2-*`, `ltx23-*`, `ltx25-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
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 video upscaling to 1080p/1440p, one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), 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\", \"apply a style\", or \"generate me as a superhero\"."
4
4
  metadata:
5
- version: "3.54.1"
5
+ version: "3.54.3"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -243,7 +243,7 @@ sogni-agent --video -m happyhorse --ref first-frame.png "Bring the scene to life
243
243
  sogni-agent --video -m happyhorse-1.1-r2v -c ref1.png -c ref2.png "Blend the references into one continuous shot"
244
244
 
245
245
  # Alibaba Wan 3 unified video (2-30s, fixed 30fps, native audio,
246
- # 480P/720P/1080P). --ref/--ref-end are frame anchors; r2v/a2v/ia2v
246
+ # 480P/720P/1080P, 720P by default). --ref/--ref-end are frame anchors; r2v/a2v/ia2v
247
247
  # use loose Image 1 / Video 1 / Audio 1 references instead. A video reference
248
248
  # conditions a new generation; it is not an edit/extend task.
249
249
  sogni-agent --video -m wan3 --target-resolution 1080 --duration 8 'A presenter says "Welcome." in a detailed studio'
@@ -369,7 +369,7 @@ H3 r2v accepts up to **9 images** (`--ref` then repeatable `-c`), **3 videos** (
369
369
 
370
370
  [Personal LoRA library management](./references/personal-loras.md) covers imports, consent, status and compatible models. **MiniMax H3 is the only video family that loads LoRAs**, including its FastH3 audio-to-video modes. Attach them with the same repeatable `--lora <id> --lora-strength <n>` arguments the image models take, and name the explicit H3 mode in the same command — availability differs per mode, and bare `-m minimax-h3` cannot be validated. Video LoRAs are positive-only: a negative value is not an inverse effect and `0` is off, unlike the bipolar Krea 2 image sliders. Omit `--lora-strengths` to apply each adapter's catalog default rather than the worker's 1.0 fallback. `h3-realism-people` needs its trigger word `r34l1sm` near the FRONT of the prompt or it renders as ordinary H3 with no error. The CLI validates every id against the live catalog for the model you selected, so a wrong id fails before it costs a render instead of being dropped silently. LTX, WAN, Seedance, and HappyHorse load none. Read [`references/h3-video-loras.md`](./references/h3-video-loras.md) for per-mode availability and ranges.
371
371
 
372
- **H3 requires MiniMax's official ordered-field prompt contract.** Standard, Balanced, LightX2V Turbo, and FastH3 T2V/I2V/L2V/FLF2V (and the FastH3 audio modes, with the I2V or FLF2V preamble when frames are supplied) use `integrated_multimodal_description`, `overall_soundscape`, then `non_diegetic_music`, with the mode-specific alignment preamble for endpoint-conditioned modes. Use `[Shot N]` notation, stable `(S1)` speaker IDs, and dialogue as `<d>[Language] words</d>`. Preserve supplied dialogue exactly; author one concise line only when the user explicitly asks for speech/dialogue/lyrics without supplying words, and otherwise invent no speech. Use `<scenetrans>` at both connecting points when one line crosses a cut and `<cutoff>` only when the video ending truncates speech. Do not substitute quoted prose, bracketed timecode lists, or tokenizer-internal `<|...|>` markers. Ref2VA uses its separate six-field contract and exact task/retention vocabulary; loose video references do not promise editing or continuation. Negative direction belongs inside the structured prompt because there is no negative-prompt field. **Keyframes:** when one H3 clip must pass through extra images at chosen moments, add repeatable `--keyframe image@seconds` (up to 8, strictly inside the clip; i2v/flf2v, FastH3 Sound to Video, and Ref2VA only) and make the clip long enough to hold them. H3 never sees a keyframe as a `<Picture N>` reference, so say in the prompt what each one shows at its time, and start a new shot at a keyframe that changes the angle, place, or light. Two are included in the price; each extra keyframe adds a little. Read [`references/video-prompting.md`](./references/video-prompting.md) § MiniMax H3 Prompting before writing any H3 prompt.
372
+ **H3 requires MiniMax's official ordered-field prompt contract.** Standard, Balanced, LightX2V Turbo, and FastH3 T2V/I2V/L2V/FLF2V (and the FastH3 audio modes, with the I2V or FLF2V preamble when frames are supplied) use `integrated_multimodal_description`, `overall_soundscape`, then `non_diegetic_music`, with the mode-specific alignment preamble for endpoint-conditioned modes. Use `[Shot N]` notation, stable `(S1)` speaker IDs, and dialogue as `<d>[Language] words</d>`. Preserve supplied dialogue exactly; author one concise line only when the user explicitly asks for speech/dialogue/lyrics without supplying words, and otherwise invent no speech. Use `<scenetrans>` at both connecting points when one line crosses a cut and `<cutoff>` only when the video ending truncates speech. Do not substitute quoted prose, bracketed timecode lists, or tokenizer-internal `<|...|>` markers. Ref2VA uses its separate six-field contract and exact task/retention vocabulary; loose video references do not promise editing or continuation. Negative direction belongs inside the structured prompt because there is no negative-prompt field. **Keyframes:** when one H3 clip must pass through extra images at chosen moments, add repeatable `--keyframe image@seconds` (up to 8, strictly inside the clip; i2v/flf2v, FastH3 Sound to Video, and Ref2VA only) and make the clip long enough to hold them. Name each keyframe `<Picture N>`, numbered in time order after the mode's own pictures (the first/last frame or the Ref2VA references), list it in the alignment line (Ref2VA: a keyframe entry, `keyframe completion`, and a retention entry), and describe what it shows where it lands, because H3's text encoder never sees keyframe images; start a new shot at a keyframe that changes the angle, place, or light. Two are included in the price; each extra keyframe adds a little. Read [`references/video-prompting.md`](./references/video-prompting.md) § MiniMax H3 Prompting before writing any H3 prompt.
373
373
 
374
374
  For an H3 prompt-only request, the general prompt-authoring rule above requires returning only the applicable ordered-field contract. The fields themselves are the directly runnable deliverable; do not wrap them in commentary.
375
375
 
@@ -475,7 +475,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
475
475
  - **Auth errors:** check `SOGNI_API_KEY` or `~/.config/sogni/credentials` (key from https://dashboard.sogni.ai, account menu).
476
476
  - **Error 4061 / too many app IDs:** the CLI leases stable IDs from the persistent pool in `~/.config/sogni/app-ids/`. Do not delete that directory between runs. For ephemeral/container homes, set the same `SOGNI_APP_ID` on every session. An existing block may require waiting before retrying after upgrading.
477
477
  - **Kicked mid-render / SWITCH_CONNECTION 4015:** two processes shared one app ID. The slot pool prevents this for concurrent CLI runs; if a long-lived daemon also uses this account, give it its own pinned `SOGNI_APP_ID`.
478
- - **Video size errors:** sizes are model-specific (WAN 2.2 ÷16, sides 480–1536, at most 1,048,576 pixels, so no 1080p; Wan 3 uses its exact 480P/720P/1080P ratio buckets; LTX ÷64, long side ≤2048). The CLI auto-adjusts for local refs; `--strict-size` makes it fail with a suggested size instead. Details in [`references/models.md`](./references/models.md).
478
+ - **Video size errors:** sizes are model-specific (WAN 2.2 ÷16, sides 480–1536, at most 1,048,576 pixels, so no 1080p; Wan 3 uses its exact 480P/720P/1080P ratio buckets, 720P unless `--target-resolution 1080`; LTX ÷64, long side ≤2048). The CLI auto-adjusts for local refs; `--strict-size` makes it fail with a suggested size instead. Details in [`references/models.md`](./references/models.md).
479
479
  - **Timeouts / no workers:** a timeout never cancels; the project finishes on Sogni and `sogni-agent --result <id>` fetches it (`details.resultCommands`). For long videos use `--detach`, not a large `-t`. `--status <id>` says whether it waits on the plan limit or on workers; for network status see https://sogni.ai.
480
480
 
481
481
  ## Reference Index (read before acting)
@@ -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.54.1",
5
+ "version": "3.54.3",
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",
@@ -2816,7 +2816,7 @@ const PROMPT_CONTRACTS = [
2816
2816
  "contractId": "animate_photo_v1",
2817
2817
  "version": "1.3.0",
2818
2818
  "toolName": "animate_photo",
2819
- "baseDescription": "animate_photo produces video from one or more source images using LTX 2.5 by default,\nwith LTX 2.3 retained as a rollback option and for Persona Voice identity workflows.\nUse videoModel=\"wan3.0-video\" when the user explicitly requests Wan 3 first-frame or\nfirst-and-last-frame generation. Wan 3 accepts one start frame and at most one end frame,\nrenders 2-30 seconds at fixed 30 fps, and supports 480P/720P/1080P output with native audio.\n\nVIDEO PROMPT QUOTING: In video prompts, ONLY use double quotes for spoken dialogue.\nSpeaker tags are allowed outside the quotes for screenplay-style dialogue, e.g.\nCHARACTER: \"We made it.\" Never put on-screen text, overlay text, titles, captions, signs,\nwatermarks, or any visual text in quotes — describe them without quotes (e.g. bold white text\nreading CONGRATULATIONS overlays the lower third). Quotes signal speech to the model;\nquoting non-speech text confuses audio generation.\n\nDIALOGUE DURATION: Spoken dialogue in video prompts must fit the clip duration. Estimate\nat 3 words per second for natural cinematic delivery, plus ~1 second per acting beat\n(pauses, gestures, glances between lines). If the user did NOT explicitly request a specific\nduration (using default 5s), extend the duration to fit the dialogue (max 20s). If the user\nexplicitly requested a specific duration, condense the dialogue to fit while preserving meaning.\nCheck: total dialogue words ÷ 3 + beat count ≤ clip duration.\n\nLATEST GENERATED IMAGE FOLLOW-UP: When the newest user turn asks to animate, make a video,\nor make a clip from a generated image/result (for example \"the apple\", \"this one\",\n\"the latest image\"), use animate_photo with that latest generated image. Do not inherit an\nolder Seedance model, resolution, or duration from an unrelated prior turn unless the newest\nuser turn explicitly says Seedance or confirms an immediately suggested Seedance video stage.\nLTX supports exact 2-20s durations, so honor requests like 3s exactly.\n\nWORD BUDGET PER CLIP: The handler REJECTS clips whose spoken dialogue exceeds the budget\n— there is NO auto-trim, so plan dialogue lengths up-front. Hard maximum is 3.75 spoken\nwords per second. Ceilings: 5s = 18 words, 6s = 22 words, 8s = 30 words, 10s = 37 words,\n15s = 56 words, 20s = 75 words. Aim below these ceilings. If a scene's dialogue won't fit,\ntighten the lines, raise the per-clip duration, or split into two segments — do NOT submit\nand hope it works. Spoken words inside double quotes count toward the budget; speaker tags\nand visual/action prose are free.\n\nBATCH VIDEO PER-CLIP DURATION: For a multi-segment animate_photo batch\n(sourceImageIndices + prompts) when the user states a TOTAL video length but NO per-clip\nlength, target 15 seconds per clip when dialogue is involved, and pass that duration\nexplicitly. Example: 60s total → 4 segments × 15s, NOT 6×10s or 12×5s. There is NO 3-clip\nbatch cap: sourceImageIndices supports up to 16 clips, so keep one planned batch together\nunless the user explicitly wants isolated projects or per-output settings require it.\nDo NOT split a planned 15s dialogue scene into multiple\nshorter clips just because a retry complains about word budget; keep duration=15 and tighten\nthe line. Use 5s clips only for single short motion beats or one very short spoken phrase.\nIf the user explicitly specifies a per-clip duration, honor that instead.\n\nN-VERSIONS-OF-A-VIDEO PATTERN: Avoid sequential animate_photo calls for N outputs.\nPrefer one Dynamic Prompt project when only prompt text varies, and reserve\nsourceImageIndices multi-project fan-out for source/end asset differences, isolated retry\nlifecycle, or other per-output parameter differences. Flavors:\n(A0) SAME SOURCE / PROMPT-ONLY TAKES — use sourceImageIndex, numberOfVariations=N,\nand ONE Dynamic Prompt branch in prompt: \"{full prompt 1|full prompt 2|...}\". This\nsubmits shared settings and source assets once; Sogni socket creates N jobs in one project.\n(A) SHARED CONTENT — one edit_image/generate_image call with numberOfVariations=N + {|}\nDynamic Prompts to make N distinct source images, then ONE animate_photo call with\nsourceImageIndices=[start..start+N-1] and a single shared prompt.\n(B) PER-CLIP ASSET WIRING — when each clip has DIFFERENT source images, end frames,\naudio windows, durations, dimensions, or other non-prompt parameters,\npass BOTH sourceImageIndices AND prompts (array of N strings, one per clip) in the SAME\nsingle animate_photo call. The top-level prompt is still required — pass a brief batch summary.\nFor explicit last/end-frame-only batches, reuse the image through sourceImageIndices but set\nframeRole=\"end\" and omit endImageIndex/endImageIndices. This means each listed image is the\nlast frame for its corresponding clip and no first/start frame is supplied.\nIf the user explicitly asks for Dynamic Prompt / Dynamic Template syntax, prefer flavor A0\nwhenever every output uses the same source/end assets and shared settings, even if they also\nask to stitch the completed clips afterward.\n\nCRITICAL: sourceImageIndices values MUST be read from the latest edit_image/generate_image\ntool result's startIndex field — if startIndex=3 and 4 images were generated, pass\nsourceImageIndices=[3,4,5,6], NOT [0,1,2,3]. Negative indices refer to uploaded images:\n-1 first upload, -2 second upload, -3 third upload. Use repeated -1 entries only when\nintentionally reusing the primary uploaded image. When prompts is supplied, prompts.length\nMUST equal sourceImageIndices.length.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: If the user uploaded a storyboard, shot sheet,\nor visual trailer board and asks to make a trailer/video/movie/clip from it, do NOT use\nanimate_photo on the board image and do NOT split it into four LTX clips. Use generate_video\nwith Seedance referenceImageIndices for one continuous clip unless the user explicitly asks\nfor separate LTX clips or first-frame/last-frame animation.\n\nSCREENPLAY / STORYBOARD ANIMATE RULE: For full storyboard projects, use one\nanimate_photo batch with sourceImageIndices + prompts so each clip keeps its own exact\nscene text, stable cast anchors, and screenplay-style speaker-tagged dialogue, and all video\nclips render in parallel. Every speaking clip's video prompt must include that clip's actual\nquoted dialogue, not placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\",\nor \"final line lands\". If each generated scene keyframe should be both the first and last frame\nof its own stitched segment, call animate_photo with sourceImageIndices=[start..end],\nframeRole=\"both\", prompts=[...], and OMIT endImageIndex/endImageIndices so the handler\nuses each source as its own end frame.\n\nUPLOADED REFERENCE LOOPED PROMPT-ONLY TAKES: When the user supplies one uploaded reference\nimage and asks for N clips that all reuse that same image as BOTH the first frame and last\nframe, with only the action/prompt text varying, do it in ONE Dynamic Prompt project:\nsourceImageIndex=-1, frameRole=\"both\", endImageIndex=-1, numberOfVariations=N, and prompt\nas ONE branch: \"{full prompt 1|full prompt 2|...|full prompt N}\". Do NOT use\nsourceImageIndices=[-1,-1,...] or prompts=[...] for this prompt-only shape. After the\nsingle animate_photo project completes, call stitch_video with the returned video indices\nif the user requested a final stitched video.\nEach Dynamic Prompt option must be a complete natural-language motion prompt for the video\nmodel. Do not include orchestration labels such as \"clip 1 of N\", \"overall request context\",\n\"use the uploaded image as the source frame\", \"follow the user request\", or \"make this clip\ndistinct\"; the attached first/last-frame image is already wired through arguments.\nKeep explicit shared constraints outside the branch before \"{...}\" and honor them inside every\noption: locked/static camera, subtle motion, consistent flames/embers, and silent expression-only\nphysical performance when requested. Non-speaking expressions such as yawns, smiles, kisses, or shy\nmouth-covering gestures are acceptable when they are the requested physical performance; do not\nturn them into speech, singing, or dialogue-like lip motion.\nIf the user gives avoid/no/don't constraints for a Dynamic Prompt batch, the shared prefix before\nthe branch must include their positive equivalents, such as single-subject empty background, clean\nblank surfaces, crisp sharp focus, same room/layout continuity, silent expression-only physical\nperformance, consistent flame/ember motion, and natural anatomically consistent hands. Do not place\nthose constraints only in negativePrompt or omit them from prompt.\nFor videoModel=\"wan22\", write motion-only visual prompts. WAN 2.2 does not generate audio,\nso omit soundtrack, ambience, room tone, music, hums, sighs, spoken words, voice, and SFX cues.\nFor videoModel=\"wan22\", \"ltx25\", and \"ltx23\", the prompt field is the positive prompt. Translate user\navoid/no/don't constraints into affirmative production constraints instead of copying negative\nphrasing into prompt. Examples: \"no people in background\" -> single subject focus with an empty\nbackground; \"no text\" -> clean blank surfaces; \"don't make it blurry\" -> crisp sharp focus;\n\"no weird hands\" -> natural anatomically consistent hands; \"don't change the room\" -> the same\nroom and layout remain consistent. Preserve exact quoted visible text or dialogue when the user\nexplicitly requests it, and keep surrounding surfaces blank.\n\nUPLOADED REFERENCE LOOPED SCRIPTED SKITS: When the user supplies one uploaded reference image\nand asks for several scripted/storyboard/dialogue segments to reuse that same image as BOTH\nthe first frame and last frame of each segment before stitching, do it in ONE animate_photo call:\nsourceImageIndices=[-1,-1,...], frameRole=\"both\", endImageIndex=-1 (or matching\nendImageIndices=[-1,-1,...]), duration equal to the requested per-segment duration, and\nprompts=[one full scene prompt per segment]. Each prompt must preserve the exact screenplay\nspeaker tags and quoted dialogue from that scene, e.g. HOST: \"...\" GUEST: \"...\". Do not\ndrop speaker tags, convert them to generic narration, omit the last-frame contract, analyze\nthe image first, generate new keyframes first, or split the batch into serial calls. After\nthe single animate_photo batch completes, call stitch_video with the returned video indices.\n\nFor adjacent transition chains: N images create N-1 clips — call animate_photo with\nframeRole=\"both\", sourceImageIndices=[start..end-1], endImageIndices=[start+1..end],\nprompts=[one transition prompt per adjacent pair], then stitch_video. If 5 uploaded images\nare the keyframe sequence, use sourceImageIndices=[-1,-2,-3,-4],\nendImageIndices=[-2,-3,-4,-5], frameRole=\"both\", prompts length 4, then stitch_video.\nDo NOT set endImageIndex=-1 in generated-keyframe patterns — that means every clip ends\non the primary uploaded image.\n\nUPLOADED FIRST-FRAME/LAST-FRAME TRANSITION CHAINS: If the user uploads multiple images\nand asks for a video that transitions from image to image, changes country/version every\nN seconds, or says to use first-frame/last-frame for each pair, call animate_photo directly.\nDo not call edit_image, generate_image, analyze_image, or map_assets_for_model first — the\nuploaded images are already the keyframes. For N uploaded images, create N-1 adjacent clips\nunless the user explicitly asks for a loop back to the first image. Use per-clip duration\nfrom \"every N seconds\" when present; otherwise divide the requested total by the number of\nadjacent clips. After animate_photo returns the batch videos, call stitch_video with\nthose video indices before finalizing unless the user explicitly asked to keep separate clips only.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-i2v-turbo-2stage\" (first frame) and \"minimax-h3-fasth3-flf2v-turbo-2stage\"\n(first and last frame, frameRole=\"both\" with an end frame) are the two-stage FastH3 engine: FastH3\nrenders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at\ntwice the canvas width and height with the same length and audio. targetResolution names the\ndelivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark\nper second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16\nSpark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular\nFastH3 price of 4 Spark per second. The estimate prices every request. The source aspect is kept\n(a portrait source at 1080 renders 544x960 and is delivered at 1088x1920). They take the same\nprompt contract, durations and LoRAs as their FastH3 selectors. Choose them when the user asks for\n1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality;\nfor ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. Never\nset 4K for H3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn animate_photo keyframes work with every MiniMax H3 image-to-video and first-and-last-frame selector,\nwith any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. They are the\nH3 way to make one continuous clip pass through several images. Without an explicit MiniMax H3 request,\na multi-image sequence keeps the adjacent-clip chain described above.",
2819
+ "baseDescription": "animate_photo produces video from one or more source images using LTX 2.5 by default,\nwith LTX 2.3 retained as a rollback option and for Persona Voice identity workflows.\nUse videoModel=\"wan3.0-video\" when the user explicitly requests Wan 3 first-frame or\nfirst-and-last-frame generation. Wan 3 accepts one start frame and at most one end frame,\nrenders 2-30 seconds at fixed 30 fps, and supports 480P/720P/1080P output with native audio.\n\nVIDEO PROMPT QUOTING: In video prompts, ONLY use double quotes for spoken dialogue.\nSpeaker tags are allowed outside the quotes for screenplay-style dialogue, e.g.\nCHARACTER: \"We made it.\" Never put on-screen text, overlay text, titles, captions, signs,\nwatermarks, or any visual text in quotes — describe them without quotes (e.g. bold white text\nreading CONGRATULATIONS overlays the lower third). Quotes signal speech to the model;\nquoting non-speech text confuses audio generation.\n\nDIALOGUE DURATION: Spoken dialogue in video prompts must fit the clip duration. Estimate\nat 3 words per second for natural cinematic delivery, plus ~1 second per acting beat\n(pauses, gestures, glances between lines). If the user did NOT explicitly request a specific\nduration (using default 5s), extend the duration to fit the dialogue (max 20s). If the user\nexplicitly requested a specific duration, condense the dialogue to fit while preserving meaning.\nCheck: total dialogue words ÷ 3 + beat count ≤ clip duration.\n\nLATEST GENERATED IMAGE FOLLOW-UP: When the newest user turn asks to animate, make a video,\nor make a clip from a generated image/result (for example \"the apple\", \"this one\",\n\"the latest image\"), use animate_photo with that latest generated image. Do not inherit an\nolder Seedance model, resolution, or duration from an unrelated prior turn unless the newest\nuser turn explicitly says Seedance or confirms an immediately suggested Seedance video stage.\nLTX supports exact 2-20s durations, so honor requests like 3s exactly.\n\nWORD BUDGET PER CLIP: The handler REJECTS clips whose spoken dialogue exceeds the budget\n— there is NO auto-trim, so plan dialogue lengths up-front. Hard maximum is 3.75 spoken\nwords per second. Ceilings: 5s = 18 words, 6s = 22 words, 8s = 30 words, 10s = 37 words,\n15s = 56 words, 20s = 75 words. Aim below these ceilings. If a scene's dialogue won't fit,\ntighten the lines, raise the per-clip duration, or split into two segments — do NOT submit\nand hope it works. Spoken words inside double quotes count toward the budget; speaker tags\nand visual/action prose are free.\n\nBATCH VIDEO PER-CLIP DURATION: For a multi-segment animate_photo batch\n(sourceImageIndices + prompts) when the user states a TOTAL video length but NO per-clip\nlength, target 15 seconds per clip when dialogue is involved, and pass that duration\nexplicitly. Example: 60s total → 4 segments × 15s, NOT 6×10s or 12×5s. There is NO 3-clip\nbatch cap: sourceImageIndices supports up to 16 clips, so keep one planned batch together\nunless the user explicitly wants isolated projects or per-output settings require it.\nDo NOT split a planned 15s dialogue scene into multiple\nshorter clips just because a retry complains about word budget; keep duration=15 and tighten\nthe line. Use 5s clips only for single short motion beats or one very short spoken phrase.\nIf the user explicitly specifies a per-clip duration, honor that instead.\n\nN-VERSIONS-OF-A-VIDEO PATTERN: Avoid sequential animate_photo calls for N outputs.\nPrefer one Dynamic Prompt project when only prompt text varies, and reserve\nsourceImageIndices multi-project fan-out for source/end asset differences, isolated retry\nlifecycle, or other per-output parameter differences. Flavors:\n(A0) SAME SOURCE / PROMPT-ONLY TAKES — use sourceImageIndex, numberOfVariations=N,\nand ONE Dynamic Prompt branch in prompt: \"{full prompt 1|full prompt 2|...}\". This\nsubmits shared settings and source assets once; Sogni socket creates N jobs in one project.\n(A) SHARED CONTENT — one edit_image/generate_image call with numberOfVariations=N + {|}\nDynamic Prompts to make N distinct source images, then ONE animate_photo call with\nsourceImageIndices=[start..start+N-1] and a single shared prompt.\n(B) PER-CLIP ASSET WIRING — when each clip has DIFFERENT source images, end frames,\naudio windows, durations, dimensions, or other non-prompt parameters,\npass BOTH sourceImageIndices AND prompts (array of N strings, one per clip) in the SAME\nsingle animate_photo call. The top-level prompt is still required — pass a brief batch summary.\nFor explicit last/end-frame-only batches, reuse the image through sourceImageIndices but set\nframeRole=\"end\" and omit endImageIndex/endImageIndices. This means each listed image is the\nlast frame for its corresponding clip and no first/start frame is supplied.\nIf the user explicitly asks for Dynamic Prompt / Dynamic Template syntax, prefer flavor A0\nwhenever every output uses the same source/end assets and shared settings, even if they also\nask to stitch the completed clips afterward.\n\nCRITICAL: sourceImageIndices values MUST be read from the latest edit_image/generate_image\ntool result's startIndex field — if startIndex=3 and 4 images were generated, pass\nsourceImageIndices=[3,4,5,6], NOT [0,1,2,3]. Negative indices refer to uploaded images:\n-1 first upload, -2 second upload, -3 third upload. Use repeated -1 entries only when\nintentionally reusing the primary uploaded image. When prompts is supplied, prompts.length\nMUST equal sourceImageIndices.length.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: If the user uploaded a storyboard, shot sheet,\nor visual trailer board and asks to make a trailer/video/movie/clip from it, do NOT use\nanimate_photo on the board image and do NOT split it into four LTX clips. Use generate_video\nwith Seedance referenceImageIndices for one continuous clip unless the user explicitly asks\nfor separate LTX clips or first-frame/last-frame animation.\n\nSCREENPLAY / STORYBOARD ANIMATE RULE: For full storyboard projects, use one\nanimate_photo batch with sourceImageIndices + prompts so each clip keeps its own exact\nscene text, stable cast anchors, and screenplay-style speaker-tagged dialogue, and all video\nclips render in parallel. Every speaking clip's video prompt must include that clip's actual\nquoted dialogue, not placeholders such as \"while speaking\", \"dialogue begins\", \"explaining\",\nor \"final line lands\". If each generated scene keyframe should be both the first and last frame\nof its own stitched segment, call animate_photo with sourceImageIndices=[start..end],\nframeRole=\"both\", prompts=[...], and OMIT endImageIndex/endImageIndices so the handler\nuses each source as its own end frame.\n\nUPLOADED REFERENCE LOOPED PROMPT-ONLY TAKES: When the user supplies one uploaded reference\nimage and asks for N clips that all reuse that same image as BOTH the first frame and last\nframe, with only the action/prompt text varying, do it in ONE Dynamic Prompt project:\nsourceImageIndex=-1, frameRole=\"both\", endImageIndex=-1, numberOfVariations=N, and prompt\nas ONE branch: \"{full prompt 1|full prompt 2|...|full prompt N}\". Do NOT use\nsourceImageIndices=[-1,-1,...] or prompts=[...] for this prompt-only shape. After the\nsingle animate_photo project completes, call stitch_video with the returned video indices\nif the user requested a final stitched video.\nEach Dynamic Prompt option must be a complete natural-language motion prompt for the video\nmodel. Do not include orchestration labels such as \"clip 1 of N\", \"overall request context\",\n\"use the uploaded image as the source frame\", \"follow the user request\", or \"make this clip\ndistinct\"; the attached first/last-frame image is already wired through arguments.\nKeep explicit shared constraints outside the branch before \"{...}\" and honor them inside every\noption: locked/static camera, subtle motion, consistent flames/embers, and silent expression-only\nphysical performance when requested. Non-speaking expressions such as yawns, smiles, kisses, or shy\nmouth-covering gestures are acceptable when they are the requested physical performance; do not\nturn them into speech, singing, or dialogue-like lip motion.\nIf the user gives avoid/no/don't constraints for a Dynamic Prompt batch, the shared prefix before\nthe branch must include their positive equivalents, such as single-subject empty background, clean\nblank surfaces, crisp sharp focus, same room/layout continuity, silent expression-only physical\nperformance, consistent flame/ember motion, and natural anatomically consistent hands. Do not place\nthose constraints only in negativePrompt or omit them from prompt.\nFor videoModel=\"wan22\", write motion-only visual prompts. WAN 2.2 does not generate audio,\nso omit soundtrack, ambience, room tone, music, hums, sighs, spoken words, voice, and SFX cues.\nFor videoModel=\"wan22\", \"ltx25\", and \"ltx23\", the prompt field is the positive prompt. Translate user\navoid/no/don't constraints into affirmative production constraints instead of copying negative\nphrasing into prompt. Examples: \"no people in background\" -> single subject focus with an empty\nbackground; \"no text\" -> clean blank surfaces; \"don't make it blurry\" -> crisp sharp focus;\n\"no weird hands\" -> natural anatomically consistent hands; \"don't change the room\" -> the same\nroom and layout remain consistent. Preserve exact quoted visible text or dialogue when the user\nexplicitly requests it, and keep surrounding surfaces blank.\n\nUPLOADED REFERENCE LOOPED SCRIPTED SKITS: When the user supplies one uploaded reference image\nand asks for several scripted/storyboard/dialogue segments to reuse that same image as BOTH\nthe first frame and last frame of each segment before stitching, do it in ONE animate_photo call:\nsourceImageIndices=[-1,-1,...], frameRole=\"both\", endImageIndex=-1 (or matching\nendImageIndices=[-1,-1,...]), duration equal to the requested per-segment duration, and\nprompts=[one full scene prompt per segment]. Each prompt must preserve the exact screenplay\nspeaker tags and quoted dialogue from that scene, e.g. HOST: \"...\" GUEST: \"...\". Do not\ndrop speaker tags, convert them to generic narration, omit the last-frame contract, analyze\nthe image first, generate new keyframes first, or split the batch into serial calls. After\nthe single animate_photo batch completes, call stitch_video with the returned video indices.\n\nFor adjacent transition chains: N images create N-1 clips — call animate_photo with\nframeRole=\"both\", sourceImageIndices=[start..end-1], endImageIndices=[start+1..end],\nprompts=[one transition prompt per adjacent pair], then stitch_video. If 5 uploaded images\nare the keyframe sequence, use sourceImageIndices=[-1,-2,-3,-4],\nendImageIndices=[-2,-3,-4,-5], frameRole=\"both\", prompts length 4, then stitch_video.\nDo NOT set endImageIndex=-1 in generated-keyframe patterns — that means every clip ends\non the primary uploaded image.\n\nUPLOADED FIRST-FRAME/LAST-FRAME TRANSITION CHAINS: If the user uploads multiple images\nand asks for a video that transitions from image to image, changes country/version every\nN seconds, or says to use first-frame/last-frame for each pair, call animate_photo directly.\nDo not call edit_image, generate_image, analyze_image, or map_assets_for_model first — the\nuploaded images are already the keyframes. For N uploaded images, create N-1 adjacent clips\nunless the user explicitly asks for a loop back to the first image. Use per-clip duration\nfrom \"every N seconds\" when present; otherwise divide the requested total by the number of\nadjacent clips. After animate_photo returns the batch videos, call stitch_video with\nthose video indices before finalizing unless the user explicitly asked to keep separate clips only.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-i2v-turbo-2stage\" (first frame) and \"minimax-h3-fasth3-flf2v-turbo-2stage\"\n(first and last frame, frameRole=\"both\" with an end frame) are the two-stage FastH3 engine: FastH3\nrenders the canvas, then the worker enlarges it 2x and refines it, so the clip is delivered at\ntwice the canvas width and height with the same length and audio. targetResolution names the\ndelivered class: 1080 renders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark\nper second, 1440 or omitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16\nSpark per second, and 720 renders a 384px canvas (672x384 becomes 1344x768) for the regular\nFastH3 price of 4 Spark per second. The estimate prices every request. The source aspect is kept\n(a portrait source at 1080 renders 544x960 and is delivered at 1088x1920). They take the same\nprompt contract, durations and LoRAs as their FastH3 selectors. Choose them when the user asks for\n1080p, 1440p or 2K MiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality;\nfor ordinary 768p FastH3 output keep the regular FastH3 selector at targetResolution 768. Never\nset 4K for H3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are not references, but the prompt names each one <Picture N>, numbered after the first/last-frame or reference pictures in time order. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn animate_photo keyframes work with every MiniMax H3 image-to-video and first-and-last-frame selector,\nwith any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. They are the\nH3 way to make one continuous clip pass through several images. Without an explicit MiniMax H3 request,\na multi-image sequence keeps the adjacent-clip chain described above.",
2820
2820
  "parameterDocs": {
2821
2821
  "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On animate_photo every MiniMax H3 image-to-video and first-and-last-frame selector takes keyframes, with any frameRole; the first and last frames stay in sourceImageIndex and endImageIndex. When one continuous H3 clip should pass through extra images, pass them here on that single call instead of chaining sourceImageIndices clips.",
2822
2822
  "sourceImageIndices": "Batch source image indices. Read startIndex from prior generate_image/edit_image result. Negative = uploaded images (-1 = first upload). May be paired with frameRole=\"end\" only for explicit last/end-frame-only fan-out.",
@@ -2841,9 +2841,9 @@ const PROMPT_CONTRACTS = [
2841
2841
  "contractId": "generate_video_v1",
2842
2842
  "version": "1.5.0",
2843
2843
  "toolName": "generate_video",
2844
- "baseDescription": "generate_video produces text-to-video clips and multimodal reference videos.\nUse for text-only video generation with no source image input. For Seedance and Wan 3, also\nuse this tool when uploaded/generated images, videos, or audio are loose references. Use\nanimate_photo when a source image must become the first frame of an LTX/WAN animation.\n\nWAN 3: Use videoModel=\"wan3.0-video\" for explicit Wan 3 requests. The same canonical model\nsupports text, up to 10 reference images, 5 reference videos, and 5 reference audios. Refer\nto loose assets in English prompts as Image 1, Video 1, and Audio 1, numbered independently\nby type. Do not bracket or @-prefix these identifiers. Wan 3 renders 2-30 seconds at fixed\n30 fps, offers 480P/720P/1080P and 16:9/4:3/1:1/3:4/9:16, and can toggle native audio.\n\nMINIMAX H3 SOURCE AUDIO: Every H3 R2V call with a reference video or audio must set\nsourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author\nthe official audio reuse task plus fully_copy, keep choreography on explicit source times,\nand stream-copy/remux the original soundtrack after rendering. Never substitute, recompose,\nremix, or add a copyright-avoidance mutation. H3 reference videos must themselves be exactly\n24 fps; normalize other rates without changing duration/audio timing before submission.\nRef2VA cannot guarantee edit-level beat sync.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: When the user uploads a storyboard, shot sheet,\nmood board, or trailer concept image and asks to make a movie trailer/video/clip from it,\ndefault to one Seedance generate_video call with referenceImageIndices=[-1]. Do not first\nextract panels with edit_image, do not generate replacement keyframes, and do not make four\nseparate LTX animate_photo clips unless the user explicitly asks for separate clips or LTX.\nUse seedance2 when premium Spark access is available; if premium access is unavailable,\nexplain the limitation or use the best non-Seedance fallback the user accepts.\n\nEXACT / INCLUDED VIDEO PROMPTS: If the user asks for a Seedance video using uploaded or\ngenerated references and says to use a prompt exactly, pass only that literal quoted prompt\nto generate_video and set skipPromptProcessing=true plus expandPrompt=false. Do not treat\nwords inside the literal prompt, such as storyboard, script, thumbnails, or panels, as a\nrequest to create a storyboard image. If the user includes a timecoded script inside a\nvideo request, keep it in the generate_video prompt. Explicit constraints like no storyboard\npanels, no subtitles, or no captions are constraints on the video render, not instructions\nto call edit_image or generate_image.\n\nSTORYTELLING / COMMERCIAL / TRAILER PROMPTS: For creative video requests, turn the brief\ninto timed, causally connected visual beats before writing the final prompt. Default social\nvideo is 15s 9:16 with a strong first 1-2s, visible escalation, payoff, and brand/CTA/final\nimage. Commercials should show audience desire/problem, transformation, proof/benefit, and\nCTA. Trailers should follow hook → world → disruption → escalation → reveal → title/CTA.\nEvery beat must be generatable: subject, setting, action, camera, lighting, audio, and text\nrole where relevant. Avoid vague \"cinematic\" filler, feature dumps, and beautiful images with\nno visible change.\n\nVIDEO PROMPT QUOTING: ONLY use double quotes for spoken dialogue in video prompts. Never\nquote on-screen text, titles, captions, or visual text elements — describe them without\nquotes. Quotes signal speech to the model and confuse audio generation.\n\nSTORYBOARD TEXT: Structural headings, section numbers, slide titles, panel titles, and\ncaptions in storyboard references may become short audio-only narration/VO or\nkey-message beats, but they are not subtitles, title cards, lower thirds, or visible\noverlays unless the user explicitly asks for visible text, on-screen text, a title\ncard, subtitle, lower third, signage, or CTA. Keep narration as separate brief phrases\nwith pauses; do not concatenate storyboard labels into run-on voiceover.\n\nDIALOGUE DURATION: Spoken dialogue must fit the clip. Estimate 3 words per second\nnatural delivery plus ~1s per acting beat. Hard maximum 3.75 words/second.\nCheck: dialogue words ÷ 3 + beats ≤ duration. Do not submit oversized dialogue.\n\nLATEST USER DURATION WINS: In follow-up turns, use the newest duration the user states,\neven if a previous assistant message mentioned a longer script/runtime. For example, if\nhistory says \"the full script is 66 seconds\" but the user now says \"do a 30 second version\",\ngenerate the 30 second version. Do not ask a clarification question just because history\ncontains another duration; treat the latest user request as the override.\n\nSEEDANCE SHORT-DURATION LIMIT: Seedance supports 4-15s clips. If the user explicitly asks\nfor Seedance below 4s, do not silently round up. Ask whether they prefer a 4s Seedance clip\nor an exact-duration LTX clip. If the user did not explicitly ask for Seedance, choose the\nmodel/tool that can satisfy the requested duration exactly.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-t2v-turbo-2stage\" is the two-stage FastH3 engine: FastH3 renders the canvas,\nthen the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width\nand height with the same length and audio. targetResolution names the delivered class: 1080\nrenders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or\nomitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and\n720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4\nSpark per second. The estimate prices every request. It takes the same prompt contract, durations\nand LoRAs as \"minimax-h3-fasth3-t2v-turbo\". Choose it when the user asks for 1080p, 1440p or 2K\nMiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p\nFastH3 output keep the regular FastH3 selector at targetResolution 768. Never set 4K for H3.\nThe reference-to-video tiers have their own two-stage selectors: \"minimax-h3-r2v-2stage\" (Standard,\n20 steps) and \"minimax-h3-r2v-balanced-2stage\" (Balanced, 8 steps) take exactly the references, prompt\ncontract, durations and LoRAs of \"minimax-h3-r2v\" and \"minimax-h3-r2v-balanced\", deliver twice the\ncanvas, and read targetResolution the same way (1080, 1440 or omitted for 2K, 720); each bills its\ntier's rate plus the two-stage surcharge of the delivered class. Choose one when the user asks for\n1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage R2V selectors for 768p.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn generate_video only the MiniMax H3 reference-to-video selectors take keyframes, never text-to-video.\nKeyframe images are not references: they do not go in referenceImageIndices, never count as <Picture N>\nin the reference map, and R2V still needs its own image or video reference.",
2844
+ "baseDescription": "generate_video produces text-to-video clips and multimodal reference videos.\nUse for text-only video generation with no source image input. For Seedance and Wan 3, also\nuse this tool when uploaded/generated images, videos, or audio are loose references. Use\nanimate_photo when a source image must become the first frame of an LTX/WAN animation.\n\nWAN 3: Use videoModel=\"wan3.0-video\" for explicit Wan 3 requests. The same canonical model\nsupports text, up to 10 reference images, 5 reference videos, and 5 reference audios. Refer\nto loose assets in English prompts as Image 1, Video 1, and Audio 1, numbered independently\nby type. Do not bracket or @-prefix these identifiers. Wan 3 renders 2-30 seconds at fixed\n30 fps, offers 480P/720P/1080P and 16:9/4:3/1:1/3:4/9:16, and can toggle native audio.\n\nMINIMAX H3 SOURCE AUDIO: Every H3 R2V call with a reference video or audio must set\nsourceAudioPolicy. A specific/original/trending song is immutable: use reuse_exact, author\nthe official audio reuse task plus fully_copy, keep choreography on explicit source times,\nand stream-copy/remux the original soundtrack after rendering. Never substitute, recompose,\nremix, or add a copyright-avoidance mutation. H3 reference videos must themselves be exactly\n24 fps; normalize other rates without changing duration/audio timing before submission.\nRef2VA cannot guarantee edit-level beat sync.\n\nSEEDANCE UPLOADED STORYBOARD DEFAULT: When the user uploads a storyboard, shot sheet,\nmood board, or trailer concept image and asks to make a movie trailer/video/clip from it,\ndefault to one Seedance generate_video call with referenceImageIndices=[-1]. Do not first\nextract panels with edit_image, do not generate replacement keyframes, and do not make four\nseparate LTX animate_photo clips unless the user explicitly asks for separate clips or LTX.\nUse seedance2 when premium Spark access is available; if premium access is unavailable,\nexplain the limitation or use the best non-Seedance fallback the user accepts.\n\nEXACT / INCLUDED VIDEO PROMPTS: If the user asks for a Seedance video using uploaded or\ngenerated references and says to use a prompt exactly, pass only that literal quoted prompt\nto generate_video and set skipPromptProcessing=true plus expandPrompt=false. Do not treat\nwords inside the literal prompt, such as storyboard, script, thumbnails, or panels, as a\nrequest to create a storyboard image. If the user includes a timecoded script inside a\nvideo request, keep it in the generate_video prompt. Explicit constraints like no storyboard\npanels, no subtitles, or no captions are constraints on the video render, not instructions\nto call edit_image or generate_image.\n\nSTORYTELLING / COMMERCIAL / TRAILER PROMPTS: For creative video requests, turn the brief\ninto timed, causally connected visual beats before writing the final prompt. Default social\nvideo is 15s 9:16 with a strong first 1-2s, visible escalation, payoff, and brand/CTA/final\nimage. Commercials should show audience desire/problem, transformation, proof/benefit, and\nCTA. Trailers should follow hook → world → disruption → escalation → reveal → title/CTA.\nEvery beat must be generatable: subject, setting, action, camera, lighting, audio, and text\nrole where relevant. Avoid vague \"cinematic\" filler, feature dumps, and beautiful images with\nno visible change.\n\nVIDEO PROMPT QUOTING: ONLY use double quotes for spoken dialogue in video prompts. Never\nquote on-screen text, titles, captions, or visual text elements — describe them without\nquotes. Quotes signal speech to the model and confuse audio generation.\n\nSTORYBOARD TEXT: Structural headings, section numbers, slide titles, panel titles, and\ncaptions in storyboard references may become short audio-only narration/VO or\nkey-message beats, but they are not subtitles, title cards, lower thirds, or visible\noverlays unless the user explicitly asks for visible text, on-screen text, a title\ncard, subtitle, lower third, signage, or CTA. Keep narration as separate brief phrases\nwith pauses; do not concatenate storyboard labels into run-on voiceover.\n\nDIALOGUE DURATION: Spoken dialogue must fit the clip. Estimate 3 words per second\nnatural delivery plus ~1s per acting beat. Hard maximum 3.75 words/second.\nCheck: dialogue words ÷ 3 + beats ≤ duration. Do not submit oversized dialogue.\n\nLATEST USER DURATION WINS: In follow-up turns, use the newest duration the user states,\neven if a previous assistant message mentioned a longer script/runtime. For example, if\nhistory says \"the full script is 66 seconds\" but the user now says \"do a 30 second version\",\ngenerate the 30 second version. Do not ask a clarification question just because history\ncontains another duration; treat the latest user request as the override.\n\nSEEDANCE SHORT-DURATION LIMIT: Seedance supports 4-15s clips. If the user explicitly asks\nfor Seedance below 4s, do not silently round up. Ask whether they prefer a 4s Seedance clip\nor an exact-duration LTX clip. If the user did not explicitly ask for Seedance, choose the\nmodel/tool that can satisfy the requested duration exactly.\n\nMINIMAX H3 TWO-STAGE OUTPUT: 1080p and 2K MiniMax H3 delivery is its own selector, not an option.\n\"minimax-h3-fasth3-t2v-turbo-2stage\" is the two-stage FastH3 engine: FastH3 renders the canvas,\nthen the worker enlarges it 2x and refines it, so the clip is delivered at twice the canvas width\nand height with the same length and audio. targetResolution names the delivered class: 1080\nrenders a 544px short-edge canvas (960x544 becomes 1920x1088) for 10 Spark per second, 1440 or\nomitted renders the 768p canvas for 2K (1344x768 becomes 2688x1536) for 16 Spark per second, and\n720 renders a 384px canvas (672x384 becomes 1344x768) for the regular FastH3 price of 4\nSpark per second. The estimate prices every request. It takes the same prompt contract, durations\nand LoRAs as \"minimax-h3-fasth3-t2v-turbo\". Choose it when the user asks for 1080p, 1440p or 2K\nMiniMax H3 output, for two-stage output, or for the sharpest/best H3 quality; for ordinary 768p\nFastH3 output keep the regular FastH3 selector at targetResolution 768. Never set 4K for H3.\nThe reference-to-video tiers have their own two-stage selectors: \"minimax-h3-r2v-2stage\" (Standard,\n20 steps) and \"minimax-h3-r2v-balanced-2stage\" (Balanced, 8 steps) take exactly the references, prompt\ncontract, durations and LoRAs of \"minimax-h3-r2v\" and \"minimax-h3-r2v-balanced\", deliver twice the\ncanvas, and read targetResolution the same way (1080, 1440 or omitted for 2K, 720); each bills its\ntier's rate plus the two-stage surcharge of the delivered class. Choose one when the user asks for\n1080p, 1440p or 2K MiniMax H3 reference-to-video output; keep the one-stage R2V selectors for 768p.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are not references, but the prompt names each one <Picture N>, numbered after the first/last-frame or reference pictures in time order. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn generate_video only the MiniMax H3 reference-to-video selectors take keyframes, never text-to-video.\nKeyframe images are not references: they do not go in referenceImageIndices or the reference map, and\nR2V still needs its own image or video reference. The prompt names each keyframe <Picture N>, numbered\nafter the reference pictures in time order.",
2845
2845
  "parameterDocs": {
2846
- "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On generate_video only the MiniMax H3 reference-to-video selectors (minimax-h3-r2v and its turbo, balanced and two-stage forms) take keyframes; text-to-video never does, and reference-to-video has no first or last frame to pin. Keyframes are not references: they do not go in referenceImageIndices, are never counted as <Picture N>, and R2V still needs its own image or video reference.",
2846
+ "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On generate_video only the MiniMax H3 reference-to-video selectors (minimax-h3-r2v and its turbo, balanced and two-stage forms) take keyframes; text-to-video never does, and reference-to-video has no first or last frame to pin. Keyframes are not references: they do not go in referenceImageIndices or count toward the reference limits, and R2V still needs its own image or video reference. The prompt names each keyframe <Picture N>, numbered after the reference pictures in time order.",
2847
2847
  "prompt": "Video prompt. Use double quotes ONLY for spoken dialogue. Describe visual text without quotes.",
2848
2848
  "duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling."
2849
2849
  }
@@ -2946,7 +2946,7 @@ const PROMPT_CONTRACTS = [
2946
2946
  "contractId": "sound_to_video_v1",
2947
2947
  "version": "1.2.0",
2948
2948
  "toolName": "sound_to_video",
2949
- "baseDescription": "sound_to_video creates audio-synced video from an audio source. Works with uploaded audio\nfiles (mp3, m4a, wav) OR previously generated music from generate_music (auto-detected).\n\nWhen the user asks to \"turn that song/music into a video\" after generate_music, use\nsound_to_video — it will automatically find the generated audio.\n\nFor music visualization (syncing video to a specific song or audio track), use the\ngenerate_music → sound_to_video pipeline. Do NOT use animate_photo or generate_video for\naudio-driven visualization.\n\nanimate_photo and generate_video produce audio natively via LTX 2.5 or LTX 2.3 — never\npre-generate audio for those tools. sound_to_video is only for when the audio IS the primary creative\ninput driving the video output.\n\nPERSONA VOICE CLIPS: Persona voice clips returned by resolve_personas are voice identity\nreferences for LTX Audio ID, not audio tracks to synchronize. If the user explicitly asks\nfor a registered/persona/reference voice or voice clone, call resolve_personas first, then\nuse generate_video with ltx23 and voicePersonaName when there is no image source, or\nanimate_photo with ltx23 and voicePersonaName when an image/source frame should be\nanimated. Do not call sound_to_video for a persona voice clip unless a separate uploaded\naudio track is the primary sync driver.\n\nMINIMAX H3 AUDIO GUIDE: only when the user asks for MiniMax H3 or FastH3 with an uploaded audio\ntrack, use sound_to_video with videoModel \"minimax-h3-fasth3-ia2v-turbo\" (first-frame image via\nsourceImageIndex), \"minimax-h3-fasth3-flfa2v-turbo\" (first frame via sourceImageIndex and last\nframe via endImageIndex) or \"minimax-h3-fasth3-a2v-turbo\" (audio only, no image). The audio\ndrives the picture from frame 0 and stays in the output. Clips are 124-362 frames at a fixed\n24 fps (about 5.2-15.1 seconds); audioStart picks the window. MiniMax H3 catalog and Personal\nLoRAs are supported across audio modes and tiers. generateAudio=false and\nnegativePrompt are not supported. Add \"-2stage\" only for 1080p, 1440p or 2K H3 output (1080 or\n1440 targetResolution); 720p-class audio output stays on the regular selector. Never use these\nin place of the LTX 2.5 defaults when the user did not ask for MiniMax H3 or FastH3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are never <Picture N> references. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn sound_to_video every MiniMax H3 audio selector takes keyframes: the audio drives the performance and\nthe keyframes pin how it looks at their times. imageIndex follows endImageIndex (-1 = first upload), not\nthe 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the audio\nselectors render the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every\nkeyframe must fall inside that clip.",
2949
+ "baseDescription": "sound_to_video creates audio-synced video from an audio source. Works with uploaded audio\nfiles (mp3, m4a, wav) OR previously generated music from generate_music (auto-detected).\n\nWhen the user asks to \"turn that song/music into a video\" after generate_music, use\nsound_to_video — it will automatically find the generated audio.\n\nFor music visualization (syncing video to a specific song or audio track), use the\ngenerate_music → sound_to_video pipeline. Do NOT use animate_photo or generate_video for\naudio-driven visualization.\n\nanimate_photo and generate_video produce audio natively via LTX 2.5 or LTX 2.3 — never\npre-generate audio for those tools. sound_to_video is only for when the audio IS the primary creative\ninput driving the video output.\n\nPERSONA VOICE CLIPS: Persona voice clips returned by resolve_personas are voice identity\nreferences for LTX Audio ID, not audio tracks to synchronize. If the user explicitly asks\nfor a registered/persona/reference voice or voice clone, call resolve_personas first, then\nuse generate_video with ltx23 and voicePersonaName when there is no image source, or\nanimate_photo with ltx23 and voicePersonaName when an image/source frame should be\nanimated. Do not call sound_to_video for a persona voice clip unless a separate uploaded\naudio track is the primary sync driver.\n\nMINIMAX H3 AUDIO GUIDE: only when the user asks for MiniMax H3 or FastH3 with an uploaded audio\ntrack, use sound_to_video with videoModel \"minimax-h3-fasth3-ia2v-turbo\" (first-frame image via\nsourceImageIndex), \"minimax-h3-fasth3-flfa2v-turbo\" (first frame via sourceImageIndex and last\nframe via endImageIndex) or \"minimax-h3-fasth3-a2v-turbo\" (audio only, no image). The audio\ndrives the picture from frame 0 and stays in the output. Clips are 124-362 frames at a fixed\n24 fps (about 5.2-15.1 seconds); audioStart picks the window. MiniMax H3 catalog and Personal\nLoRAs are supported across audio modes and tiers. generateAudio=false and\nnegativePrompt are not supported. Add \"-2stage\" only for 1080p, 1440p or 2K H3 output (1080 or\n1440 targetResolution); 720p-class audio output stays on the regular selector. Never use these\nin place of the LTX 2.5 defaults when the user did not ask for MiniMax H3 or FastH3.\n\nMINIMAX H3 KEYFRAMES: when the user wants one MiniMax H3 clip to pass through extra images at chosen moments, pass keyframes=[{imageIndex, atSeconds}] (up to 8; imageIndex indexed like endImageIndex) on that one call, and make the clip long enough that every keyframe falls strictly inside it (set duration when the default would end too soon). Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place or light. Keyframes add to the first and last frame and are not references, but the prompt names each one <Picture N>, numbered after the first/last-frame or reference pictures in time order. Two are included in the price; each additional keyframe adds a little. Only MiniMax H3 selectors take them (see the keyframes argument for which).\nOn sound_to_video every MiniMax H3 audio selector takes keyframes: the audio drives the performance and\nthe keyframes pin how it looks at their times. imageIndex follows endImageIndex (-1 = first upload), not\nthe 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the audio\nselectors render the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every\nkeyframe must fall inside that clip.",
2950
2950
  "parameterDocs": {
2951
2951
  "keyframes": "MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame. Each item is {imageIndex, atSeconds}: imageIndex uses the endImageIndex convention (negative = uploads, 0+ = generated results); atSeconds is when the video should land on that image. Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. Two keyframes are included in the price; each additional keyframe adds a little. On sound_to_video every MiniMax H3 audio selector takes keyframes (image + audio, first and last frame + audio, and audio only, each one- and two-stage). imageIndex follows endImageIndex here too (-1 = first upload), not the 0-based upload numbering of sourceImageIndex. Set duration whenever you pass keyframes: the clip is then the shortest MiniMax H3 length that covers it (duration 6 renders 6.58 s), and every keyframe must fall inside that. Without duration the host sizes the clip itself (to the audio from audioStart, or a 5.17 s default) and refuses keyframes that fall outside it.",
2952
2952
  "audioSource": "Uploaded audio file or reference to a prior generate_music result. Auto-detected when omitted after generate_music.",
@@ -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.54.1",
5
+ "version": "3.54.3",
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.54.1",
3
+ "version": "3.54.3",
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",
@@ -27,6 +27,8 @@
27
27
  "test:coverage": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/sogni-agent.test.mjs",
28
28
  "test:coverage:full": "npm run check:creative-agent-runtime && node --test --experimental-test-coverage --test-coverage-include=sogni-agent.mjs --test-coverage-lines=50 --test-coverage-branches=35 --test-coverage-functions=50 test/*.test.mjs test/*.integration.mjs",
29
29
  "build:mcpb": "node scripts/build-mcpb.mjs",
30
+ "publish:clawhub": "node scripts/publish-clawhub.mjs",
31
+ "check:clawhub": "node scripts/publish-clawhub.mjs --check",
30
32
  "prepack": "npm run check:version-sync && npm run check:creative-agent-source:strict && SOGNI_REQUIRE_RUNTIME_SYNC=1 npm run check:creative-agent-runtime",
31
33
  "version": "npm run sync:version",
32
34
  "prepare": "husky",
@@ -100,7 +102,7 @@
100
102
  "media-utilities.mjs"
101
103
  ],
102
104
  "dependencies": {
103
- "@sogni-ai/sogni-intelligence-client": "4.6.1",
105
+ "@sogni-ai/sogni-intelligence-client": "4.6.3",
104
106
  "execa": "^10.0.1",
105
107
  "json5": "^2.2.3",
106
108
  "sharp": "0.35.4"
@@ -370,8 +370,10 @@ H3 clip. Its schema description, identical on all three tools:
370
370
  frame, or more than 8 is refused with a `PARAMETER_INVALID` error that says
371
371
  what to change; nothing is clamped or dropped. Set `duration` so every keyframe
372
372
  falls inside the clip.
373
- - Keyframes add to the first and last frame and are never `<Picture N>`
374
- references; on `generate_video` they do not go in `referenceImageIndices`.
373
+ - Keyframes add to the first and last frame and are not references (on
374
+ `generate_video` they do not go in `referenceImageIndices`), but the H3
375
+ prompt names each one `<Picture N>`, numbered in time order after the
376
+ first/last-frame or reference pictures.
375
377
  - Price: two keyframes are included; each additional keyframe adds 0.75 s of
376
378
  output time on FastH3 (0.3 s on other tiers) at the job's rate.
377
379
  - Error 4100 means no online worker serving that model can pin keyframes right
@@ -702,6 +702,14 @@ so a prompt is not rewritten twice.
702
702
  - **No edit/extend task:** video references are loose conditioning for a new
703
703
  generation. Alibaba exposes no edit/extend task mode or task-type field; use
704
704
  a dedicated video-to-video model when source-preserving editing is required.
705
+ - **Size:** `--target-resolution 480`, `720` (the default), or `1080` picks the
706
+ tier, and the CLI sends Alibaba's exact size for that tier and
707
+ `--wan3-ratio` (16:9 when adaptive): at 1080 that is 1920x1080, 1440x1080,
708
+ 1080x1080, 1080x1440, or 1080x1920. Image-to-video keeps the first frame's
709
+ shape with its short side at the tier (an 832x1216 frame at 1080 becomes
710
+ 1080x1578); a fixed `--wan3-ratio` does not crop the frame. Explicit
711
+ `-w`/`-h` are sent as given, 480-1920 per side. The network prices the tier
712
+ from the canvas, so 1080P costs twice the 720P rate per second.
705
713
  - **Cost (as of 2026-08):** platform artist pricing is $0.065/s at 480P,
706
714
  $0.13/s at 720P, and $0.26/s at 1080P; native audio does not change the rate.
707
715
 
@@ -717,7 +725,8 @@ the Sogni model `wan3.0-spicy-video`; MuleRouter's provider ID is
717
725
  `w3.0-video`. Public surfaces call it **Wan 3.0 Enhanced**. It renders fixed or
718
726
  smart 2–30 second clips at 30 fps with native audio and 480P, 720P, or 1080P
719
727
  output. Supported ratios are `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, and
720
- `3:4`.
728
+ `3:4`. Sizes follow the Wan 3 rules above: 720P unless `--target-resolution`
729
+ says otherwise.
721
730
 
722
731
  - Use t2v for prompt-only video, i2v for first/optional last frame, r2v for
723
732
  loose media references, and a2v/ia2v when audio drives the result.
@@ -985,9 +994,12 @@ clip, in addition to `--ref` / `--ref-end`.
985
994
  yet, the network refuses the job with error 4100. The CLI reports it as a
986
995
  retryable `MODEL_UNAVAILABLE` error: try again shortly, or render without
987
996
  keyframes.
988
- - **Prompt:** H3 never sees the keyframe images in the prompt. Describe what each
989
- one shows at its time, and cut to a new shot at a keyframe that changes the
990
- camera angle, place, or light. Read
997
+ - **Prompt:** name each keyframe `<Picture N>`, numbered in time order after the
998
+ mode's own pictures, and list it in the alignment line (Ref2VA: a keyframe
999
+ entry, `keyframe completion`, and a retention entry). H3's text encoder never
1000
+ sees the keyframe images, so describe what each one shows at its time, and
1001
+ cut to a new shot at a keyframe that changes the camera angle, place, or
1002
+ light. Read
991
1003
  [`video-prompting.md` § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
992
1004
  before writing the prompt.
993
1005
  - **Hosted tools:** `animate_photo`, `sound_to_video`, and `generate_video`
@@ -1061,7 +1073,8 @@ At least one image or video is required; audio alone is invalid. For a prompt-on
1061
1073
  interpolate between two anchors use `minimax-h3-flf2v`. r2v has no frame anchors
1062
1074
  at all, so an end-frame parameter is rejected rather than ignored. It can still
1063
1075
  pin stills strictly inside the clip with `--keyframe`; keyframes are not
1064
- references, take no `<Picture N>` label, and use no reference slot (see
1076
+ references and use no reference slot, but the prompt names each one
1077
+ `<Picture N>` after the reference pictures (see
1065
1078
  [MiniMax H3 keyframes](#minimax-h3-keyframes)).
1066
1079
 
1067
1080
  Ref2VA uses exactly six fields in this order:
@@ -187,8 +187,8 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
187
187
  - **Intermediate keyframes pin extra images at chosen times.** Repeatable
188
188
  `--keyframe <image>@<seconds>` (up to 8) works on the image-to-video,
189
189
  first/last-frame, Sound to Video, and Ref2VA selectors, in addition to
190
- `--ref` / `--ref-end`. H3 never sees a keyframe in the prompt, so the prompt
191
- must describe each one at its time; see
190
+ `--ref` / `--ref-end`. The prompt names each keyframe `<Picture N>` and, since
191
+ H3's text encoder never sees keyframe images, describes each one at its time; see
192
192
  [Intermediate keyframes](#intermediate-keyframes) below.
193
193
  - **Sogni's H3 tiers render the 768p-class open-weights release.** Only FastH3
194
194
  Two-Stage delivers 1080p or 2K (Sogni's own latent enlargement); do not claim
@@ -542,7 +542,8 @@ is invalid. r2v
542
542
  has no frame anchors at all—for
543
543
  a locked opening frame use `minimax-h3-i2v`, and for a first-to-last-frame
544
544
  transition use `minimax-h3-flf2v`. Ref2VA can still pin stills strictly inside
545
- the clip with `--keyframe`; those are not references and take no label (see
545
+ the clip with `--keyframe`; those are not references, but each is named
546
+ `<Picture N>` after the reference pictures (see
546
547
  [Intermediate keyframes](#intermediate-keyframes)).
547
548
 
548
549
  Ref2VA does not use the three-field Standard contract. Write exactly these six
@@ -673,21 +674,40 @@ Text-to-video cannot pin keyframes.
673
674
  `--ref` and `--ref-end`, never to a keyframe, and two keyframes cannot share a
674
675
  frame. The CLI refuses anything else and names the range to use; it never
675
676
  moves or drops a keyframe.
676
- - **H3 never sees the keyframe images in the prompt.** They are not
677
- `<Picture N>` or `<Subject N>` references: never label one, never put one in
678
- the alignment line or in Ref2VA's `subject_definitions` and
679
- `retention_analysis`, and never write the words keyframe, still, or pinned
680
- in the prompt. H3 knows what a keyframe shows only from your words, so describe
681
- each one at its time.
677
+ - **Name each keyframe `<Picture N>` (MiniMax's keyframe format).** Keyframes
678
+ are numbered in time order after the mode's own pictures: after the first
679
+ frame `<Picture 1>` on I2V and IA2V, after the last frame `<Picture 1>` on L2V,
680
+ after `<Picture 1>` (first) and `<Picture 2>` (last) on FLF2V and FLFA2V, from
681
+ `<Picture 1>` on A2V, and after the last reference `<Picture N>` on Ref2VA.
682
+ They are still not references, get no `<Subject N>`, and never count toward
683
+ the reference caps. The word keyframe is allowed.
684
+ - **I2V, L2V, FLF2V, and Sound to Video:** the first line is one alignment
685
+ line listing every picture at its mark (frame ÷ 24, two decimals; the last
686
+ frame at the clip's end), in time order, each credited to the shot on
687
+ screen there. It replaces the I2V and L2V preambles:
688
+ `How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 2.88-second mark of the target video.`
689
+ - **Ref2VA:** add `<Picture N> is the keyframe of [Shot M], showing …` to
690
+ `subject_definitions`, `keyframe completion` to the summary task prefix (as
691
+ in `[reference generation + keyframe completion]`), and
692
+ `<Picture N> ([Shot M] keyframe): fully_preserved - …` to
693
+ `retention_analysis`.
694
+ - The shot where a keyframe lands names it: "the shot's keyframe corresponds
695
+ to `<Picture N>`", or, at a cut, `[Shot N] At MM:SS.mmm, the camera cuts to
696
+ …, whose keyframe corresponds to <Picture N>.` (Ref2VA: "the shot cuts to").
697
+ - **H3's text encoder never sees the keyframe images.** Only the frame-pinning
698
+ node receives them, so H3 knows what a keyframe shows only from your words:
699
+ describe each one where it lands.
682
700
  - **Compare each keyframe with the anchor before it** (the first frame or the
683
701
  previous keyframe):
684
702
  - **Same camera angle, place, and light; only the subjects moved.** Stay in the
685
703
  same shot and bring the action to the pose, position, facing, expression,
686
704
  and props the keyframe shows, ordered with words (`as she reaches the rail`),
687
- never with a clock time. A tighter framing from the same angle can arrive as
688
- a push-in.
705
+ never with a clock time, and write "the shot's keyframe corresponds to
706
+ `<Picture N>`" where that moment arrives. A tighter framing from the same
707
+ angle can arrive as a push-in.
689
708
  - **New camera angle, place, or light.** Start a new shot exactly at its time,
690
- `[Shot N] At MM:SS.mmm, the camera cuts to …`, and open that shot with the
709
+ `[Shot N] At MM:SS.mmm, the camera cuts to …, whose keyframe corresponds to
710
+ <Picture N>`, and open that shot with the
691
711
  keyframe's composition: shot size, camera angle, where each subject stands
692
712
  and faces, the setting, and the light. An action in progress carries across
693
713
  the cut. These cuts apply even when the request prefers one continuous shot,
@@ -715,9 +735,9 @@ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./alley.png --ref-
715
735
  ```
716
736
 
717
737
  ```text
718
- How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 8.00-second mark of the target video.
738
+ How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 3 (from Shot 2) aligns with the 4.00-second mark of the target video; Picture 2 (from Shot 2) aligns with the 8.00-second mark of the target video.
719
739
 
720
- integrated_multimodal_description: [Shot 1] Live-action, cinematic. In the position and framing established by Picture 1, a bike courier in a yellow rain jacket wheels her bike down a narrow wet alley toward a steel side door while rain drips from the fire escape above. She leans the bike against the brick, hauls the door open, and steps through as the static wide shot holds on the alley. [Shot 2] At 00:04.000, the camera cuts to a low-angle shot inside a bare concrete stairwell lit by a caged orange bulb, the courier on the bottom step with her helmet in one hand, facing up the stairs. She climbs two steps at a time, one hand sliding along the painted rail, and settles into the pose, spacing, and composition established by Picture 2 at the end of the shot.
740
+ integrated_multimodal_description: [Shot 1] Live-action, cinematic. In the position and framing established by Picture 1, a bike courier in a yellow rain jacket wheels her bike down a narrow wet alley toward a steel side door while rain drips from the fire escape above. She leans the bike against the brick, hauls the door open, and steps through as the static wide shot holds on the alley. [Shot 2] At 00:04.000, the camera cuts to a low-angle shot inside a bare concrete stairwell lit by a caged orange bulb, whose keyframe corresponds to <Picture 3>: the courier on the bottom step with her helmet in one hand, facing up the stairs. She climbs two steps at a time, one hand sliding along the painted rail, and settles into the pose, spacing, and composition established by Picture 2 at the end of the shot.
721
741
 
722
742
  overall_soundscape: Rain patters on metal in the alley, the steel door clangs shut behind her, and her footsteps echo up the stairwell.
723
743
 
@@ -753,7 +773,7 @@ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./first.png --ref-
753
773
  sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo --ref ./first.png --ref-audio ./voice.m4a --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt with the uploaded words in <d> tags>"
754
774
 
755
775
  # Intermediate keyframes: repeat --keyframe <image>@<seconds> (up to 8) on i2v, flf2v, Sound to Video, or Ref2VA
756
- sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --keyframe ./turn.png@3.5 --keyframe ./wave.png@6 --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt that reaches each keyframe at its time>"
776
+ sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --keyframe ./turn.png@3.5 --keyframe ./wave.png@6 --duration 8 -o ./video.mp4 "<keyframe alignment line plus three-field H3 prompt that names each keyframe <Picture N> where it lands>"
757
777
 
758
778
  # Reference-to-video (reference order defines the prompt ordinals)
759
779
  sogni-agent -q --video -m minimax-h3-r2v --ref ./identity.png -c ./wardrobe.png --ref-video ./motion.mp4 --ref-audio ./voice.m4a --duration 8 -w 1344 -h 768 -o ./video.mp4 "<six-field Ref2VA prompt>"
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "4.6.1",
6
+ "@sogni-ai/sogni-intelligence-client": "4.6.3",
7
7
  "execa": "^10.0.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "0.35.4"
@@ -43,4 +43,4 @@ Convert a still image, audio track, or existing clip into video, plus Seedance a
43
43
  - Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
44
44
  - HappyHorse i2v uses exactly one first-frame image and r2v uses 1-9 image references; do not attach reference audio, reference video, ControlNet, or negative prompts.
45
45
  - MiniMax H3 i2v uses one first frame and H3 flf2v uses both first and last frames. For a loose image/video/audio set use `generate_video` with explicit `minimax-h3-r2v`; r2v references are roles, not frame anchors.
46
- - MiniMax H3 keyframes: when one H3 clip should pass through extra images at chosen moments, pass `keyframes=[{imageIndex, atSeconds}]` (up to 8; `imageIndex` indexed like `endImageIndex`, -1 = first upload) on that one `animate_photo` or `sound_to_video` call instead of chaining clips, and make the clip long enough that every keyframe falls strictly inside it. Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place, or light. Keyframes add to the first and last frame and are never `<Picture N>` references. Two are included in the price; each additional keyframe adds a little. Error 4100 means no worker can pin keyframes right now: retry shortly or render without them.
46
+ - MiniMax H3 keyframes: when one H3 clip should pass through extra images at chosen moments, pass `keyframes=[{imageIndex, atSeconds}]` (up to 8; `imageIndex` indexed like `endImageIndex`, -1 = first upload) on that one `animate_photo` or `sound_to_video` call instead of chaining clips, and make the clip long enough that every keyframe falls strictly inside it. Say in the prompt what each keyframe shows at its time, and start a new shot at a keyframe that changes the angle, place, or light. Keyframes add to the first and last frame and are not references, but the prompt names each one `<Picture N>`, numbered in time order after the first/last-frame pictures. Two are included in the price; each additional keyframe adds a little. Error 4100 means no worker can pin keyframes right now: retry shortly or render without them.
@@ -22,4 +22,4 @@ Text-to-video synthesis with LTX-2.3, WAN 2.2, Wan 3, Wan 3.0 Enhanced, Seedance
22
22
  - Wan 3 (`wan3.0-video`) is a Premium Spark unified vendor path: 2-30 s at fixed 30 fps with native audio and 480P/720P/1080P output. Use either first/last-frame anchors or a loose set capped at 10 images, 5 videos, 5 audios, and 20 files total; never combine the two reference modes.
23
23
  - Wan 3.0 Enhanced (`wan3.0-spicy-video`, MuleRouter provider ID `w3.0-video`, aliases `wan3-enhanced`/`wan3-spicy`) supports fixed or smart 2-30 s at 30 fps, native audio, prompt expansion, 480P/720P/1080P, and adaptive/fixed ratios. Use either first/last-frame anchors or up to 10 image, 5 video, and 5 audio loose references; never mix the modes. It has no document/web context, watermark, negative prompt, source-video edit, or extend mode.
24
24
  - MiniMax H3 t2v uses `minimax-h3-t2v`; H3 r2v must be selected explicitly as `minimax-h3-r2v` and accepts up to 9 images, 3 videos, and 3 audio clips, capped at 12 files with at least one image. Address references with per-type `<Picture 1>` / `<Video 1>` / `<Audio 1>` tags and assign each one a role.
25
- - MiniMax H3 keyframes on `generate_video` are Reference to Video only (`minimax-h3-r2v` and its turbo, balanced, and two-stage forms): `keyframes=[{imageIndex, atSeconds}]` (up to 8, strictly inside the clip, `imageIndex` indexed like `endImageIndex`) pins extra images at chosen times. Keyframes are not references: never put them in `referenceImageIndices` or count them as `<Picture N>`, and R2V still needs its own image or video reference. Describe each keyframe in the prompt at its time. Text-to-video never takes keyframes.
25
+ - MiniMax H3 keyframes on `generate_video` are Reference to Video only (`minimax-h3-r2v` and its turbo, balanced, and two-stage forms): `keyframes=[{imageIndex, atSeconds}]` (up to 8, strictly inside the clip, `imageIndex` indexed like `endImageIndex`) pins extra images at chosen times. Keyframes are not references: never put them in `referenceImageIndices` or count them toward the reference limits, and R2V still needs its own image or video reference. The prompt names each keyframe `<Picture N>`, numbered in time order after the reference pictures, and describes it at its time. Text-to-video never takes keyframes.
package/sogni-agent.mjs CHANGED
@@ -1902,6 +1902,60 @@ const WAN3_SUPPORTED_WORKFLOWS = new Set(['t2v', 'i2v', 'r2v', 'a2v', 'ia2v']);
1902
1902
  const WAN3_SUPPORTED_RESOLUTIONS = new Set([480, 720, 1080]);
1903
1903
  const WAN3_SUPPORTED_RATIOS = new Set(['adaptive', '16:9', '4:3', '1:1', '3:4', '9:16']);
1904
1904
  const WAN3_MAX_SEED = 0x7fffffff;
1905
+ // Wan 3 renders Alibaba's fixed sizes: the short side is the tier (480, 720 or
1906
+ // 1080) and the ratio sets the long side. The network prices and dispatches the
1907
+ // tier from the canvas, so the CLI sends these exact sizes. Same table as
1908
+ // sogni-api WAN3_DIMENSION_BUCKETS and sogni-web's Wan 3 presets.
1909
+ const WAN3_DIMENSION_BUCKETS = Object.freeze({
1910
+ '16:9': { 480: [854, 480], 720: [1280, 720], 1080: [1920, 1080] },
1911
+ '4:3': { 480: [640, 480], 720: [960, 720], 1080: [1440, 1080] },
1912
+ '1:1': { 480: [480, 480], 720: [720, 720], 1080: [1080, 1080] },
1913
+ '3:4': { 480: [480, 640], 720: [720, 960], 1080: [1080, 1440] },
1914
+ '9:16': { 480: [480, 854], 720: [720, 1280], 1080: [1080, 1920] },
1915
+ });
1916
+ // 720p is what CLI renders were priced and delivered at while the pinned client
1917
+ // clamped Wan 3 to 1536x864, so the default keeps that price. 1080p is
1918
+ // --target-resolution 1080 and costs twice as much per second.
1919
+ const WAN3_DEFAULT_RESOLUTION = 720;
1920
+ const WAN3_MAX_SIDE = 1920;
1921
+
1922
+ function wan3ResolutionTier(value) {
1923
+ const numeric = Number(value);
1924
+ if (numeric >= 1080) return 1080;
1925
+ if (numeric >= 720) return 720;
1926
+ return 480;
1927
+ }
1928
+
1929
+ function nearestWan3Ratio(width, height) {
1930
+ const aspect = Number(width) / Number(height);
1931
+ if (!(aspect > 0) || !Number.isFinite(aspect)) return '16:9';
1932
+ return Object.keys(WAN3_DIMENSION_BUCKETS)
1933
+ .map((ratio) => {
1934
+ const [ratioW, ratioH] = ratio.split(':').map(Number);
1935
+ return { ratio, distance: Math.abs(Math.log(aspect / (ratioW / ratioH))) };
1936
+ })
1937
+ .sort((left, right) => left.distance - right.distance)[0].ratio;
1938
+ }
1939
+
1940
+ function wan3BucketCanvas(ratio, tier) {
1941
+ const [width, height] = (WAN3_DIMENSION_BUCKETS[ratio] || WAN3_DIMENSION_BUCKETS['16:9'])[tier];
1942
+ return { width, height };
1943
+ }
1944
+
1945
+ // A first frame is fitted inside the canvas and the canvas then takes the fitted
1946
+ // frame's size, so a canvas in any other shape would shrink below the tier. Keep
1947
+ // the frame's shape with its short side at the tier, capping the long side.
1948
+ function wan3FrameCanvas(frameWidth, frameHeight, tier) {
1949
+ const landscape = frameWidth >= frameHeight;
1950
+ const aspect = Math.max(frameWidth, frameHeight) / Math.min(frameWidth, frameHeight);
1951
+ let shortSide = tier;
1952
+ let longSide = Math.round(tier * aspect);
1953
+ if (longSide > WAN3_MAX_SIDE) {
1954
+ longSide = WAN3_MAX_SIDE;
1955
+ shortSide = Math.round(WAN3_MAX_SIDE / aspect);
1956
+ }
1957
+ return landscape ? { width: longSide, height: shortSide } : { width: shortSide, height: longSide };
1958
+ }
1905
1959
 
1906
1960
  function isWan3ModelSelectionLocal(modelId) {
1907
1961
  const normalized = String(modelId || '').trim().toLowerCase().replace(/_/g, '-');
@@ -2079,11 +2133,13 @@ function videoModelDimensionDefaultsLikeWrapper(modelId) {
2079
2133
  return { defaultWidth: 1920, defaultHeight: 1080, maxDimension: 1920, dimensionMultiple: 1 };
2080
2134
  }
2081
2135
  if (isWan3ModelSelectionLocal(modelId)) {
2136
+ // Placeholder only: the Wan 3 preflight replaces it with the exact size for
2137
+ // the requested tier and ratio (WAN3_DIMENSION_BUCKETS).
2082
2138
  return {
2083
- defaultWidth: 1920,
2084
- defaultHeight: 1080,
2139
+ defaultWidth: 1280,
2140
+ defaultHeight: 720,
2085
2141
  minDimension: 480,
2086
- maxDimension: 1920,
2142
+ maxDimension: WAN3_MAX_SIDE,
2087
2143
  dimensionMultiple: 1,
2088
2144
  };
2089
2145
  }
@@ -4656,7 +4712,7 @@ Video Options:
4656
4712
  --fps <num> Frames per second (model default unless set)
4657
4713
  --duration <sec> Duration in seconds (default: 5); Seedance 2.5 edit requires @Video1's source duration
4658
4714
  --frames <num> Override total frames (optional)
4659
- --target-resolution <px> Short-side target that preserves aspect ratio (Seedance 2.5: 480, 720 or 1080).
4715
+ --target-resolution <px> Short-side target that preserves aspect ratio (Seedance 2.5: 480, 720 or 1080; Wan 3: 480, 720 (default) or 1080).
4660
4716
  MiniMax H3 FastH3 and Ref2VA Two-Stage: the delivered size, 720, 1080, or 2K (1440; default),
4661
4717
  rendered on a half-size canvas (672x384, 960x544, 1344x768)
4662
4718
  --auto-resize-assets Auto-resize video reference assets (default)
@@ -5980,7 +6036,13 @@ if (options.music) {
5980
6036
  options.height = canvas.height;
5981
6037
  }
5982
6038
  }
5983
- const videoShortSide = isTwoStageVideo
6039
+ // Wan 3 takes Alibaba's exact sizes (applyWan3Canvas), never the generic
6040
+ // short-side or prompt-aspect scaling below.
6041
+ const isWan3Canvas = isWan3ModelLocal(options.model);
6042
+ if (isWan3Canvas && !hasExplicitVideoCanvas) {
6043
+ applyWan3Canvas();
6044
+ }
6045
+ const videoShortSide = (isTwoStageVideo || isWan3Canvas)
5984
6046
  ? null
5985
6047
  : ((cliSet.targetResolution || targetResolutionFromPrompt)
5986
6048
  ? options.targetResolution
@@ -5990,7 +6052,7 @@ if (options.music) {
5990
6052
  options.width = dims.width;
5991
6053
  options.height = dims.height;
5992
6054
  }
5993
- if (aspectRatioFromPrompt && !cliSet.width && !cliSet.height && !isTwoStageVideo) {
6055
+ if (aspectRatioFromPrompt && !cliSet.width && !cliSet.height && !isTwoStageVideo && !isWan3Canvas) {
5994
6056
  const dims = dimensionsForAspectRatio(options.width, options.height, aspectRatioFromPrompt);
5995
6057
  if (dims) {
5996
6058
  options.width = dims.width;
@@ -13120,6 +13182,60 @@ async function runMultiAngleFlow(client, log) {
13120
13182
  }
13121
13183
  }
13122
13184
 
13185
+ // Wan 3 preflight canvas: the requested tier (480/720/1080, default 720) at the
13186
+ // requested ratio, or in the first frame's shape for image-to-video. Explicit
13187
+ // -w/-h (or exact pixels in the prompt) skip this and are sent as given.
13188
+ function applyWan3Canvas() {
13189
+ const requestedTier = (cliSet.targetResolution || targetResolutionFromPrompt)
13190
+ ? options.targetResolution
13191
+ : WAN3_DEFAULT_RESOLUTION;
13192
+ options._wan3Tier = wan3ResolutionTier(requestedTier);
13193
+ if (options.videoWorkflow === 'i2v' && (options.refImage || options.refImageEnd)) {
13194
+ // A URL frame is measured again once it is downloaded (see
13195
+ // applyWan3FrameCanvas at the render), so its canvas is provisional here.
13196
+ options._wan3CanvasFollowsFrame = true;
13197
+ const framePath = options.refImage || options.refImageEnd;
13198
+ if (!isHttpUrl(framePath) && existsSync(framePath)) {
13199
+ const dims = getImageDimensionsFromBuffer(readFileSync(framePath));
13200
+ if (dims?.width && dims?.height) {
13201
+ applyWan3FrameCanvas(dims.width, dims.height);
13202
+ return;
13203
+ }
13204
+ }
13205
+ }
13206
+ let ratio = wan3FixedRatio();
13207
+ if (!ratio && aspectRatioFromPrompt) {
13208
+ const promptShape = dimensionsForAspectRatio(1000, 1000, aspectRatioFromPrompt);
13209
+ if (promptShape) ratio = nearestWan3Ratio(promptShape.width, promptShape.height);
13210
+ }
13211
+ const canvas = wan3BucketCanvas(ratio || '16:9', options._wan3Tier);
13212
+ options.width = canvas.width;
13213
+ options.height = canvas.height;
13214
+ }
13215
+
13216
+ function wan3FixedRatio() {
13217
+ return options.wan3Ratio !== 'adaptive' && Object.hasOwn(WAN3_DIMENSION_BUCKETS, options.wan3Ratio)
13218
+ ? options.wan3Ratio
13219
+ : null;
13220
+ }
13221
+
13222
+ // Returns true when the canvas changed.
13223
+ function applyWan3FrameCanvas(frameWidth, frameHeight) {
13224
+ const fixedRatio = wan3FixedRatio();
13225
+ if (fixedRatio && nearestWan3Ratio(frameWidth, frameHeight) !== fixedRatio && !options.quiet && !options._wan3RatioNoticeShown) {
13226
+ options._wan3RatioNoticeShown = true;
13227
+ console.error(
13228
+ `Wan 3 image-to-video follows the first frame's shape (${frameWidth}x${frameHeight}); ` +
13229
+ `--wan3-ratio ${fixedRatio} does not crop it. Crop the image first for a ${fixedRatio} video.`
13230
+ );
13231
+ }
13232
+ const canvas = wan3FrameCanvas(frameWidth, frameHeight, options._wan3Tier);
13233
+ const changed = canvas.width !== options.width || canvas.height !== options.height;
13234
+ options.width = canvas.width;
13235
+ options.height = canvas.height;
13236
+ return changed;
13237
+ }
13238
+
13123
13239
  // The images of the MiniMax H3 FastH3 ia2v/flfa2v audio guide are first/last
13124
13240
  // frame anchors exactly like i2v's, so they follow i2v's canvas and
13125
13241
  // reference-resize rules. (Other ia2v models treat --ref as a loose reference.)
@@ -14560,6 +14676,15 @@ async function main() {
14560
14676
  }
14561
14677
  }
14562
14678
 
14679
+ // Wan 3: size the canvas from the frame actually being sent, which the
14680
+ // preflight could not measure when --ref/--ref-end is a URL.
14681
+ if (isWan3Video && options._wan3CanvasFollowsFrame && (imageBuffer || endImageBuffer)) {
14682
+ const frameDims = await getVideoImageDimensionsFromBuffer(imageBuffer || endImageBuffer);
14683
+ if (frameDims?.width && frameDims?.height && applyWan3FrameCanvas(frameDims.width, frameDims.height) && !options.quiet) {
14684
+ console.error(`Sized the Wan 3 canvas to the first frame: ${options.width}x${options.height} (${options._wan3Tier}p).`);
14685
+ }
14686
+ }
14687
+
14563
14688
  // Pre-resize reference images to model-compatible dimensions if needed for i2v workflow.
14564
14689
  // The earlier preflight can inspect local files, but HTTPS references are downloaded only
14565
14690
  // here. Re-check the actual buffer so remote and local inputs follow the same grid rules.
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.54.1';
1
+ export const PACKAGE_VERSION = '3.54.3';