@sogni-ai/sogni-creative-agent-skill 3.22.0 → 3.25.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 +28 -0
- package/README.md +4 -0
- package/SKILL.md +14 -3
- package/desktop-extension/manifest.json +1 -1
- package/desktop-extension/server/index.mjs +21 -2
- package/desktop-extension/server/tools.mjs +1 -1
- package/openclaw.plugin.json +2 -2
- package/package.json +3 -3
- package/references/models.md +194 -0
- package/references/openclaw-config.md +1 -1
- package/references/video-prompting.md +390 -4
- package/skill-package.json +1 -1
- package/sogni-agent.mjs +141 -13
- package/version.mjs +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sogni-creative-agent",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "Sogni Creative Agent: image, video, and music generation via Sogni AI's decentralized GPU network. Supports personas, persistent memories, style transfer, and multi-step creative workflows.",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Sogni AI",
|
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,31 @@
|
|
|
1
|
+
# [3.25.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.24.0...v3.25.0) (2026-08-04)
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
### Features
|
|
5
|
+
|
|
6
|
+
* **video:** document MiniMax H3 reference workflows ([22bece3](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/22bece3815ca9fb684e416a7ad2958ddc815f045))
|
|
7
|
+
|
|
8
|
+
# [3.24.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.23.0...v3.24.0) (2026-08-04)
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Features
|
|
12
|
+
|
|
13
|
+
* **video:** document MiniMax H3 generation ([67b0c5a](https://github.com/Sogni-AI/sogni-creative-agent-skill/commit/67b0c5ae94c7ee784a260d0174008f42d2283038))
|
|
14
|
+
|
|
15
|
+
# [3.23.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.22.0...v3.23.0) (2026-08-03)
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
### Bug Fixes
|
|
19
|
+
|
|
20
|
+
* **video:** raise the default generation timeout to 30 minutes and explicitly cancel every known Sogni project before reporting a timeout
|
|
21
|
+
* **video:** keep desktop and OpenClaw process safety limits behind the CLI timeout so network cancellation can finish first
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Features
|
|
25
|
+
|
|
26
|
+
* **models:** add MiniMax H3 text-to-video, image-to-video, and first/last-frame aliases with native frame-grid alignment
|
|
27
|
+
|
|
28
|
+
|
|
1
29
|
# [3.22.0](https://github.com/Sogni-AI/sogni-creative-agent-skill/compare/v3.21.0...v3.22.0) (2026-07-30)
|
|
2
30
|
|
|
3
31
|
|
package/README.md
CHANGED
|
@@ -574,6 +574,9 @@ Prefer `-Q fast|hq|pro` for images and automatic workflow routing for video. Pas
|
|
|
574
574
|
| Photobooth face transfer | `coreml-sogniXLturbo_alpha1_ad` |
|
|
575
575
|
| Direct music generation | `ace_step_1.5_xl_turbo` (or `--music-model turbo`) |
|
|
576
576
|
| Music with stronger lyric handling | `ace_step_1.5_xl_sft` (or `--music-model sft`) |
|
|
577
|
+
| MiniMax H3 text-to-video with native stereo audio | `minimax-h3` or `minimax-h3-t2v` |
|
|
578
|
+
| MiniMax H3 image-to-video | `minimax-h3-i2v` |
|
|
579
|
+
| MiniMax H3 first-frame → last-frame video | `minimax-h3-flf2v` with `--ref A --ref-end B` |
|
|
577
580
|
| Text-to-video with native dialogue/audio | `ltx23-22b-fp8_t2v_distilled` |
|
|
578
581
|
| Explicit uncensored image-to-video on 30GB+ GPUs | `ltx23-eros` with `--no-filter` |
|
|
579
582
|
| Image+audio-to-video | `ltx23-22b-fp8_ia2v_distilled` |
|
|
@@ -592,6 +595,7 @@ Music generation uses `--music` and outputs `mp3` by default. `--audio` remains
|
|
|
592
595
|
## Video Sizing & Aspect Ratios
|
|
593
596
|
|
|
594
597
|
- **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
|
|
598
|
+
- **MiniMax H3** uses a 32 px grid, fixed 24 fps, native 32 kHz stereo audio, 124–362 frames (`124 + n×17`, i.e. 5.17–15.08 s), and a 1,032,192-pixel render cap (normally 1344×768 or 768×1344). Steps 20 and guidance 1 are fixed and it takes no negative prompt (state negatives in the prompt text instead). Its prompt is natural cinematic prose — a timed shot list with bracketed timecodes plus explicit audio direction works best; see `references/video-prompting.md` § MiniMax H3 Prompting. This is the 768p-class open-weights release, not MiniMax's hosted 2K stage. The initial Sogni release requires a 32 GB-class worker.
|
|
595
599
|
- **LTX family** (`ltx2-*`, `ltx23-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
|
|
596
600
|
- **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
597
601
|
- For spoken dialogue, budget roughly 3 words per second plus about 1 second for each meaningful acting beat or pause. Keep quoted speech under the model's hard per-clip word budget.
|
package/SKILL.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: sogni-creative-agent-skill
|
|
3
3
|
description: "Sogni Creative Agent Skill: agent skill and CLI for image, video, and music generation using Sogni AI's decentralized GPU network. Supports one-click image-folder loop reels, personas (named people with saved reference photos and voice clips), persistent memories, custom personality, style transfer, angle synthesis, Seedance/HappyHorse/LTX/WAN video, music/lyrics, hosted chat, durable workflows, replay records, and multi-step creative workflows. Ask the agent to \"draw\", \"generate\", \"create an image\", \"make a video/animate\", \"turn this image folder into a loop\", \"make music\", \"apply a style\", or \"generate me as a superhero\"."
|
|
4
4
|
metadata:
|
|
5
|
-
version: "3.
|
|
5
|
+
version: "3.25.0"
|
|
6
6
|
homepage: https://sogni.ai
|
|
7
7
|
openclaw:
|
|
8
8
|
emoji: "🎨"
|
|
@@ -166,6 +166,13 @@ sogni-agent --music --lyrics "Rise with the morning light" --bpm 128 --keyscale
|
|
|
166
166
|
# Seedance 2.0 4K (4-15s vendor video with native audio)
|
|
167
167
|
sogni-agent --video -m seedance2 --target-resolution 2160 --duration 8 "A polished product reveal with native ambient sound"
|
|
168
168
|
|
|
169
|
+
# MiniMax H3 (fixed 24fps, native stereo audio + dialogue; natural prose prompt
|
|
170
|
+
# with a timed shot list and audio direction — see references/video-prompting.md).
|
|
171
|
+
# t2v default; --ref = i2v; --ref + --ref-end = flf2v.
|
|
172
|
+
sogni-agent --video -m minimax-h3 --duration 10 -w 1344 -h 768 "<H3 prose prompt>"
|
|
173
|
+
sogni-agent --video -m minimax-h3-i2v --ref first.png --duration 8 "<H3 prose prompt>"
|
|
174
|
+
sogni-agent --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 "<H3 prose prompt>"
|
|
175
|
+
|
|
169
176
|
# HappyHorse 1.1 (3-15s vendor video, fixed 24fps, native audio). t2v default;
|
|
170
177
|
# i2v from one first-frame image (--ref); r2v from 1-9 reference images (-c).
|
|
171
178
|
sogni-agent --video -m happyhorse --duration 8 "A glowing jellyfish drifts through a neon city"
|
|
@@ -244,6 +251,10 @@ tokens in that scoped reference rather than ordinary model recommendations.
|
|
|
244
251
|
|
|
245
252
|
### High-res video
|
|
246
253
|
|
|
254
|
+
MiniMax H3 is an explicit model choice, not a universal default. Use `-m minimax-h3` for text-to-video, `-m minimax-h3-i2v --ref A` for first-frame animation, or `-m minimax-h3-flf2v --ref A --ref-end B` for a first/last-frame transition. H3 generates picture and **native 32 kHz stereo audio jointly** at fixed 24 fps, so dialogue, foley, and score must be described in the prompt. `generateAudio=false` can strip that generated track from the delivered file; it does not skip audio generation. Frames snap to the `124 + n×17` grid (5.17-15.08 s); use `-w 1344 -h 768` or `-w 768 -h 1344`; send no steps, guidance, sampler, scheduler, or negative prompt. It is the 768p-class open-weights release — do not claim 2K. The initial Sogni release is routed to 32 GB-class workers.
|
|
255
|
+
|
|
256
|
+
**H3 takes natural cinematic prose**, not a required structured document. Expand the user's one-liner into a directed scene: a **timed shot list** with bracketed timecodes (`[0-2 seconds] …`) for anything longer than one beat, deliberate **audio direction** (ambience, specific SFX, music by instrumentation and timing; say so when you want no music), dialogue as ordinary quoted prose, and negative direction stated in the prompt text since there is no negative-prompt field. MiniMax's `<d>[Language] …</d>` + `(S1)` markup and three-field IR document are optional input forms; never invent or strip that markup when a user supplied it. Read [`references/video-prompting.md`](./references/video-prompting.md) § MiniMax H3 Prompting before writing an H3 prompt.
|
|
257
|
+
|
|
247
258
|
For "4k" / "uhd" requests where the user accepts the Premium Spark vendor path or asks for Seedance/native audio/multimodal references, use full Seedance: `-m seedance2 --target-resolution 2160`. Do not use `seedance2-mini` or `seedance2-fast` for 4K; both remain capped to the 720p lower-resolution path. For "hd" / "1080p" requests, or when avoiding vendor models, use `-m ltx23-22b-fp8_t2v_distilled` (text) or `-m ltx23-22b-fp8_i2v_distilled` (image), prefer `-w 1920 -h 1088` (or the orientation mapping in the reference), and rewrite the prompt per the LTX rule. For bare "720p" without orientation, prefer `--target-resolution 768`.
|
|
248
259
|
|
|
249
260
|
### Video editing, stitching, 360 turnarounds
|
|
@@ -270,7 +281,7 @@ When the requested image is meant to **repeat edge to edge without visible joins
|
|
|
270
281
|
|
|
271
282
|
### Model selection
|
|
272
283
|
|
|
273
|
-
Prefer `-Q` presets and automatic workflow routing. When a specific model is needed (GPT Image 2 text rendering, Seedance
|
|
284
|
+
Prefer `-Q` presets and automatic workflow routing. When a specific model is needed (GPT Image 2 text rendering, Seedance / HappyHorse / MiniMax H3 native audio and dialogue, WAN lip-sync, LTX dialogue), **read [`references/models.md`](./references/models.md)** for the catalog, recommended selectors, and sizing/divisibility rules.
|
|
274
285
|
|
|
275
286
|
`ltx23-eros` is an explicit-only uncensored LTX-2.3 image-to-video selector. Never choose it merely because a prompt appears sexual or another model rejects a request. Use it only when the user explicitly asks for 10Eros/the uncensored model and explicitly permits disabling the content filter. It requires an input image, `--no-filter`, and a 30GB+ worker; the CLI pins its required 9 steps, guidance 1, `euler_ancestral` sampler, and `manual_sigmas` scheduler.
|
|
276
287
|
|
|
@@ -353,7 +364,7 @@ Eligible Sogni-hosted renders use Unlimited coverage when active; otherwise rend
|
|
|
353
364
|
|
|
354
365
|
| Read this | When the task involves |
|
|
355
366
|
|-----------|------------------------|
|
|
356
|
-
| [`references/video-prompting.md`](./references/video-prompting.md) | Writing LTX video prompts; high-res/4K routing; orientation/aspect mapping; camera language |
|
|
367
|
+
| [`references/video-prompting.md`](./references/video-prompting.md) | Writing LTX video prompts; writing MiniMax H3 prose prompts (timed shot lists, audio direction, quoted dialogue, optional IR markup); high-res/4K routing; orientation/aspect mapping; camera language |
|
|
357
368
|
| [`references/private-mature-video.md`](./references/private-mature-video.md) | Mature-theme video model, LoRA, frame modes, and prompt tokens |
|
|
358
369
|
| [`references/video-editing.md`](./references/video-editing.md) | Animate between images, continue/bridge videos, 360 turnarounds, concat, audio remix/layering, v2v ControlNet |
|
|
359
370
|
| [`references/loop-maker.md`](./references/loop-maker.md) | One-click image-folder loops with visual deduplication, direct LTX first/last-frame clips, music, and verification |
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"manifest_version": "0.3",
|
|
3
3
|
"name": "sogni-creative-agent",
|
|
4
4
|
"display_name": "Sogni Creative Agent",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.25.0",
|
|
6
6
|
"description": "Generate images, video, and music on Sogni AI's decentralized GPU network — with personas, memories, and safe video editing tools.",
|
|
7
7
|
"author": { "name": "Sogni AI", "url": "https://sogni.ai" },
|
|
8
8
|
"homepage": "https://sogni.ai",
|
|
@@ -20,7 +20,12 @@ import {
|
|
|
20
20
|
|
|
21
21
|
const HERE = dirname(fileURLToPath(import.meta.url));
|
|
22
22
|
const PROTOCOL_FALLBACK = '2025-06-18';
|
|
23
|
-
const
|
|
23
|
+
const MIN_HARD_KILL_MS = 15 * 60 * 1000;
|
|
24
|
+
const HARD_KILL_GRACE_MS = 60 * 1000;
|
|
25
|
+
const DEFAULT_TOOL_TIMEOUT_SECONDS = {
|
|
26
|
+
generate_video: 1800,
|
|
27
|
+
generate_music: 600,
|
|
28
|
+
};
|
|
24
29
|
const PROGRESS_INTERVAL_MS = 10_000;
|
|
25
30
|
const MAX_RESULT_CHARS = 20_000;
|
|
26
31
|
|
|
@@ -43,6 +48,17 @@ function textResult(text, isError = false) {
|
|
|
43
48
|
return { content: [{ type: 'text', text }], isError };
|
|
44
49
|
}
|
|
45
50
|
|
|
51
|
+
function hardKillTimeoutMs(toolName, input) {
|
|
52
|
+
const explicitTimeoutSeconds = Number(input?.timeout_seconds);
|
|
53
|
+
const timeoutSeconds = Number.isFinite(explicitTimeoutSeconds) && explicitTimeoutSeconds > 0
|
|
54
|
+
? explicitTimeoutSeconds
|
|
55
|
+
: DEFAULT_TOOL_TIMEOUT_SECONDS[toolName];
|
|
56
|
+
if (!timeoutSeconds) return MIN_HARD_KILL_MS;
|
|
57
|
+
// Let the CLI's own timeout run first so it can await the normal Sogni
|
|
58
|
+
// project cancellation protocol before this process-level safety valve.
|
|
59
|
+
return Math.max(MIN_HARD_KILL_MS, (timeoutSeconds * 1000) + HARD_KILL_GRACE_MS);
|
|
60
|
+
}
|
|
61
|
+
|
|
46
62
|
// Tools marked local in the registry run inside this process and must work
|
|
47
63
|
// even when the sogni-agent CLI is not installed yet.
|
|
48
64
|
const LOCAL_HANDLERS = { import_media: runImportMedia };
|
|
@@ -104,7 +120,10 @@ async function callTool(name, input, progressToken) {
|
|
|
104
120
|
},
|
|
105
121
|
});
|
|
106
122
|
}, PROGRESS_INTERVAL_MS);
|
|
107
|
-
const killer = setTimeout(
|
|
123
|
+
const killer = setTimeout(
|
|
124
|
+
() => child.kill('SIGKILL'),
|
|
125
|
+
hardKillTimeoutMs(name, input),
|
|
126
|
+
);
|
|
108
127
|
|
|
109
128
|
const finish = (result) => {
|
|
110
129
|
if (ticker) clearInterval(ticker);
|
|
@@ -91,7 +91,7 @@ export const TOOLS = [
|
|
|
91
91
|
ref_video: str('Absolute path or URL of reference video'),
|
|
92
92
|
persona: str('Saved persona name (reference frame)'),
|
|
93
93
|
target_resolution: num('Short-side target in px, preserves aspect'),
|
|
94
|
-
timeout_seconds: num('Generation timeout override (default
|
|
94
|
+
timeout_seconds: num('Generation timeout override (default 1800)'),
|
|
95
95
|
},
|
|
96
96
|
required: ['prompt'],
|
|
97
97
|
},
|
package/openclaw.plugin.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"id": "sogni-creative-agent-skill",
|
|
3
3
|
"name": "Sogni Creative Agent Skill — Image, Video & Music Generation",
|
|
4
4
|
"description": "Agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
|
-
"version": "3.
|
|
5
|
+
"version": "3.25.0",
|
|
6
6
|
"skills": [
|
|
7
7
|
"."
|
|
8
8
|
],
|
|
@@ -158,7 +158,7 @@
|
|
|
158
158
|
"defaultVideoTimeoutSec": {
|
|
159
159
|
"type": "integer",
|
|
160
160
|
"minimum": 30,
|
|
161
|
-
"default":
|
|
161
|
+
"default": 1800
|
|
162
162
|
},
|
|
163
163
|
"defaultMusicDurationSec": {
|
|
164
164
|
"type": "integer",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sogni-ai/sogni-creative-agent-skill",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"description": "Sogni Creative Agent Skill: agent skill and CLI for Sogni AI image, video, and music generation.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "sogni-agent.mjs",
|
|
@@ -92,13 +92,13 @@
|
|
|
92
92
|
"sogni-agent.mjs"
|
|
93
93
|
],
|
|
94
94
|
"dependencies": {
|
|
95
|
-
"@sogni-ai/sogni-intelligence-client": "3.
|
|
95
|
+
"@sogni-ai/sogni-intelligence-client": "3.12.4",
|
|
96
96
|
"execa": "^9.6.1",
|
|
97
97
|
"json5": "^2.2.3",
|
|
98
98
|
"sharp": "^0.34.5"
|
|
99
99
|
},
|
|
100
100
|
"overrides": {
|
|
101
|
-
"@sogni-ai/sogni-client": "5.
|
|
101
|
+
"@sogni-ai/sogni-client": "5.4.0-alpha.2"
|
|
102
102
|
},
|
|
103
103
|
"openclaw": {
|
|
104
104
|
"extensions": [
|
package/references/models.md
CHANGED
|
@@ -144,6 +144,10 @@ direct music generation. Music controls: `--lyrics`, `--language`, `--bpm`
|
|
|
144
144
|
| `happyhorse-1.1-t2v` | Variable | HappyHorse 1.1 text-to-video, 3-15s, native audio, 720P/1080P |
|
|
145
145
|
| `happyhorse-1.1-i2v` | Variable | HappyHorse 1.1 image-to-video from one first-frame image (`--ref`) |
|
|
146
146
|
| `happyhorse-1.1-r2v` | Variable | HappyHorse 1.1 reference-to-video from 1-9 reference images (`-c`/`--context`) |
|
|
147
|
+
| `minimax-h3` / `minimax-h3-t2v` | Standard | MiniMax H3 text-to-video at 24 fps with native stereo audio |
|
|
148
|
+
| `minimax-h3-i2v` | Standard | MiniMax H3 first-frame image-to-video with native stereo audio |
|
|
149
|
+
| `minimax-h3-flf2v` | Standard | MiniMax H3 first-frame → last-frame video; pass both `--ref` and `--ref-end` |
|
|
150
|
+
| `minimax-h3-r2v` | Standard | MiniMax H3 reference-to-video from a whole reference SET (up to 9 images / 3 videos / 3 audio); available through the SDK and creative-agent tool, with no CLI selector yet |
|
|
147
151
|
| `wan_v2.2-14b-fp8_i2v_lightx2v` | Fast | **Default single-image image-to-video** (one `--ref`, no end frame) |
|
|
148
152
|
| `wan_v2.2-14b-fp8_i2v` | Slow | Higher quality video |
|
|
149
153
|
| `wan_v2.2-14b-fp8_t2v_lightx2v` | Fast | Text-to-video |
|
|
@@ -227,6 +231,191 @@ and short in-scene text.
|
|
|
227
231
|
|
|
228
232
|
*Source: fal "Happy Horse Prompting Guide" — <https://fal.ai/learn/tools/prompting-happy-horse>*
|
|
229
233
|
|
|
234
|
+
## MiniMax H3 models
|
|
235
|
+
|
|
236
|
+
MiniMax H3 is a Sogni-hosted video family (four discrete modes, no mini/fast
|
|
237
|
+
variants) that generates picture and **native 32 kHz stereo audio jointly**.
|
|
238
|
+
`generateAudio=false` strips the generated track from the delivered file rather
|
|
239
|
+
than skipping audio generation. It is an explicit model choice, never a
|
|
240
|
+
universal default. The bare `minimax-h3` selector resolves to the mode inferred
|
|
241
|
+
from your references; **`minimax-h3-r2v` is never inferred** — it runs a
|
|
242
|
+
different checkpoint and must be asked for by name.
|
|
243
|
+
|
|
244
|
+
| Model | Mode | Use Case |
|
|
245
|
+
|-------|------|----------|
|
|
246
|
+
| `minimax-h3` / `minimax-h3-t2v` | Text-to-video | Prompt-only clip with native audio (default for `-m minimax-h3` with no refs) |
|
|
247
|
+
| `minimax-h3-i2v` | Image-to-video | Animate a single first-frame image passed with `--ref` |
|
|
248
|
+
| `minimax-h3-flf2v` | First → last frame | Interpolate between `--ref` and `--ref-end` |
|
|
249
|
+
| `minimax-h3-r2v` | Reference-to-video | Compose from a labelled reference SET: up to 9 images, 3 videos, 3 audio clips, 12 files total |
|
|
250
|
+
|
|
251
|
+
The first three modes share the FL2VA checkpoint: worker ids
|
|
252
|
+
`minimax-h3-fl2va-fp8_t2v`, `minimax-h3-fl2va-fp8_i2v`, and
|
|
253
|
+
`minimax-h3-fl2va-fp8_flf2v`. The CLI resolves those three short selectors,
|
|
254
|
+
picking i2v vs flf2v from whether `--ref-end` is present. Reference-to-video is a
|
|
255
|
+
SEPARATE checkpoint — worker id `minimax-h3-ref2va-fp8_r2v` — and is not one of
|
|
256
|
+
the CLI's `-m` selectors today; reach it through the SDK's native upload fields
|
|
257
|
+
or the creative-agent `generate_video` tool with
|
|
258
|
+
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat).
|
|
259
|
+
|
|
260
|
+
The **fl2va** modes (t2v / i2v / flf2v) take image references only — they do not
|
|
261
|
+
accept reference video or reference audio, because audio is generated natively.
|
|
262
|
+
**r2v is the one H3 mode that does**: see
|
|
263
|
+
[MiniMax H3 reference-to-video (r2v)](#minimax-h3-reference-to-video-r2v). The
|
|
264
|
+
initial Sogni release is routed to 32 GB-class workers.
|
|
265
|
+
|
|
266
|
+
**Fixed parameters (do not override):**
|
|
267
|
+
|
|
268
|
+
- **24 fps**, always.
|
|
269
|
+
- **Frames on the `124 + n×17` grid**, `124` through `362` — **5.17 s to
|
|
270
|
+
15.08 s**. `--duration` snaps onto that grid; an off-grid explicit `--frames`
|
|
271
|
+
is a hard error.
|
|
272
|
+
- **Dimensions divisible by 32**, total pixels ≤ **1,032,192**. `1344×768`
|
|
273
|
+
(landscape) and `768×1344` (portrait) are the primary sizes.
|
|
274
|
+
- **20 steps, guidance/CFG 1, distilled** — send no steps, guidance, sampler,
|
|
275
|
+
scheduler, or **negative prompt**. The checkpoint is CFG-distilled with
|
|
276
|
+
guidance locked at 1, so there is no negative branch and a `negativePrompt`
|
|
277
|
+
parameter is ignored wherever it is accepted. Put negative direction in the
|
|
278
|
+
prompt text instead.
|
|
279
|
+
- **768p-class open-weights release.** Do not offer or claim 2K; MiniMax's 2K
|
|
280
|
+
stage is hosted-only and not part of the open release.
|
|
281
|
+
|
|
282
|
+
```bash
|
|
283
|
+
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<H3 prose prompt>"
|
|
284
|
+
sogni-agent -q --video -m minimax-h3-i2v --ref first.png --duration 8 -o ./video.mp4 "<H3 prose prompt>"
|
|
285
|
+
sogni-agent -q --video -m minimax-h3-flf2v --ref first.png --ref-end last.png --duration 8 -o ./video.mp4 "<H3 prose prompt>"
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
### MiniMax H3 prompting
|
|
289
|
+
|
|
290
|
+
H3 takes **natural cinematic prose** — no required structure, no field names, no
|
|
291
|
+
mandatory tags. Still expand a one-line request into a fully directed scene, and
|
|
292
|
+
in priority order:
|
|
293
|
+
|
|
294
|
+
1. Write plain cinematic prose.
|
|
295
|
+
2. For anything longer than a single beat, lay it out as a **timed shot list**
|
|
296
|
+
with bracketed timecodes (`[0-2 seconds] …`, `[2-5 seconds] …`). This is the
|
|
297
|
+
highest-leverage technique for H3 pacing and prevents slideshow drift.
|
|
298
|
+
3. **Direct the audio** as deliberately as the picture — ambience, specific
|
|
299
|
+
spot effects, and music by instrumentation and timing. Plain `Audio:` /
|
|
300
|
+
`Sound design:` / `BGM:` labels inside the prose work well. Say explicitly
|
|
301
|
+
when you want no music.
|
|
302
|
+
4. Write dialogue as ordinary quoted prose with the speaker and delivery named.
|
|
303
|
+
5. State what you do **not** want in the prompt text; there is no
|
|
304
|
+
negative-prompt field.
|
|
305
|
+
6. Give every reference image an explicit job and name the features to preserve.
|
|
306
|
+
|
|
307
|
+
MiniMax's `<d>[Language] …</d>` + `(S1)` markup and the three-field IR document
|
|
308
|
+
are optional input forms, not required wrappers around every prompt. Default to
|
|
309
|
+
natural prose, and preserve markup a user supplied. **Read
|
|
310
|
+
[`video-prompting.md`](video-prompting.md) § MiniMax H3 Prompting** for the full
|
|
311
|
+
technique, worked natural-prose examples, the duration→frame snapping table, and
|
|
312
|
+
the optional/advanced markup reference before writing an H3 prompt.
|
|
313
|
+
|
|
314
|
+
### MiniMax H3 reference-to-video (r2v)
|
|
315
|
+
|
|
316
|
+
`minimax-h3-r2v` (worker id `minimax-h3-ref2va-fp8_r2v`) is the one H3 mode that
|
|
317
|
+
conditions on a whole **reference set** instead of one or two locked frames. It
|
|
318
|
+
runs its own ref2va checkpoint, so it is **never inferred** from stray uploads
|
|
319
|
+
the way HappyHorse r2v is — the user or the plan must name it. It is reached
|
|
320
|
+
through the SDK's native upload fields or the creative-agent `generate_video`
|
|
321
|
+
tool (`videoModel="minimax-h3-r2v"`, including callers such as Sogni Chat);
|
|
322
|
+
`sogni-agent` has no `-m minimax-h3-r2v` selector yet.
|
|
323
|
+
|
|
324
|
+
Everything in [MiniMax H3 models](#minimax-h3-models) above still applies: 24 fps,
|
|
325
|
+
the `124 + n×17` frame grid (5.17–15.08 s), dimensions divisible by 32 inside the
|
|
326
|
+
1,032,192-pixel budget, 20 steps, guidance 1, no negative prompt, jointly
|
|
327
|
+
generated stereo audio.
|
|
328
|
+
|
|
329
|
+
**Reference ceilings** (from the `MiniMaxH3ReferenceToVideo` node, enforced by
|
|
330
|
+
Sogni Socket before the job is priced):
|
|
331
|
+
|
|
332
|
+
| Kind | Max | Notes |
|
|
333
|
+
|------|-----|-------|
|
|
334
|
+
| Reference images | 9 | **At least one is required** — r2v with no image is rejected |
|
|
335
|
+
| Reference videos | 3 | Read as 24 fps, 2–15 s each; a clip's own soundtrack is presented too |
|
|
336
|
+
| Reference audio | 3 | Standalone clips, separate from any video soundtrack |
|
|
337
|
+
| Total files | 12 | 9 + 3 + 3 = 15 does **not** fit; trade slots (e.g. 6 + 3 + 3) |
|
|
338
|
+
|
|
339
|
+
Reference videos and reference audio are **additions to** the image set, never
|
|
340
|
+
replacements for it. For a prompt-only render use `minimax-h3-t2v`; for a locked
|
|
341
|
+
opening frame use `minimax-h3-i2v`; to interpolate between two anchors use
|
|
342
|
+
`minimax-h3-flf2v`. r2v has no frame anchors at all, so an end-frame parameter is
|
|
343
|
+
rejected rather than ignored.
|
|
344
|
+
|
|
345
|
+
#### Ordinals and the prompt tag form
|
|
346
|
+
|
|
347
|
+
References are presented to the model grouped by type and numbered **from 1 per
|
|
348
|
+
type**: images first, then each reference video (its own soundtrack numbered
|
|
349
|
+
immediately **before** it), then standalone audio. H3's text encoder splices a
|
|
350
|
+
literal label in front of each one before your prompt text — it emits
|
|
351
|
+
`"<Picture i>: "`, `"<Video k>: "` and `"<Audio j>: "` — so write the prompt with
|
|
352
|
+
**those same tags, angle brackets included**. A sentence written that way shares
|
|
353
|
+
a token sequence with the label of the reference it is about; prose aliases
|
|
354
|
+
("Image 1", "the second photo", `@Image1`, `[Image 1]`) do not.
|
|
355
|
+
|
|
356
|
+
This mirrors Seedance's loose-reference grammar — same 9 / 3 / 12 shape, same
|
|
357
|
+
"give every reference one explicit job" rule — but the tag form differs: Seedance
|
|
358
|
+
uses `@Image1` / `@Video1` / `@Audio1`, H3 uses `<Picture 1>` / `<Video 1>` /
|
|
359
|
+
`<Audio 1>`. Never carry one model's tags into the other's prompt.
|
|
360
|
+
|
|
361
|
+
Ordinal traps worth stating explicitly:
|
|
362
|
+
|
|
363
|
+
- Numbering restarts per type, so the first image is `<Picture 1>` even when a
|
|
364
|
+
video was attached before it.
|
|
365
|
+
- A reference video **with sound** contributes an `<Audio j>` of its own,
|
|
366
|
+
counted immediately before its `<Video k>`. With one soundtracked video plus
|
|
367
|
+
one standalone track, the soundtrack is `<Audio 1>` and the standalone clip is
|
|
368
|
+
`<Audio 2>`.
|
|
369
|
+
- Submission order is ordinal order. Never reorder or drop a reference after the
|
|
370
|
+
prompt has been written — every later ordinal shifts and "use `<Picture 3>`
|
|
371
|
+
for the jacket" lands on the wrong file.
|
|
372
|
+
|
|
373
|
+
#### One explicit job per reference
|
|
374
|
+
|
|
375
|
+
H3 blends everything it is shown unless told what to take from where. Give every
|
|
376
|
+
attached reference a single, non-overlapping job — identity, wardrobe, location,
|
|
377
|
+
camera movement, voice character — and state who wins when two disagree. An
|
|
378
|
+
unassigned reference is the most common cause of identity drift and washed-out
|
|
379
|
+
style on this model.
|
|
380
|
+
|
|
381
|
+
Worked example — 3 images, 1 soundtracked video, 1 standalone audio clip
|
|
382
|
+
(6 files, within the 12-file cap):
|
|
383
|
+
|
|
384
|
+
```text
|
|
385
|
+
<Picture 1> is the identity reference for the woman: her face, her bone
|
|
386
|
+
structure, and her hairstyle carry over exactly, and nothing else from that
|
|
387
|
+
frame does. <Picture 2> is the wardrobe reference: the dark red jacket, its
|
|
388
|
+
collar, and the way it hangs — take the garment, not the person wearing it.
|
|
389
|
+
<Picture 3> is the location, lighting palette, and film texture: the wet street,
|
|
390
|
+
the sodium and neon colour, the grain. Do not copy any person, vehicle, or
|
|
391
|
+
signage from <Picture 3>. Use <Video 1> only for the camera movement — the slow
|
|
392
|
+
handheld push-in and its timing — and take nothing else from it; <Audio 1> is
|
|
393
|
+
that clip's own soundtrack and is reference only, do not reproduce it.
|
|
394
|
+
<Audio 2> is the voice character for her single line: dry, low, close-miked.
|
|
395
|
+
Where <Picture 1> and <Picture 3> disagree on colour or exposure, <Picture 1>
|
|
396
|
+
wins on her face and <Picture 3> wins on everything behind her.
|
|
397
|
+
|
|
398
|
+
[0-3 seconds] She walks toward camera along the rain-slicked street, hands in
|
|
399
|
+
the jacket pockets. Handheld medium shot, shallow focus, neon reflections
|
|
400
|
+
sliding across the wet asphalt.
|
|
401
|
+
|
|
402
|
+
[3-6 seconds] She stops and glances back over her shoulder as a bus passes
|
|
403
|
+
behind her, its headlights sweeping across her face.
|
|
404
|
+
|
|
405
|
+
[6-8 seconds] Medium close-up, street lights blooming behind her. She says,
|
|
406
|
+
quietly: "It was never going to be the last train."
|
|
407
|
+
|
|
408
|
+
Audio: steady rain on asphalt, tyres hissing through standing water, a bus
|
|
409
|
+
engine passing left to right at 4 seconds. No music.
|
|
410
|
+
```
|
|
411
|
+
|
|
412
|
+
Note what that example does: every one of the six references is named exactly
|
|
413
|
+
once with a bounded job, the video is explicitly fenced to camera movement, the
|
|
414
|
+
video's own soundtrack is explicitly marked as reference-only so it is not
|
|
415
|
+
reproduced, the conflict rule is stated, and the shot list still carries the
|
|
416
|
+
pacing. Trim assignments for references you did not actually attach — a tag with
|
|
417
|
+
nothing behind it just adds noise.
|
|
418
|
+
|
|
230
419
|
## LTX-2 / LTX-2.3 models
|
|
231
420
|
|
|
232
421
|
### LTX-2.3 10Eros
|
|
@@ -293,11 +482,16 @@ model recommendations.
|
|
|
293
482
|
| HappyHorse text-to-video with native audio | `happyhorse-1.1-t2v` (or `happyhorse`) |
|
|
294
483
|
| HappyHorse image-to-video from one first frame | `happyhorse-1.1-i2v` |
|
|
295
484
|
| HappyHorse reference-to-video from up to 9 images | `happyhorse-1.1-r2v` |
|
|
485
|
+
| MiniMax H3 text-to-video with native stereo audio | `minimax-h3` (or `minimax-h3-t2v`) |
|
|
486
|
+
| MiniMax H3 image-to-video from one first frame | `minimax-h3-i2v` with `--ref` |
|
|
487
|
+
| MiniMax H3 first frame → last frame transition | `minimax-h3-flf2v` with `--ref A --ref-end B` |
|
|
488
|
+
| MiniMax H3 from a set of loose references (identity + wardrobe + location, a motion clip, a voice clip) | `minimax-h3-r2v` — SDK / `generate_video`; no CLI selector yet |
|
|
296
489
|
| Face lip-sync with uploaded audio | `wan_v2.2-14b-fp8_s2v_lightx2v` |
|
|
297
490
|
|
|
298
491
|
## Video sizing & aspect ratios
|
|
299
492
|
|
|
300
493
|
- **WAN models** use dimensions divisible by 16, min 480 px, max 1536 px.
|
|
494
|
+
- **MiniMax H3** uses 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 (1344×768 and 768×1344 are the primary landscape/portrait sizes). Steps 20, guidance 1, no negative prompt, native stereo audio, 32 GB-class workers. See [MiniMax H3 models](#minimax-h3-models).
|
|
301
495
|
- **LTX family** (`ltx2-*`, `ltx23-*`) uses dimensions divisible by 64. The current wrapper caps non-WAN video dimensions at 2048 px on the long side.
|
|
302
496
|
- **Seedance** runs at fixed 24 fps and supports 4–15 s durations. Full `seedance2` supports native 4K via `--target-resolution 2160`; `seedance2-mini` and `seedance2-fast` remain capped to the 720p lower-resolution path. Other default/WAN paths support up to 10 s; LTX and WAN animate workflows support up to 20 s.
|
|
303
497
|
- **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.
|
|
@@ -54,7 +54,7 @@ CLI defaults are 512×512 images, count 1, spark tokens, prompt-hash seeds):
|
|
|
54
54
|
"defaultFps": 16,
|
|
55
55
|
"defaultDurationSec": 5,
|
|
56
56
|
"defaultImageTimeoutSec": 30,
|
|
57
|
-
"defaultVideoTimeoutSec":
|
|
57
|
+
"defaultVideoTimeoutSec": 1800,
|
|
58
58
|
"defaultMusicDurationSec": 30,
|
|
59
59
|
"defaultMusicTimeoutSec": 600,
|
|
60
60
|
"credentialsPath": "~/.config/sogni/credentials",
|
|
@@ -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,384 @@ 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 through
|
|
367
|
+
the SDK's native upload fields or the `generate_video` tool with
|
|
368
|
+
`videoModel="minimax-h3-r2v"` (including callers such as Sogni Chat;
|
|
369
|
+
`sogni-agent` has no `-m minimax-h3-r2v` selector yet). Reference videos and
|
|
370
|
+
audio are additions to the image set, never replacements for it, and r2v has no
|
|
371
|
+
frame anchors at all — for a locked opening frame use `minimax-h3-i2v`, and for a
|
|
372
|
+
first-to-last-frame transition use `minimax-h3-flf2v`.
|
|
373
|
+
|
|
374
|
+
Everything else on this page still applies — natural cinematic prose, the timed
|
|
375
|
+
shot list, deliberate audio direction, in-prompt negative direction, and no
|
|
376
|
+
negative-prompt field. r2v adds exactly one rule on top.
|
|
377
|
+
|
|
378
|
+
**Reference grammar.** References are numbered **from 1 per type**, in the order
|
|
379
|
+
images → videos → standalone audio, and H3's text encoder splices a literal label
|
|
380
|
+
in front of each one before your prompt text (`"<Picture i>: "`, `"<Video k>: "`,
|
|
381
|
+
`"<Audio j>: "`). Write the prompt with the same tags, **angle brackets
|
|
382
|
+
included**, so the sentence about a reference shares a token sequence with that
|
|
383
|
+
reference's own label:
|
|
384
|
+
|
|
385
|
+
- `<Picture 1>` … `<Picture 9>` for images
|
|
386
|
+
- `<Video 1>` … `<Video 3>` for videos
|
|
387
|
+
- `<Audio 1>` … for audio
|
|
388
|
+
|
|
389
|
+
Rewrite any alias the user typed — "image 2", "the second photo", `@Image2`,
|
|
390
|
+
`[Image 2]` — into `<Picture 2>`. This is deliberately **not** the Seedance
|
|
391
|
+
grammar: Seedance uses `@Image1` / `@Video1` / `@Audio1` (see the Seedance
|
|
392
|
+
reference modes in `models.md`), and the two must never be mixed. Never invent a
|
|
393
|
+
reference that was not attached, never mention file names, URLs or asset indices,
|
|
394
|
+
and never renumber the ones you were given.
|
|
395
|
+
|
|
396
|
+
Two ordinal traps:
|
|
397
|
+
|
|
398
|
+
- Numbering restarts per type, so the first image is `<Picture 1>` even when a
|
|
399
|
+
video was attached before it.
|
|
400
|
+
- A reference video with sound contributes an `<Audio j>` of its own, counted
|
|
401
|
+
immediately **before** its `<Video k>`. One soundtracked video plus one
|
|
402
|
+
standalone clip means the soundtrack is `<Audio 1>` and the standalone clip is
|
|
403
|
+
`<Audio 2>`.
|
|
404
|
+
|
|
405
|
+
**One explicit job per reference.** H3 blends everything it is shown unless told
|
|
406
|
+
what to take from where, so give every attached reference a single,
|
|
407
|
+
non-overlapping job in a plain sentence, and say who wins when two disagree. An
|
|
408
|
+
unassigned reference is the most common cause of identity drift and washed-out
|
|
409
|
+
style on this model.
|
|
410
|
+
|
|
411
|
+
Worked example — 3 images, 1 soundtracked video, 1 standalone audio clip (6
|
|
412
|
+
files):
|
|
413
|
+
|
|
414
|
+
```text
|
|
415
|
+
<Picture 1> is the identity reference for the woman: her face, her bone
|
|
416
|
+
structure, and her hairstyle carry over exactly, and nothing else from that
|
|
417
|
+
frame does. <Picture 2> is the wardrobe reference: the dark red jacket, its
|
|
418
|
+
collar, and the way it hangs — take the garment, not the person wearing it.
|
|
419
|
+
<Picture 3> is the location, lighting palette, and film texture: the wet street,
|
|
420
|
+
the sodium and neon colour, the grain. Do not copy any person, vehicle, or
|
|
421
|
+
signage from <Picture 3>. Use <Video 1> only for the camera movement — the slow
|
|
422
|
+
handheld push-in and its timing — and take nothing else from it; <Audio 1> is
|
|
423
|
+
that clip's own soundtrack and is reference only, do not reproduce it.
|
|
424
|
+
<Audio 2> is the voice character for her single line: dry, low, close-miked.
|
|
425
|
+
Where <Picture 1> and <Picture 3> disagree on colour or exposure, <Picture 1>
|
|
426
|
+
wins on her face and <Picture 3> wins on everything behind her.
|
|
427
|
+
|
|
428
|
+
[0-3 seconds] She walks toward camera along the rain-slicked street, hands in
|
|
429
|
+
the jacket pockets. Handheld medium shot, shallow focus, neon reflections
|
|
430
|
+
sliding across the wet asphalt.
|
|
431
|
+
|
|
432
|
+
[3-6 seconds] She stops and glances back over her shoulder as a bus passes
|
|
433
|
+
behind her, its headlights sweeping across her face.
|
|
434
|
+
|
|
435
|
+
[6-8 seconds] Medium close-up, street lights blooming behind her. She says,
|
|
436
|
+
quietly: "It was never going to be the last train."
|
|
437
|
+
|
|
438
|
+
Audio: steady rain on asphalt, tyres hissing through standing water, a bus
|
|
439
|
+
engine passing left to right at 4 seconds. No music.
|
|
440
|
+
```
|
|
441
|
+
|
|
442
|
+
Trim assignments for references that were not actually attached — a tag with
|
|
443
|
+
nothing behind it is noise. And do not reorder or drop a reference after the
|
|
444
|
+
prompt is written: submission order is ordinal order, so every later tag would
|
|
445
|
+
then point at the wrong file.
|
|
446
|
+
|
|
447
|
+
### Agent-ready H3 command shapes
|
|
448
|
+
|
|
449
|
+
```bash
|
|
450
|
+
# Text-to-video (landscape)
|
|
451
|
+
sogni-agent -q --video -m minimax-h3 --duration 10 -w 1344 -h 768 -o ./video.mp4 "<H3 prose prompt>"
|
|
452
|
+
|
|
453
|
+
# Image-to-video from one first frame (portrait)
|
|
454
|
+
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>"
|
|
455
|
+
|
|
456
|
+
# First frame -> last frame transition
|
|
457
|
+
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>"
|
|
458
|
+
```
|
|
459
|
+
|
|
74
460
|
## High-Res Video Routing
|
|
75
461
|
|
|
76
462
|
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/sogni-agent.mjs
CHANGED
|
@@ -1588,6 +1588,7 @@ function getMaxContextImages(modelId) {
|
|
|
1588
1588
|
}
|
|
1589
1589
|
|
|
1590
1590
|
function videoDurationLimitsLikeWrapper(modelId) {
|
|
1591
|
+
if (isMiniMaxH3Model(modelId)) return { min: 5, max: 15 };
|
|
1591
1592
|
if (isSeedanceModel(modelId)) return { min: 4, max: 15 };
|
|
1592
1593
|
if (isHappyHorseModel(modelId)) return { min: 3, max: 15 };
|
|
1593
1594
|
if (isLtx2Model(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
|
|
@@ -1608,6 +1609,9 @@ function videoDurationLimitsLikeWrapper(modelId) {
|
|
|
1608
1609
|
// explicit -w/-h/--target-resolution, config, and prompt-derived dimensions
|
|
1609
1610
|
// still win (see the video preflight defaults block).
|
|
1610
1611
|
function videoModelDimensionDefaultsLikeWrapper(modelId) {
|
|
1612
|
+
if (isMiniMaxH3Model(modelId)) {
|
|
1613
|
+
return { defaultWidth: 1344, defaultHeight: 768, maxDimension: 1344, dimensionMultiple: 32 };
|
|
1614
|
+
}
|
|
1611
1615
|
if (isHappyHorseModel(modelId) || isHappyHorseModelSelectionLocal(modelId)) {
|
|
1612
1616
|
return { defaultWidth: 1920, defaultHeight: 1080, maxDimension: 1920, dimensionMultiple: 1 };
|
|
1613
1617
|
}
|
|
@@ -1860,6 +1864,11 @@ const LTX_TRANSITION_LORA_ID = 'transition';
|
|
|
1860
1864
|
const LTX_TRANSITION_TRIGGER = 'zhuanchang';
|
|
1861
1865
|
const LTX_TRANSITION_DEFAULT_STRENGTH = 1.0;
|
|
1862
1866
|
const LTX23_10EROS_MODEL_ID = 'ltx23-22b-10eros-v1.4-fp8mixed_i2v';
|
|
1867
|
+
const MINIMAX_H3_MODEL_IDS = new Set([
|
|
1868
|
+
'minimax-h3-fl2va-fp8_t2v',
|
|
1869
|
+
'minimax-h3-fl2va-fp8_i2v',
|
|
1870
|
+
'minimax-h3-fl2va-fp8_flf2v'
|
|
1871
|
+
]);
|
|
1863
1872
|
const LTX23_10EROS_FIXED_SETTINGS = Object.freeze({
|
|
1864
1873
|
steps: 9,
|
|
1865
1874
|
guidance: 1,
|
|
@@ -1875,13 +1884,28 @@ const DR34ML4Y_SUPPORTED_MODEL_IDS = new Set([
|
|
|
1875
1884
|
LTX23_10EROS_MODEL_ID
|
|
1876
1885
|
]);
|
|
1877
1886
|
|
|
1878
|
-
function resolveSkillVideoModelAlias(modelId) {
|
|
1887
|
+
function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = false) {
|
|
1879
1888
|
const normalized = String(modelId || '').trim().toLowerCase();
|
|
1889
|
+
if (normalized === 'minimax-h3' && workflow) {
|
|
1890
|
+
if (workflow === 'i2v') {
|
|
1891
|
+
return hasEndFrame ? 'minimax-h3-fl2va-fp8_flf2v' : 'minimax-h3-fl2va-fp8_i2v';
|
|
1892
|
+
}
|
|
1893
|
+
return 'minimax-h3-fl2va-fp8_t2v';
|
|
1894
|
+
}
|
|
1895
|
+
if (normalized === 'minimax-h3-t2v') {
|
|
1896
|
+
return 'minimax-h3-fl2va-fp8_t2v';
|
|
1897
|
+
}
|
|
1898
|
+
if (normalized === 'minimax-h3-i2v') return 'minimax-h3-fl2va-fp8_i2v';
|
|
1899
|
+
if (normalized === 'minimax-h3-flf2v') return 'minimax-h3-fl2va-fp8_flf2v';
|
|
1880
1900
|
return normalized === '10eros' || normalized === 'ltx23-eros'
|
|
1881
1901
|
? LTX23_10EROS_MODEL_ID
|
|
1882
1902
|
: modelId;
|
|
1883
1903
|
}
|
|
1884
1904
|
|
|
1905
|
+
function isMiniMaxH3Model(modelId) {
|
|
1906
|
+
return MINIMAX_H3_MODEL_IDS.has(String(modelId || '').trim().toLowerCase());
|
|
1907
|
+
}
|
|
1908
|
+
|
|
1885
1909
|
function normalizeMultiAngleValue(value, aliases, allowedKeys, label) {
|
|
1886
1910
|
if (!value) return null;
|
|
1887
1911
|
const normalized = value.toLowerCase().replace(/_/g, '-').replace(/\s+/g, ' ').trim();
|
|
@@ -3378,7 +3402,7 @@ Hosted API Modes:
|
|
|
3378
3402
|
--api-base-url <url> Sogni API base URL (default: ${DEFAULT_API_BASE_URL})
|
|
3379
3403
|
|
|
3380
3404
|
General:
|
|
3381
|
-
-t, --timeout <sec> Timeout in seconds (default: 30, video:
|
|
3405
|
+
-t, --timeout <sec> Timeout in seconds (default: 30, video: 1800, music: 600)
|
|
3382
3406
|
--steps <num> Override steps (model-dependent)
|
|
3383
3407
|
--guidance <num> Override guidance (model-dependent)
|
|
3384
3408
|
--token-type <type> Token type: spark|sogni|auto (default: spark, auto retries with alternate)
|
|
@@ -3484,6 +3508,15 @@ HappyHorse 1.1 Video Model Selectors (3-15s, fixed 24fps, native audio, 720P/108
|
|
|
3484
3508
|
happyhorse-1.1-i2v Image-to-video from a single first-frame image (--ref)
|
|
3485
3509
|
happyhorse-1.1-r2v Reference-to-video from 1-9 reference images (-c/--context)
|
|
3486
3510
|
|
|
3511
|
+
MiniMax H3 Video Model Selectors (fixed 24fps, native 32kHz stereo audio + dialogue,
|
|
3512
|
+
frames 124+n*17 = 5.17-15.08s, sizes /32 up to 1,032,192px, 32GB-class workers.
|
|
3513
|
+
Prompt is natural cinematic prose — a timed shot list ("[0-2 seconds] ...") plus
|
|
3514
|
+
explicit audio direction; see references/video-prompting.md "MiniMax H3
|
|
3515
|
+
Prompting". No negative prompt field: state negatives in the prompt text.):
|
|
3516
|
+
minimax-h3 Text-to-video (also accepts minimax-h3-t2v); --ref/--ref-end pick i2v/flf2v
|
|
3517
|
+
minimax-h3-i2v Image-to-video from a single first-frame image (--ref)
|
|
3518
|
+
minimax-h3-flf2v First-frame -> last-frame transition (--ref plus --ref-end)
|
|
3519
|
+
|
|
3487
3520
|
WAN 2.2 Video Models:
|
|
3488
3521
|
wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
|
|
3489
3522
|
wan_v2.2-14b-fp8_i2v_lightx2v Default single-image image-to-video (fast)
|
|
@@ -4043,7 +4076,10 @@ if (options.video) {
|
|
|
4043
4076
|
options.videoWorkflow = workflowFromModel || inferVideoWorkflowFromAssets(options) || configuredDefaultVideoWorkflow || 't2v';
|
|
4044
4077
|
}
|
|
4045
4078
|
if (options.model) {
|
|
4046
|
-
options.model = resolveVideoModelAlias(
|
|
4079
|
+
options.model = resolveVideoModelAlias(
|
|
4080
|
+
resolveSkillVideoModelAlias(options.model, options.videoWorkflow, Boolean(options.refImageEnd)),
|
|
4081
|
+
options.videoWorkflow
|
|
4082
|
+
);
|
|
4047
4083
|
}
|
|
4048
4084
|
}
|
|
4049
4085
|
|
|
@@ -4198,7 +4234,7 @@ if (options.music) {
|
|
|
4198
4234
|
}
|
|
4199
4235
|
}
|
|
4200
4236
|
if (!cliSet.timeout && !timeoutFromConfig && options.timeout === 30000) {
|
|
4201
|
-
options.timeout =
|
|
4237
|
+
options.timeout = 1800000; // 30 min for queued and long-running video jobs
|
|
4202
4238
|
}
|
|
4203
4239
|
} else if (options.photobooth) {
|
|
4204
4240
|
// Photobooth uses SDXL Turbo + InstantID ControlNet
|
|
@@ -4631,6 +4667,22 @@ if (options.video && !options.frames) {
|
|
|
4631
4667
|
}
|
|
4632
4668
|
options.duration = clampedDuration;
|
|
4633
4669
|
}
|
|
4670
|
+
if (isMiniMaxH3Model(options.model)) {
|
|
4671
|
+
const desiredFrames = options.duration * 24;
|
|
4672
|
+
options.frames = Math.max(
|
|
4673
|
+
124,
|
|
4674
|
+
Math.min(362, 124 + Math.round((desiredFrames - 124) / 17) * 17)
|
|
4675
|
+
);
|
|
4676
|
+
options.fps = 24;
|
|
4677
|
+
}
|
|
4678
|
+
} else if (options.video && isMiniMaxH3Model(options.model)) {
|
|
4679
|
+
if (options.frames < 124 || options.frames > 362 || (options.frames - 124) % 17 !== 0) {
|
|
4680
|
+
fatalCliError('MiniMax H3 frames must be 124 + n×17, from 124 through 362.', {
|
|
4681
|
+
code: 'INVALID_ARGUMENT',
|
|
4682
|
+
details: { frames: options.frames, minimum: 124, maximum: 362, step: 17 }
|
|
4683
|
+
});
|
|
4684
|
+
}
|
|
4685
|
+
options.fps = 24;
|
|
4634
4686
|
}
|
|
4635
4687
|
|
|
4636
4688
|
// Video dimensions:
|
|
@@ -4700,6 +4752,12 @@ if (options.video) {
|
|
|
4700
4752
|
const normalizedVideoDims = normalizeVideoDimensionsLikeWrapper(options.width, options.height, videoDimensionRules);
|
|
4701
4753
|
options.width = normalizedVideoDims.width;
|
|
4702
4754
|
options.height = normalizedVideoDims.height;
|
|
4755
|
+
if (isMiniMaxH3Model(options.model) && options.width * options.height > 1344 * 768) {
|
|
4756
|
+
const scale = Math.sqrt((1344 * 768) / (options.width * options.height));
|
|
4757
|
+
options.width = Math.max(32, Math.floor((options.width * scale) / 32) * 32);
|
|
4758
|
+
options.height = Math.max(32, Math.floor((options.height * scale) / 32) * 32);
|
|
4759
|
+
normalizedVideoDims.adjusted = true;
|
|
4760
|
+
}
|
|
4703
4761
|
if (normalizedVideoDims.adjusted && !options.quiet) {
|
|
4704
4762
|
console.error(
|
|
4705
4763
|
`Auto-adjusted video dimensions from ${originalVideoWidth}x${originalVideoHeight} ` +
|
|
@@ -8994,10 +9052,61 @@ async function runSourceReel(log) {
|
|
|
8994
9052
|
}
|
|
8995
9053
|
}
|
|
8996
9054
|
|
|
9055
|
+
async function buildProjectTimeoutError(projects, timeoutMs, label = 'Project') {
|
|
9056
|
+
const timeoutSeconds = timeoutMs / 1000;
|
|
9057
|
+
const cancellableProjects = [...new Set((projects || []).filter(Boolean))]
|
|
9058
|
+
.filter((project) => typeof project.cancel === 'function');
|
|
9059
|
+
const projectIds = cancellableProjects
|
|
9060
|
+
.map((project) => project.id)
|
|
9061
|
+
.filter(Boolean);
|
|
9062
|
+
|
|
9063
|
+
if (cancellableProjects.length === 0) {
|
|
9064
|
+
const error = new Error(
|
|
9065
|
+
`Timeout after ${timeoutSeconds}s; no cancellable Sogni project handle was available. ` +
|
|
9066
|
+
'The project may still be running.'
|
|
9067
|
+
);
|
|
9068
|
+
error.code = 'PROJECT_TIMEOUT_CANCEL_UNAVAILABLE';
|
|
9069
|
+
error.details = { timeoutSeconds, projectIds: [], canceled: false };
|
|
9070
|
+
return error;
|
|
9071
|
+
}
|
|
9072
|
+
|
|
9073
|
+
const failures = [];
|
|
9074
|
+
for (const project of cancellableProjects) {
|
|
9075
|
+
try {
|
|
9076
|
+
await project.cancel();
|
|
9077
|
+
} catch (cancelError) {
|
|
9078
|
+
failures.push({
|
|
9079
|
+
projectId: project.id || null,
|
|
9080
|
+
message: cancelError?.message || String(cancelError)
|
|
9081
|
+
});
|
|
9082
|
+
}
|
|
9083
|
+
}
|
|
9084
|
+
|
|
9085
|
+
if (failures.length > 0) {
|
|
9086
|
+
const failedIds = failures.map((failure) => failure.projectId).filter(Boolean);
|
|
9087
|
+
const error = new Error(
|
|
9088
|
+
`Timeout after ${timeoutSeconds}s; failed to cancel Sogni ${label.toLowerCase()} ` +
|
|
9089
|
+
`${failedIds.join(', ') || '(unknown id)'}. The project may still be running.`
|
|
9090
|
+
);
|
|
9091
|
+
error.code = 'PROJECT_TIMEOUT_CANCEL_FAILED';
|
|
9092
|
+
error.details = { timeoutSeconds, projectIds, canceled: false, failures };
|
|
9093
|
+
return error;
|
|
9094
|
+
}
|
|
9095
|
+
|
|
9096
|
+
const error = new Error(
|
|
9097
|
+
`Timeout after ${timeoutSeconds}s; canceled Sogni ${label.toLowerCase()} ` +
|
|
9098
|
+
`${projectIds.join(', ') || '(unknown id)'}.`
|
|
9099
|
+
);
|
|
9100
|
+
error.code = 'PROJECT_TIMEOUT';
|
|
9101
|
+
error.details = { timeoutSeconds, projectIds, canceled: true };
|
|
9102
|
+
return error;
|
|
9103
|
+
}
|
|
9104
|
+
|
|
8997
9105
|
async function runImageEditProjectWithEvents(client, editConfig, expectedCount, log, timeoutMs, label) {
|
|
8998
9106
|
const results = [];
|
|
8999
9107
|
let completed = 0;
|
|
9000
9108
|
let projectId = null;
|
|
9109
|
+
let activeProject = null;
|
|
9001
9110
|
|
|
9002
9111
|
let resolvePromise;
|
|
9003
9112
|
let rejectPromise;
|
|
@@ -9039,7 +9148,8 @@ async function runImageEditProjectWithEvents(client, editConfig, expectedCount,
|
|
|
9039
9148
|
|
|
9040
9149
|
const timeout = setTimeout(() => {
|
|
9041
9150
|
cleanup();
|
|
9042
|
-
|
|
9151
|
+
void buildProjectTimeoutError([activeProject], timeoutMs, 'image edit project')
|
|
9152
|
+
.then(rejectPromise);
|
|
9043
9153
|
}, timeoutMs);
|
|
9044
9154
|
|
|
9045
9155
|
client.on(ClientEvent.JOB_COMPLETED, onCompleted);
|
|
@@ -9047,6 +9157,7 @@ async function runImageEditProjectWithEvents(client, editConfig, expectedCount,
|
|
|
9047
9157
|
|
|
9048
9158
|
try {
|
|
9049
9159
|
const projectResult = await client.createImageEditProject(withBillingMode(editConfig));
|
|
9160
|
+
activeProject = projectResult?.project || null;
|
|
9050
9161
|
projectId = projectResult?.project?.id || projectId;
|
|
9051
9162
|
|
|
9052
9163
|
// Check for errors in the response (e.g., insufficient tokens)
|
|
@@ -10225,10 +10336,16 @@ async function main() {
|
|
|
10225
10336
|
const results = [];
|
|
10226
10337
|
let completedJobs = 0;
|
|
10227
10338
|
let loopingStartImageBuffer;
|
|
10339
|
+
const activeProjects = new Set();
|
|
10340
|
+
const trackProjectResult = (projectResult) => {
|
|
10341
|
+
if (projectResult?.project) activeProjects.add(projectResult.project);
|
|
10342
|
+
return projectResult;
|
|
10343
|
+
};
|
|
10228
10344
|
|
|
10229
10345
|
const completionPromise = new Promise((resolve, reject) => {
|
|
10230
10346
|
const timeout = setTimeout(() => {
|
|
10231
|
-
|
|
10347
|
+
void buildProjectTimeoutError([...activeProjects], options.timeout)
|
|
10348
|
+
.then(reject);
|
|
10232
10349
|
}, options.timeout);
|
|
10233
10350
|
|
|
10234
10351
|
client.on(ClientEvent.JOB_COMPLETED, (data) => {
|
|
@@ -10669,7 +10786,9 @@ async function main() {
|
|
|
10669
10786
|
projectConfig.loraStrengths = options.loraStrengths;
|
|
10670
10787
|
}
|
|
10671
10788
|
|
|
10672
|
-
const videoResult =
|
|
10789
|
+
const videoResult = trackProjectResult(
|
|
10790
|
+
await client.createVideoProject(withBillingMode(projectConfig))
|
|
10791
|
+
);
|
|
10673
10792
|
|
|
10674
10793
|
// Check for errors in the response (e.g., insufficient tokens)
|
|
10675
10794
|
if (videoResult?.error || videoResult?.message) {
|
|
@@ -10731,7 +10850,9 @@ async function main() {
|
|
|
10731
10850
|
projectConfig.seed = options.seed;
|
|
10732
10851
|
}
|
|
10733
10852
|
|
|
10734
|
-
const audioResult =
|
|
10853
|
+
const audioResult = trackProjectResult(
|
|
10854
|
+
await client.createAudioProject(withBillingMode(projectConfig))
|
|
10855
|
+
);
|
|
10735
10856
|
|
|
10736
10857
|
if (audioResult?.error || audioResult?.message) {
|
|
10737
10858
|
throw buildProjectResultError(audioResult);
|
|
@@ -10796,9 +10917,9 @@ async function main() {
|
|
|
10796
10917
|
editConfig.seed = options.seed;
|
|
10797
10918
|
}
|
|
10798
10919
|
|
|
10799
|
-
const editResult = isGptImage2ModelSelection(options.model)
|
|
10920
|
+
const editResult = trackProjectResult(isGptImage2ModelSelection(options.model)
|
|
10800
10921
|
? await client.createImageProject(withBillingMode(editConfig))
|
|
10801
|
-
: await client.createImageEditProject(withBillingMode(editConfig));
|
|
10922
|
+
: await client.createImageEditProject(withBillingMode(editConfig)));
|
|
10802
10923
|
if (editResult?.error || editResult?.message) {
|
|
10803
10924
|
throw buildProjectResultError(editResult);
|
|
10804
10925
|
}
|
|
@@ -10843,7 +10964,9 @@ async function main() {
|
|
|
10843
10964
|
if (options.loras.length > 0) projectConfig.loras = options.loras;
|
|
10844
10965
|
if (options.loraStrengths.length > 0) projectConfig.loraStrengths = options.loraStrengths;
|
|
10845
10966
|
|
|
10846
|
-
const projectResult =
|
|
10967
|
+
const projectResult = trackProjectResult(
|
|
10968
|
+
await client.createImageProject(withBillingMode(projectConfig))
|
|
10969
|
+
);
|
|
10847
10970
|
|
|
10848
10971
|
// Check for errors in the response (e.g., insufficient tokens)
|
|
10849
10972
|
if (projectResult?.error || projectResult?.message) {
|
|
@@ -10918,7 +11041,9 @@ async function main() {
|
|
|
10918
11041
|
projectConfig.seed = options.seed;
|
|
10919
11042
|
}
|
|
10920
11043
|
|
|
10921
|
-
const imageResult =
|
|
11044
|
+
const imageResult = trackProjectResult(
|
|
11045
|
+
await client.createImageProject(withBillingMode(projectConfig))
|
|
11046
|
+
);
|
|
10922
11047
|
if (imageResult?.error || imageResult?.message) {
|
|
10923
11048
|
throw buildProjectResultError(imageResult);
|
|
10924
11049
|
}
|
|
@@ -11094,9 +11219,11 @@ async function main() {
|
|
|
11094
11219
|
await disableLiveModelAvailabilityEvents(client2);
|
|
11095
11220
|
|
|
11096
11221
|
// Create second clip and wait for completion via events
|
|
11222
|
+
let activeClip2Project = null;
|
|
11097
11223
|
const clip2Promise = new Promise((resolve, reject) => {
|
|
11098
11224
|
const timeout = setTimeout(() => {
|
|
11099
|
-
|
|
11225
|
+
void buildProjectTimeoutError([activeClip2Project], options.timeout, 'second clip project')
|
|
11226
|
+
.then(reject);
|
|
11100
11227
|
}, options.timeout);
|
|
11101
11228
|
|
|
11102
11229
|
client2.on(ClientEvent.JOB_COMPLETED, async (data) => {
|
|
@@ -11140,6 +11267,7 @@ async function main() {
|
|
|
11140
11267
|
});
|
|
11141
11268
|
|
|
11142
11269
|
const clip2Result = await client2.createVideoProject(withBillingMode(projectConfig2));
|
|
11270
|
+
activeClip2Project = clip2Result?.project || null;
|
|
11143
11271
|
|
|
11144
11272
|
// Check for errors in the response (e.g., insufficient tokens)
|
|
11145
11273
|
if (clip2Result?.error || clip2Result?.message) {
|
package/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const PACKAGE_VERSION = '3.
|
|
1
|
+
export const PACKAGE_VERSION = '3.25.0';
|