@sogni-ai/sogni-creative-agent-skill 3.43.0 → 3.47.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, 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.43.0"
6
+ version: "3.47.0"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -20,6 +20,9 @@ metadata:
20
20
 
21
21
  Generate images, video, and music through Sogni AI's decentralized GPU network.
22
22
 
23
+ For SAM 3 object masks, read [references/object-selection.md](references/object-selection.md).
24
+ Use `--segment` with an original still and normalized points or an object description.
25
+
23
26
  Invoke `sogni-agent-hermes` for every command in this skill. Fall back to
24
27
  `sogni-agent` only when the Hermes launcher is not on `PATH`. The two commands
25
28
  have identical flags and output; the Hermes launcher adds host attribution.
@@ -5,6 +5,24 @@ answering "which model should I use for X". For everyday generation prefer
5
5
  `-Q fast|hq|pro` and automatic workflow routing instead of memorizing IDs.
6
6
  `sogni-agent --help` is the canonical flag reference.
7
7
 
8
+ ## Contents
9
+
10
+ - Live model discovery
11
+ - Quality presets (images)
12
+ - Image models
13
+ - Utility and 3D models
14
+ - Music models
15
+ - Video models — current selectors
16
+ - Seedance 2.5
17
+ - HappyHorse 1.1 models
18
+ - Alibaba Wan 3
19
+ - Wan 3.0 Enhanced
20
+ - MiniMax H3 models
21
+ - LTX-2 / LTX-2.3 models
22
+ - Recommended model selectors by need
23
+ - Video sizing & aspect ratios
24
+ - GPT Image 2.5 controls (as of 2026-09)
25
+
8
26
  ## Live model discovery
9
27
 
10
28
  The static tables below are recommendations, not the complete changing
@@ -52,6 +70,8 @@ dimensions. "high quality" / "best quality" / "pro" → `-Q pro`; quick drafts
52
70
  |-------|-------|----------|
53
71
  | `z_image_turbo_bf16` | Fast (~5-10s) | General purpose, default |
54
72
  | `gpt-image-2` | Variable | OpenAI GPT Image 2 text-to-image and edit, strong prompt and text rendering |
73
+ | `gpt-image-2.5-sunburst` | Variable | GPT Image 2.5 Sunburst; explicit selection, edits, masks and transparency |
74
+ | `gpt-image-2.5-flare` | Variable | GPT Image 2.5 Flare; explicit selection, edits, masks and transparency |
55
75
  | `flux1-schnell-fp8` | Very fast | Quick iterations |
56
76
  | `qwen_image_2512_fp8` | Medium (~30s) | High quality |
57
77
  | `krea2_turbo_fp8_scaled` | Fast | Krea 2 Turbo text-to-image, fast high-quality generations with strong prompt adherence |
@@ -675,11 +695,18 @@ video-conditioned R2V requires a worker above 40 GB.
675
695
  is fixed at 8 steps with Euler/simple; Turbo is fixed at 4 steps with the
676
696
  `simple` scheduler; only Turbo's sampler has the three
677
697
  explicit variants above.
678
- - **768p-class open-weights release.** Do not offer or claim 2K; MiniMax's 2K
679
- stage is hosted-only and not part of the open release.
698
+ - **2K output is an opt-in delivery switch.** `--2k` (`--output-scale 2`) keeps
699
+ the requested canvas, length and audio and delivers the clip at twice its
700
+ width and height (1344×768 → 2688×1536; Ref2VA Turbo 960×544 → 1920×1088)
701
+ through a learned latent enlargement plus a short refinement on the worker.
702
+ Every H3 mode and tier accepts it; it adds 10 Spark per second at
703
+ 544/768p-class sizes (6 at 480p) and needs 2K-capable workers, which the
704
+ server confirms before charging. This is Sogni's own 2K path; MiniMax's
705
+ hosted 2K stage is still not part of the open release.
680
706
 
