@sogni-ai/sogni-creative-agent-skill 3.39.0 → 3.40.1

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.39.0"
6
+ version: "3.40.1"
7
7
  author: Sogni AI
8
8
  hermes:
9
9
  category: creative
@@ -53,13 +53,22 @@ a command fails because the CLI is missing.
53
53
  run `sogni-agent-hermes --json --list-media` instead of guessing filenames.
54
54
  - Honor an explicitly requested model. Otherwise use the CLI defaults and
55
55
  consult [models.md](references/models.md) only when model selection matters.
56
+ - Answer capability questions without generating. Stop at text for a writing or
57
+ review request and at a still for a storyboard-image request. Continue through
58
+ a requested images-to-video sequence unless the user requested a review pause.
59
+ - Preserve exact prompts, source choices, counts, and the latest duration. Each
60
+ variation needs all its own lettering, visual, dialogue, and loop requirements.
61
+ Continue from successful stages instead of rendering them again.
56
62
  - Plan multi-step work in Hermes, then invoke the focused CLI command. Use the
57
63
  hosted workflow API only when its durable orchestration or replay behavior is
58
64
  useful.
59
65
  - Parse `--json` output when subsequent steps need exact job IDs, paths, URLs,
60
66
  costs, or error fields.
61
67
  - Return the final local path and the important render settings. On failure,
62
- preserve the CLI's error and actionable recovery hint.
68
+ preserve the CLI's error and actionable recovery hint. Do not automatically
69
+ add `--no-filter` or retry a rejection. Optional filter changes need the user's
70
+ explicit choice and cannot override a model's policy. Honor hosted requests
71
+ to wait for user input.
63
72
 
64
73
  ## Common commands
65
74
 
@@ -28,12 +28,13 @@ LoRAs attach to the resolved H3 model, so name the mode in the same command:
28
28
 
29
29
  Bare `-m minimax-h3` is not enough to validate a LoRA request: it resolves by
30
30
  frame arguments, and availability differs per mode. Name the explicit mode.
31
- The Balanced PDD selectors do not currently publish user-selectable adapters
32
- (as of 2026-08); their built-in PDD acceleration dependency is not a custom
33
- LoRA slot. The live catalog remains authoritative if that changes.
34
- FastH3 supports H3 LoRAs but raises its worker requirement from 23 GB without
35
- LoRA to 32 GB with one. FastH3 has no R2V mode. Always check the exact
36
- FastVideo model id's live catalog before relying on a particular adapter.
31
+ The Balanced selectors do not currently publish user-selectable adapters
32
+ (as of 2026-09); their built-in LightX2V FL2VA or Larry v4 Ref2VA acceleration
33
+ dependency is not a custom LoRA slot. The live catalog remains authoritative if that changes.
34
+ FastH3 keeps the FastVideo engine when an H3 LoRA is attached. Base jobs
35
+ require 23 GB, while jobs with an H3 LoRA require 32 GB. FastH3 has no R2V
36
+ mode. Always check the exact FastVideo model id's live catalog before relying
37
+ on a particular adapter.
37
38
 
38
39
  ## Published adapters
39
40
 
@@ -48,6 +48,52 @@ The direct-to-SDK flags remain the right call for explicit one-shot generation
48
48
  when you already know the exact model, dimensions, and prompt — use them
49
49
  whenever latency or cost rules out an LLM round-trip.
50
50
 
51
+ ## Preserve the requested work
52
+
53
+ - A model/capability question is an answer, not permission to render. A script
54
+ or storyboard-review request ends at the draft; a storyboard-image request
55
+ ends at the still. The `storyboard-video` preset creates a full video, so use
56
+ it only when that is the requested deliverable.
57
+ - When the user requests images, animation, and stitching together, finish those
58
+ stages in order unless they ask to review or select an intermediate result.
59
+ Treat returned artifacts as evidence of completion; do not resubmit a
60
+ successful stage because the assistant's summary omitted its tool call.
61
+ - Preserve exact image prompts, visible lettering, chosen models, source
62
+ selection, aspect ratio, and the latest requested duration. New tasks do not
63
+ inherit settings from unrelated previous renders. A pure size increase uses
64
+ `upscale_image`; editing requires an actual source reference.
65
+ - Separate image variations need `numberOfVariations` and a complete Dynamic
66
+ Prompt branch per output. Repeat shared text, branding, dialogue, and loop
67
+ motion in every affected branch. A single storyboard sheet instead needs all
68
+ requested scenes in order, with complete visual/action, camera, transition,
69
+ dialogue, and sound instructions. Preserve supplied titles and layout. In
70
+ “six 9:16 frames,” six is the count and 9:16 is the frame shape.
71
+ - Preserve reference order and bind the correct uploaded or generated asset.
72
+ An original image can be a prior generated result; it is not necessarily an
73
+ upload. For a loop ending on the original still, bind that original as the
74
+ final reference. Distinguish loose audio guidance from synchronized audio.
75
+ - Check the chosen model's duration and reference limits. A long video may fit
76
+ one native clip or require segments and stitching; do not silently shorten it
77
+ or replace an explicit model. For segmented storyboards, assign each clip its
78
+ own time window and scene beats while preserving locked music and timing.
79
+ - Let the hosted runtime repair malformed calls before dispatch. A correction
80
+ round does not authorize a second successful render. If a result says to wait
81
+ for the user or all outputs failed, surface that result and stop.
82
+ - Optional content-filter changes require the user's explicit choice. In hosted
83
+ chat, a supported settings tool must report success before retrying; declined
84
+ or unavailable confirmation leaves the setting unchanged. In direct CLI mode,
85
+ do not add `--no-filter` on your own. The setting cannot change GPT Image's
86
+ mandatory policy or resolve an unknown rejection. Attribute a rejection to a
87
+ provider only when the returned error supports that attribution.
88
+ When explicitly requested, `--no-filter` is forwarded on new durable workflow
89
+ starts as well as hosted chat. Resuming a workflow retains its original
90
+ preference; passing the flag on a resume does not change it.
91
+
92
+ These are also instructions for the calling agent when it authors direct CLI
93
+ commands or workflow JSON. The public runtime exposes local helpers and shared
94
+ contracts; the full hosted planner, call repair, and confirmation behavior run
95
+ on the server. Updating this skill does not deploy those server components.
96
+
51
97
  ## --api-chat (`POST /v1/chat/completions`)
