@sogni-ai/sogni-creative-agent-skill 3.53.0 → 3.54.0

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.53.0"
6
+ version: "3.54.0"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -120,7 +120,10 @@ Seedance 2.5 supports 4–30s at 480p/720p/1080p, including edit/extend,
120
120
  with optional `--output-format mov` and `--return-last-frame`. FastH3 Two-Stage
121
121
  delivers 720p/1080p/2K through its own model selector. FastH3 audio-to-video
122
122
  (`minimax-h3-fasth3-ia2v-turbo`, `-flfa2v-turbo`, `-a2v-turbo`) drives H3 with an
123
- uploaded `--ref-audio` track and keeps it as the soundtrack. GPT Image 2.5 Sunburst
123
+ uploaded `--ref-audio` track and keeps it as the soundtrack. Repeatable
124
+ `--keyframe image.png@3.5` (up to 8) pins extra images at chosen times inside an
125
+ H3 i2v/flf2v, Sound to Video, or Ref2VA clip; describe each keyframe in the
126
+ prompt at its time (see [video-prompting.md](references/video-prompting.md)). GPT Image 2.5 Sunburst
124
127
  and Flare support edits, masks, and transparency. For capability questions or
125
128
  model selection, read [models.md](references/models.md) for current controls
126
129
  and limits; preserve the user's requested model and resolution.
@@ -207,6 +207,11 @@ submit inline `input.steps`; `--workflow-input <json|@path>` supplies the
207
207
  `dark-beast-krea2-identity-edit` for `edit_image`, and a `minimax-h3-*`
208
208
  `videoModel` for `generate_video` / `animate_photo`. Published ids and ranges
209
209
  come from `GET /v1/loras/comfy?modelId=<canonical-model-id>`.