681
707
  ```bash
682
708
  sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<three-field H3 prompt>"
709
+ sogni-agent -q --video -m minimax-h3-fasth3-turbo --2k --duration 8 -o ./video-2k.mp4 "<three-field H3 prompt>"
683
710
  sogni-agent -q --video -m minimax-h3-i2v --ref first.png --duration 8 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
684
711
  sogni-agent -q --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
685
712
  sogni-agent -q --video -m minimax-h3-r2v --ref identity.png -c wardrobe.png --ref-video motion.mp4 --ref-audio voice.m4a -o ./video.mp4 "<six-field Ref2VA prompt>"
@@ -934,3 +961,23 @@ model recommendations.
934
961
  - Natural-language aspect requests like "portrait", "square", "16:9", or "9:16" are inferred when width/height aren't explicitly set. Combined requests like "720p 9:16" keep the requested short side while applying the requested shape.
935
962
  - For i2v (and any workflow using `--ref` / `--ref-end`), the client wrapper resizes the reference image with strict aspect-fit (`fit: inside`) and uses the *resized* dimensions as the final video size. Because that resize uses rounding, a "valid" requested size can still produce an invalid final size (example: `1024×1536` requested, but the ref becomes `1024×1535`). The CLI detects this for local refs and auto-adjusts to a nearby safe size.
936
963
  - Pass `--strict-size` to fail instead — the CLI prints a suggested size.
964
+
965
+ ## GPT Image 2.5 controls (as of 2026-09)
966
+
967
+ Use `-m gpt-image-2.5-sunburst` or `-m gpt-image-2.5-flare` explicitly.
968
+ `--image-quality low|medium|high|xhigh|max` preserves the exact quality;
969
+ default is medium. Sogni never uses provider-chosen (auto) quality.
970
+ `--image-background transparent` requires PNG or WebP. JPEG/WebP accept
971
+ `--image-output-compression 0..100`; omit compression for PNG.
972
+ For editing, repeat `--context` in source order (up to 16 total). `--image-mask`
973
+ accepts an original PNG alpha mask of the first context image; it must match
974
+ that image's dimensions (the image itself may be JPEG, PNG or WebP) and be
975
+ smaller than 50 MB. Transparent
976
+ mask regions identify edits; the model can also change pixels outside them.
977
+ The image mask flag is separate from video `--mask` semantics.
978
+
979
+ Dimensions default to 1024×1024: multiples of 16, at most 3840 per edge,
980
+ 3:1 maximum aspect ratio, 655,360–8,294,400 pixels. Above 3,686,400 pixels is
981
+ experimental. Transparency is integrated but clean cutout edges failed the
982
+ initial Flare canaries; inspect native output against a contrasting background.
983
+ These source changes still require the coordinated package release and server rollout.
@@ -0,0 +1,41 @@
1
+ # SAM 3 object selection
2
+
3
+ Use SAM 3 when a task needs an object mask from an existing still, for example
4
+ selecting a door before directing an edit. Coordinates refer to the original
5
+ image, normalized from 0 to 1, with the origin at the top left.
6
+ Use an upright original under 24 MB with each edge between 256 and 2560 pixels.
7
+
8
+ ```bash
9
+ sogni-agent --segment original.png --segment-point 0.45,0.6 --segment-exclude 0.1,0.1 -o mask.png
10
+ sogni-agent --segment original.png --segment-text "the red backpack" --segment-box 0.2,0.2,0.8,0.9 -o mask.png
11
+ ```
12
+
13
+ These commands submit one paid SAM 3 project using the configured account.
14
+ Include points identify the object; exclude points remove unwanted areas.
15
+ The result is one lossless binary PNG at the original dimensions. White selects
16
+ the object. Inspect the full-size mask before paying for a downstream edit.
17
+
18
+ The command selects `sam3_image_segment_bf16`, uses one inference step and no
19
+ previews, and keeps the content filter enabled. Do not supply output dimensions,
20
+ generation prompts, or another generation mode. It requires client 5.31.0 or later;
21
+ the package pins the compatible runtime. `--segment-box` accepts normalized
22
+ left,top,right,bottom bounds. A point may select only a flame, window, or other
23
+ subpart. To select a complete object, refine with a short text label and a box,
24
+ then inspect the actual SAM mask. Never use the box itself as a substitute mask.
25
+ Text and points cannot be combined. Limits: 240 text characters, 32 points,
26
+ 16 boxes; point prompts accept at most one box.
27
+
28
+ Keep the original still as the edit reference. When the edit model supports only
29
+ context images, a binary mask is a visual selection guide, not a strict inpainting
30
+ constraint. Review what changed outside the selection as well as inside it.
31
+ A registered character needs its saved reference images; an object label or
32
+ character name cannot preserve identity.
33
+
34
+ For a branching world, create a destination **still** from the original and
35
+ selection, then animate between the original parent and destination stills at
36
+ matching aspect ratios. Every subsequent node starts from that generated still.
37
+ Never promote an extracted video frame or a screenshot into the canonical scene.
38
+
39
+ The CLI capability is separate from hosted chat tool discovery. Do not invent a
40
+ hosted `segment_image` tool: inspect the connected tool catalog before dispatching
41
+ through chat. Use the CLI or SDK when segmentation is absent there.
@@ -123,6 +123,13 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
123
123
  off-grid explicit `--frames` is a hard error.
124
124
  - **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
125
125
  `-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