52
98
 
53
99
  Text-first natural-language workflows through Sogni API's OpenAI-compatible
@@ -66,12 +112,18 @@ Tune with `--api-tools creative-agent|creative-tools|none`,
66
112
  `--thinking` / `--no-thinking` (forwarded as
67
113
  `chat_template_kwargs.enable_thinking`; hosted Qwen may normalize thinking
68
114
  server-side, so do not rely on `--no-thinking` as a hard suppression switch).
115
+ The default output budget is 4,096 tokens for hosted chat (including durable
116
+ chat) and storyboard planning. Keep enough room for every requested scene and
117
+ complete tool arguments; `--max-tokens` overrides that budget.
118
+ HTTP chat and storyboard-planning requests allow up to two minutes for a full
119
+ response by default; `SOGNI_HTTP_TIMEOUT_MS` overrides this timeout. Other HTTP
120
+ requests keep their existing timeouts.
69
121
 
70
122
  ### Hosted tool surfaces (`sogni_tools`)
71
123
 
72
124
  - `creative-tools` — the public API default when `sogni_tools` is omitted or
73
125
  true. Generation/editing tools (`generate_image`, `generate_video`,
74
- `generate_music`, `edit_image`, `upscale_image`, `apply_style`, `restore_photo`,
126
+ `generate_music`, `generate_speech`, `edit_image`, `upscale_image`, `apply_style`, `restore_photo`,
75
127
  `refine_result`, `animate_photo`, `change_angle`, `video_to_video`,
76
128
  `stitch_video`, `orbit_video`, `dance_montage`, `sound_to_video`,
77
129
  `extend_video`, `replace_video_segment`, `overlay_video`, `add_subtitles`),
@@ -106,6 +158,16 @@ deltas plus de-duplicated per-job progress / ETA / result lines from hosted
106
158
  run events. The SDK exposes `sogni.chat.runs.{create, get, cancel,
107
159
  streamEvents}`.
108
160
 
161
+ Durable chat runs the full creative agent with server-side tool execution.
162
+ Use `--api-chat` for `--api-tools creative-tools|none` or
163
+ `--no-api-tool-execution`; durable mode rejects those options before starting a
164
+ run rather than silently ignoring them. Completed assistant snapshots reconcile
165
+ with streamed text so each message appears once, including multi-round turns.
166
+
167
+ Review returned storyboard titles, visible text, and timings against the request
168
+ before rendering. Hosted draft generation can paraphrase supplied scene titles;
169
+ correct the draft first when exact wording matters.
170
+
109
171
  ## --api-workflow (`POST /v1/creative-agent/workflows`)
110
172
 
111
173
  Durable, async workflow records with event streaming and cancellation. The