210
+ - MiniMax H3 keyframes in a step: add `keyframes: [{ "imageIndex": -2,
211
+ "atSeconds": 3.5 }]` to an `animate_photo`, `sound_to_video`, or Ref2VA
212
+ `generate_video` step's `arguments`, with the images attached through
213
+ `-c/--context` (negative indices count image uploads, -1 first). See
214
+ [MiniMax H3 keyframes in hosted tools](#minimax-h3-keyframes-in-hosted-tools).
210
215
  - `--api-workflow storyboard-video` generates a storyline, creates one GPT
211
216
  Image 2 storyboard sheet, then feeds that artifact into Seedance as the
212
217
  video reference. `-Q fast|hq|pro` maps to GPT Image 2 low|medium|high
@@ -235,8 +240,11 @@ sogni-agent --api-workflow --workflow-input @workflow.json \
235
240
  ## Media references in hosted modes
236
241
 
237
242
  Hosted API requests forward media references from `-c`, `--ref`, `--ref-end`,
238
- `--ref-audio`, `--reference-audio-identity`, and `--ref-video` as
239
- `media_references` metadata. `--ref-audio` and `--ref-video` are repeatable in
243
+ `--keyframe`, `--ref-audio`, `--reference-audio-identity`, and `--ref-video` as
244
+ `media_references` metadata. Image references keep that order, so negative
245
+ image indices count `-c` images first, then `--ref`, `--ref-end`, and the
246
+ `--keyframe` images in time order (see
247
+ [MiniMax H3 keyframes in hosted tools](#minimax-h3-keyframes-in-hosted-tools)). `--ref-audio` and `--ref-video` are repeatable in
240
248
  api-chat / durable-chat mode — each entry uploads independently and is exposed
241
249
  to the hosted LLM as `@Audio1` / `@Audio2` / `@Video1` etc. API chat also
242
250
  attaches image refs as vision inputs. Local file references are uploaded to
@@ -337,3 +345,46 @@ Submit these media tools as durable workflow steps (`toolName` and `arguments`)
337
345
  Negative indices address uploads (-1 first); non-negative indices address generated results. 3D views are from the subject's perspective: left means the subject's own left side faces camera (subject faces screen-left), right means screen-right. Supply original images of the same subject at consistent height and framing; any subset of the three orbit views enables multi-view reconstruction. Keep the GLB in the model artifact lane, never feed it into an image tool.
338
346
 
339
347
  For two-stage Turbo H3, use explicit `minimax-h3-fasth3-*-turbo-2stage` selectors on the relevant video tool with `targetResolution`. For 1080p or 2K reference-to-video, use `minimax-h3-r2v-2stage` (Standard) or `minimax-h3-r2v-balanced-2stage` (Balanced) on `generate_video` with the same references as `minimax-h3-r2v` and `targetResolution` naming the delivered size. Audio-guided IA2V/FLFA2V/A2V selectors belong on `sound_to_video` and require the uploaded audio plus their named endpoint images. They preserve the supplied audio and reject LoRAs. Other H3 modes discover personal LoRAs through the [authenticated catalog](personal-loras.md).
348
+
349
+ ## MiniMax H3 keyframes in hosted tools
350
+
351
+ `animate_photo`, `sound_to_video`, and `generate_video` take an optional
352
+ `keyframes` argument that pins up to 8 images at exact moments inside one MiniMax
353
+ H3 clip. Its schema description, identical on all three tools:
354
+
355
+ > 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.
356
+
357
+ | Tool | `videoModel` selectors that take `keyframes` |
358
+ | --- | --- |
359
+ | `animate_photo` | Every MiniMax H3 image-to-video and first/last-frame selector, with any `frameRole` |
360
+ | `sound_to_video` | Every MiniMax H3 audio selector (image + audio, first and last frame + audio, audio only; one- and two-stage) |
361
+ | `generate_video` | Only the Reference to Video selectors (`minimax-h3-r2v*`); never text-to-video |
362
+
363
+ - `imageIndex` follows `endImageIndex` on every tool: -1 is the first image
364
+ upload, -2 the second, and 0 and up are generated results. On
365
+ `sound_to_video` this differs from the 0-based upload numbering of
366
+ `sourceImageIndex`.
367
+ - Each `atSeconds` lands on frame `round(atSeconds × 24)`, strictly inside the
368
+ job's real frame count (a Sound to Video clip without `duration` runs for the
369
+ audio window). Every other model, a time outside the clip, two keyframes on one
370
+ frame, or more than 8 is refused with a `PARAMETER_INVALID` error that says
371
+ what to change; nothing is clamped or dropped. Set `duration` so every keyframe
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`.
375
+ - Price: two keyframes are included; each additional keyframe adds 0.75 s of
376
+ output time on FastH3 (0.3 s on other tiers) at the job's rate.
377
+ - Error 4100 means no online worker serving that model can pin keyframes right
378
+ now. It is a temporary availability refusal: retry shortly, or render without
379
+ keyframes.
380
+
381
+ From the CLI, `--keyframe <image>@<seconds>` in `--api-chat` / `--durable-chat`
382
+ uploads each image as an image media reference after `--ref` / `--ref-end` and
383
+ tells the hosted agent the exact argument to use, for example
384
+ `keyframes: [{"imageIndex": -2, "atSeconds": 3.5}]` after one `--ref`. In an
385
+ `--api-workflow --workflow-input` plan, put `keyframes` in the step's
386
+ `arguments` and attach the images with `-c/--context` (`--api-workflow`
387
+ refuses `--keyframe`). See [models.md § MiniMax H3 keyframes](models.md#minimax-h3-keyframes)
388
+ for supported models and prices, and
389
+ [video-prompting.md § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
390
+ for how to describe keyframes in the prompt.
@@ -956,6 +956,51 @@ sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo-2stage --target-resolutio
956
956
  For audio used as a loose reference rather than the soundtrack (a voice or
957
957
  rhythm the prompt assigns a job to), use H3 r2v instead.
958
958
 
959
+ ### MiniMax H3 keyframes
960
+
961
+ Repeatable `--keyframe <image>@<seconds>` (a local path or URL, then the time the
962
+ video lands on it) pins up to **8** extra stills at exact moments inside an H3
963
+ clip, in addition to `--ref` / `--ref-end`.
964
+
965
+ | Selectors | Keyframes |
966
+ |-----------|-----------|
967
+ | `minimax-h3-i2v`, `minimax-h3-flf2v`, and their `-balanced`, `-turbo`, `-fasth3-…-turbo`, and FastH3 Two-Stage forms (including generic selectors that resolve to them) | Yes, between the first and last frame |
968
+ | `minimax-h3-fasth3-ia2v-turbo`, `-flfa2v-turbo`, `-a2v-turbo`, and their `-2stage` forms | Yes; the uploaded audio still drives the clip |
969
+ | `minimax-h3-r2v`, `-r2v-balanced`, `-r2v-turbo`, `-r2v-2stage`, `-r2v-balanced-2stage` | Yes; keyframes travel in their own upload slots and are not references |
970
+ | Text-to-video (`minimax-h3-t2v`, or any generic selector with no frame, audio, or reference) | No; the CLI refuses the flag |
971
+
972
+ - **Times:** each keyframe lands on frame `round(seconds × 24)`, which must be
973
+ strictly inside the snapped clip (0.1–7.9 s on an 8 s, 192-frame clip) and
974
+ different from every other keyframe's frame. Anything else, or more than 8
975
+ keyframes, is refused with the range to use; nothing is clamped or dropped.
976
+ - **Framing:** each still is centre-cropped onto the clip's canvas exactly like
977
+ the last frame (at twice the canvas on Two-Stage models). Use stills with the
978
+ clip's aspect ratio.
979
+ - **Price:** two keyframes are included. Each additional keyframe adds output
980
+ time at the job's rate: 0.75 s on FastH3 (including Two-Stage and Sound to
981
+ Video) and 0.3 s on the other tiers. An 8 s FastH3 clip costs 32 Spark with up
982
+ to two keyframes and 50 Spark with eight. `--estimate-video-cost` and the
983
+ balance check include the keyframe count.
984
+ - **Availability:** if no online worker serving the model can pin keyframes
985
+ yet, the network refuses the job with error 4100. The CLI reports it as a
986
+ retryable `MODEL_UNAVAILABLE` error: try again shortly, or render without
987
+ keyframes.
988
+ - **Prompt:** H3 never sees the keyframe images in the prompt. Describe what each
989
+ one shows at its time, and cut to a new shot at a keyframe that changes the
990
+ camera angle, place, or light. Read
991
+ [`video-prompting.md` § Intermediate keyframes](video-prompting.md#intermediate-keyframes)
992
+ before writing the prompt.
993
+ - **Hosted tools:** `animate_photo`, `sound_to_video`, and `generate_video`
994
+ (Ref2VA only) take the same pins as `keyframes: [{ imageIndex, atSeconds }]`;
995
+ see [`hosted-api.md`](hosted-api.md#minimax-h3-keyframes-in-hosted-tools).
996
+
997
+ ```bash
998
+ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png --keyframe turn.png@3.5 --keyframe wave.png@6 --duration 8 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
999
+ sogni-agent -q --video -m minimax-h3-fasth3-ia2v-turbo --ref portrait.png --ref-audio song.mp3 --keyframe chorus.png@7.5 --duration 12 -o ./music-video.mp4 "<I2V preamble plus three-field H3 prompt>"
1000
+ sogni-agent -q --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --keyframe rooftop.png@5 --duration 8 -o ./ref.mp4 "<six-field Ref2VA prompt>"
1001
+ sogni-agent --json --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --keyframe turn.png@3 --keyframe wave.png@6 --duration 8 --estimate-video-cost "<prompt>"
1002
+ ```
1003
+
959
1004
  ### MiniMax H3 prompting
960
1005
 
961
1006
  Standard, Balanced, and Turbo T2V, I2V, and FLF2V use MiniMax's exact three-field rewrite
@@ -1014,7 +1059,10 @@ Sogni Socket before the job is priced):
1014
1059
  At least one image or video is required; audio alone is invalid. For a prompt-only render use
1015
1060
  `minimax-h3-t2v`; for a locked opening frame use `minimax-h3-i2v`; to
1016
1061
  interpolate between two anchors use `minimax-h3-flf2v`. r2v has no frame anchors
1017
- at all, so an end-frame parameter is rejected rather than ignored.
1062
+ at all, so an end-frame parameter is rejected rather than ignored. It can still
1063
+ pin stills strictly inside the clip with `--keyframe`; keyframes are not
1064
+ references, take no `<Picture N>` label, and use no reference slot (see
1065
+ [MiniMax H3 keyframes](#minimax-h3-keyframes)).
1018
1066
 
1019
1067
  Ref2VA uses exactly six fields in this order:
1020
1068
 
@@ -1190,7 +1238,7 @@ model recommendations.
1190
1238
 
1191
1239
  ## Video sizing & aspect ratios
1192
1240
 
1193
- - **WAN 2.2 models** use dimensions divisible by 16, min 480 px, max 1536 px.
1241
+ - **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
1194
1242
  - **Wan 3** uses fixed 30 fps, fixed or smart 2–30 s output, and 480P/720P/1080P buckets with `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, and `9:16`; see [Alibaba Wan 3](#alibaba-wan-3).
1195
1243
  - **Wan 3.0 Enhanced** uses fixed 30 fps, fixed or smart 2–30 s output, 480P/720P/1080P buckets, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`; see [Wan 3.0 Enhanced](#wan-30-enhanced).
1196
1244
  - **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use dimensions divisible by 32, fixed 24 fps, 124–362 frames on the `124 + n×17` grid (5.17–15.08 s), and no more than 1,032,192 pixels. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 default to 1344×768; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. LightX2V FL2VA H3 Turbo defaults to `er_sde` and accepts `euler`, `er_sde`, or `sa_solver`; the CLI omits the sampler unless `--sampler` is passed. Ref2VA Turbo and FastH3 use Euler/simple only. FastH3 is the separate FastVideo VSA engine and has no R2V mode. Guidance 1 applies to all, and native stereo audio to all but the FastH3 audio-to-video modes, which deliver the uploaded audio. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. Other FL2VA/Balanced/Turbo and image-only R2V routes require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See [MiniMax H3 models](#minimax-h3-models).
@@ -184,6 +184,12 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
184
184
  fields rather than requesting different audio. `--audio-start` picks the
185
185
  window; its length is the clip length. No LoRAs; see
186
186
  [models.md § FastH3 audio-to-video](./models.md#fasth3-audio-to-video).
187
+ - **Intermediate keyframes pin extra images at chosen times.** Repeatable
188
+ `--keyframe <image>@<seconds>` (up to 8) works on the image-to-video,
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
192
+ [Intermediate keyframes](#intermediate-keyframes) below.
187
193
  - **Sogni's H3 tiers render the 768p-class open-weights release.** Only FastH3
188
194
  Two-Stage delivers 1080p or 2K (Sogni's own latent enlargement); do not claim
189
195
  either for any other H3 selector. MiniMax's hosted 2K stage is not part of
@@ -535,7 +541,9 @@ video) is required. A reference video can be the only visual input; audio alone
535
541
  is invalid. r2v
536
542
  has no frame anchors at all—for
537
543
  a locked opening frame use `minimax-h3-i2v`, and for a first-to-last-frame
538
- transition use `minimax-h3-flf2v`.
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
546
+ [Intermediate keyframes](#intermediate-keyframes)).
539
547
 
540
548
  Ref2VA does not use the three-field Standard contract. Write exactly these six
541
549
  fields, in this order:
@@ -649,6 +657,73 @@ music can cite `<Audio N>` without an invented speaker ID. Put copied ambience
649
657
  and effects in `overall_soundscape`, audience-only score in
650
658
  `non_diegetic_music`, and use both fields when the source contains both.
651
659
 
660
+ ### Intermediate keyframes
661
+
662
+ `--keyframe <image>@<seconds>` pins a still image (local path or URL) at an
663
+ exact moment inside an H3 clip, in addition to the first and last frame. Repeat
664
+ it for up to 8 keyframes. It works on every image-to-video and first/last-frame
665
+ selector (Standard, Balanced, Turbo, FastH3, and FastH3 Two-Stage), on the FastH3
666
+ Sound to Video selectors (`minimax-h3-fasth3-ia2v-turbo`, `-flfa2v-turbo`,
667
+ `-a2v-turbo`, and their `-2stage` forms), and on every Ref2VA selector.
668
+ Text-to-video cannot pin keyframes.
669
+
670
+ - **Timing.** A keyframe lands on frame `round(seconds × 24)`, which must fall
671
+ strictly inside the snapped clip: from 0.1 s to one frame before the last
672
+ (0.1–7.9 s on an 8 s, 192-frame clip). The first and last frames belong to
673
+ `--ref` and `--ref-end`, never to a keyframe, and two keyframes cannot share a
674
+ frame. The CLI refuses anything else and names the range to use; it never
675
+ 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.
682
+ - **Compare each keyframe with the anchor before it** (the first frame or the
683
+ previous keyframe):
684
+ - **Same camera angle, place, and light; only the subjects moved.** Stay in the
685
+ same shot and bring the action to the pose, position, facing, expression,
686
+ 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.
689
+ - **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
691
+ keyframe's composition: shot size, camera angle, where each subject stands
692
+ and faces, the setting, and the light. An action in progress carries across
693
+ the cut. These cuts apply even when the request prefers one continuous shot,
694
+ and the alignment line's final `Shot N` counts them. If the last frame is
695
+ framed or lit differently from the last keyframe, the final shot cuts to it.
696
+ - **Never put two differently framed or lit anchors in one shot.** They
697
+ cross-fade into each other, and a shot described differently from its keyframe
698
+ can flash the keyframe for a single frame.
699
+ - **The cut clock** is the keyframe's frame ÷ 24, rounded down to the
700
+ millisecond: `@3.5` is frame 84, `00:03.500`; `@2.3` is frame 55, `00:02.291`.
701
+ The CLI prints each one before rendering (`Keyframe at 00:03.500 (frame 84)`).
702
+ - **Sound to Video:** the uploaded audio still drives the performance; keyframes
703
+ pin how the clip looks at their times.
704
+ - **Framing and price.** Each keyframe is centre-cropped onto the clip's canvas
705
+ like the last frame, so use stills with the clip's aspect ratio. Two keyframes
706
+ are included in the price; each additional keyframe adds a little output time
707
+ (see [models.md § MiniMax H3 keyframes](./models.md#minimax-h3-keyframes)).
708
+
709
+ Worked example — the courier leaves the alley (first frame), is inside a
710
+ stairwell at 4 s (a new place, so a cut), and reaches the top of the stairs
711
+ (last frame, same stairwell and light, so no second cut):
712
+
713
+ ```bash
714
+ sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./alley.png --ref-end ./stair-top.png --keyframe ./stairwell.png@4 --duration 8 -w 1344 -h 768 -o ./courier.mp4 "<prompt below>"
715
+ ```
716
+
717
+ ```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.
719
+
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.
721
+
722
+ overall_soundscape: Rain patters on metal in the alley, the steel door clangs shut behind her, and her footsteps echo up the stairwell.
723
+
724
+ non_diegetic_music: N/A
725
+ ```
726
+
652
727
  ### Agent-ready H3 command shapes
653
728
 
654
729
  ```bash
@@ -677,6 +752,9 @@ sogni-agent -q --video -m minimax-h3-fasth3-i2v-turbo --ref ./first.png --durati
677
752
  sogni-agent -q --video -m minimax-h3-fasth3-flf2v-turbo --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
678
753
  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>"
679
754
 
755
+ # 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>"
757
+
680
758
  # Reference-to-video (reference order defines the prompt ordinals)
681
759
  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>"
682
760
  sogni-agent -q --video -m minimax-h3-r2v-balanced --ref ./identity.png -c ./wardrobe.png --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.53.0",
3
+ "version": "3.54.0",
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.53.0",
3
+ "version": "3.54.0",
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,17 @@
1
+ ## [3.54.0] - 2026-09-27
2
+
3
+ ### Features
4
+
5
+ * Pin MiniMax H3 keyframes: repeat `--keyframe <image>@<seconds>` (a local path or URL, up to 8) to make one H3 clip land on extra stills at chosen moments, in addition to `--ref` and `--ref-end`. It works on the H3 image-to-video and first/last-frame selectors (every tier, including FastH3 and the Two-Stage forms), the FastH3 Sound to Video selectors (`-ia2v-turbo`, `-flfa2v-turbo`, `-a2v-turbo` and their `-2stage` forms) and Ref2VA (`minimax-h3-r2v` and its Balanced, Turbo and Two-Stage forms). Text-to-video and every other model family refuse it and name the selectors that take it. Each time lands on frame `round(seconds × 24)`, which must be strictly inside the clip and on a frame of its own; anything else is refused with the range to use, and nothing is clamped or dropped. Each still is centre-cropped onto the canvas the job renders, like the last frame (at twice the canvas on Two-Stage models). Two keyframes are included in the price; each additional one adds 0.75 s of output time on FastH3 and 0.3 s on the other tiers, so an 8 s FastH3 clip costs 32 Spark with up to two keyframes and 50 with eight. `--estimate-video-cost` and the balance check include them, `--json` lists them, and a refusal because no online worker can pin keyframes yet (error 4100) is reported as a retryable `MODEL_UNAVAILABLE` error.
6
+ * `--keyframe` also works with `--api-chat` and `--durable-chat`: the images are uploaded after any frame images and the hosted agent is asked to pass them as `keyframes: [{ imageIndex, atSeconds }]`. `--api-workflow` refuses the flag and points at the step arguments instead.
7
+ * The desktop extension's `generate_video` MCP tool takes an optional `keyframes` array (up to 8 items of `{ image, at_seconds }`, where `image` is a path or URL, like `ref` and `ref_end`) and passes each item as `--keyframe`.
8
+ * Agent guidance for keyframes: `references/video-prompting.md` gains an Intermediate keyframes section (timing on the 24 fps grid, saying in the prompt what each keyframe shows at its time, starting a new shot at a keyframe that changes the angle, place or light, and a worked first/last-frame example); `references/models.md` lists which selectors take keyframes, the framing and the price; `references/hosted-api.md` covers the hosted `keyframes` argument. SKILL.md, README, llm.txt, the Claude plugin and Hermes skills and the video skill views point at the flag.
9
+
10
+ ### Bug Fixes
11
+
12
+ * Keep Wan 2.2 sizes within 1,048,576 pixels per frame (1024x1024), with each side between 480 and 1536. Sizes the CLI chooses are fitted inside that limit (a 2314x1200 image-to-video reference now renders at 1408x736 instead of 1536x800), and source reels fit their Wan 2.2 sizes inside it too. An explicit Wan 2.2 `-w`/`-h` or exact pixel size in the prompt beyond the limit is refused with `INVALID_VIDEO_SIZE` and a fitted-size hint instead of being changed, and `--target-resolution` or `--reel-target-resolution` above 1024 is refused.
13
+ * Update the generation clients to SDK 5.58.0 and intelligence client 4.6.0, and the bundled runtime to creative agent 2.7.0, which carry MiniMax H3 keyframes. The CLI's keyframe checks and the keyframe framing now come from the intelligence client.
14
+
1
15
  ## [3.53.0] - 2026-09-25
2
16
 
3
17
  ### Features
package/README.md CHANGED
@@ -511,6 +511,11 @@ sogni-agent --video -m minimax-h3-fasth3-ia2v-turbo --ref portrait.png --ref-aud
511
511
  sogni-agent --video -m minimax-h3-fasth3-flfa2v-turbo --ref first.png --ref-end last.png --ref-audio song.mp3 --duration 12 "<FLF2V preamble plus three-field H3 prompt>"
512
512
  sogni-agent --video -m minimax-h3-fasth3-a2v-turbo --ref-audio song.mp3 --audio-start 30 --duration 15 "<three-field H3 prompt>"
513
513
 
514
+ # MiniMax H3 keyframes: the clip passes through extra images at chosen times (repeat --keyframe, up to 8)
515
+ sogni-agent --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png \
516
+ --keyframe turn.png@3.5 --keyframe wave.png@6 --duration 8 \
517
+ "<FLF2V preamble plus three-field H3 prompt that describes each keyframe at its time>"
518
+
514
519
  # Image-to-video (i2v; defaults to wan_v2.2-14b-fp8_i2v_lightx2v)
515
520
  sogni-agent --video --ref cat.jpg "gentle camera pan"
516
521
 
@@ -647,6 +652,7 @@ Run `sogni-agent --help` for the full CLI. Below are the options and tables most
647
652
  | `--left-view`, `--back-view`, `--right-view <image>` | Pixal3D multi-view orbit views, any subset, named by the subject's own sides: left = its own left side toward the camera (it faces screen-left), right = its own right side (it faces screen-right). Templates that label the subject's right side "left" build a model turned 180 degrees |
648
653
  | `--remove-background <image>`, `--matte` | BiRefNet transparent PNG or soft mask |
649
654
  | `--ref`, `-c`, `--ref-audio`, `--ref-video` | Frame/loose image/audio/video references; audio/video repeat for H3 r2v and Seedance loose refs |
655
+ | `--keyframe <image>@<sec>` | MiniMax H3 keyframe: pin an image at that time strictly inside the clip, in addition to `--ref`/`--ref-end`; repeat for up to 8 (H3 i2v/flf2v, FastH3 Sound to Video, Ref2VA) |
650
656
  | `--audio-start <sec>` | Where the `--ref-audio` window begins; on FastH3 audio-to-video the window is the clip length (no `--audio-duration`) |
651
657
  | `--target-resolution <px>` | Target the short side, preserving aspect ratio; on MiniMax H3 FastH3 and Ref2VA Two-Stage, the delivered size `720`, `1080`, or `2K` (default 2K) |
652
658
  | `--workflow <type>` | Force `t2v`, `i2v`, `r2v`, `s2v`, `ia2v`, `a2v`, `v2v`, or animate workflows |
@@ -721,6 +727,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
721
727
  | MiniMax H3 text-to-video with native stereo audio | `minimax-h3` or `minimax-h3-t2v` |
722
728
  | MiniMax H3 image-to-video | `minimax-h3-i2v` |
723
729
  | MiniMax H3 first-frame → last-frame video | `minimax-h3-flf2v` with `--ref A --ref-end B` |
730
+ | MiniMax H3 video that passes through extra images at chosen times | Any H3 i2v/flf2v, FastH3 Sound to Video, or Ref2VA selector with repeatable `--keyframe image@seconds` (up to 8); two are included in the price |
724
731
  | MiniMax H3 reference-to-video | `minimax-h3-r2v` with up to 9 images, 3 videos, 3 audios / 12 files total |
725
732
  | MiniMax H3 Balanced text-to-video | `minimax-h3-balanced` or `minimax-h3-t2v-balanced` |
726
733
  | MiniMax H3 Balanced image-to-video | `minimax-h3-i2v-balanced` with `--ref` |
@@ -767,7 +774,7 @@ sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video s
767
774
 
768
775
  ## Video Sizing & Aspect Ratios
769
776
 
770
- - **WAN 2.2 models** use dimensions divisible by 16, min 480 px, max 1536 px.
777
+ - **WAN 2.2 models** use dimensions divisible by 16, each side 480–1536 px, and at most 1,048,576 pixels per frame (1024×1024), so 1280×720, 720×1280, and 1024×1024 fit but 1536×864 and 1080p do not (as of 2026-09). The CLI refuses an explicit `-w`/`-h` or `--target-resolution` above that instead of sending it; sizes it chooses itself are fitted. (Since 2026-09-26 the network itself scales an oversized WAN 2.2 request down to about 1 MP and refuses only a side below 480, error 4101.)
771
778
  - **Wan 3** (`wan3.0-video`) is a Premium Spark Alibaba model with fixed 30 fps, fixed or smart 2–30 s output, native audio, 480P/720P/1080P tiers, and `adaptive`, `16:9`, `4:3`, `1:1`, `3:4`, or `9:16` output. It accepts one first frame plus an optional last frame, or loose references up to 10 images, 5 videos, and 5 audio clips. It can also use one public document (PDF/Office/text/Markdown/Keynote/Pages/Numbers, up to 100 MB; PDF/DOCX/DOC/PPTX/PPT/Keynote/Pages up to 50 pages) or one public webpage; file and link context are mutually exclusive and cannot be combined with first/last anchors. Each video/audio reference is 1–15 s and each modality's clips total at most 15 s. Video references condition a new generation; Alibaba exposes no edit/extend task mode or task-type field, so use a dedicated video-to-video model when source-preserving editing is required. Provider prompt expansion defaults on; `--no-expand-prompt` preserves the exact prompt. Watermark defaults off. Send no negative prompt, steps, guidance, sampler, scheduler, ControlNet, or mask. Sogni retail rates before subscription discounts are $0.065/$0.13/$0.26 per output second at 480p/720p/1080p (as of 2026-08).
772
779
  - **Wan 3.0 Enhanced** (`wan3.0-spicy-video`; MuleRouter provider ID `w3.0-video`; aliases `wan3-enhanced`, `wan3-spicy`) runs at fixed 30 fps with fixed or smart 2–30 s output, native audio, prompt expansion, 480P/720P/1080P, and `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, or `3:4`. It accepts either first/last-frame anchors or up to 10 image, 5 video, and 5 audio loose references; the two modes cannot be mixed. It has no document/web context, watermark, negative prompt, source-video edit, or extend mode. Standard PAYG is $0.08/$0.16/$0.32 per output second at 480P/720P/1080P (as of 2026-09). Existing paid subscribers receive a one-time $10 Unlimited / $20 Unlimited Pro model credit through September 1, 2026 00:00 UTC (August 31 at 5:00 PM PT); this is a launch credit, not subscription coverage.
773
780
  - **MiniMax H3 Standard, Balanced, LightX2V Turbo, and FastH3 Turbo** use a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap. Standard, Balanced, LightX2V FL2VA Turbo, and FastH3 normally default to 1344×768 or 768×1344; Ref2VA Turbo defaults to 960×544. Standard uses 20 steps; Balanced uses fixed 8-step Euler/simple acceleration, with LightX2V for FL2VA and Larry v4 for Ref2VA; both Turbo engines use 4 steps. FL2VA H3 Turbo defaults to `er_sde` on Socket and permits `euler`, `er_sde`, or `sa_solver`; Ref2VA Turbo and the separate FastVideo VSA FastH3 engine use Euler/simple only. The CLI omits the sampler unless `--sampler` is passed. FastH3 is about 2x faster than LightX2V Turbo and up to 6x faster than Standard for comparable 768p, 15-second requests; it supports T2V/I2V/FLF2V, never R2V. Guidance 1 is fixed and there is no negative-prompt input. Every Ref2VA tier accepts up to 9 images, 3 videos, and 3 audios, capped at 12 files; at least one visual reference is required. FastH3 keeps the FastVideo engine when an H3 LoRA is attached: base jobs require 23 GB and jobs with an H3 LoRA require 32 GB. The other FL2VA/Balanced/Turbo and image-only R2V paths require 32 GB-class workers, while video-conditioned R2V requires above 40 GB. See `references/video-prompting.md` § MiniMax H3 Prompting for the exact contracts.
@@ -895,7 +902,7 @@ Hosted API modes require `SOGNI_API_KEY`.
895
902
  - **`--api-workflow`** targets `/v1/creative-agent/workflows` for durable, async workflow records with event streaming and cancellation. Requests carry `input.steps` plus snake_case controls such as `token_type`, `media_references`, `max_estimated_capacity_units`, and `confirm_cost`.
896
903
  - **`--workflow-input`** forwards exact durable workflow JSON (`{ title?, steps: [...] }`). Use this when you need exact multi-step behavior such as repeated `replace_video_segment` steps with `replacementStartSeconds` / `replacementEndSeconds` for interleaved video slices.
897
904
  - **`--api-workflow storyboard-video`** generates a storyline, creates a single storyboard sheet with GPT Image 2.5 Sunburst, then passes that artifact into Seedance 2.5 for 1080p video generation. The `-Q fast|hq|pro` preset maps to GPT Image low/medium/high quality for that storyboard sheet; explicit model and resolution choices still win.
898
- - **Media references** from `-c`, `--ref`, `--ref-end`, `--ref-audio`, `--reference-audio-identity`, and `--ref-video` are forwarded as `media_references` metadata in hosted API requests. API chat also attaches image refs as vision inputs. Local file references are uploaded to Sogni media storage first, then forwarded as retrievable URLs so durable executors do not depend on `data:` URI support. Durable workflow JSON can bind those references into step arguments with `sourceStepId: "$input_media"`. Use direct CLI mode for private media that must not leave the local machine.
905
+ - **Media references** from `-c`, `--ref`, `--ref-end`, `--keyframe`, `--ref-audio`, `--reference-audio-identity`, and `--ref-video` are forwarded as `media_references` metadata in hosted API requests; `--api-chat` / `--durable-chat` also tell the hosted agent which upload to pin at which time as MiniMax H3 `keyframes`. API chat also attaches image refs as vision inputs. Local file references are uploaded to Sogni media storage first, then forwarded as retrievable URLs so durable executors do not depend on `data:` URI support. Durable workflow JSON can bind those references into step arguments with `sourceStepId: "$input_media"`. Use direct CLI mode for private media that must not leave the local machine.
899
906
  - **Cost controls** use `--workflow-max-cost <n>` to reject workflow starts above a capacity-unit ceiling, and `--confirm-cost` / `--no-confirm-cost` to forward explicit billing confirmation.
900
907
  - Manage runs with `--watch-workflow`, `--workflow-events`, `--stream-workflow`, `--list-workflows`, `--get-workflow`, `--cancel-workflow`, and `--resume-workflow`. Use `--workflow-input` to provide exact durable workflow JSON.
901
908
  - **Replay records** use `/v1/replay/records`: `--list-replays [limit]`, `--get-replay <runId>`, and `--ingest-replay <json|@path>` expose redacted RunRecord storage for Sogni Intelligence replay/debug viewers.
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.53.0"
5
+ version: "3.54.0"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -212,11 +212,10 @@ sogni-agent --video -m seedance2-5 --target-resolution 1080 --seedance-task-type
212
212
  sogni-agent --video -m seedance2-5-v2v --seedance-task-type edit --ref-video source.mp4 --duration 8 --target-resolution 720 "Edit @Video1; preserve its subject and timing"
213
213
  sogni-agent --video -m seedance2-5-v2v --seedance-task-type extend --ref-video source.mp4 --duration 8 --target-resolution 720 "Extend @Video1 after its ending"
214
214
 
215
- # MiniMax H3 (fixed 24fps, native stereo audio + dialogue; use the official
216
- # ordered-field prompt contract — see references/video-prompting.md).
217
- # Standard, 8-step Balanced, and 4-step LightX2V Turbo cover T2VA, I2VA,
218
- # L2VA, FL2VA, and Ref2VA. FastH3 is a separate FastVideo VSA engine with
219
- # T2VA/I2VA/L2VA/FL2VA only; it has no R2V mode.
215
+ # MiniMax H3 (fixed 24fps, native stereo audio + dialogue; use the official ordered-field
216
+ # prompt contract — see references/video-prompting.md). Standard, 8-step Balanced, and 4-step
217
+ # LightX2V Turbo cover T2VA, I2VA, L2VA, FL2VA, and Ref2VA. FastH3 is a separate FastVideo VSA
218
+ # engine with T2VA/I2VA/L2VA/FL2VA only; it has no R2V mode.
220
219
  sogni-agent --video -m minimax-h3 --duration 10 -w 1344 -h 768 "<three-field H3 prompt>"
221
220
  sogni-agent --video -m minimax-h3-i2v --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
222
221
  sogni-agent --video -m minimax-h3-i2v --ref-end last.png --duration 8 "<L2V preamble plus three-field H3 prompt>"
@@ -234,6 +233,7 @@ sogni-agent --video -m minimax-h3-r2v-turbo -w 960 -h 544 --ref identity.png -c
234
233
  sogni-agent --video -m minimax-h3-fasth3-turbo --duration 8 "<three-field H3 prompt>"
235
234
  sogni-agent --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
236
235
  sogni-agent --video -m minimax-h3-fasth3-flf2v-turbo --ref first.png --ref-end last.png --duration 8 "<FLF2V preamble plus three-field H3 prompt>"
236
+ sogni-agent --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --keyframe turn.png@3.5 --duration 8 "<I2V prompt that reaches turn.png at 00:03.500>" # up to 8 keyframes on H3 i2v/flf2v, Sound to Video, Ref2VA
237
237
  sogni-agent --video -m minimax-h3-fasth3-turbo-2stage --duration 8 "<three-field H3 prompt>" # 2K by default; --target-resolution 1080 or 720 for 1080p or 720p; minimax-h3-r2v-2stage for references
238
238
 
239
239
  # HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
@@ -289,7 +289,7 @@ sogni-agent doctor --json
289
289
  | `-n <num>` | Output count (`{a\|b\|c}` prompt variations cycle); capped at 16, raise with `SOGNI_MAX_COUNT` | 1 |
290
290
  | `--video`, `--music` | Generate video / music instead of image | - |
291
291
  | `--workflow <t>` | Force `t2v\|i2v\|r2v\|s2v\|ia2v\|a2v\|v2v\|animate-move\|animate-replace` | inferred |
292
- | `--ref`, `-c`, `--ref-end`, `--ref-audio`, `--ref-video`, `--mask` | Frame / loose image / audio / video / mask references; audio/video repeat for H3 r2v | - |
292
+ | `--ref`, `-c`, `--ref-end`, `--ref-audio`, `--ref-video`, `--mask` | Frame / loose image / audio / video / mask references; audio/video repeat for H3 r2v; `--keyframe <image>@<sec>` pins an H3 keyframe (repeat, up to 8) | - |
293
293
  | `--seedance-task-type reference\|edit\|extend` | Explicit Seedance 2.5 loose-reference operation; v2v defaults to edit | - |
294
294
  | `--wan3-ratio`, `--smart-duration` | Wan 3 adaptive/fixed ratio and provider-selected 2–30s duration | adaptive / fixed |
295
295
  | `--reference-file-url`, `--reference-link-url` | One public Wan 3 document or webpage context URL (mutually exclusive) | - |
@@ -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. 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. 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.
373
373
 
374
374
  For an H3 prompt-only request, the general prompt-authoring rule above requires returning only the applicable ordered-field contract. The fields themselves are the directly runnable deliverable; do not wrap them in commentary.
375
375
 
@@ -475,7 +475,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
475
475
  - **Auth errors:** check `SOGNI_API_KEY` or `~/.config/sogni/credentials` (key from https://dashboard.sogni.ai, account menu).
476
476
  - **Error 4061 / too many app IDs:** the CLI leases stable IDs from the persistent pool in `~/.config/sogni/app-ids/`. Do not delete that directory between runs. For ephemeral/container homes, set the same `SOGNI_APP_ID` on every session. An existing block may require waiting before retrying after upgrading.
477
477
  - **Kicked mid-render / SWITCH_CONNECTION 4015:** two processes shared one app ID. The slot pool prevents this for concurrent CLI runs; if a long-lived daemon also uses this account, give it its own pinned `SOGNI_APP_ID`.
478
- - **Video size errors:** sizes are model-specific (WAN 2.2 ÷16 min 480 max 1536; Wan 3 uses its exact 480P/720P/1080P ratio buckets; LTX ÷64, long side ≤2048). The CLI auto-adjusts for local refs; `--strict-size` makes it fail with a suggested size instead. Details in [`references/models.md`](./references/models.md).
478
+ - **Video size errors:** sizes are model-specific (WAN 2.2 ÷16, sides 480–1536, at most 1,048,576 pixels, so no 1080p; Wan 3 uses its exact 480P/720P/1080P ratio buckets; LTX ÷64, long side ≤2048). The CLI auto-adjusts for local refs; `--strict-size` makes it fail with a suggested size instead. Details in [`references/models.md`](./references/models.md).
479
479
  - **Timeouts / no workers:** a timeout never cancels; the project finishes on Sogni and `sogni-agent --result <id>` fetches it (`details.resultCommands`). For long videos use `--detach`, not a large `-t`. `--status <id>` says whether it waits on the plan limit or on workers; for network status see https://sogni.ai.
480
480
 
481
481
  ## Reference Index (read before acting)
@@ -484,7 +484,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
484
484
  |-----------|------------------------|
485
485
  | [`references/interactive-worlds.md`](./references/interactive-worlds.md) | Building an explorable world end to end: the nine-model stack in order, the prepare/render/verify/retain loop, and the measured failure modes of each stage — segmentation prompts, matte thresholds, 3D input resolution, single-keyframe clips and reverse playback, dialogue loudness spread, voice-clone transcripts, on-camera lip-sync |
486
486
  | [`references/image-prompting.md`](./references/image-prompting.md) | Writing prompt-only image deliverables for SD/SDXL/Pony, FLUX.1 Schnell, Chroma, Krea 2, Qwen, Z-Image, GPT Image, or model-specific edit operations |
487
- | [`references/video-prompting.md`](./references/video-prompting.md) | Writing LTX video prompts; writing MiniMax H3 official ordered-field prompts, mode preambles, shot notation, speaker IDs, and dialogue tags; high-res/4K routing; orientation/aspect mapping; camera language |
487
+ | [`references/video-prompting.md`](./references/video-prompting.md) | Writing LTX video prompts; writing MiniMax H3 official ordered-field prompts, mode preambles, shot notation, speaker IDs, dialogue tags, and intermediate keyframes; high-res/4K routing; orientation/aspect mapping; camera language |
488
488
  | [`references/private-mature-video.md`](./references/private-mature-video.md) | Mature-theme video model, LoRA, frame modes, and prompt tokens |
489
489
  | [`references/video-editing.md`](./references/video-editing.md) | Animate between images, continue/bridge videos, 360 turnarounds, concat, audio remix/layering, v2v ControlNet |
490
490
  | [`references/loop-maker.md`](./references/loop-maker.md) | One-click image-folder loops with visual deduplication, direct LTX first/last-frame clips, music, and verification |
@@ -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.53.0",
5
+ "version": "3.54.0",
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",
@@ -80,6 +80,7 @@ export const TOOLS = [
80
80
  'MiniMax H3 FastH3 audio-to-video (model minimax-h3-fasth3-ia2v-turbo with ref + ref_audio, ' +
81
81
  'minimax-h3-fasth3-flfa2v-turbo with ref + ref_end + ref_audio, minimax-h3-fasth3-a2v-turbo with ref_audio only) ' +
82
82
  'drives the clip with the uploaded audio and keeps it as the soundtrack; no LoRAs. ' +
83
+ 'MiniMax H3 i2v, first/last-frame, FastH3 audio-to-video and r2v also take keyframes: extra images pinned at chosen times inside the clip. ' +
83
84
  'ref_audio = soundtrack/lip-sync audio, ref_video = motion reference. ' +
84
85
  'Rendering takes minutes; prefer output_path (absolute .mp4). ' + CHAT_ATTACHMENT_NOTE,
85
86
  inputSchema: {
@@ -97,6 +98,25 @@ export const TOOLS = [
97
98
  reference_images: { type: 'array', items: { type: 'string' }, description: 'Loose image reference paths/URLs (-c); repeatable for MiniMax H3 r2v' },
98
99
  reference_audios: { type: 'array', items: { type: 'string' }, description: 'Additional reference audio paths/URLs; MiniMax H3 r2v supports up to 3 total' },
99
100
  reference_videos: { type: 'array', items: { type: 'string' }, description: 'Additional reference video paths/URLs; MiniMax H3 r2v supports up to 3 total' },
101
+ keyframes: {
102
+ type: 'array',
103
+ maxItems: 8,
104
+ description:
105
+ 'MiniMax H3 only. Pin up to 8 images at exact moments inside the video, in addition to the first/last frame (ref/ref_end). ' +
106
+ 'Each item is {image, at_seconds}: image is an absolute path or URL; at_seconds is when the video should land on that image. ' +
107
+ 'Keyframes must fall strictly inside the clip (not on the first or last frame) and at distinct times. ' +
108
+ 'Describe what each keyframe shows in the prompt at its time; a keyframe with a new angle, place or light starts a new shot. ' +
109
+ 'Two keyframes are included in the price; each additional keyframe adds a little.',
110
+ items: {
111
+ type: 'object',
112
+ properties: {
113
+ image: str('Absolute path or URL of the keyframe image'),
114
+ at_seconds: num('When the video lands on this image, in seconds from the start'),
115
+ },
116
+ required: ['image', 'at_seconds'],
117
+ additionalProperties: false,
118
+ },
119
+ },
100
120
  generate_audio: { type: 'boolean', description: 'For MiniMax H3, keep generated audio (true) or strip it from the returned video (false)' },
101
121
  persona: str('Saved persona name (reference frame)'),
102
122
  target_resolution: num('Short-side target in px, preserves aspect'),
@@ -118,6 +138,14 @@ export const TOOLS = [
118
138
  push(args, '--ref-video', input.ref_video);
119
139
  for (const refVideo of input.reference_videos ?? []) push(args, '--ref-video', refVideo);
120
140
  for (const refImage of input.reference_images ?? []) push(args, '-c', refImage);
141
+ for (const keyframe of input.keyframes ?? []) {
142
+ const image = keyframe?.image;
143
+ const atSeconds = keyframe?.at_seconds;
144
+ if (typeof image !== 'string' || !image || typeof atSeconds !== 'number' || !Number.isFinite(atSeconds)) {
145
+ throw new Error('keyframes items need image (a path or URL) and at_seconds (a number of seconds).');
146
+ }
147
+ args.push('--keyframe', `${image}@${atSeconds}`);
148
+ }
121
149
  if (input.generate_audio === true) args.push('--generate-audio');
122
150
  if (input.generate_audio === false) args.push('--no-generate-audio');
123
151
  push(args, '--persona', input.persona);