@sogni-ai/sogni-creative-agent-skill 3.26.1 → 3.28.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.
- package/.claude-plugin/plugin.json +1 -1
- package/.codex-plugin/plugin.json +1 -1
- package/CHANGELOG.md +38 -0
- package/README.md +26 -19
- package/SKILL.md +22 -16
- package/desktop-extension/manifest.json +1 -1
- package/llm.txt +9 -6
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/references/hosted-api.md +7 -5
- package/references/models.md +189 -100
- package/references/video-prompting.md +175 -216
- package/skill-package.json +1 -1
- package/sogni-agent.mjs +116 -16
- package/sogni-app-id.mjs +4 -4
- package/version.mjs +1 -1
|
@@ -5,12 +5,12 @@ models, before writing any MiniMax H3 prompt, and whenever the user asks for
|
|
|
5
5
|
"hd", "1080p", "4k", "uhd", or "high-res" video so you can choose between the
|
|
6
6
|
LTX and Seedance paths.
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
8
|
+
The families require different prompt **shapes**. LTX wants one unbroken prose
|
|
9
|
+
paragraph with no line breaks and no negative phrasing. MiniMax H3 requires the
|
|
10
|
+
official ordered-field rewrite contract, shot notation, speaker IDs, dialogue
|
|
11
|
+
tags, and mode-specific alignment preamble. Do not carry LTX's
|
|
12
|
+
single-paragraph, positive-only, no-markup rule into an H3 prompt. Pick the
|
|
13
|
+
section that matches the model you are about to invoke.
|
|
14
14
|
|
|
15
15
|
## LTX-2.3 Prompt Rule
|
|
16
16
|
|
|
@@ -38,7 +38,7 @@ it into an LTX-2.3-safe prompt before calling `sogni-agent`.
|
|
|
38
38
|
"she says something," or "the couple discusses the scene."
|
|
39
39
|
- Budget spoken dialogue at about 3 words per second, plus about 1 second for each meaningful acting beat or pause.
|
|
40
40
|
- Express emotion through visible physical cues such as posture, grip, jaw tension, breathing, or pacing. Ambient sound can be woven into the prose naturally.
|
|
41
|
-
- Use positive phrasing only. Do not add negative prompts, "no ..." clauses, on-screen text/logo requests, vague filler words like `beautiful` or `nice`, or structural markup such as `[DIALOGUE]`. **This positive-only, no-markup rule is scoped to the LTX family only.** MiniMax H3
|
|
41
|
+
- Use positive phrasing only. Do not add negative prompts, "no ..." clauses, on-screen text/logo requests, vague filler words like `beautiful` or `nice`, or structural markup such as `[DIALOGUE]`. **This positive-only, no-markup rule is scoped to the LTX family only.** MiniMax H3 has no separate negative-prompt input and instead requires its ordered fields, `[Shot N]` notation, `(Sx)` speaker IDs, and `<d>` dialogue tags; see [MiniMax H3 Prompting](#minimax-h3-prompting).
|
|
42
42
|
- Keep action density proportional to duration. For short clips, describe one main beat rather than several separate events.
|
|
43
43
|
- Preserve the user's request, but expand it into cinematic prose. Do not invent a different story just to make the prompt longer.
|
|
44
44
|
|
|
@@ -81,26 +81,22 @@ Use this shape instead: "A medium cinematic shot frames a woman in her 30s stand
|
|
|
81
81
|
|
|
82
82
|
## MiniMax H3 Prompting
|
|
83
83
|
|
|
84
|
-
Write H3
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
Applies to `minimax-h3` / `minimax-h3-t2v`, `minimax-h3-i2v`, and
|
|
90
|
-
`minimax-h3-flf2v
|
|
91
|
-
`minimax-h3-
|
|
92
|
-
|
|
93
|
-
`minimax-h3-
|
|
84
|
+
Write every H3 prompt using MiniMax's official structured rewrite contract. Do
|
|
85
|
+
not substitute an unstructured prompt for the required fields. The field names,
|
|
86
|
+
order, shot notation, alignment preamble, reference labels, and dialogue markup
|
|
87
|
+
are part of the model contract.
|
|
88
|
+
|
|
89
|
+
Applies to standard `minimax-h3` / `minimax-h3-t2v`, `minimax-h3-i2v`, and
|
|
90
|
+
`minimax-h3-flf2v`; their 4-step `minimax-h3-turbo`,
|
|
91
|
+
`minimax-h3-i2v-turbo`, and `minimax-h3-flf2v-turbo` variants; and—with its own
|
|
92
|
+
six-field contract—to standard `minimax-h3-r2v`. The exact worker
|
|
93
|
+
ids are `minimax-h3-fl2va-fp8_{t2v,i2v,flf2v}` with an optional `_turbo`
|
|
94
|
+
suffix, plus `minimax-h3-ref2va-fp8_r2v`. There is no Turbo Ref2VA. See
|
|
94
95
|
[MiniMax H3 reference-to-video (r2v)](#minimax-h3-reference-to-video-r2v) below
|
|
95
96
|
before writing an r2v prompt.
|
|
96
97
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
The H3 tool contract accepts ordinary prompt text and does not require a tagged
|
|
100
|
-
IR wrapper. Use natural cinematic prose by default. MiniMax's tagged dialogue
|
|
101
|
-
and three-field IR forms remain valid optional inputs, so preserve them when a
|
|
102
|
-
user supplies them; see
|
|
103
|
-
[Optional / advanced: MiniMax's IR markup](#optional--advanced-minimaxs-ir-markup).
|
|
98
|
+
This guidance follows MiniMax's official H3 prompt-writing skill from
|
|
99
|
+
[MiniMax-H3 commit 35491cd](https://github.com/MiniMax-AI/MiniMax-H3/tree/35491cdba2adfe62a510f725e8619f8e58783ea2/skills/h3-prompt-writing).
|
|
104
100
|
|
|
105
101
|
### Fixed model facts
|
|
106
102
|
|
|
@@ -110,22 +106,28 @@ user supplies them; see
|
|
|
110
106
|
off-grid explicit `--frames` is a hard error.
|
|
111
107
|
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
|
|
112
108
|
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
113
|
-
- **20 steps
|
|
114
|
-
scheduler, or a **negative prompt**.
|
|
109
|
+
- **20 steps for standard H3; 4 steps for H3 Turbo; guidance/CFG 1.** Do not
|
|
110
|
+
send steps, guidance, scheduler, or a **negative prompt**. Standard H3 and
|
|
111
|
+
R2V accept no sampler override. H3 Turbo defaults to `er_sde` on Socket, and
|
|
112
|
+
the CLI omits the sampler unless `--sampler` is passed. Direct CLI A/B tests
|
|
113
|
+
may pass exactly `--sampler euler`, `--sampler er_sde`, or
|
|
114
|
+
`--sampler sa_solver`. The checkpoint is CFG-distilled with
|
|
115
115
|
guidance locked at 1, so there is no negative branch at all: a
|
|
116
116
|
`negativePrompt` parameter is ignored wherever it is accepted. Negative
|
|
117
117
|
direction goes in the prompt text instead.
|
|
118
|
+
- **Turbo uses the same prompt contract as standard H3.** Its execution path is
|
|
119
|
+
fixed at 4 steps with the `simple` scheduler; only the sampler has the three
|
|
120
|
+
explicit variants above.
|
|
118
121
|
- **Native 32 kHz stereo audio is generated jointly with the picture.** Every
|
|
119
122
|
sound — dialogue, foley, ambience, score — exists only because the prompt
|
|
120
123
|
asked for it. `generateAudio=false` strips that generated track from the
|
|
121
124
|
delivered file; it does not skip audio generation.
|
|
122
125
|
- **Sogni's H3 is the 768p-class open-weights release.** Do not offer or claim
|
|
123
126
|
2K; MiniMax's 2K stage is hosted-only and is not part of the open release.
|
|
124
|
-
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
- The initial Sogni release is routed to 32 GB-class workers.
|
|
127
|
+
- The Sogni CLI does not truncate H3 prompts. If another surface has a shorter
|
|
128
|
+
cap, flag it explicitly instead of silently removing required fields.
|
|
129
|
+
- FL2VA/Turbo and image-only R2V are routed to 32 GB-class workers;
|
|
130
|
+
video-conditioned R2V requires a worker above 40 GB.
|
|
129
131
|
|
|
130
132
|
Because `--duration` snaps to the frame grid, the delivered length is rarely the
|
|
131
133
|
integer the user asked for:
|
|
@@ -139,87 +141,53 @@ integer the user asked for:
|
|
|
139
141
|
| 12 | 294 | 12.25 s |
|
|
140
142
|
| 15 | 362 | 15.08 s |
|
|
141
143
|
|
|
142
|
-
###
|
|
143
|
-
|
|
144
|
-
In priority order.
|
|
145
|
-
|
|
146
|
-
**1. Write natural cinematic prose.** No required structure, no field names, no
|
|
147
|
-
tags. Open with the setting, the look, and who is in frame, then direct what
|
|
148
|
-
happens. Every detail should be something visible or audible.
|
|
149
|
-
|
|
150
|
-
**2. Use a timed shot list for anything longer than a single beat.** Plain
|
|
151
|
-
bracketed timecodes — `[0-2 seconds] …`, `[2-5 seconds] …` — one beat per
|
|
152
|
-
bracket, in order, covering the whole duration. **This is the single
|
|
153
|
-
highest-leverage technique for H3.** It fixes pacing and prevents slideshow
|
|
154
|
-
drift, where a long clip decays into a sequence of near-still poses. Keep the
|
|
155
|
-
beat count proportional to length: roughly one beat per 2-4 seconds, not a
|
|
156
|
-
montage.
|
|
157
|
-
|
|
158
|
-
**3. Direct the audio as deliberately as the picture.** Name the ambience, the
|
|
159
|
-
specific spot effects, and the music by instrumentation and timing ("bring in
|
|
160
|
-
the low beat at 3 seconds", "sparse upright bass, no drums"). Plain labels
|
|
161
|
-
inside the prose work well and read naturally — `Audio:`, `Sound design:`, or
|
|
162
|
-
`BGM:` on their own line. Say explicitly when you want **no music**; left
|
|
163
|
-
unsaid, H3 will invent some.
|
|
164
|
-
|
|
165
|
-
**4. Write dialogue as ordinary quoted prose.** Name the speaker, then the line
|
|
166
|
-
in double quotes, plus the delivery:
|
|
167
|
-
`The pilot says, flat and tired: "AI needs a lot more datacenters."` Preserve
|
|
168
|
-
the user's exact words and punctuation — never translate, paraphrase, or clean
|
|
169
|
-
them up. Budget roughly 3 words per second plus about 1 second for each
|
|
170
|
-
meaningful acting beat or pause; at 10 seconds, two short lines with reactions
|
|
171
|
-
is a full clip.
|
|
172
|
-
|
|
173
|
-
**5. State what you do not want, directly in the prompt text.** Negative
|
|
174
|
-
direction is unusually effective on H3 — "no music", "no slow motion", "no lens
|
|
175
|
-
flare", "no on-screen text", "do not change her jacket". There is no
|
|
176
|
-
negative-prompt field to put it in, so it belongs in the prose, usually as a
|
|
177
|
-
short closing line.
|
|
178
|
-
|
|
179
|
-
**6. Lock identity by naming concrete features, and give every reference image
|
|
180
|
-
an explicit job.** "Use the first frame for the character; keep her olive
|
|
181
|
-
jacket, chin-length dark hair, and the red vinyl seat." For `flf2v`, describe
|
|
182
|
-
the *motion path* between the two images rather than describing two static
|
|
183
|
-
frames. Reference images are the identity anchor — restate the features you
|
|
184
|
-
need preserved instead of assuming the model will hold them.
|
|
185
|
-
|
|
186
|
-
**7. Use real camera and film vocabulary.** Lens ("35mm", "long lens"), movement
|
|
187
|
-
("slow push-in", "handheld tracking follow", "static"), exposure and stock
|
|
188
|
-
("blown-out window highlights", "16mm grain"). Describe transitions as physical
|
|
189
|
-
events rather than named editing effects: "a passing truck fills the frame and
|
|
190
|
-
the next scene is already on the other side of it" beats "wipe transition".
|
|
144
|
+
### Base and Turbo contract: T2V, I2V, and FLF2V
|
|
191
145
|
|
|
192
|
-
|
|
146
|
+
After the mode-specific preamble described below, write exactly these three
|
|
147
|
+
fields in this order:
|
|
193
148
|
|
|
194
149
|
```text
|
|
195
|
-
|
|
150
|
+
integrated_multimodal_description: [Shot 1] ...
|
|
196
151
|
|
|
197
|
-
|
|
152
|
+
overall_soundscape: ...
|
|
153
|
+
|
|
154
|
+
non_diegetic_music: ...
|
|
198
155
|
```
|
|
199
156
|
|
|
157
|
+
`integrated_multimodal_description` carries the complete visual and diegetic
|
|
158
|
+
audio timeline. `[Shot 1]` has no timestamp; each later cut begins with a
|
|
159
|
+
strictly increasing marker such as `[Shot 2] At 00:03.500, the camera cuts
|
|
160
|
+
to...`. Describe camera movement as part of the shot. Use
|
|
161
|
+
`overall_soundscape` for ambience, physical action sounds, and non-verbal human
|
|
162
|
+
sound, without repeating dialogue, singing, or diegetic music. Use
|
|
163
|
+
`non_diegetic_music` only for audience-only score, or `N/A` when there is none.
|
|
164
|
+
|
|
165
|
+
Assign speaking or singing subjects stable `(S1)`, `(S2)`, ... IDs in order of
|
|
166
|
+
their first vocal event and reuse each ID across all shots. Keep the speaker,
|
|
167
|
+
action, and delivery outside the dialogue tag. Inside the tag, preserve only
|
|
168
|
+
the language and exact words:
|
|
169
|
+
|
|
200
170
|
```text
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
171
|
+
The record-store owner with a warm, gravelly voice (S1) says: <d>[English] I kept this one behind the counter for you.</d>
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
Do not translate, paraphrase, or clean up the user's dialogue. Use a compound
|
|
175
|
+
ID such as `(S1,S2)` only when already-numbered speakers vocalize together.
|
|
204
176
|
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
177
|
+
### Worked example — text-to-video
|
|
178
|
+
|
|
179
|
+
```text
|
|
180
|
+
User ask: "10 second video of a barista and a customer arguing about oat milk"
|
|
209
181
|
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
even delivery: "We ran out at six this morning."
|
|
182
|
+
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./cafe.mp4 "<prompt below>"
|
|
183
|
+
```
|
|
213
184
|
|
|
214
|
-
|
|
215
|
-
|
|
185
|
+
```text
|
|
186
|
+
integrated_multimodal_description: [Shot 1] Live-action, cinematic, slightly desaturated, a medium two-shot frames a narrow espresso bar on a weekday morning. Soft window light rakes across the brushed-steel machine and pastry case. A barista in her late twenties slides a white cup across the counter. A customer in a grey overcoat with a quiet, clipped voice (S1) stops the saucer with two fingers and says: <d>[English] I asked for oat milk.</d> [Shot 2] At 00:03.000, the camera cuts to a static close-up over the customer's shoulder. The barista with a flat, even voice (S2) lifts the oat carton, turns it upside down, sets it on the wood, and says: <d>[English] We ran out at six this morning.</d> [Shot 3] At 00:07.000, the camera cuts back to the two-shot. The customer tightens his jaw and pulls the cup toward himself while steam curls past his face and the barista turns to the next ticket.
|
|
216
187
|
|
|
217
|
-
|
|
218
|
-
ceramic clinking on the saucer, the hollow knock of the empty carton on wood at
|
|
219
|
-
5 seconds, a chair leg dragging behind them. Dialogue is close and dry, no
|
|
220
|
-
reverb. No music.
|
|
188
|
+
overall_soundscape: Low cafe room tone continues under the scene. A steam wand hisses, ceramic clinks against the saucer, the empty carton knocks against wood, and a chair leg scrapes in the background.
|
|
221
189
|
|
|
222
|
-
|
|
190
|
+
non_diegetic_music: N/A
|
|
223
191
|
```
|
|
224
192
|
|
|
225
193
|
### Worked example — image-to-video
|
|
@@ -231,44 +199,24 @@ sogni-agent -q --video -m minimax-h3-i2v --ref ./portrait.png --duration 6 -w 76
|
|
|
231
199
|
```
|
|
232
200
|
|
|
233
201
|
```text
|
|
234
|
-
|
|
235
|
-
dark chin-length hair, olive canvas jacket, the red vinyl seatback behind her,
|
|
236
|
-
and the rain-streaked window to her right on a night bus.
|
|
237
|
-
|
|
238
|
-
[0-2 seconds] Static medium close-up. She lowers her phone into her lap and
|
|
239
|
-
lifts her gaze from her hands to the window. Passing sodium streetlights slide
|
|
240
|
-
across her cheek and wash out her reflection in the glass.
|
|
241
|
-
|
|
242
|
-
[2-4 seconds] She says, low and unhurried, barely above the engine: "I'm not
|
|
243
|
-
going back."
|
|
202
|
+
For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced.
|
|
244
203
|
|
|
245
|
-
[
|
|
246
|
-
and closes one hand around the strap of the bag in her lap. The camera holds.
|
|
204
|
+
integrated_multimodal_description: [Shot 1] Live-action, cinematic, a static medium close-up begins exactly from <Picture 1>, preserving the woman's dark chin-length hair, olive canvas jacket, red vinyl seatback, and the rain-streaked night-bus window. She lowers her phone into her lap and lifts her gaze toward the window as sodium streetlights slide across her cheek. The woman with a low, unhurried voice (S1) says: <d>[English] I'm not going back.</d> She turns slightly toward the aisle, sets her jaw, and closes one hand around her bag strap while the camera remains static.
|
|
247
205
|
|
|
248
|
-
|
|
249
|
-
rain ticking on the glass, canvas shifting as she moves, one air-brake hiss near
|
|
250
|
-
the end. BGM: two widely spaced piano notes over sustained low strings, fading
|
|
251
|
-
out before the last second.
|
|
206
|
+
overall_soundscape: A steady diesel drone and the bus-frame rattle continue throughout. Rain ticks against the glass, canvas shifts as she moves, and an air brake hisses near the end.
|
|
252
207
|
|
|
253
|
-
|
|
254
|
-
colour.
|
|
208
|
+
non_diegetic_music: Two widely spaced piano notes over sustained low strings, fading before the final second.
|
|
255
209
|
```
|
|
256
210
|
|
|
257
|
-
Round the brackets to whole seconds even though the grid rarely delivers one:
|
|
258
211
|
`--duration 6` renders 141 frames (5.88 s) and `--duration 10` renders 243
|
|
259
|
-
frames (10.13 s).
|
|
260
|
-
|
|
261
|
-
length exactly.
|
|
262
|
-
|
|
263
|
-
### Optional / advanced: MiniMax's IR markup
|
|
212
|
+
frames (10.13 s). Keep every `[Shot N] At MM:SS.mmm` cut time within the actual
|
|
213
|
+
snapped duration.
|
|
264
214
|
|
|
265
|
-
|
|
266
|
-
occasionally, never required, and **never strip a user's own markup if they
|
|
267
|
-
wrote it** — pass it through verbatim.
|
|
215
|
+
### Required dialogue and shot markup
|
|
268
216
|
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
217
|
+
The structured field document and its dialogue, speaker, and shot notation are
|
|
218
|
+
the default H3 rewrite format. Preserve valid markup a user supplied, and repair
|
|
219
|
+
free-form input into this contract before submission.
|
|
272
220
|
|
|
273
221
|
**Dialogue tags.** Only the language tag and the spoken words go inside
|
|
274
222
|
`<d>…</d>`. The speaker's identifying phrase, ID, action, and delivery all stay
|
|
@@ -310,12 +258,11 @@ In/Pull Out`, `Pan Left/Right`, `Truck Left/Right`, `Tilt Up/Down`, `Pedestal
|
|
|
310
258
|
Up/Down`, `Arc Shot`, `Tracking Shot`, `Static Shot`, `Shake
|
|
311
259
|
Slightly/Strongly`, `POV`, and `Roll Clockwise/Counterclockwise`, optionally
|
|
312
260
|
qualified `with small amplitude` / `with large amplitude` and `at slow speed` /
|
|
313
|
-
`at fast speed`.
|
|
314
|
-
list with `[0-3 seconds]` timecodes carries the same information without the
|
|
315
|
-
markers.
|
|
261
|
+
`at fast speed`.
|
|
316
262
|
|
|
317
|
-
**The three-field
|
|
318
|
-
line, a blank line, then exactly three labelled fields in this
|
|
263
|
+
**The three-field document.** MiniMax's rewriter emits the required alignment
|
|
264
|
+
line when applicable, a blank line, then exactly three labelled fields in this
|
|
265
|
+
order:
|
|
319
266
|
|
|
320
267
|
```text
|
|
321
268
|
integrated_multimodal_description: [Shot 1] ...
|
|
@@ -331,23 +278,22 @@ non-verbal human sound (no dialogue, singing, or diegetic music);
|
|
|
331
278
|
`non_diegetic_music` is 1-3 sentences of score-only instrumentation, tempo, and
|
|
332
279
|
dynamics. `N/A` is the schema's token for "nothing here" — used in
|
|
333
280
|
`non_diegetic_music` for no score, and in `overall_soundscape` only for a
|
|
334
|
-
deliberately silent video.
|
|
335
|
-
nothing over the prose examples above.
|
|
281
|
+
deliberately silent video.
|
|
336
282
|
|
|
337
|
-
**Alignment instruction lines (i2v / flf2v only).** These
|
|
338
|
-
to
|
|
339
|
-
|
|
340
|
-
available when a precise timestamp matters. Text-to-video has no alignment line.
|
|
283
|
+
**Alignment instruction lines (i2v / flf2v only).** These exact preambles pin
|
|
284
|
+
reference images to the target timeline. They are mandatory for those modes and
|
|
285
|
+
must be the first line, followed by one blank line. T2V has no preamble.
|
|
341
286
|
|
|
342
|
-
Image-to-video (`minimax-h3-i2v`, one `--ref`):
|
|
287
|
+
Image-to-video (`minimax-h3-i2v` or `minimax-h3-i2v-turbo`, one `--ref`):
|
|
343
288
|
|
|
344
289
|
```text
|
|
345
290
|
For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced.
|
|
346
291
|
```
|
|
347
292
|
|
|
348
|
-
First frame → last frame (`minimax-h3-flf2v
|
|
349
|
-
|
|
350
|
-
dash (`—`) with a
|
|
293
|
+
First frame → last frame (`minimax-h3-flf2v` or
|
|
294
|
+
`minimax-h3-flf2v-turbo`, `--ref` plus `--ref-end`). Note the bare `Picture 1`
|
|
295
|
+
and `Shot 1` with **no** angle or square brackets, and the em dash (`—`) with a
|
|
296
|
+
space on each side:
|
|
351
297
|
|
|
352
298
|
```text
|
|
353
299
|
How the reference pictures align with the target video — Picture 1 (from Shot 1) aligns with the 0.00-second mark of the target video; Picture 2 (from Shot N) aligns with the S.SS-second mark of the target video.
|
|
@@ -360,112 +306,122 @@ transition), and `S.SS` is the effective duration to exactly two decimal places
|
|
|
360
306
|
### MiniMax H3 reference-to-video (r2v)
|
|
361
307
|
|
|
362
308
|
`minimax-h3-r2v` conditions on a whole **reference set** rather than one or two
|
|
363
|
-
locked frames: up to **9 reference images
|
|
309
|
+
locked frames: up to **9 reference images**,
|
|
364
310
|
**3 reference videos** (24 fps, 2–15 s, each with an optional soundtrack) and
|
|
365
311
|
**3 standalone audio clips**, **12 files maximum in total**. It runs a separate
|
|
366
312
|
ref2va checkpoint, so it is never inferred — it must be chosen by name with
|
|
367
313
|
direct CLI `-m minimax-h3-r2v` or the `generate_video` tool's
|
|
368
314
|
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat). Direct CLI
|
|
369
315
|
uses `--ref` then repeatable `-c` for images, plus repeatable `--ref-video` and
|
|
370
|
-
`--ref-audio` for those modalities.
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
316
|
+
`--ref-audio` for those modalities. At least one visual reference (image or
|
|
317
|
+
video) is required. A reference video can be the only visual input; audio alone
|
|
318
|
+
is invalid. r2v
|
|
319
|
+
has no frame anchors at all—for
|
|
320
|
+
a locked opening frame use `minimax-h3-i2v`, and for a first-to-last-frame
|
|
321
|
+
transition use `minimax-h3-flf2v`.
|
|
322
|
+
|
|
323
|
+
Ref2VA does not use the three-field Base contract. Write exactly these six
|
|
324
|
+
fields, in this order:
|
|
325
|
+
|
|
326
|
+
```text
|
|
327
|
+
subject_definitions:
|
|
328
|
+
|
|
329
|
+
summary:
|
|
330
|
+
|
|
331
|
+
retention_analysis:
|
|
332
|
+
|
|
333
|
+
detailed_description:
|
|
334
|
+
|
|
335
|
+
overall_soundscape:
|
|
336
|
+
|
|
337
|
+
non_diegetic_music:
|
|
338
|
+
```
|
|
339
|
+
|
|
340
|
+
`subject_definitions` assigns stable labels and roles to every reused subject or
|
|
341
|
+
asset. `summary` begins with the applicable bracketed task type, such as
|
|
342
|
+
`[reference generation + audio reference]`. `retention_analysis` gives one line
|
|
343
|
+
per label using the official relationship values, such as `fully_preserved`,
|
|
344
|
+
`partially_preserved`, `attribute_transfer`, or `weak_reference` for visual
|
|
345
|
+
content and `fully_copy`, `partially_copy`, `reference`, or `weak_reference` for
|
|
346
|
+
audio. `detailed_description` is the shot-by-shot target-video timeline and
|
|
347
|
+
uses the same `[Shot N]`, `(Sx)`, and `<d>[Language] ...</d>` rules as Base H3.
|
|
348
|
+
|
|
349
|
+
**Reference grammar.** Reference assets are numbered from 1 independently per
|
|
350
|
+
type. Use the exact angle-bracket labels:
|
|
385
351
|
|
|
386
352
|
- `<Picture 1>` … `<Picture 9>` for images
|
|
387
353
|
- `<Video 1>` … `<Video 3>` for videos
|
|
388
354
|
- `<Audio 1>` … for audio
|
|
389
355
|
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
356
|
+
Visible people, objects, scenes, or effects reused from an image or video become
|
|
357
|
+
`<Subject N>` entries whose definitions cite their source asset. Reserve
|
|
358
|
+
`<Picture N>` for a concrete frame or storyboard relationship, `<Video N>` for
|
|
359
|
+
a whole-video edit, continuation, camera, cut, rhythm, or temporal relationship,
|
|
360
|
+
and `<Audio N>` for a standalone audio asset or an explicitly enabled audio
|
|
361
|
+
track. A video file does not automatically create an `<Audio N>` label merely
|
|
362
|
+
because it contains sound.
|
|
396
363
|
|
|
397
|
-
|
|
364
|
+
Rewrite aliases such as "image 2", `@Image2`, or `[Image 2]` to the correct H3
|
|
365
|
+
label. Seedance's `@Image1` / `@Video1` / `@Audio1` grammar must not leak into an
|
|
366
|
+
H3 prompt. Never invent, drop, or renumber references after the prompt is
|
|
367
|
+
written. Give every asset one explicit role and state the winner when sources
|
|
368
|
+
conflict.
|
|
398
369
|
|
|
399
|
-
|
|
400
|
-
video was attached before it.
|
|
401
|
-
- A reference video with sound contributes an `<Audio j>` of its own, counted
|
|
402
|
-
immediately **before** its `<Video k>`. One soundtracked video plus one
|
|
403
|
-
standalone clip means the soundtrack is `<Audio 1>` and the standalone clip is
|
|
404
|
-
`<Audio 2>`.
|
|
370
|
+
Compact format example:
|
|
405
371
|
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
372
|
+
```text
|
|
373
|
+
subject_definitions:
|
|
374
|
+
<Subject 1> is the woman in <Picture 1>; preserve her face, hairstyle, and dark-red jacket.
|
|
375
|
+
<Video 1> is the camera-motion reference for the target video's slow handheld push-in.
|
|
376
|
+
<Audio 1> is the voice-timbre reference for <Subject 1> (S1).
|
|
411
377
|
|
|
412
|
-
|
|
413
|
-
|
|
378
|
+
summary:
|
|
379
|
+
[reference generation + audio reference] The target video shows <Subject 1> walking through a rain-slicked street while following <Video 1>'s camera movement and <Audio 1>'s voice timbre.
|
|
414
380
|
|
|
415
|
-
|
|
416
|
-
<
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
[0-3 seconds] She walks toward camera along the rain-slicked street, hands in
|
|
430
|
-
the jacket pockets. Handheld medium shot, shallow focus, neon reflections
|
|
431
|
-
sliding across the wet asphalt.
|
|
432
|
-
|
|
433
|
-
[3-6 seconds] She stops and glances back over her shoulder as a bus passes
|
|
434
|
-
behind her, its headlights sweeping across her face.
|
|
435
|
-
|
|
436
|
-
[6-8 seconds] Medium close-up, street lights blooming behind her. She says,
|
|
437
|
-
quietly: "It was never going to be the last train."
|
|
438
|
-
|
|
439
|
-
Audio: steady rain on asphalt, tyres hissing through standing water, a bus
|
|
440
|
-
engine passing left to right at 4 seconds. No music.
|
|
381
|
+
retention_analysis:
|
|
382
|
+
<Subject 1> (appears in [Shot 1]): fully_preserved - her identity, hairstyle, and jacket are retained.
|
|
383
|
+
<Video 1> (camera movement): weak_reference - its slow handheld push-in guides the new shot.
|
|
384
|
+
<Audio 1>: reference - its vocal timbre guides <Subject 1>'s dialogue without copying the source signal.
|
|
385
|
+
|
|
386
|
+
detailed_description:
|
|
387
|
+
The target video uses a live-action cinematic style with wet neon street lighting. [Shot 1] <Subject 1> (S1) walks toward the camera while the camera performs the slow handheld push-in referenced from <Video 1>. She stops beneath a streetlight, looks over her shoulder, and says with the dry, low timbre referenced from <Audio 1>: <d>[English] It was never going to be the last train.</d>
|
|
388
|
+
|
|
389
|
+
overall_soundscape:
|
|
390
|
+
Steady rain falls on asphalt while tyres hiss through standing water and a bus engine passes from left to right.
|
|
391
|
+
|
|
392
|
+
non_diegetic_music:
|
|
393
|
+
N/A
|
|
441
394
|
```
|
|
442
395
|
|
|
443
|
-
Trim
|
|
444
|
-
|
|
445
|
-
prompt is written: submission order is ordinal order, so every later tag would
|
|
446
|
-
then point at the wrong file.
|
|
396
|
+
Trim definitions for references that were not attached; unresolved labels are
|
|
397
|
+
invalid.
|
|
447
398
|
|
|
448
399
|
### Agent-ready H3 command shapes
|
|
449
400
|
|
|
450
401
|
```bash
|
|
451
402
|
# Text-to-video (landscape)
|
|
452
|
-
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<H3
|
|
403
|
+
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<three-field H3 prompt>"
|
|
453
404
|
|
|
454
405
|
# Image-to-video from one first frame (portrait)
|
|
455
|
-
sogni-agent -q --video -m minimax-h3-i2v --ref ./first.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<
|
|
406
|
+
sogni-agent -q --video -m minimax-h3-i2v --ref ./first.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
|
|
456
407
|
|
|
457
408
|
# First frame -> last frame transition
|
|
458
|
-
sogni-agent -q --video -m minimax-h3-flf2v --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<
|
|
409
|
+
sogni-agent -q --video -m minimax-h3-flf2v --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
|
|
410
|
+
|
|
411
|
+
# Turbo uses the same T2V/I2V/FLF2V prompt contracts
|
|
412
|
+
sogni-agent -q --video -m minimax-h3-turbo --duration 8 -w 1344 -h 768 -o ./video.mp4 "<three-field H3 prompt>"
|
|
413
|
+
sogni-agent -q --video -m minimax-h3-i2v-turbo --ref ./first.png --duration 8 -w 768 -h 1344 -o ./video.mp4 "<I2V preamble plus three-field H3 prompt>"
|
|
414
|
+
sogni-agent -q --video -m minimax-h3-flf2v-turbo --ref ./first.png --ref-end ./last.png --duration 8 -w 1344 -h 768 -o ./video.mp4 "<FLF2V preamble plus three-field H3 prompt>"
|
|
459
415
|
|
|
460
416
|
# Reference-to-video (reference order defines the prompt ordinals)
|
|
461
|
-
sogni-agent -q --video -m minimax-h3-r2v --ref ./identity.png -c ./wardrobe.png --ref-video ./motion.mp4 --ref-audio ./voice.m4a --duration 8 -w 1344 -h 768 -o ./video.mp4 "<
|
|
417
|
+
sogni-agent -q --video -m minimax-h3-r2v --ref ./identity.png -c ./wardrobe.png --ref-video ./motion.mp4 --ref-audio ./voice.m4a --duration 8 -w 1344 -h 768 -o ./video.mp4 "<six-field Ref2VA prompt>"
|
|
462
418
|
```
|
|
463
419
|
|
|
464
420
|
## High-Res Video Routing
|
|
465
421
|
|
|
466
422
|
When the user asks for video in **"hd"**, **"1080p"**, **"4k"**, **"uhd"**, or **"high-res"**, do not use the default WAN video models.
|
|
467
423
|
|
|
468
|
-
- For **native Seedance 4K / UHD**, use full Seedance with `-m seedance2 --target-resolution 2160`. This is a Premium Spark vendor path; do not use `seedance2-mini` or `seedance2-
|
|
424
|
+
- For **native Seedance 4K / UHD**, use full Seedance with `-m seedance2 --target-resolution 2160`. This is a Premium Spark vendor path; do not use `seedance2-mini`, `seedance2-fast`, or `seedance2-5` for 4K — Mini and Fast cap at 720p, and Seedance 2.5 renders 480p/720p only.
|
|
469
425
|
- For **non-vendor HD / 1080p text-to-video**, use `-m ltx23-22b-fp8_t2v_distilled`.
|
|
470
426
|
- For **non-vendor HD / 1080p image-to-video**, use `-m ltx23-22b-fp8_i2v_distilled`.
|
|
471
427
|
- Prefer LTX-sized dimensions such as `-w 1920 -h 1088` when the chosen model is LTX.
|
|
@@ -491,6 +447,9 @@ sogni-agent --video --reference-audio-identity voice.webm 'NARRATOR: "This is my
|
|
|
491
447
|
|
|
492
448
|
# Seedance 2.0 standard (4-15s vendor video path with native audio)
|
|
493
449
|
sogni-agent --video -m seedance2 --duration 8 "A polished product reveal with native ambient sound"
|
|
450
|
+
|
|
451
|
+
# Seedance 2.5 (4-30s single clips, 480p/720p only — the one Seedance that renders past 15s in one call)
|
|
452
|
+
sogni-agent --video -m seedance2-5 --duration 24 "A continuous one-take product story with native ambient sound"
|
|
494
453
|
```
|
|
495
454
|
|
|
496
455
|
Prefer `.webm`, `.m4a`, or `.mp3` voice clips. Local `.wav` clips are normalized
|