@@ -0,0 +1,181 @@
1
+ # Building an interactive world
2
+
3
+ An end-to-end recipe for the kind of thing an agent can build alone with this
4
+ skill: an explorable world where a still image is a place, objects in it are
5
+ clickable, choosing one plays a rendered journey to somewhere else, characters
6
+ speak, each region has its own score, and some objects can be collected and
7
+ turned over in 3D.
8
+
9
+ Everything here is measured from a working build — three worlds, 24 scenes, 65
10
+ clickable objects, 80 retained masks, 72 crossings, 75 spoken moments, 8 music
11
+ cues and 10 collectible meshes — including the mistakes, because most of them
12
+ are not obvious and each one cost a day.
13
+
14
+ ## The stack, in the order it runs
15
+
16
+ | Step | Model | What it gives you |
17
+ |---|---|---|
18
+ | 1. Places | `krea2_turbo_fp8_scaled` | A scene as one wide still |
19
+ | 2. The same character, somewhere new | `krea2_identity_edit_sogni_v0_3_alpha` | A new place with a recognisable character in it, from two context references |
20
+ | 3. Clickable objects | `sam3_image_segment_bf16` | A pixel mask of a named object, to trace into a hit area |
21
+ | 4. Clean cut-outs | `birefnet_image_background_removal_fp16` | A soft matte with real edges, for anything going into 3D or a composite |
22
+ | 5. Travel and dialogue | `minimax-h3-fastvideo-int8_flf2v_turbo`, `minimax-h3-fl2va-fp8_flf2v_turbo` | First/last-frame video with generated audio in one pass |
23
+ | 6. Score | `minimax_music3` | A loopable instrumental cue per region |
24
+ | 7. Figures | `pixal3d_int8_i23d` | A textured GLB from one image on transparency |
25
+ | 8. A character's own voice | `qwen3_tts_1.7b_voice_clone_bf16` | Any line spoken in a cloned voice |
26
+ | 9. A character speaking on camera | `wan_v2.2-14b-fp8_s2v_lightx2v` | Image plus audio to lip-synced video |
27
+
28
+ ## The loop that makes it survivable
29
+
30
+ Do not call a model from application code. Every asset goes through four steps,
31
+ and the discipline is what lets a build of this size be resumed, audited and
32
+ trusted:
33
+
34
+ 1. **Prepare.** Write the exact job — prompt, seed, references, sizes — to a
35
+ plan file. Submit nothing. If a plan already exists, it must reproduce byte
36
+ for byte, which is what stops a silent change to an input from invalidating
37
+ what already shipped.
38
+ 2. **Render.** Journal the submission *before* sending it. A job whose outcome
39
+ is unknown must never be silently duplicated; a job with a *recorded* failure
40
+ is a known outcome and may be retried. A completed item is never re-rendered.
41
+ 3. **Verify natively.** Probe the returned file — frame counts, dimensions,
42
+ audio channels, triangle counts, mask coverage, SHA-256. Models fail in ways
43
+ that still return HTTP 200. Then look at it.
44
+ 4. **Retain.** Publish to immutable, hash-addressed storage and write the
45
+ receipt into a manifest. The app reads only the manifest, so it cannot ship
46
+ an asset that was never verified.
47
+
48
+ ## Stage notes, and what goes wrong
49
+
50
+ ### Scenes
51
+
52
+ The scene still is the source of truth for everything downstream: masks are
53
+ traced against it, crossings are anchored on it, cut-outs come out of it. Keep
54
+ its exact bytes and its hash. Never re-save, re-crop or screenshot it, and never
55
+ substitute a frame extracted from a video for it — a mask traced against one
56
+ copy will not fit another.
57
+
58
+ ### Keeping a character
59
+
60
+ A name is not an identity lock. `krea2_identity_edit_sogni_v0_3_alpha` takes
61
+ exactly two context images: give it the world in one and the character in the
62
+ other, and say in the prompt which reference is for which. Everything a
63
+ character's identity depends on has to be in a saved reference image you can
64
+ hand back to the model.
65
+
66
+ ### Clickable objects, and when to reach for the other model
67
+
68
+ Read the comparison in [`models.md`](./models.md) § Choosing between SAM 3 and
69
+ BiRefNet before writing either. In short: SAM 3 selects the object you name,
70
+ BiRefNet separates foreground from background, and neither does the other's job.
71
+
72
+ Four SAM 3 failures worth knowing before you spend anything:
73
+
74
+ - **It answers to a plain head noun.** `telescope` returns a mask; "a brass
75
+ refracting telescope on a wooden tripod" returned nothing four times.
76
+ - **A box does not constrain a text prompt — it is another prompt.** Asking for
77
+ `person` inside a box around one traveller also returned a stone giant lying
78
+ across the valley, and every shopper in a market. When you mean *this* one,
79
+ use points.
80
+ - **It is literal about where an object ends.** `sloth` gives you the animal and
81
+ leaves the cloak, hood and backpack behind. `person` gives you the person and
82
+ leaves the backpack they are wearing behind, so the silhouette has a hole
83
+ through it.
84
+ - **`multimask` requires point prompts.** Sending it alongside text and boxes is
85
+ rejected outright.
86
+
87
+ ### Anything going into 3D
88
+
89
+ - **Cut it out with BiRefNet, not with a segmentation mask.** Segmentation edges
90
+ are hard and stair-stepped and leave specks of background behind.
91
+ - **Do not downscale on the way in.** This is the single biggest quality lever
92
+ and the easiest to miss. A pipeline that caps a cut-out's long side will
93
+ quietly throw away a third of a portrait's pixels, and on a character that
94
+ loss lands almost entirely on the face — melted glasses, a smeared muzzle. The
95
+ same portrait, same mask, same recipe, fed at 1152px instead of 900px, was the
96
+ difference between "looks like garbage" and shippable.
97
+ - **Ask for far fewer triangles than the default.** A browser wants 60,000, not
98
+ 700,000. Mesh weight is set by the face budget and texture sizes, *not* by the
99
+ input resolution, so a bigger input costs nothing at runtime.
100
+ - **Parse the GLB rather than trusting it** — chunk table, glTF JSON, triangle
101
+ and vertex counts, normals, UVs.
102
+
103
+ ### Crossings between scenes
104
+
105
+ Anchor first *and* last frame on the exact retained stills. That is what makes a
106
+ journey feel continuous instead of like a cut: the clip opens on the frame the
107
+ visitor was already looking at and lands on the one they are about to explore.
108
+
109
+ **Generated clips have exactly one keyframe.** A 192-frame crossing carries a
110
+ single I-frame at time zero. This has two consequences most people meet the hard
111
+ way:
112
+
113
+ - You cannot seek backwards through one. Seeking to frame 190 decodes 191
114
+ frames, frame 189 decodes 190 — a reverse pass is roughly 96× the work of
115
+ playing it forwards, measured at 260 ms per backward frame against a 41.7 ms
116
+ budget. No amount of buffering, blob URLs or frame callbacks fixes it, because
117
+ the cost is in the seek. **If you want a rewind, render the reverse ahead of
118
+ time** (`ffmpeg -vf reverse`, and `areverse` for the sound) and play it
119
+ forwards. That also gets you reversed audio, which seeking can never do.
120
+ - Anything that scrubs, thumbnails or previews these clips will be slow for the
121
+ same reason.
122
+
123
+ ### Dialogue
124
+
125
+ `minimax-h3-fl2va-fp8_flf2v_turbo` generates picture and sound together, holding
126
+ one still at both ends: the scene stays exactly as the visitor left it, breathes,
127
+ and is spoken over. That shape is also the safest available — a shot that never
128
+ changes distance cannot inflate a second copy of a subject into frame.
129
+
130
+ Two things to plan for:
131
+
132
+ - **It casts a new voice every time.** The same character will sound like a
133
+ different person in every scene. If a character recurs, clone a voice
134
+ (below) and plan from the start for how their lines get into the clips.
135
+ - **Loudness varies enormously between clips.** Measured across 74 clips in one
136
+ build: a 25.5 dB spread, −39.5 dB to −14.0 dB mean. Two clips in the same
137
+ scene were 18 dB apart, which is roughly an eighth of the perceived loudness —
138
+ inaudible next to their neighbours. Normalise the set (EBU R128) rather than
139
+ patching outliers.
140
+
141
+ ### A recurring character's voice
142
+
143
+ `qwen3_tts_1.7b_voice_clone_bf16` takes three to thirty seconds of one person
144
+ speaking cleanly.
145
+
146
+ **Always pass `referenceText`** — the exact words of that recording. Without it
147
+ the model has only a speaker embedding and fills the rest in from its own prior:
148
+ a recording of a Singaporean toddler came back as a General American girl. With
149
+ the transcript it conditions on the recording itself. If your transcript was
150
+ produced automatically, check it by ear before using it; a mis-transcribed word
151
+ teaches the model the wrong sounds for those phonemes.
152
+
153
+ ### A character who speaks on camera
154
+
155
+ If the character is *visible* while speaking, you cannot swap the audio — the
156
+ lips stay on the old rhythm. Regenerate with `wan_v2.2-14b-fp8_s2v_lightx2v`,
157
+ which takes one image and one audio track and animates the person in the image
158
+ to that audio. Feed it the frame where the character is already standing in the
159
+ scene, so the new clip starts where the story left them.
160
+
161
+ If the character is *never seen* — written as a voice, which is worth doing
162
+ deliberately for most of a cast — their clips need no regeneration at all.
163
+
164
+ Note the id: `wan_v2.2-14b-fp8_s2v` is not currently accepted by the client's
165
+ video-model allowlist even though workers advertise it; the `_lightx2v` variant
166
+ is, and routes.
167
+
168
+ ### Score
169
+
170
+ One cue per region, generated long enough to loop, crossfaded on movement and
171
+ ducked under anything that has its own audio.
172
+
173
+ ## Two things about pacing an agent build
174
+
175
+ - **Canary before batch.** One line, one clip, one mesh — verified natively and
176
+ approved — before spending on the set. Every expensive mistake in this build
177
+ was a batch that should have been a canary.
178
+ - **A queued job is not a failed job.** Newly seeded models can have very few
179
+ workers, and a job may sit behind other people's work. Adding a client-side
180
+ timeout and resubmitting only duplicates work that was always going to
181
+ complete.
@@ -128,6 +128,150 @@ edge, max `3:1` aspect ratio, and total pixels from `655,360` through
128
128
  editing with `gpt-image-2`, you can pass up to 16 context images (Qwen models
129
129
  support up to 3; Krea identity edit models support up to 2).