126
+ - **2K output is a delivery switch, not a canvas.** `--2k` (`--output-scale 2`)
127
+ keeps the same canvas, length and audio and delivers the clip at twice its
128
+ width and height (1344×768 → 2688×1536); every H3 mode and tier accepts it.
129
+ Do not enlarge `-w`/`-h` to reach 2K — the pixel budget still applies to the
130
+ requested canvas. It costs +10 Spark per second at 544/768p-class sizes
131
+ (+6 at 480p) and needs the 2K-capable worker fleet; use it only when the
132
+ user asks for 2K, 1440p-class or extra-sharp output.
126
133
  - **20 steps for Standard; 8 for Balanced; 4 for both Turbo engines; guidance/CFG 1.** Do not
127
134
  send steps, guidance, scheduler, or a **negative prompt**. Standard and
128
135
  Balanced accept no sampler override; Balanced is fixed to Euler/simple.
@@ -263,6 +270,40 @@ do and never deviate from:
263
270
  `detailed_description` targets 350–500. Long is fine when every sentence is a
264
271
  visible or audible event.
265
272
 
273
+ ### Beats and voices (2026-09-11 review lessons)
274
+
275
+ Tested on a branching horror route the same day, on top of the rules above:
276
+
277
+ - **One continuous shot is still the default.** In most cases it is preferred
278
+ and the shot count stays as low as the content allows. What made the slow
279
+ takes boring was emptiness, not the lack of cuts: something new should
280
+ happen every 1.5–2.5 seconds inside the shot (an action, a reaction, a
281
+ reveal, a line), never walking or waiting.
282
+ - **Beats and multi-shot are tools for when the context calls for them.** A
283
+ chase, a reveal that needs a new viewpoint, an exchange of lines, a jump in
284
+ space or time: then cut (`[Shot 2] At 00:01.500, the camera cuts to …`),
285
+ keep continuous motion inside each shot, and let the final shot cut to the
286
+ Picture 2 composition and hold with a live action, which lands cleanly where
287
+ a long interpolation would crossfade. Never cut a simple movement into
288
+ pieces, and if both pictures share one camera position the camera does not
289
+ move at all (a curtain dropping needs a static shot, not a tracking shot
290
+ away).
291
+ - **Write physical acts as acts.** A fall is the rail giving, the wall of
292
+ windows streaking upward, the ground rushing in. A bite is the jaws snapping
293
+ shut over the picture. A shove is two palms filling the frame. "His lips
294
+ part as he bends closer" produced no bite; "You brought it back" followed by
295
+ a cut to an aftermath still produced no fall.
296
+ - **Describe the voice, not just the mood.** At a speaker's first line give
297
+ accent, pitch, timbre and speaking rate: `The woman (S1), speaking in a
298
+ plain American accent with a light, mid-pitched voice at a quick, breathless
299
+ pace, says: <d>[English] …</d>`. "A bright, breathless voice" alone drifted
300
+ to a British accent between takes.
301
+ - **Dialogue after the action that motivates it.** She says "That's my dad"
302
+ after she has picked the photograph up, in the shot where she holds it.
303
+ - **Whose hands.** In first-person coverage say whose hands are in frame
304
+ ("both his palms fill the frame as he shoves"); "hands seizing the front of
305
+ the cardigan" was rendered as the attacker's own point of view.
306
+
266
307
  ### Worked example — first frame → last frame
267
308
 
