@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.
@@ -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
@@ -0,0 +1,40 @@
1
+ export const SAM3_MODEL_ID = 'sam3_image_segment_bf16';
2
+
3
+ export function segmentPoint(value, label) {
4
+ const parts = value.split(',');
5
+ const coordinates = parts.map(Number);
6
+ if (parts.length !== 2 || parts.some(part => !part.trim()) || coordinates.some(n => !Number.isFinite(n) || n < 0 || n > 1)) {
7
+ throw new Error('Selection points use normalized x,y coordinates between 0 and 1.');
8
+ }
9
+ return { x: coordinates[0], y: coordinates[1], label };
10
+ }
11
+
12
+ export function segmentBox(value) {
13
+ const parts = value.split(','); const [x0, y0, x1, y1] = parts.map(Number);
14
+ if (parts.length !== 4 || parts.some(part => !part.trim()) || [x0, y0, x1, y1].some(n => !Number.isFinite(n) || n < 0 || n > 1) || x0 >= x1 || y0 >= y1) {
15
+ throw new Error('Selection boxes use normalized x0,y0,x1,y1 coordinates, with x0 < x1 and y0 < y1.');
16
+ }
17
+ return { x0, y0, x1, y1 };
18
+ }
19
+
20
+ export function validateSegmentationPrompts(points, text, boxes = []) {
21
+ const label = text?.trim();
22
+ if (points.length > 32 || boxes.length > 16 || (label?.length ?? 0) > 240 || (!points.some(point => point.label === 'positive') && !label && !boxes.length)) {
23
+ throw new Error('Supply a positive point, box or object description; use at most 32 points, 16 boxes and 240 text characters.');
24
+ }
25
+ if (label && points.length) throw new Error('Text and point prompts cannot be combined; use text with optional boxes, or points with at most one box.');
26
+ if (points.length && boxes.length > 1) throw new Error('Point prompts support at most one box.');
27
+ }
28
+
29
+ export function segmentationConfig(bytes, dimensions, points, text, tokenType = 'spark', boxes = []) {
30
+ if (!dimensions || !Number.isSafeInteger(dimensions.width) || !Number.isSafeInteger(dimensions.height)
31
+ || dimensions.width < 256 || dimensions.height < 256 || dimensions.width > 2560 || dimensions.height > 2560
32
+ || bytes.length > 24 * 1024 * 1024) throw new Error('Choose an original still under 24 MB, with each edge between 256 and 2560 pixels.');
33
+ validateSegmentationPrompts(points, text, boxes);
34
+ return {
35
+ modelId: SAM3_MODEL_ID, positivePrompt: 'Select the indicated object.', negativePrompt: '',
36
+ startingImage: bytes, sam3Prompt: { ...(points.length ? { points } : {}), ...(boxes.length ? { boxes } : {}), ...(text?.trim() ? { text: text.trim() } : {}), threshold: 0.5, multimask: points.length > 0 },
37
+ ...dimensions, sizePreset: 'custom', numberOfMedia: 1, numberOfPreviews: 0, steps: 1, guidance: 1,
38
+ outputFormat: 'png', disableNSFWFilter: false, tokenType, waitForCompletion: false,
39
+ };
40
+ }
@@ -22,6 +22,7 @@ const referenceFiles = [
22
22
  'krea2-loras.md',
23
23
  'loop-maker.md',
24
24
  'models.md',
25
+ 'object-selection.md',
25
26
  'personas-memory.md',
26
27
  'private-mature-video.md',
27
28
  'seamless-tiling.md',
@@ -3,7 +3,7 @@
3
3
  "private": true,
4
4
  "type": "module",
5
5
  "dependencies": {
6
- "@sogni-ai/sogni-intelligence-client": "3.29.2",
6
+ "@sogni-ai/sogni-intelligence-client": "3.33.0",
7
7
  "execa": "^10.0.1",
8
8
  "json5": "^2.2.3",
9
9
  "sharp": "0.35.4"
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  name: sogni-creative-agent
3
- description: Generate and edit images, video, and music using Sogni AI's decentralized GPU network. Use for image generation or editing, first-frame/last-frame animation, video generation, music and soundtrack creation, personas, style transfer, and other Sogni Creative Agent workflows.
3
+ description: Generate and edit images, video, and music using Sogni AI's decentralized GPU network. Use for image generation or editing, SAM 3 object masks, first-frame/last-frame animation, video generation, music and soundtrack creation, personas, style transfer, and other Sogni Creative Agent workflows.
4
4
  ---
5
5
 
6
6
  # Sogni Creative Agent