130
130
 
131
+ ## Utility and 3D models
132
+
133
+ | Model | Speed | Use Case |
134
+ |-------|-------|----------|
135
+ | `sam3_image_segment_bf16` | Very fast | SAM 3 object selection from one starting image: text, click points, or boxes in, one mask or cutout out |
136
+ | `pixal3d_int8_i23d` | Slow (~120-170s) | Single-image reconstruction to a textured GLB |
137
+ | `birefnet_image_background_removal_fp16` | Very fast (~1s warm) | Prompt-free background removal, soft matte — the better cut-out when the subject is clear |
138
+
139
+ None is a text-to-image model. All always require a `startingImage`, and all are
140
+ priced flat per request, so resolution and step count change nothing. None of
141
+ the usual generation controls apply either: leave steps, guidance, sampler,
142
+ scheduler, and the negative prompt unset for every one of them.
143
+
144
+ ### SAM 3 segmentation (`sam3_image_segment_bf16`)
145
+
146
+ Flat $0.005 (1 Spark) per request at any source size. Returns exactly one
147
+ artifact at the source dimensions and ignores width/height entirely. Select
148
+ what you want in one of three ways, passed as `sam3Prompt`:
149
+
150
+ - `text` — a noun phrase, up to 240 characters. Selects every instance of that
151
+ concept.
152
+ - `points` — up to 32 `{x, y, label}` clicks, coordinates normalized 0-1
153
+ against the original image, `label` either `positive` or `negative`.
154
+ - `boxes` — up to 16 `{x0, y0, x1, y1}` boxes, also normalized 0-1. With a text
155
+ prompt a box may carry `label: 'negative'` to exclude one instance ("every
156
+ dog except this one").
157
+
158
+ Text and point prompts cannot be combined; the underlying model has no entry
159
+ point that accepts both. A negative box likewise requires a text prompt.
160
+
161
+ However you select, you are naming the object to isolate rather than describing
162
+ a desired output — "the red ceramic teapot", not "a beautiful teapot".
163
+ Selection is deterministic for a given image and prompt, so re-rolling the seed
164
+ changes nothing. The artifact is a mask or a cutout, never a generated image: it
165
+ cannot be upscaled, enhanced, or refined.
166
+
167
+ Other `sam3Prompt` fields:
168
+
169
+ - `applyMask` — return the selection cut out of the source as an RGBA PNG with
170
+ the mask in alpha, instead of a black-and-white mask. Usually what you want if
171
+ the output is going into a composite. Defaults to `false`.
172
+ - `maxInstances` — 1 to 16. Keeps only the highest-scoring N selections. With
173
+ `text`, `maxInstances: 1` returns just the strongest match instead of every
174
+ match merged into one shape; with `points` it picks among the model's
175
+ whole/part/subpart candidates for the clicked object.
176
+ - `threshold` — 0 to 1, default 0.5. One detection filter on both paths. If
177
+ nothing scores above it the job fails and the error reports the best score
178
+ seen, so raise or lower it from there rather than guessing.
179
+ - `multimask` — point prompts only; rejected with a text prompt.
180
+
181
+ The result carries per-selection detail: `maskDetectedCount`,
182
+ `maskReturnedCount`, and `maskSelections` with each selection's `score`, `box`
183
+ (normalized `[x0, y0, x1, y1]`), `coverage`, and whether it was `included`. Use
184
+ it to tell a confident selection from a marginal one, and to discover that a
185
+ concept matched more instances than you expected — then re-run with a box around
186
+ the one you actually wanted.
187
+
188
+ ### Pixal3D image-to-3D (`pixal3d_int8_i23d`)
189
+
190
+ $0.42 per reconstruction at the default shape resolution of 1536, $0.30 at 1024.
191
+ Takes one `startingImage` and returns a binary GLB — a TRELLIS.2 mesh of roughly
192
+ 695,000 triangles with a full PBR set baked in: 4K base colour and UV atlas, 4K
193
+ metallic-roughness, 2K normal, and 1K ambient occlusion. Output is a 3D model,
194
+ not a picture — do not treat the artifact as an image.
195
+
196
+ **The default takes no prompt.** One workflow id serves two graphs, and the
197
+ flagged default is now the BiRefNet one, which isolates the subject
198
+ automatically. Sending a prompt to it does nothing.
199
+
200
+ | Variant | `templateVariant` | Prompt | Use it when |
201
+ |---------|-------------------|--------|-------------|
202
+ | BiRefNet (default) | omit, or `i23d-birefnet` | none | The image has one clear subject |
203
+ | Prompted | `i23d` | `positivePrompt`, required | A busy scene, where SAM 3 has to pick one object out of several |
204
+
205
+ On the prompted variant the prompt NAMES the object to reconstruct — "the red
206
+ ceramic teapot" — it does not restyle it, so describing a desired appearance
207
+ changes nothing. Either way, use a sharp source photo with the whole object
208
+ visible and minimal occlusion.
209
+
210
+ Five generation options may only *reduce* work. Each maximum is the shipped
211
+ default, so the flat price is a guaranteed upper bound and a smaller value
212
+ simply produces a lighter asset:
213
+
214
+ | Option | Range | Default |
215
+ |--------|-------|---------|
216
+ | `meshTargetFaces` | 5000-700000 | 700000 |
217
+ | `textureSize` | 1024-4096 | 4096 |
218
+ | `normalMapSize` | 512-2048 | 2048 |
219
+ | `ambientOcclusionSize` | 256-1024 | 1024 |
220
+ | `shapeResolution` | 1024-1536 | 1536 |
221
+
222
+ `meshTargetFaces` is the one worth setting deliberately. The 700,000-triangle
223
+ default is far heavier than a real-time engine wants, so asking for less usually
224
+ yields a *more* useful asset. Sampling steps are deliberately not exposed.
225
+
226
+ ### BiRefNet background removal (`birefnet_image_background_removal_fp16`)
227
+
228
+ Flat $0.005 (1 Spark) per image at any source size, about 1.0s on
229
+ a warm worker. It is **prompt-free** — there is no concept to name, it simply
230
+ separates foreground from background — and returns either the foreground matte
231
+ or, with `applyMask`, the source image carrying that matte in alpha. Output
232
+ dimensions always match the input.
233
+
234
+ It is still being seeded across the fleet, so it can have only a couple of
235
+ workers and a job may queue behind other people's work. That is queueing, not
236
+ failure — do not add a client-side timeout and resubmit, which only duplicates
237
+ work that was always going to complete.
238
+
239
+ ### Choosing between SAM 3 and BiRefNet
240
+
241
+ They are not interchangeable, and the difference decides the quality of every
242
+ cut-out. Use both when the job needs both.
243
+
244
+ | | SAM 3 | BiRefNet |
245
+ |---|---|---|
246
+ | What it does | **Selects an object** you name, click, or box | **Separates foreground from background** |
247
+ | Prompt | Required — text, points, or boxes | None. There is nothing to name |
248
+ | Knows which object you meant | Yes | No — it takes whatever is in front |
249
+ | Output | Strictly **binary** mask: two levels, hard stair-stepped edges | True **soft matte**: 256 levels, antialiased edges, real partial alpha |
250
+ | Best at | Picking one thing out of a busy scene | Clean edges on a clear subject: hair, fur, fabric, fine detail |
251
+
252
+ **Use SAM 3** when the picture contains several things and you need a specific
253
+ one: "the telescope, not the observatory around it".
254
+
255
+ **Use BiRefNet** when the picture has one clear subject and what you want is a
256
+ clean cut-out — a character on a backdrop, a product shot, anything where the
257
+ edge quality is the point. SAM 3's edges are noticeably worse here: on a
258
+ hooded figure it left specks of backdrop above the head, bit notches out of the
259
+ cloak, and left the hem ragged where BiRefNet's matte was clean.
260
+
261
+ **Use both** for the best result on an object inside a busy scene: SAM 3 to
262
+ decide *which* object and where it sits, its bounding box to crop the original
263
+ down to that object, then BiRefNet to matte the crop — where the thing being
264
+ separated is now the only thing in frame, which is the situation it is best at.
265
+
266
+ **A gotcha worth knowing before you write the code.** SAM 3 returns a binary
267
+ mask, so testing a pixel for pure white is the same as testing whether it is
268
+ selected. BiRefNet does not: its matte is soft, and a figure covering 48% of the
269
+ frame can have under 5% of it at exactly 255. Code that thresholds on pure white
270
+ will silently measure a fraction of the real coverage and crop the subject to a
271
+ sliver. Threshold at half-opaque instead — identical on a binary mask, correct
272
+ on a soft one — and composite with the matte's full range so the antialiased
273
+ edges survive.
274
+
131
275
  ## Music models
132
276
 
133
277
  | Model | Use Case |
@@ -190,7 +334,7 @@ direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
190
334
  | `minimax-h3-i2v-turbo` | 4-step | H3 LightX2V Turbo first-frame image-to-video |
191
335
  | `minimax-h3-flf2v-turbo` | 4-step | H3 LightX2V Turbo first-frame → last-frame video; pass both `--ref` and `--ref-end` |
192
336
  | `minimax-h3-r2v-turbo` | 4-step | H3 Turbo reference-to-video from a whole reference set; 960×544 default |
193
- | `minimax-h3-fasth3-turbo` / `minimax-h3-fasth3-t2v-turbo` | 4-step | FastVideo VSA FastH3 text-to-video; generic selector infers frame modes; about 2x faster |
337
+ | `minimax-h3-fasth3-turbo` / `minimax-h3-fasth3-t2v-turbo` | 4-step | FastVideo VSA FastH3 text-to-video; generic selector infers frame modes; about 2x faster than LightX2V Turbo and up to 6x Standard |
194
338
  | `minimax-h3-fasth3-i2v-turbo` | 4-step | FastH3 first-frame image-to-video or last-frame-only L2VA |
195
339
  | `minimax-h3-fasth3-flf2v-turbo` | 4-step | FastH3 first-frame → last-frame video; no FastH3 R2V mode |
196
340
  | `wan_v2.2-14b-fp8_i2v_lightx2v` | Fast | **Default single-image image-to-video** (one `--ref`, no end frame) |
@@ -416,8 +560,8 @@ output. Supported ratios are `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, and
416
560
  supported. There is no document/web context, watermark control, negative
417
561
  prompt, sampling override, source-video edit, or extend mode. Seeds are
418
562
  integers from `0` through `2147483647`; omit the seed for a random result.
419
- - Standard artist PAYG rates are $0.0845/s at 480P, $0.169/s at 720P, and
420
- $0.338/s at 1080P (as of 2026-08). Existing paid subscribers receive a
563
+ - Standard artist PAYG rates are $0.08/s at 480P, $0.16/s at 720P, and
564
+ $0.32/s at 1080P (as of 2026-09). Existing paid subscribers receive a
421
565
  one-time model credit of $10 on Unlimited or $20 on Unlimited Pro through
422
566
  September 1, 2026 00:00 UTC (August 31 at 5:00 PM PT). That credit is not
423
567
  subscription coverage; once used or expired, normal PAYG applies.
@@ -425,7 +569,7 @@ output. Supported ratios are `adaptive`, `16:9`, `9:16`, `1:1`, `4:3`, and
425
569
  ## MiniMax H3 models
426
570
 
427
571
  MiniMax H3 is a Sogni-hosted video family with **fifteen current selectors**:
428
- four Standard workflows, four 8-step Balanced PDD workflows, four 4-step
572
+ four Standard workflows, four 8-step Balanced workflows, four 4-step
429
573
  LightX2V Turbo workflows, and three FastVideo VSA FastH3 Turbo workflows. Every mode
430
574
  generates picture and **native 32 kHz stereo audio jointly**.
431
575
  `--no-generate-audio` (SDK `generateAudio=false`) strips the generated track
@@ -445,7 +589,7 @@ FastH3 has no R2V mode, so `--workflow r2v` is rejected with its generic selecto
445
589
  | `minimax-h3-i2v` | Image-to-video | Animate a single first-frame image passed with `--ref` |
446
590
  | `minimax-h3-flf2v` | First → last frame | Interpolate between `--ref` and `--ref-end` |
447
591
  | `minimax-h3-r2v` | Reference-to-video | Compose from a labelled reference SET: up to 9 images, 3 videos, 3 audio clips, 12 files total |
448
- | `minimax-h3-balanced` / `minimax-h3-t2v-balanced` | Balanced text-to-video | Fixed 8-step Euler/simple PDD prompt-only path; generic `minimax-h3-balanced` infers the frame workflow |
592
+ | `minimax-h3-balanced` / `minimax-h3-t2v-balanced` | Balanced text-to-video | Fixed 8-step Euler/simple LightX2V prompt-only path; generic `minimax-h3-balanced` infers the frame workflow |
449
593
  | `minimax-h3-i2v-balanced` | Balanced image-to-video | Fixed 8-step animation from one first frame |
450
594
  | `minimax-h3-flf2v-balanced` | Balanced first → last frame | Fixed 8-step interpolation between `--ref` and `--ref-end` |
451
595
  | `minimax-h3-r2v-balanced` | Balanced reference-to-video | Fixed 8-step Euler/simple Ref2VA from a labelled reference set |
@@ -463,7 +607,7 @@ The three standard frame modes share the FL2VA checkpoint: worker ids
463
607
  picking i2v vs flf2v from whether `--ref-end` is present. Turbo applies
464
608
  LightX2V's 4-step distillation LoRA to those same workflows through worker ids
465
609
  `minimax-h3-fl2va-fp8_t2v_turbo`, `minimax-h3-fl2va-fp8_i2v_turbo`, and
466
- `minimax-h3-fl2va-fp8_flf2v_turbo`. Balanced applies the fixed 8-step PDD path
610
+ `minimax-h3-fl2va-fp8_flf2v_turbo`. Balanced applies the fixed 8-step LightX2V path
467
611
  through `minimax-h3-fl2va-fp8_t2v_balanced`,
468
612
  `minimax-h3-fl2va-fp8_i2v_balanced`, and
469
613
  `minimax-h3-fl2va-fp8_flf2v_balanced`. Reference-to-video is a
@@ -471,18 +615,19 @@ SEPARATE checkpoint — worker id `minimax-h3-ref2va-fp8_r2v` — selected direc
471
615
  with `-m minimax-h3-r2v`, or through the creative-agent `generate_video` tool
472
616
  with `videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat). The
