@sogni-ai/sogni-creative-agent-skill 3.23.0 → 3.26.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 +21 -0
- package/README.md +12 -3
- package/SKILL.md +18 -7
- package/desktop-extension/manifest.json +1 -1
- package/desktop-extension/server/tools.mjs +13 -2
- package/openclaw.plugin.json +1 -1
- package/package.json +3 -3
- package/plugin-skills/sogni-creative-agent/SKILL.md +2 -1
- package/references/models.md +195 -4
- package/references/video-prompting.md +394 -4
- package/skill-package.json +1 -1
- package/skills/video_editing.md +4 -3
- package/skills/video_generation.md +4 -3
- package/sogni-agent.mjs +235 -30
- package/version.mjs +1 -1
|
@@ -1,8 +1,16 @@
|
|
|
1
|
-
# Video Prompting Guide (LTX-2.3, pacing, orientation, camera language)
|
|
1
|
+
# Video Prompting Guide (LTX-2.3, MiniMax H3, pacing, orientation, camera language)
|
|
2
2
|
|
|
3
3
|
Read this before writing any text-to-video or image-to-video prompt for LTX
|
|
4
|
-
models, and whenever the user asks for
|
|
5
|
-
"high-res" video so you can choose between the
|
|
4
|
+
models, before writing any MiniMax H3 prompt, and whenever the user asks for
|
|
5
|
+
"hd", "1080p", "4k", "uhd", or "high-res" video so you can choose between the
|
|
6
|
+
LTX and Seedance paths.
|
|
7
|
+
|
|
8
|
+
Both families take natural cinematic language, but they want different
|
|
9
|
+
**shapes**. LTX wants one unbroken prose paragraph with no line breaks and no
|
|
10
|
+
negative phrasing. MiniMax H3 wants free-form prose laid out as a timed shot
|
|
11
|
+
list, with explicit audio direction and in-prompt negative direction. Do not
|
|
12
|
+
carry LTX's single-paragraph, positive-only, no-markup rule into an H3 prompt.
|
|
13
|
+
Pick the section that matches the model you are about to invoke.
|
|
6
14
|
|
|
7
15
|
## LTX-2.3 Prompt Rule
|
|
8
16
|
|
|
@@ -30,7 +38,7 @@ it into an LTX-2.3-safe prompt before calling `sogni-agent`.
|
|
|
30
38
|
"she says something," or "the couple discusses the scene."
|
|
31
39
|
- Budget spoken dialogue at about 3 words per second, plus about 1 second for each meaningful acting beat or pause.
|
|
32
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.
|
|
33
|
-
- 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]`.
|
|
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 is the opposite on both counts: it responds unusually well to in-prompt negative direction ("no music, no slow motion") and to plain bracketed timecodes such as `[0-3 seconds]`, and any markup the user wrote themselves must be preserved rather than stripped — see [MiniMax H3 Prompting](#minimax-h3-prompting).
|
|
34
42
|
- Keep action density proportional to duration. For short clips, describe one main beat rather than several separate events.
|
|
35
43
|
- Preserve the user's request, but expand it into cinematic prose. Do not invent a different story just to make the prompt longer.
|
|
36
44
|
|
|
@@ -71,6 +79,388 @@ User ask: "4k video of a woman in a neon alley"
|
|
|
71
79
|
Use this shape instead: "A medium cinematic shot frames a woman in her 30s standing in a rain-soaked neon alley at night, violet and amber signs reflecting across the wet pavement while warm steam drifts from street vents. She wears a dark trench coat with damp strands of black hair clinging near her cheek as light glances across the fabric texture and the brick walls behind her. She turns toward the camera and steps forward with measured focus, one hand tightening around the strap of her bag while rain taps softly on the metal fire escape and a distant train hum rolls through the block. The camera performs a slow push-in as her jaw sets and her breathing steadies, maintaining smooth stabilized motion and a tense urban-thriller mood."
|
|
72
80
|
```
|
|
73
81
|
|
|
82
|
+
## MiniMax H3 Prompting
|
|
83
|
+
|
|
84
|
+
Write H3 prompts as **natural cinematic prose**. There is no required structure,
|
|
85
|
+
no field names, and no mandatory tags. Still expand a one-line user request into
|
|
86
|
+
a fully directed scene — H3 rewards detail and punishes slogans — but expand it
|
|
87
|
+
in plain English, the way you would brief a DP and a sound designer.
|
|
88
|
+
|
|
89
|
+
Applies to `minimax-h3` / `minimax-h3-t2v`, `minimax-h3-i2v`, and
|
|
90
|
+
`minimax-h3-flf2v` (worker ids `minimax-h3-fl2va-fp8_t2v`,
|
|
91
|
+
`minimax-h3-fl2va-fp8_i2v`, `minimax-h3-fl2va-fp8_flf2v`), and — with one extra
|
|
92
|
+
rule about reference tags — to `minimax-h3-r2v` (worker id
|
|
93
|
+
`minimax-h3-ref2va-fp8_r2v`). See
|
|
94
|
+
[MiniMax H3 reference-to-video (r2v)](#minimax-h3-reference-to-video-r2v) below
|
|
95
|
+
before writing an r2v prompt.
|
|
96
|
+
|
|
97
|
+
### Why this guidance is natural-language-first
|
|
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).
|
|
104
|
+
|
|
105
|
+
### Fixed model facts
|
|
106
|
+
|
|
107
|
+
- **24 fps, always.** Do not pass an fps override.
|
|
108
|
+
- **Frame counts sit on the `124 + n×17` grid**, from `124` through `362` —
|
|
109
|
+
i.e. **5.17 s to 15.08 s**. The CLI snaps `--duration` onto that grid; an
|
|
110
|
+
off-grid explicit `--frames` is a hard error.
|
|
111
|
+
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. Use
|
|
112
|
+
`-w 1344 -h 768` (landscape) or `-w 768 -h 1344` (portrait).
|
|
113
|
+
- **20 steps, guidance/CFG 1, distilled.** Do not send steps, guidance, sampler,
|
|
114
|
+
scheduler, or a **negative prompt**. The checkpoint is CFG-distilled with
|
|
115
|
+
guidance locked at 1, so there is no negative branch at all: a
|
|
116
|
+
`negativePrompt` parameter is ignored wherever it is accepted. Negative
|
|
117
|
+
direction goes in the prompt text instead.
|
|
118
|
+
- **Native 32 kHz stereo audio is generated jointly with the picture.** Every
|
|
119
|
+
sound — dialogue, foley, ambience, score — exists only because the prompt
|
|
120
|
+
asked for it. `generateAudio=false` strips that generated track from the
|
|
121
|
+
delivered file; it does not skip audio generation.
|
|
122
|
+
- **Sogni's H3 is the 768p-class open-weights release.** Do not offer or claim
|
|
123
|
+
2K; MiniMax's 2K stage is hosted-only and is not part of the open release.
|
|
124
|
+
- **Prompt length:** fal documents up to **7,000 characters** for H3, and timed
|
|
125
|
+
shot lists get long. The Sogni CLI does not truncate. If the surface you are
|
|
126
|
+
writing for caps prompts shorter than that, flag the cap explicitly rather
|
|
127
|
+
than silently trimming a shot list.
|
|
128
|
+
- The initial Sogni release is routed to 32 GB-class workers.
|
|
129
|
+
|
|
130
|
+
Because `--duration` snaps to the frame grid, the delivered length is rarely the
|
|
131
|
+
integer the user asked for:
|
|
132
|
+
|
|
133
|
+
| `--duration` | Frames | Actual length |
|
|
134
|
+
|---|---|---|
|
|
135
|
+
| 5 | 124 | 5.17 s |
|
|
136
|
+
| 6 | 141 | 5.88 s |
|
|
137
|
+
| 8 | 192 | 8.00 s |
|
|
138
|
+
| 10 | 243 | 10.13 s |
|
|
139
|
+
| 12 | 294 | 12.25 s |
|
|
140
|
+
| 15 | 362 | 15.08 s |
|
|
141
|
+
|
|
142
|
+
### How to write an H3 prompt
|
|
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".
|
|
191
|
+
|
|
192
|
+
### Worked example — text-to-video
|
|
193
|
+
|
|
194
|
+
```text
|
|
195
|
+
User ask: "10 second video of a barista and a customer arguing about oat milk"
|
|
196
|
+
|
|
197
|
+
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./cafe.mp4 "<prompt below>"
|
|
198
|
+
```
|
|
199
|
+
|
|
200
|
+
```text
|
|
201
|
+
A narrow espresso bar on a weekday morning, shot on a 35mm lens. Soft window
|
|
202
|
+
light from the left rakes across a brushed-steel machine and a glass pastry
|
|
203
|
+
case. Live-action, unstylized, slightly desaturated.
|
|
204
|
+
|
|
205
|
+
[0-3 seconds] Medium two-shot. A barista in her late twenties slides a small
|
|
206
|
+
white cup across the counter. A customer in a grey overcoat, mid-forties, stops
|
|
207
|
+
the saucer with two fingers. The camera pushes in slowly. He says, quiet and
|
|
208
|
+
clipped: "I asked for oat milk."
|
|
209
|
+
|
|
210
|
+
[3-7 seconds] Close-up over his shoulder, static. She lifts the oat carton,
|
|
211
|
+
turns it upside down to show it is empty, and sets it back on the wood. Flat,
|
|
212
|
+
even delivery: "We ran out at six this morning."
|
|
213
|
+
|
|
214
|
+
[7-10 seconds] Back to the two-shot. His jaw tightens, he pulls the cup toward
|
|
215
|
+
himself, and steam curls past his face while she turns to the next ticket.
|
|
216
|
+
|
|
217
|
+
Audio: low cafe room tone under everything, a steam wand hissing at 1 second,
|
|
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.
|
|
221
|
+
|
|
222
|
+
No slow motion, no lens flare, no on-screen text.
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
### Worked example — image-to-video
|
|
226
|
+
|
|
227
|
+
```text
|
|
228
|
+
User ask (with an uploaded portrait): "have her look up and say she's not going back"
|
|
229
|
+
|
|
230
|
+
sogni-agent -q --video -m minimax-h3-i2v --ref ./portrait.png --duration 6 -w 768 -h 1344 -o ./reply.mp4 "<prompt below>"
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
```text
|
|
234
|
+
Use the reference image as the first frame and keep the woman exactly as she is:
|
|
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."
|
|
244
|
+
|
|
245
|
+
[4-6 seconds] She turns her head a few degrees toward the aisle, sets her jaw,
|
|
246
|
+
and closes one hand around the strap of the bag in her lap. The camera holds.
|
|
247
|
+
|
|
248
|
+
Sound design: steady diesel drone and the rattle of the bus frame throughout,
|
|
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.
|
|
252
|
+
|
|
253
|
+
One continuous shot, no cuts. Do not change her hairstyle, jacket, or the seat
|
|
254
|
+
colour.
|
|
255
|
+
```
|
|
256
|
+
|
|
257
|
+
Round the brackets to whole seconds even though the grid rarely delivers one:
|
|
258
|
+
`--duration 6` renders 141 frames (5.88 s) and `--duration 10` renders 243
|
|
259
|
+
frames (10.13 s). H3 reads the shot list as pacing, not as a frame-accurate
|
|
260
|
+
edit decision list, so the last bracket does not need to match the delivered
|
|
261
|
+
length exactly.
|
|
262
|
+
|
|
263
|
+
### Optional / advanced: MiniMax's IR markup
|
|
264
|
+
|
|
265
|
+
MiniMax also defines a tagged intermediate format. Treat it as optional: useful
|
|
266
|
+
occasionally, never required, and **never strip a user's own markup if they
|
|
267
|
+
wrote it** — pass it through verbatim.
|
|
268
|
+
|
|
269
|
+
Where it can still earn its place: many speakers who need to stay distinct
|
|
270
|
+
across cuts, non-English dialogue where an explicit language tag removes
|
|
271
|
+
ambiguity, and speech that must survive a cut or run past the end of the clip.
|
|
272
|
+
|
|
273
|
+
**Dialogue tags.** Only the language tag and the spoken words go inside
|
|
274
|
+
`<d>…</d>`. The speaker's identifying phrase, ID, action, and delivery all stay
|
|
275
|
+
outside it:
|
|
276
|
+
|
|
277
|
+
```text
|
|
278
|
+
The young woman with a quiet, breathy voice (S1) says: <d>[English] I get off at the next station.</d>
|
|
279
|
+
The two children (S1,S2) shout together, <d>[English] Wait for us!</d>
|
|
280
|
+
```
|
|
281
|
+
|
|
282
|
+
- Speaker IDs are `(S1)`, `(S2)`, … assigned in order of first vocal event and
|
|
283
|
+
kept stable across every shot. A character who never vocalizes gets no ID. Two
|
|
284
|
+
or more already-numbered speakers vocalizing together use a compound ID such
|
|
285
|
+
as `(S1,S2)`.
|
|
286
|
+
- Supported dialogue languages: Arabic, Chinese, English, French, German,
|
|
287
|
+
Italian, Japanese, Korean, Portuguese, Russian, Spanish. The tag is the
|
|
288
|
+
English language name in square brackets, e.g. `<d>[Japanese] …</d>`.
|
|
289
|
+
- **Voiceover** uses the exact phrase `says in an off-screen voiceover`, and the
|
|
290
|
+
`<d>` block is followed by a statement that the on-screen character's lips
|
|
291
|
+
stay closed:
|
|
292
|
+
|
|
293
|
+
```text
|
|
294
|
+
The man (S1) says in an off-screen voiceover: <d>[English] I still remember that road.</d> while his lips remain completely closed.
|
|
295
|
+
```
|
|
296
|
+
|
|
297
|
+
- `<scenetrans>` marks one line of dialogue or lyrics that crosses a cut: place
|
|
298
|
+
it at the connecting point in **both** parts, and state explicitly that the
|
|
299
|
+
audio continues across the cut (`continues seamlessly across the cut`,
|
|
300
|
+
`continues uninterrupted into the next shot`, `carries over from the previous
|
|
301
|
+
shot`, `remains audible across the transition`).
|
|
302
|
+
- `<cutoff>` marks speech that is truncated by the end of the video.
|
|
303
|
+
|
|
304
|
+
**Shot markers and the camera vocabulary.** In the IR format, `[Shot 1]` opens
|
|
305
|
+
with the overall style and initial composition and takes no timestamp; every
|
|
306
|
+
later shot opens with a strictly increasing cut time — `[Shot 2] At 00:03.500,
|
|
307
|
+
the camera cuts to …` (also `the shot cuts to` / `transitions to` / `changes
|
|
308
|
+
to` / `switches to`). The IR's camera motion types are `Zoom In/Out`, `Push
|
|
309
|
+
In/Pull Out`, `Pan Left/Right`, `Truck Left/Right`, `Tilt Up/Down`, `Pedestal
|
|
310
|
+
Up/Down`, `Arc Shot`, `Tracking Shot`, `Static Shot`, `Shake
|
|
311
|
+
Slightly/Strongly`, `POV`, and `Roll Clockwise/Counterclockwise`, optionally
|
|
312
|
+
qualified `with small amplitude` / `with large amplitude` and `at slow speed` /
|
|
313
|
+
`at fast speed`. These are good words to use in plain prose too — a timed shot
|
|
314
|
+
list with `[0-3 seconds]` timecodes carries the same information without the
|
|
315
|
+
markers.
|
|
316
|
+
|
|
317
|
+
**The three-field IR document.** MiniMax's rewriter emits an optional alignment
|
|
318
|
+
line, a blank line, then exactly three labelled fields in this order:
|
|
319
|
+
|
|
320
|
+
```text
|
|
321
|
+
integrated_multimodal_description: [Shot 1] ...
|
|
322
|
+
|
|
323
|
+
overall_soundscape: ...
|
|
324
|
+
|
|
325
|
+
non_diegetic_music: ...
|
|
326
|
+
```
|
|
327
|
+
|
|
328
|
+
`integrated_multimodal_description` is the whole audiovisual timeline;
|
|
329
|
+
`overall_soundscape` is 1-4 sentences of ambience, physical action sound, and
|
|
330
|
+
non-verbal human sound (no dialogue, singing, or diegetic music);
|
|
331
|
+
`non_diegetic_music` is 1-3 sentences of score-only instrumentation, tempo, and
|
|
332
|
+
dynamics. `N/A` is the schema's token for "nothing here" — used in
|
|
333
|
+
`non_diegetic_music` for no score, and in `overall_soundscape` only for a
|
|
334
|
+
deliberately silent video. Writing this document by hand is supported but buys
|
|
335
|
+
nothing over the prose examples above.
|
|
336
|
+
|
|
337
|
+
**Alignment instruction lines (i2v / flf2v only).** These pin a reference image
|
|
338
|
+
to a timestamp. Plain-English reference jobs ("use the reference image as the
|
|
339
|
+
first frame") work as well in Sogni's testing, but the verbatim lines are
|
|
340
|
+
available when a precise timestamp matters. Text-to-video has no alignment line.
|
|
341
|
+
|
|
342
|
+
Image-to-video (`minimax-h3-i2v`, one `--ref`):
|
|
343
|
+
|
|
344
|
+
```text
|
|
345
|
+
For the target video, at 0.00 seconds into the target video, <Picture 1> (from [Shot 1]) is fully referenced.
|
|
346
|
+
```
|
|
347
|
+
|
|
348
|
+
First frame → last frame (`minimax-h3-flf2v`, `--ref` plus `--ref-end`). Note
|
|
349
|
+
the bare `Picture 1` / `Shot 1` with **no** angle or square brackets, and the em
|
|
350
|
+
dash (`—`) with a space on each side:
|
|
351
|
+
|
|
352
|
+
```text
|
|
353
|
+
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.
|
|
354
|
+
```
|
|
355
|
+
|
|
356
|
+
`N` is the index of the actual final shot (`Shot 1` for the usual single-shot
|
|
357
|
+
transition), and `S.SS` is the effective duration to exactly two decimal places
|
|
358
|
+
— `10.13` for 243 frames at 24 fps (243 ÷ 24 = 10.125, rounded up).
|
|
359
|
+
|
|
360
|
+
### MiniMax H3 reference-to-video (r2v)
|
|
361
|
+
|
|
362
|
+
`minimax-h3-r2v` conditions on a whole **reference set** rather than one or two
|
|
363
|
+
locked frames: up to **9 reference images** (at least one is required),
|
|
364
|
+
**3 reference videos** (24 fps, 2–15 s, each with an optional soundtrack) and
|
|
365
|
+
**3 standalone audio clips**, **12 files maximum in total**. It runs a separate
|
|
366
|
+
ref2va checkpoint, so it is never inferred — it must be chosen by name with
|
|
367
|
+
direct CLI `-m minimax-h3-r2v` or the `generate_video` tool's
|
|
368
|
+
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat). Direct CLI
|
|
369
|
+
uses `--ref` then repeatable `-c` for images, plus repeatable `--ref-video` and
|
|
370
|
+
`--ref-audio` for those modalities. Reference videos and
|
|
371
|
+
audio are additions to the image set, never replacements for it, and r2v has no
|
|
372
|
+
frame anchors at all — for a locked opening frame use `minimax-h3-i2v`, and for a
|
|
373
|
+
first-to-last-frame transition use `minimax-h3-flf2v`.
|
|
374
|
+
|
|
375
|
+
Everything else on this page still applies — natural cinematic prose, the timed
|
|
376
|
+
shot list, deliberate audio direction, in-prompt negative direction, and no
|
|
377
|
+
negative-prompt field. r2v adds exactly one rule on top.
|
|
378
|
+
|
|
379
|
+
**Reference grammar.** References are numbered **from 1 per type**, in the order
|
|
380
|
+
images → videos → standalone audio, and H3's text encoder splices a literal label
|
|
381
|
+
in front of each one before your prompt text (`"<Picture i>: "`, `"<Video k>: "`,
|
|
382
|
+
`"<Audio j>: "`). Write the prompt with the same tags, **angle brackets
|
|
383
|
+
included**, so the sentence about a reference shares a token sequence with that
|
|
384
|
+
reference's own label:
|
|
385
|
+
|
|
386
|
+
- `<Picture 1>` … `<Picture 9>` for images
|
|
387
|
+
- `<Video 1>` … `<Video 3>` for videos
|
|
388
|
+
- `<Audio 1>` … for audio
|
|
389
|
+
|
|
390
|
+
Rewrite any alias the user typed — "image 2", "the second photo", `@Image2`,
|
|
391
|
+
`[Image 2]` — into `<Picture 2>`. This is deliberately **not** the Seedance
|
|
392
|
+
grammar: Seedance uses `@Image1` / `@Video1` / `@Audio1` (see the Seedance
|
|
393
|
+
reference modes in `models.md`), and the two must never be mixed. Never invent a
|
|
394
|
+
reference that was not attached, never mention file names, URLs or asset indices,
|
|
395
|
+
and never renumber the ones you were given.
|
|
396
|
+
|
|
397
|
+
Two ordinal traps:
|
|
398
|
+
|
|
399
|
+
- Numbering restarts per type, so the first image is `<Picture 1>` even when a
|
|
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>`.
|
|
405
|
+
|
|
406
|
+
**One explicit job per reference.** H3 blends everything it is shown unless told
|
|
407
|
+
what to take from where, so give every attached reference a single,
|
|
408
|
+
non-overlapping job in a plain sentence, and say who wins when two disagree. An
|
|
409
|
+
unassigned reference is the most common cause of identity drift and washed-out
|
|
410
|
+
style on this model.
|
|
411
|
+
|
|
412
|
+
Worked example — 3 images, 1 soundtracked video, 1 standalone audio clip (6
|
|
413
|
+
files):
|
|
414
|
+
|
|
415
|
+
```text
|
|
416
|
+
<Picture 1> is the identity reference for the woman: her face, her bone
|
|
417
|
+
structure, and her hairstyle carry over exactly, and nothing else from that
|
|
418
|
+
frame does. <Picture 2> is the wardrobe reference: the dark red jacket, its
|
|
419
|
+
collar, and the way it hangs — take the garment, not the person wearing it.
|
|
420
|
+
<Picture 3> is the location, lighting palette, and film texture: the wet street,
|
|
421
|
+
the sodium and neon colour, the grain. Do not copy any person, vehicle, or
|
|
422
|
+
signage from <Picture 3>. Use <Video 1> only for the camera movement — the slow
|
|
423
|
+
handheld push-in and its timing — and take nothing else from it; <Audio 1> is
|
|
424
|
+
that clip's own soundtrack and is reference only, do not reproduce it.
|
|
425
|
+
<Audio 2> is the voice character for her single line: dry, low, close-miked.
|
|
426
|
+
Where <Picture 1> and <Picture 3> disagree on colour or exposure, <Picture 1>
|
|
427
|
+
wins on her face and <Picture 3> wins on everything behind her.
|
|
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.
|
|
441
|
+
```
|
|
442
|
+
|
|
443
|
+
Trim assignments for references that were not actually attached — a tag with
|
|
444
|
+
nothing behind it is noise. And do not reorder or drop a reference after the
|
|
445
|
+
prompt is written: submission order is ordinal order, so every later tag would
|
|
446
|
+
then point at the wrong file.
|
|
447
|
+
|
|
448
|
+
### Agent-ready H3 command shapes
|
|
449
|
+
|
|
450
|
+
```bash
|
|
451
|
+
# Text-to-video (landscape)
|
|
452
|
+
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<H3 prose prompt>"
|
|
453
|
+
|
|
454
|
+
# 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 "<H3 prose prompt naming the reference image's job>"
|
|
456
|
+
|
|
457
|
+
# 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 "<H3 prose prompt describing the motion path between the two frames>"
|
|
459
|
+
|
|
460
|
+
# 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 "<H3 prose assigning jobs to <Picture 1>, <Picture 2>, <Video 1>, and <Audio 1>>"
|
|
462
|
+
```
|
|
463
|
+
|
|
74
464
|
## High-Res Video Routing
|
|
75
465
|
|
|
76
466
|
When the user asks for video in **"hd"**, **"1080p"**, **"4k"**, **"uhd"**, or **"high-res"**, do not use the default WAN video models.
|
package/skill-package.json
CHANGED
package/skills/video_editing.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video_editing
|
|
3
|
-
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
3
|
+
description: Source-conditioned video flows: animate a photo, audio-driven motion, video style transfer, Seedance/HappyHorse/MiniMax H3 references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles).
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- animate_photo
|
|
@@ -17,11 +17,11 @@ tool_names:
|
|
|
17
17
|
|
|
18
18
|
# Video editing
|
|
19
19
|
|
|
20
|
-
Convert a still image, audio track, or existing clip into video, plus Seedance multimodal references, HappyHorse image references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles) over previously rendered or uploaded clips.
|
|
20
|
+
Convert a still image, audio track, or existing clip into video, plus Seedance and MiniMax H3 multimodal references, HappyHorse image references, stitching, orbits, dance-montage compositions, segment extend/replace, and pure-ffmpeg post-production (overlay, subtitles) over previously rendered or uploaded clips.
|
|
21
21
|
|
|
22
22
|
## Tools
|
|
23
23
|
|
|
24
|
-
- `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse routing.
|
|
24
|
+
- `animate_photo` — photo-to-video animation with LTX/WAN/Seedance/HappyHorse/MiniMax H3 i2v and first/last-frame routing.
|
|
25
25
|
- `sound_to_video` — audio-synced video generation.
|
|
26
26
|
- `video_to_video` — video style transfer with ControlNet.
|
|
27
27
|
- `stitch_video` — concatenate previously rendered clips.
|
|
@@ -39,3 +39,4 @@ Convert a still image, audio track, or existing clip into video, plus Seedance m
|
|
|
39
39
|
- For multiple prompt-only takes from one fixed source/end image and shared settings, prefer one Dynamic Prompt request with `numberOfVariations`/`-n`, then stitch the returned clips if the user asked for a single final video.
|
|
40
40
|
- Keep per-clip prompt arrays and source/end image arrays when clips need different assets, durations, audio windows, or other per-output settings.
|
|
41
41
|
- HappyHorse i2v uses exactly one first-frame image and r2v uses 1-9 image references; do not attach reference audio, reference video, ControlNet, or negative prompts.
|
|
42
|
+
- MiniMax H3 i2v uses one first frame and H3 flf2v uses both first and last frames. For a loose image/video/audio set use `generate_video` with explicit `minimax-h3-r2v`; r2v references are roles, not frame anchors.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: video_generation
|
|
3
|
-
description: Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0,
|
|
3
|
+
description: Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0, HappyHorse 1.1, and MiniMax H3.
|
|
4
4
|
always_loaded: false
|
|
5
5
|
tool_names:
|
|
6
6
|
- generate_video
|
|
@@ -8,14 +8,15 @@ tool_names:
|
|
|
8
8
|
|
|
9
9
|
# Video generation
|
|
10
10
|
|
|
11
|
-
Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0,
|
|
11
|
+
Text-to-video synthesis with LTX-2.3, WAN 2.2, Seedance 2.0, HappyHorse 1.1, and MiniMax H3. Use when the user wants a new video clip generated from a prompt or a loose multimodal reference set.
|
|
12
12
|
|
|
13
13
|
## Tools
|
|
14
14
|
|
|
15
|
-
- `generate_video` — produce a video clip from text, Seedance multimodal references, or HappyHorse image references.
|
|
15
|
+
- `generate_video` — produce a video clip from text, Seedance/H3 multimodal references, or HappyHorse image references.
|
|
16
16
|
|
|
17
17
|
## Constraints
|
|
18
18
|
|
|
19
19
|
- Persona-driven video requests must always go through `image_editing` first to produce a conditioned image; never go straight to text-to-video for personas.
|
|
20
20
|
- For prompt-only variants with the same model, duration, dimensions, and references, use one Dynamic Prompt branch with `numberOfVariations`/`-n` instead of serial video calls.
|
|
21
21
|
- HappyHorse 1.1 is a Premium Spark vendor path: t2v is prompt-only, i2v uses one first-frame image, and r2v uses 1-9 image references. It accepts no reference audio or video.
|
|
22
|
+
- MiniMax H3 t2v uses `minimax-h3-t2v`; H3 r2v must be selected explicitly as `minimax-h3-r2v` and accepts up to 9 images, 3 videos, and 3 audio clips, capped at 12 files with at least one image. Address references with per-type `<Picture 1>` / `<Video 1>` / `<Audio 1>` tags and assign each one a role.
|