@sogni-ai/sogni-creative-agent-skill 3.54.2 → 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.2"
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
@@ -994,9 +994,12 @@ clip, in addition to `--ref` / `--ref-end`.
994
994
  yet, the network refuses the job with error 4100. The CLI reports it as a
995
995
  retryable `MODEL_UNAVAILABLE` error: try again shortly, or render without
996
996
  keyframes.
997
- - **Prompt:** H3 never sees the keyframe images in the prompt. Describe what each
998
- one shows at its time, and cut to a new shot at a keyframe that changes the
999
- 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
1000
1003
  [`video-prompting.md` § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
1001
1004
  before writing the prompt.
1002
1005
  - **Hosted tools:** `animate_photo`, `sound_to_video`, and `generate_video`
@@ -1070,7 +1073,8 @@ At least one image or video is required; audio alone is invalid. For a prompt-on
1070
1073
  interpolate between two anchors use `minimax-h3-flf2v`. r2v has no frame anchors
1071
1074
  at all, so an end-frame parameter is rejected rather than ignored. It can still
1072
1075
  pin stills strictly inside the clip with `--keyframe`; keyframes are not
1073
- 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
1074
1078
  [MiniMax H3 keyframes](#minimax-h3-keyframes)).
1075
1079
 
1076
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.2",
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.2",
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,10 @@
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
+
1
8
  ## [3.54.2] - 2026-09-27
2
9
 
3
10
  ### 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):
@@ -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"
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.2"
5
+ version: "3.54.3"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -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
 
@@ -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.2",
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.2",
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.2",
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.2",
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
@@ -994,9 +994,12 @@ clip, in addition to `--ref` / `--ref-end`.
994
994
  yet, the network refuses the job with error 4100. The CLI reports it as a
995
995
  retryable `MODEL_UNAVAILABLE` error: try again shortly, or render without
996
996
  keyframes.
997
- - **Prompt:** H3 never sees the keyframe images in the prompt. Describe what each
998
- one shows at its time, and cut to a new shot at a keyframe that changes the
999
- 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
1000
1003
  [`video-prompting.md` § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
1001
1004
  before writing the prompt.
1002
1005
  - **Hosted tools:** `animate_photo`, `sound_to_video`, and `generate_video`
@@ -1070,7 +1073,8 @@ At least one image or video is required; audio alone is invalid. For a prompt-on
1070
1073
  interpolate between two anchors use `minimax-h3-flf2v`. r2v has no frame anchors
1071
1074
  at all, so an end-frame parameter is rejected rather than ignored. It can still
1072
1075
  pin stills strictly inside the clip with `--keyframe`; keyframes are not
1073
- 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
1074
1078
  [MiniMax H3 keyframes](#minimax-h3-keyframes)).
1075
1079
 
1076
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.2",
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/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.54.2';
1
+ export const PACKAGE_VERSION = '3.54.3';