473
617
  dedicated LightX2V LoRA exposes it as `minimax-h3-ref2va-fp8_r2v_turbo` through
474
- the public `minimax-h3-r2v-turbo` selector; the Balanced PDD version is
618
+ the public `minimax-h3-r2v-turbo` selector; the Balanced Larry v4 version is
475
619
  `minimax-h3-ref2va-fp8_r2v_balanced`, exposed as `minimax-h3-r2v-balanced`.
476
620
  FastH3 is not an alias for LightX2V: it maps to
477
621
  `minimax-h3-fastvideo-int8_t2v_turbo`, `minimax-h3-fastvideo-int8_i2v_turbo`,
478
622
  and `minimax-h3-fastvideo-int8_flf2v_turbo`. Its qualified FastVideo VSA recipe
479
- is fixed four-step Euler/simple, it is about 2x faster, and it has no R2V mode.
623
+ is fixed four-step Euler/simple, it is about 2x faster than LightX2V Turbo and
624
+ up to 6x faster than Standard for comparable 768p, 15-second requests, and it has no R2V mode.
480
625
 
481
626
  The **fl2va** modes (t2v / i2v / flf2v) take image references only — they do not
482
627
  accept reference video or reference audio, because audio is generated natively.
483
628
  **r2v is the one H3 mode that does**: see
