You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(video): add SEF (--last-frame), S2V (--subject-image), model auto-switch
- Add --last-frame flag for SEF (start-end frame) interpolation mode
- Add --subject-image flag for subject reference (S2V-01 character consistency)
- Auto-switch model: --last-frame -> Hailuo-02, --subject-image -> S2V-01
- Explicit --model flag always overrides auto-switch
- Add apiDocs field
- Update description with all available models (T2V/I2V/S2V)
- Add last_frame_image and subject_reference to VideoRequest type
- Add validation: --last-frame requires --first-frame
- Add SEF and S2V examples
usage: 'mmx video generate --prompt <text> [flags]',
26
27
options: [
27
-
{flag: '--model <model>',description: 'Model ID (default: MiniMax-Hailuo-2.3)'},
28
+
{flag: '--model <model>',description: 'Model ID (default: MiniMax-Hailuo-2.3). Auto-switched to Hailuo-02 with --last-frame, or S2V-01 with --subject-image.'},
{flag: '--first-frame <path-or-url>',description: 'First frame image (local path or URL). Auto base64-encoded for local files.'},
31
+
{flag: '--last-frame <path-or-url>',description: 'Last frame image (local path or URL). Enables SEF (start-end frame) interpolation mode with Hailuo-02 model. Requires --first-frame.'},
32
+
{flag: '--subject-image <path-or-url>',description: 'Subject reference image for character consistency (local path or URL). Switches to S2V-01 model.'},
30
33
{flag: '--callback-url <url>',description: 'Webhook URL for completion notification'},
31
34
{flag: '--download <path>',description: 'Save video to file on completion'},
32
35
{flag: '--no-wait',description: 'Return task ID immediately without waiting'},
@@ -38,6 +41,10 @@ export default defineCommand({
38
41
'mmx video generate --prompt "Ocean waves at sunset." --download sunset.mp4',
39
42
'mmx video generate --prompt "A robot painting." --async --quiet',
40
43
'mmx video generate --prompt "A robot painting." --no-wait --quiet',
44
+
'# SEF: first + last frame interpolation (uses Hailuo-02 model)',
45
+
'mmx video generate --prompt "Walk forward" --first-frame start.jpg --last-frame end.jpg',
46
+
'# Subject reference: character consistency (uses S2V-01 model)',
47
+
'mmx video generate --prompt "A detective walking" --subject-image character.jpg',
0 commit comments