268
309
  ```text
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.43.0",
3
+ "version": "3.47.0",
4
4
  "description": "Sogni Creative Agent: image, 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.43.0",
3
+ "version": "3.47.0",
4
4
  "description": "Create images, generative video, music, and polished image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",
package/CHANGELOG.md CHANGED
@@ -1,3 +1,49 @@
1
+ ## [3.47.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.46.0...v3.47.0) (2026-09-12)
2
+
3
+ ### Features
4
+
5
+ * Add `--output-scale 2` (alias `--2k`) for MiniMax H3 2K delivery: the clip renders on the requested canvas and comes back at twice its width and height (1344x768 becomes 2688x1536) with the same length and audio, for +10 Spark per second at 544/768p-class sizes and +6 at 480p. Other models refuse the flag by name. While Sogni holds 2K behind its "available soon" message, the CLI reports that refusal as `MODEL_UNAVAILABLE` with a hint to retry at the standard size.
6
+
7
+ ### Bug Fixes
8
+
9
+ * Align the public runtime with Sogni Client 5.46.0 and Intelligence Client 3.33.0, moving the exact pin, `skill-package.json` and the sogni-client override together. 5.46.0 stops the SDK cancelling a project after its render moves to another worker, which killed the live retry.
10
+ * The bundled creative-agent runtime is regenerated from 1.65.0; its public contracts are unchanged.
11
+
12
+ ## [3.46.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.43.0...v3.46.0) (2026-09-11)
13
+
14
+ 3.44.0 and 3.45.0 were prepared but never published to npm; this release carries their changes too, so 3.43.0 is the last version npm actually shipped.
15
+
16
+ ### Features
17
+
18
+ * Add `--segment` with `--segment-point`, `--segment-exclude`, `--segment-box` and `--segment-text`, returning a SAM 3 mask for an original still. Text and point prompts never combine, point prompts take at most one box, and the limits are 32 points, 16 boxes and 240 text characters.
19
+
20
+ ### Bug Fixes
21
+
22
+ * Align the public runtime with Intelligence Client 3.31.1 and Sogni Client 5.44.1, moving the exact pin, `skill-package.json` and the sogni-client override together.
23
+ * The bundled creative-agent runtime (1.63.1) adds `detailPreference`, `processingSpeed` and `seed` to `upscale_video`; none of them changes the price.
24
+
25
+ ## [3.45.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.43.0...v3.45.0) (2026-09-11)
26
+
27
+ 3.44.0 was prepared but never published to npm; this release carries its changes too.
28
+
29
+ ### Features
30
+
31
+ * Add GPT Image 2.5 Sunburst and Flare (`-m gpt-image-2.5-sunburst`, `-m gpt-image-2.5-flare`) for text-to-image and edits with up to 16 ordered `--context` references.
32
+ * Add `--image-quality low|medium|high` for every GPT Image model, plus `xhigh|max` on 2.5. Auto quality is rejected: Sogni never lets the provider choose the quality.
33
+ * Add `--image-background` (transparent on 2.5, PNG or WebP), `--image-output-compression 0-100` (JPEG or WebP) and `--image-mask`, a PNG alpha mask of the first `--context` image for edits.
34
+ * GPT Image defaults to 1024x1024 and a 10-minute timeout, and rejects sizes outside the provider's bounds before submitting.
35
+ * The MiniMax H3 reference keeps one continuous shot as the default, with beats and multi-shot sequences for when the context calls for them.
36
+
37
+ ### Bug Fixes
38
+
39
+ * Align the public runtime with Intelligence Client 3.30.1 and Sogni Client 5.42.0.
40
+
41
+ ## [3.44.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.43.0...v3.44.0) (2026-09-11)
42
+
43
+ ### Features
44
+
45
+ * Add the beats-and-voices lessons to the MiniMax H3 reference: pace dramatic requests by beats with a final shot that may cut to the closing frame's composition, keep continuous motion for continuous action, write a fall or a bite as the physical act, describe each voice with accent, pitch, timbre and speaking rate, place dialogue after the action that motivates it, and say whose hands are in a first-person frame.
46
+
1
47
  ## [3.43.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.42.0...v3.43.0) (2026-09-10)
2
48
 
3
49
  ### Features
package/README.md CHANGED
@@ -27,6 +27,7 @@ It ships four ways:
27
27
  With this skill, an agent can:
28
28
 
29
29
  - generate images from prompts and edit/restyle existing images
30
+ - select an object in an original image and return its SAM 3 mask (`--segment`; see the [object selection guide](references/object-selection.md))
30
31
  - create videos from text, images, first/last frames, audio, or source video (LTX-2.5), with LTX-2.3 retained for voice ID, transition, and 10Eros workflows
31
32
  - turn an image folder into a visually deduplicated, music-backed seamless loop with one plugin skill invocation
32
33
  - generate instrumental music or full songs with lyrics
@@ -495,6 +496,7 @@ sogni-agent --video -m minimax-h3-flf2v-turbo --ref first.png --ref-end last.png
495
496
  sogni-agent --video -m minimax-h3-fasth3-turbo --duration 8 "<three-field H3 prompt>"
496
497
  sogni-agent --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
497
498
  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>"
499
+ sogni-agent --video -m minimax-h3-fasth3-turbo --2k --duration 8 "<three-field H3 prompt>" # 2K: delivered at 2x the canvas
498
500
 
499
501
  # Image-to-video (i2v; defaults to wan_v2.2-14b-fp8_i2v_lightx2v)
500
502
  sogni-agent --video --ref cat.jpg "gentle camera pan"
@@ -610,6 +612,7 @@ Run `sogni-agent --help` for the full CLI. Below are the options and tables most
610
612
  | `--lyrics`, `--bpm`, `--keyscale`, `--timesig` | Music generation controls |
611
613
  | `--ref`, `-c`, `--ref-audio`, `--ref-video` | Frame/loose image/audio/video references; audio/video repeat for H3 r2v and Seedance loose refs |
612
614
  | `--target-resolution <px>` | Target the short side, preserving aspect ratio |
615
+ | `--output-scale <1\|2>`, `--2k` | MiniMax H3 only: deliver the clip at twice the requested canvas (2K); +10 Spark/s at 544/768p class, +6 at 480p |
613
616
  | `--workflow <type>` | Force `t2v`, `i2v`, `r2v`, `s2v`, `ia2v`, `a2v`, `v2v`, or animate workflows |
614
617
  | `--wan3-ratio`, `--smart-duration`, `--reference-file-url`, `--reference-link-url`, `--watermark` | Wan 3 adaptive/fixed ratio, smart timing, document/web context, and watermark controls |
615
618
  | `--expand-prompt`, `--no-expand-prompt` | Enable provider prompt expansion for direct Wan 3 video, or preserve the exact submitted prompt |
@@ -670,6 +673,7 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
670
673
  | Image editing | `qwen_image_edit_2511_fp8_lightning` |
671
674
  | Deterministic image upscaling through 16K | `rtx_vsr_pro` via `--upscale` |
672
675
  | Promptless video upscaling to 1080p/1440p | `flashvsr_v1.1_tiny_long_bf16` via `--upscale-video` |
676
+ | Object masks from points, boxes, or a description | `sam3_image_segment_bf16` via `--segment` |
673
677
  | Dark Beast Krea 2 images | `dark_beast_krea2_fp8` |
674
678
  | Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
675
679
  | Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
package/SKILL.md CHANGED
@@ -1,8 +1,8 @@
1
1
  ---
2
2
  name: sogni-creative-agent-skill
3
- description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports 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/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\"."
3
+ description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports 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/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.43.0"
5
+ version: "3.47.0"
6
6
  homepage: https://sogni.ai
7
7
  openclaw:
8
8
  emoji: "🎨"
@@ -234,6 +234,7 @@ sogni-agent --video -m minimax-h3-r2v-turbo -w 960 -h 544 --ref identity.png -c
234
234
  sogni-agent --video -m minimax-h3-fasth3-turbo --duration 8 "<three-field H3 prompt>"
235
235
  sogni-agent --video -m minimax-h3-fasth3-i2v-turbo --ref first.png --duration 8 "<I2V preamble plus three-field H3 prompt>"
236
236
  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>"
237
+ sogni-agent --video -m minimax-h3-fasth3-turbo --2k --duration 8 "<three-field H3 prompt>" # 2K: any H3 tier, delivered at 2x the canvas, +10 Spark/s
237
238
 
238
239
  # HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
239
240
  # i2v from one first-frame image (--ref); r2v from 1-9 reference images (-c).
@@ -323,8 +324,8 @@ sogni-agent doctor --json
323
324
 
324
325
  ### Segmentation and 3D reconstruction
325
326
 
326
- - To isolate an object in an image — a mask, or the subject cut out on transparency — use `sam3_image_segment_bf16` with a `sam3Prompt`. It is promptless in the ordinary sense: the selection comes from `text`, click `points`, or `boxes`, never from `positivePrompt`. Never route a "remove the background" or "select the X" request through `edit_image` or `refine_result`, which regenerate pixels instead of selecting them.
327
- - Set `applyMask: true` when the result feeds a composite; leave it off when you need the black-and-white mask itself. If a text prompt matches more instances than intended, the result's `maskSelections` reports each one's score and bounds — re-run with `maxInstances: 1` or a box around the intended one rather than accepting a merged shape.
327
+ - To isolate an object in an image — a mask, or the subject cut out on transparency — use `sam3_image_segment_bf16` with a `sam3Prompt`. In direct CLI mode that is `--segment <original> --segment-point x,y` (repeat; `--segment-exclude` refines) or `--segment-text "<object>"` with optional `--segment-box x0,y0,x1,y1`, returning one binary PNG mask — read [`references/object-selection.md`](./references/object-selection.md) first. It is promptless in the ordinary sense: the selection comes from `text`, click `points`, or `boxes`, never from `positivePrompt`. Never route a "remove the background" or "select the X" request through `edit_image` or `refine_result`, which regenerate pixels instead of selecting them.
328
+ - SDK callers: set `applyMask: true` when the result feeds a composite; leave it off when you need the black-and-white mask itself. If a text prompt matches more instances than intended, the result's `maskSelections` reports each one's score and bounds — re-run with `maxInstances: 1` or a box around the intended one rather than accepting a merged shape.
328
329
  - To turn one image into a textured 3D model, use `pixal3d_int8_i23d` with a `startingImage` and **no prompt** — the default graph isolates the subject on its own. Only the `templateVariant: 'i23d'` variant takes a `positivePrompt`, and there the prompt names which object to pull out of a busy scene. The artifact is a binary GLB, not a picture; never display or post-process it as an image. Set `meshTargetFaces` well below the 700000 default for anything headed into a real-time engine.
329
330
  - `birefnet_image_background_removal_fp16` (prompt-free background removal) is **not yet routable** — it still needs a Comfy Worker release, so do not offer it. Remove backgrounds with SAM 3 and `applyMask: true` in the meantime.
330
331
  - All are flat-priced per request, so resolution and step count change neither cost nor result. Details and full option ranges in [`references/models.md`](./references/models.md).
@@ -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.43.0",
5
+ "version": "3.47.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",
@@ -2451,12 +2451,15 @@ const PROMPT_CONTRACTS = [
2451
2451
  },
2452
2452
  {
2453
2453
  "contractId": "upscale_video_v1",
2454
- "version": "1.0.0",
2454
+ "version": "1.1.0",
2455
2455
  "toolName": "upscale_video",
2456
- "baseDescription": "upscale_video performs promptless, deterministic FlashVSR super-resolution of exactly one\nuploaded or generated video. Use it when the user asks to upscale, enlarge, sharpen, or increase\nthe resolution of an existing video, or wants a 1080p, 1440p, 2K, or HD copy of it. The output\nkeeps every source frame, the exact frame rate, the full aspect ratio, and the original audio.\n\nDo not invent a prompt and do not route a pure video upscale through video_to_video,\ngenerate_video, extend_video, or replace_video_segment; those tools re-render or edit content.\nUse video_to_video only when the user explicitly names a generative model such as Seedance for\nthe re-render. Do not use upscale_image for videos.\n\nOmit sourceVideoIndex to use the latest generated video, falling back to the most recent upload.\nUse zero-based non-negative indices for generated videos; -1 selects the first uploaded video\nand -2 the second. targetResolution is the output short edge: omit it for 1440p (or 1080p when\nthe source is too small for 1440p), and set 1080 when the user asks for 1080p or Full HD.\nThe output is at most twice the source size, so 1440p needs a source short edge of 720-768px\nand 1080p needs 540-768px. Sources must also be at most about 1344x768 pixels (768x1344 in\nportrait), 1-60 fps, and 100 MB. The server sets the maximum clip length and rejects a source\nthat is too long; never quote a length limit yourself. If the tool reports that the source is too\nlong or outside these limits, relay that error to the user instead of switching to a generative\nvideo tool. It cannot produce 4K or any size above 1440p: when the user asks for one, say so and\noffer 1440p instead of silently delivering less.",
2456
+ "baseDescription": "upscale_video performs promptless, deterministic FlashVSR super-resolution of exactly one\nuploaded or generated video. Use it when the user asks to upscale, enlarge, sharpen, or increase\nthe resolution of an existing video, or wants a 1080p, 1440p, 2K, or HD copy of it. The output\nkeeps every source frame, the exact frame rate, the full aspect ratio, and the original audio.\n\nDo not invent a prompt and do not route a pure video upscale through video_to_video,\ngenerate_video, extend_video, or replace_video_segment; those tools re-render or edit content.\nUse video_to_video only when the user explicitly names a generative model such as Seedance for\nthe re-render. Do not use upscale_image for videos.\n\nOmit sourceVideoIndex to use the latest generated video, falling back to the most recent upload.\nUse zero-based non-negative indices for generated videos; -1 selects the first uploaded video\nand -2 the second. targetResolution is the output short edge: omit it for 1440p (or 1080p when\nthe source is too small for 1440p), and set 1080 when the user asks for 1080p or Full HD.\nThe output is at most twice the source size, so 1440p needs a source short edge of 720-768px\nand 1080p needs 540-768px. Sources must also be at most about 1344x768 pixels (768x1344 in\nportrait), 1-60 fps, and 100 MB. The server sets the maximum clip length and rejects a source\nthat is too long; never quote a length limit yourself. If the tool reports that the source is too\nlong or outside these limits, relay that error to the user instead of switching to a generative\nvideo tool. It cannot produce 4K or any size above 1440p: when the user asks for one, say so and\noffer 1440p instead of silently delivering less.\n\nThe defaults give the most stable result. Set detailPreference to sharper only when the user\nasks for a sharper, crisper, or more detailed upscale, and processingSpeed to faster only when\nthey ask for a quicker one. Leave seed out unless the user gives a seed or asks for a different\nor random variation (-1 is random). None of these options changes the price.",
2457
2457
  "parameterDocs": {
2458
2458
  "sourceVideoIndex": "Omit for the latest generated video, then the most recent upload. Generated videos are zero-based; -1/-2 select uploaded videos.",
2459
- "targetResolution": "Output short edge in pixels: 1440 or 1080. Omit for the default (1440, or 1080 for sources under 720px); set 1080 when the user asks for 1080p or Full HD."
2459
+ "targetResolution": "Output short edge in pixels: 1440 or 1080. Omit for the default (1440, or 1080 for sources under 720px); set 1080 when the user asks for 1080p or Full HD.",
2460
+ "detailPreference": "stable (default) or sharper. Set sharper only when the user asks for a sharper, crisper, or more detailed result.",
2461
+ "processingSpeed": "stable (default) or faster. Set faster only when the user asks for a quicker upscale.",
2462
+ "seed": "Omit for the repeatable default 0. -1 is random; otherwise an integer 0-4294967295 the user gave."
2460
2463
  }
2461
2464
  },
2462
2465
  {
@@ -2496,15 +2499,16 @@ const PROMPT_CONTRACTS = [
2496
2499
  },
2497
2500
  {
2498
2501
  "contractId": "animate_photo_v1",
2499
- "version": "1.0.0",
2502
+ "version": "1.1.0",
2500
2503
  "toolName": "animate_photo",
2501
- "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.",
2504
+ "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 2K OUTPUT: outputScale=2 is available only on the MiniMax H3 selectors. It renders on\nthe normal H3 canvas and delivers the clip at twice its width and height (1344x768 becomes\n2688x1536) with the same length and audio, for +10 Spark per second (+6 at 480p). Set\noutputScale=2 only when the user asks for 2K, 1440p-class or extra-sharp H3 output; keep\ntargetResolution at 768 or omit it, never set 1080p, 1440p or 4K for H3, and leave outputScale\nunset otherwise. Do not set it for any other model.",
2502
2505
  "parameterDocs": {
2503
2506
  "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.",
2504
2507
  "prompts": "Per-clip prompt array. Length MUST equal sourceImageIndices.length when both are set.",
2505
2508
  "duration": "Per-clip duration in seconds. Target 15s when dialogue is involved and total length is given without per-clip spec.",
2506
2509
  "frameRole": "Set to \"end\" for explicit last/end-frame-only fan-out; set to \"both\" for first+last frame transitions using sourceImageIndices + endImageIndices.",
2507
- "endImageIndices": "End frames for adjacent-chain transitions. N images → N-1 clips."
2510
+ "endImageIndices": "End frames for adjacent-chain transitions. N images → N-1 clips.",
2511
+ "outputScale": "MiniMax H3 only: 2 = 2K delivery (twice the width and height, same length and audio, +10 Spark/s, +6 at 480p). Set only when the user asks for 2K, 1440p-class or extra-sharp H3 output; otherwise omit."
2508
2512
  }
2509
2513
  },
2510
2514
  {
@@ -2520,12 +2524,13 @@ const PROMPT_CONTRACTS = [
2520
2524
  },
2521
2525
  {
2522
2526
  "contractId": "generate_video_v1",
2523
- "version": "1.2.0",
2527
+ "version": "1.3.0",
2524
2528
  "toolName": "generate_video",
2525
- "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.",
2529
+ "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 2K OUTPUT: outputScale=2 is available only on the MiniMax H3 selectors. It renders on\nthe normal H3 canvas and delivers the clip at twice its width and height (1344x768 becomes\n2688x1536) with the same length and audio, for +10 Spark per second (+6 at 480p). Set\noutputScale=2 only when the user asks for 2K, 1440p-class or extra-sharp H3 output; keep\ntargetResolution at 768 or omit it, never set 1080p, 1440p or 4K for H3, and leave outputScale\nunset otherwise. Do not set it for any other model.",
2526
2530
  "parameterDocs": {
2527
2531
  "prompt": "Video prompt. Use double quotes ONLY for spoken dialogue. Describe visual text without quotes.",
2528
- "duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling."
2532
+ "duration": "Clip duration in seconds. Plan dialogue word count against the 3.75 words/second ceiling.",
2533
+ "outputScale": "MiniMax H3 only: 2 = 2K delivery (twice the width and height, same length and audio, +10 Spark/s, +6 at 480p). Set only when the user asks for 2K, 1440p-class or extra-sharp H3 output; otherwise omit."
2529
2534
  }
2530
2535
  },
2531
2536
  {
@@ -2655,7 +2660,7 @@ const PROMPT_CONTRACTS = [
2655
2660
  "parameterDocs": {
2656
2661
  "prompt": "The literal words to speak, verbatim. Not a description of the audio.",
2657
2662
  "voiceDescription": "Delivery direction for model=\"voice\"; the speaker to invent for model=\"design\". Never sent with model=\"clone\".",
2658
- "voiceSourceIndex": "Index of the uploaded voice clip to clone (0-based, same numbering as other tools use for audio). Required for model=\"clone\".",
2663
+ "voiceSourceIndex": "Which audio holds the voice to clone, same numbering as other tools use for audio: -1 is the first upload, -2 the second, and 0-based non-negative indices address audio generated earlier. Required for model=\"clone\".",
2659
2664
  "voiceTranscript": "What the uploaded clip says. Optional, but it makes the clone markedly closer to the source."
2660
2665
  }
2661
2666
  },
@@ -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.43.0",
5
+ "version": "3.47.0",
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.43.0",
3
+ "version": "3.47.0",
4
4
  "description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
5
5
  "type": "module",
6
6
  "main": "sogni-agent.mjs",
@@ -95,16 +95,17 @@
95
95
  "update-check.mjs",
96
96
  "node-version-check.mjs",
97
97
  "generated/creative-agent-runtime.mjs",
98
- "sogni-agent.mjs"
98
+ "sogni-agent.mjs",
99
+ "sam-segmentation.mjs"
99
100
  ],
100
101
  "dependencies": {
101
- "@sogni-ai/sogni-intelligence-client": "3.29.2",
102
+ "@sogni-ai/sogni-intelligence-client": "3.33.0",
102
103
  "execa": "^10.0.1",
103
104
  "json5": "^2.2.3",
104
105
  "sharp": "0.35.4"
105
106
  },
106
107
  "overrides": {
107
- "@sogni-ai/sogni-client": "5.40.0"
108
+ "@sogni-ai/sogni-client": "5.46.0"
108
109
  },
109
110
  "openclaw": {
110
111
  "extensions": [
@@ -35,6 +35,7 @@ Honor requests to wait for user input; model-specific policies still apply.
35
35
 
36
36
  - Image: `sogni-agent "a cat on the moon, cinematic"`
37
37
  - Image edit: `sogni-agent -c <path> "make it night, add fireflies"`
38
+ - Object mask: `sogni-agent --segment <path> --segment-point 0.5,0.5 -o mask.png` (SAM 3; see `../../references/object-selection.md`)
38
39
  - Video (image-to-video): `sogni-agent --video --ref <path> "gentle camera pan"` (defaults to `wan_v2.2-14b-fp8_i2v_lightx2v`)
39
40
  - Animate two images (first frame → last frame): `sogni-agent --video --ref <first> --ref-end <last> "smooth morph into the final frame"` (defaults to `ltx25-22b-int8_i2v_distilled` and the standard FLF template; no transition LoRA is attached)
40
41
  - MiniMax H3 reference-to-video: `sogni-agent --video -m minimax-h3-r2v --ref <identity> -c <wardrobe> --ref-video <motion> --ref-audio <voice> "<Picture 1> controls identity; <Picture 2> controls wardrobe; <Video 1> controls motion; <Audio 1> controls voice."`