484
629
  [MiniMax H3 reference-to-video (r2v)](#minimax-h3-reference-to-video-r2v).
485
- FastH3 uses 23 GB without LoRA and 32 GB with an H3 LoRA. FL2VA/Balanced/LightX2V Turbo and image-only R2V are routed to 32 GB-class workers;
630
+ 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. FL2VA/Balanced/LightX2V Turbo and image-only R2V are routed to 32 GB-class workers;
486
631
  video-conditioned R2V requires a worker above 40 GB.
487
632
 
488
633
  **Fixed parameters (do not override):**
@@ -714,6 +859,9 @@ model recommendations.
714
859
  | Identity-preserving Krea image edits | `krea2_identity_edit_v1_2` |
715
860
  | Uncensored identity-preserving Krea edits | `dark_beast_krea2_identity_edit_v1_2` |
716
861
  | Photobooth face transfer | `coreml-sogniXLturbo_alpha1_ad` |
862
+ | Select or cut out an object in an image | `sam3_image_segment_bf16` |
863
+ | Remove a background | `sam3_image_segment_bf16` with `text` naming the subject and `applyMask: true` (`birefnet_image_background_removal_fp16` is not yet routable) |
864
+ | Turn one image into a textured 3D model (GLB) | `pixal3d_int8_i23d`, no prompt on the default graph |
717
865
  | Direct music generation | `ace_step_1.5_xl_turbo` (or `--music-model turbo`) |
718
866
  | Music with stronger lyric handling | `ace_step_1.5_xl_sft` (or `--music-model sft`) |
719
867
  | Text-to-video with native dialogue/audio | `ltx25` |
@@ -755,7 +903,7 @@ model recommendations.
755
903
  - **WAN 2.2 models** use dimensions divisible by 16, min 480 px, max 1536 px.
756
904
  - **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).
757
905
  - **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).
758
- - **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 PDD, and 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 and native stereo audio apply to all. FastH3 requires 23 GB without LoRA and 32 GB with an H3 LoRA; 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).
906
+ - **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 and native stereo audio apply to all. 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).
759
907
  - **LTX family** (`ltx2-*`, `ltx23-*`, `ltx25-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
760
908
  - **Seedance** runs at fixed 24 fps. The 2.0 family (`seedance2`, `seedance2-mini`, `seedance2-fast`) supports 4–15 s durations; full `seedance2` supports native 4K via `--target-resolution 2160` while `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. `seedance2-5` renders 4–30 s single clips (97–721 frames) but caps at 480p/720p (max dimension 1280) — it cannot render 1080p or 4K. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
761
909
  - **HappyHorse 1.1** runs at fixed 24 fps and supports 3–15 s durations at 720P or 1080P, with always-on native audio (no negative prompt, no ControlNet). Accepted aspect ratios are `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `4:5`, `5:4`, `9:21`, and `21:9`. i2v takes one first-frame image (`--ref`); r2v takes 1–9 reference images (`-c`/`--context`); it accepts no reference video or audio.
@@ -141,7 +141,8 @@ This guidance follows MiniMax's official H3 prompt-writing skill from
141
141
  FastH3 is the separate FastVideo VSA engine: use
142
142
  `minimax-h3-fasth3-turbo`, `minimax-h3-fasth3-t2v-turbo`,
143
143
  `minimax-h3-fasth3-i2v-turbo`, or `minimax-h3-fasth3-flf2v-turbo`.
144
- FastH3 uses Euler/simple only, is about 2x faster, and has no R2V mode.
144
+ FastH3 uses Euler/simple only, is about 2x faster than LightX2V Turbo and up
145
+ to 6x faster than Standard for comparable 768p, 15-second requests, and has no R2V mode.
145
146
  - **Native 32 kHz stereo audio is generated jointly with the picture.** Every
146
147
  sound — dialogue, foley, ambience, score — exists only because the prompt
147
148
  asked for it. `generateAudio=false` strips that generated track from the
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sogni-creative-agent",
3
- "version": "3.39.0",
3
+ "version": "3.40.1",
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.39.0",
3
+ "version": "3.40.1",
4
4
  "description": "Create images, generative video, music, and polished image-folder loops with Sogni AI.",
5
5
  "author": {
6
6
  "name": "Sogni AI",