videodraft 0.42.0 → 0.43.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "videodraft",
3
- "version": "0.42.0",
3
+ "version": "0.43.0",
4
4
  "description": "Official VideoDraft CLI for AI videos, images, audio and 3D assets. Agent-friendly: --json everywhere, stable exit codes, async job polling.",
5
5
  "license": "MIT",
6
6
  "type": "module",
package/skills/index.json CHANGED
@@ -17,8 +17,8 @@
17
17
  },
18
18
  {
19
19
  "path": "references/cloud-sessions.md",
20
- "sha256": "63195c5a7998ddb4a9572c2b32edce3f681cd5a524b75f8b3b43f8b93d76116a",
21
- "bytes": 9661
20
+ "sha256": "ac1d736ef6f7b3deed1930a81721500e7baf1403055f77b5c823e1813f9f16ea",
21
+ "bytes": 9825
22
22
  },
23
23
  {
24
24
  "path": "references/editor.md",
@@ -32,8 +32,8 @@
32
32
  },
33
33
  {
34
34
  "path": "references/models.md",
35
- "sha256": "21567644dc39f40b7c73633e6c9d940c538c7fea998c4a852c10cecbb23b252c",
36
- "bytes": 56661
35
+ "sha256": "95b61cec8a13e2f21555929fda2bb8318f26af40238549f89ac0e89f118d1db3",
36
+ "bytes": 59358
37
37
  },
38
38
  {
39
39
  "path": "references/pipeline.md",
@@ -42,8 +42,8 @@
42
42
  },
43
43
  {
44
44
  "path": "SKILL.md",
45
- "sha256": "f96a93017ea90a576d08f124cf8e4246437efb889a51233780bc63ac52a7d6e4",
46
- "bytes": 62621
45
+ "sha256": "ddf77a21da65abc1d0a9cddcf063f5d44c62c8ceac86f8eddc93cd3a40e3014c",
46
+ "bytes": 63596
47
47
  }
48
48
  ]
49
49
  }
@@ -83,7 +83,7 @@ Seedance 2.0 and 2.5 have one price per quality and resolution. Quote with `cost
83
83
  2. Otherwise pick a **Tier 1** model.
84
84
  3. Use a **Tier 2** model only when no Tier 1 model supports the request, and say why. Never pick Tier 2 on your own for price, speed, novelty or variety.
85
85
 
86
- Tier 1: images `nano-banana-2.1`, `nano-banana-2`, `nano-banana-pro`, `nano-banana-2-lite`, `gpt-image-2.6-flare`, `gpt-image-2.6-sunburst`, and `recraft-v4` for vector/SVG only; videos `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-4.0`, `kling-3.0`, `kling-o3`, `flux-3-max`, `minimax-h3-max`; video edits `gemini-omni-1.2-flash`; talking-head portraits `veed-fabric`, `minimax-h3-max-lipsync`; motion transfer `kling-v3-motion-control`; audio ElevenLabs for speech tools, Lyria 3.5 for music at any length.
86
+ Tier 1: images `nano-banana-2.1`, `nano-banana-2`, `nano-banana-pro`, `nano-banana-2-lite`, `gpt-image-2.6-flare`, `gpt-image-2.6-sunburst`, and `recraft-v4` for vector/SVG only; videos `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-4.0`, `kling-3.0`, `kling-o3`, `flux-3-max`, `minimax-h3-max`, `magi-2` (last); video edits `gemini-omni-1.2-flash`; talking-head portraits `veed-fabric`, `minimax-h3-max-lipsync`; motion transfer `kling-v3-motion-control`; audio ElevenLabs for speech tools, Lyria 3.5 for music at any length.
87
87
 
88
88
  Tier 2 is every other catalog model (`wan-3.0`, `flux-3-image`, `minimax-h3`, `kling-4.0-flash`, `kling-v3-turbo`, `kling-2.6-pro`, `grok-imagine-video-1.5`, `happy-horse`, Veo 3.1, Seedream, Grok Imagine images, FLUX images, `sync-lipsync-2` and the rest). All of them stay available by name. Real Tier 2-only jobs: document or web-page references (`wan-3.0`), re-syncing existing footage (`sync-lipsync-2`).
89
89
 
@@ -106,6 +106,7 @@ Every `videodraft models image|video|audio --json` entry carries `tier` (1 or 2)
106
106
  - `minimax-h3` (Tier 2): 480p/768p/2K/4K (768p default), native stereo audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total. Cite them as `Image 1`, `Video 1`, and `Audio 1` in array order.
107
107
  - `flux-3-max` (Tier 1, before `minimax-h3-max`): fast 5-20s video at 720p/1080p, 24fps, optional native audio. Text, first frame, first + last frame, or up to 10 timed keyframes (`--keyframe shot.png@2.5`, repeatable). `--reasoning-level high|low` (high default), `--seed`, and explicit whole-second duration (default 5s). No Draft/quality mode or auto duration. Quote current pricing with `videodraft costs flux-3-max --type video --duration 5 --resolution 720p` or `--estimate`. Keep Gemini Omni as the default.
108
108
  - `minimax-h3-max`: 480p/768p (768p default), native audio, and 5-15s text, first/last-frame, or mixed-reference generation. Reference mode accepts up to 9 images, 3 videos, and 3 audio clips, with at most 12 files total, cited as `Image 1`, `Video 1`, and `Audio 1` in array order. It supports a reproducibility seed and `disabled` / `balanced` / `quality` prompt expansion.
109
+ - `magi-2` (Tier 1, the last choice after every other Tier 1 video model): Sand AI's MAGI-2, 4-30s in whole seconds, always 1080p with native audio. Text mode with `--ar 16:9|9:16|21:9|4:3|3:4|1:1` (default 16:9); frames mode from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); or reference mode with up to 10 `--ref` images, 5 `--ref-video` clips and 5 `--ref-audio` clips (each clip 2-30s, 30s combined per type; audio-only references work). Frames and references cannot be combined. No `--resolution`, `--no-audio`, `--seed`, `--negative`, quality tier, Draft or auto duration. It runs only on Atlas Cloud, so it needs VideoDraft credits or the user's own Atlas Cloud key; any other personal key is refused. One rate per second in every mode, references free: quote with `videodraft costs magi-2 --type video --duration 10` or `--estimate`. Every submission carries an idempotency key; after a lost response, retry with identical inputs and `--idempotency-key <same uuid>`.
109
110
  - `wan-3.0` (Tier 2): unified 2-30s text, first/last-frame, or ordered mixed-reference generation at 480p/720p/1080p, with optional native audio. Reference mode accepts up to 10 images, 5 videos, and 5 audio clips, at most 20 media files total; video and audio each total at most 15 seconds. `--auto-duration` reserves 30 seconds and reconciles to the provider-reported output length. Document/web references use `--file-url` or `--web-url` and require `--thinking`.
110
111
  - `seedance-2`: video/audio/mixed references, wider ratios, selectable audio, or 11-15s with both first and last frames. Duration alone up to 15s stays on Gemini Omni 1.2. `standard` is the default; use `mini` for a cheaper draft or `fast` for speed (both are 480p/720p only).
111
112
  - `seedance-2.5-flash`: separate model, not a quality setting. 4-30s or `--auto-duration`, 480p/720p, first/last frames or up to 10 images + 5 videos + 5 audio references (20 total). Audio-only references work. One Atlas-based platform credit rate, BytePlus then Atlas Cloud only; Fal is BYOK only. Use `--estimate` for current pricing and `--ref-video-seconds` when estimating video references.
@@ -114,7 +115,7 @@ Every `videodraft models image|video|audio --json` entry carries `tier` (1 or 2)
114
115
  - Existing-video edits use `videodraft edit video`, not generic generation. `gemini-omni-1.2-flash` is the preferred edit model and is chosen automatically when you omit `--model`: source from 3 to 15s, up to 2 reference images on Google, 360p/720p/1080p/4K with audio. Creative `--ref-video` inputs are NOT accepted on an edit, because an edit takes exactly one input video; use `generate video --video-task generate` to guide a new clip with video references instead. Omitting `--model` on a longer or unmeasurable source spends nothing and prints a priced menu (what each model edits, what it drops, what it costs) so you can put the choice to the user. **Truncation:** Gemini (15s), `kling-4.0-video-edit` (30s) and `kling-4.0-flash-video-edit` (20s) refuse an over-length source. Happy Horse silently edits just the first 15s, Kling O3 the first 10s, and Grok the first 8s. The command warns you when that will happen; always relay it to the user. `kling-4.0-video-edit` (Tier 2) can edit a whole source longer than 15s and up to 30s, so the priced menu offers it for long sources. Gemini regenerates the audio track, so use Happy Horse or Kling O3 with `--preserve-audio` when the source audio must survive. Choose Grok for the cheapest prompt-only edit, Happy Horse for up to 5 image references, or Kling O3 for controlled reference-image edits.
115
116
  - To edit a source longer than 15s without losing its tail, cut it into <=15s pieces in the selected editing app (`videodraft_editor` by default), edit each with Gemini, and reassemble in that app. VideoDraft has no server-side split/concat, so this path needs a local editing route.
116
117
  - Kling O3 also has a reference-generation mode. Use `videodraft generate video --model kling-o3-video-ref-edit` with exactly one `--ref-video` to generate a new guided clip; use `videodraft edit video` when changing the source itself. For new mixed-reference generation use Seedance 2 / 2.5.
117
- - Motion transfer uses `videodraft edit motion` with Kling V3 by default, or Kling 2.6 when explicitly requested or lower cost matters. It requires a subject image and a motion-reference video. For native Higgsfield, choose `--model genjutsu` or `--model genjutsu-light`: one source MP4 (4–30s or 4–15s), 1–8 ordered images (the positional subject plus repeatable `--ref`), optional prompt, and `--resolution 480p|720p|1080p` (default 720p). No quality/orientation/Element/audio/seed controls. Trim longer sources first. `--duration` is estimate-only. Light bills output seconds only; the reservation uses rounded-up source length and unused output time is refunded. Runs on VideoDraft credits or a selected Higgsfield API key only.
118
+ - Motion transfer uses `videodraft edit motion` with Kling V3 by default. It requires a subject image and a motion-reference video. For native Higgsfield, choose `--model genjutsu` or `--model genjutsu-light`: one source MP4 (4–30s or 4–15s), 1–8 ordered images (the positional subject plus repeatable `--ref`), optional prompt, and `--resolution 480p|720p|1080p` (default 720p). No quality/orientation/Element/audio/seed controls. Trim longer sources first. `--duration` is estimate-only. Light bills output seconds only; the reservation uses rounded-up source length and unused output time is refunded. Runs on VideoDraft credits or a selected Higgsfield API key only.
118
119
  - `kling-4.0` (Tier 1, the preferred Kling; Kling 3.0 and O3 keep 4K): Kling's newest model, with three modes like Kling O3. Text mode; image-to-video from `--start-image` with an optional `--end-image` (framing follows the image, so no `--ar`); or reference mode, chosen when you add `--ref`, `--ref-video` or `--element`, with an optional `--start-image` (no end frame), up to 10 images, 5 `--ref-video` clips and 7 `--element` entries (3 with voice, 3 video), cited as @Image1, @Video1, @Element1. 3-30s, 720p/1080p, multi-shot `--segment` up to 30s in total, audio always on; no seed or negative prompt. Reference and element videos are billed by their length plus the output, at least twice the output; quote with `videodraft costs kling-4.0 --type video --duration 10 --ref-video-seconds 6`.
119
120
  - `kling-4.0-video-edit` (Tier 2, by name or for a long source): `videodraft edit video <source> "<prompt citing @Video1>" --model kling-4.0-video-edit` edits a whole 3-30s source with up to 10 `--ref` images and 7 image-only `--element` entries, 720p/1080p. The output matches the source unless you pass `--duration` (3-30). It bills the source plus the output, at least twice the output, and cannot keep the source audio; quote with `videodraft costs kling-4.0-video-edit --type video --ref-video-seconds <source seconds>`.
120
121
  - `kling-4.0-flash` (Tier 2, by name): the faster, cheaper 720p tier of Kling 4.0, with the same three modes and inputs. Text mode; image-to-video from `--start-image` alone (no `--end-image`); or reference mode with an optional `--start-image`, up to 10 images, 5 `--ref-video` clips of 3-20s and 7 `--element` entries (up to 3 video-backed, 3-8s each; no `voice_id`), cited as @Image1, @Video1, @Element1. Reference and element videos share 5 clips and 20s; 15 inputs in total. 3-20s, 720p only, one prompt (no `--segment`), audio always on. It costs less per second than Kling 4.0 and bills reference and element videos the same way; quote with `videodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6`. Use `kling-4.0` for multi-shot, an end frame, voices, 1080p or more than 20s.
@@ -29,7 +29,7 @@ videodraft render session status film76
29
29
  videodraft render session list # every session, and storage used of the cap
30
30
  ```
31
31
 
32
- `start` flags: `--name` (use it everywhere instead of the id; give each project its own), `--gpu full|half|quarter` (below), `--from-snapshot <name>`, `--idle-minutes <n>` (1 to 1440, default 15), `--budget <credits>` (pauses the session at that cost; saving and switching off add about a minute), `--no-spot`, `--no-wait`. Without `--no-wait`, `start` waits until the machine is ready.
32
+ `start` flags: `--name` (use it everywhere instead of the id; give each project its own), `--gpu full|half|quarter` (below), `--from-snapshot <name>`, `--idle-minutes <n>` (1 to 1440, default 15), `--budget <credits>` (pauses the session at that cost; saving and switching off add about a minute; the budget covers the session's whole life, so a session that reached it cannot resume: snapshot it and start a new session from the snapshot with a bigger budget), `--no-spot`, `--no-wait`. Without `--no-wait`, `start` waits until the machine is ready.
33
33
 
34
34
  ## GPU size
35
35
 
@@ -73,6 +73,7 @@ videodraft generate image 'A blue glass bird flapping its wings, seamless loop'
73
73
  | T2: 480p/768p/2K/4K with native stereo audio, first/last frames, or mixed image/video/audio references | `minimax-h3` | 5-15s; up to 9 image, 3 video, 3 audio refs, 12 files total; first 5 reference images included; reference video/audio each total <=15s |
74
74
  | T1: Fast video and timed keyframes, before H3 Max | `flux-3-max` | 5-20s, default 5s; 720p/1080p; optional audio; first/last frames or up to 10 keyframes; High/Low reasoning (`--reasoning-level`), `--seed`; no Draft or auto duration |
75
75
  | T1: Text, first/last-frame, or mixed-reference video with native audio and stronger prompt adherence | `minimax-h3-max` | 5-15s; 480p/768p plus pooled reference tokens; up to 9 image, 3 video, 3 audio refs, 12 files total; seed and disabled/balanced/quality prompt expansion; provider safety checker off by default |
76
+ | T1 (last choice): Low-cost 1080p with native audio from text, first/last frames, or mixed references | `magi-2` | 4-30s whole seconds; 1080p only, audio always on; 10 image, 5 video, 5 audio refs (each clip 2-30s, 30s combined per type); frames XOR references; no seed, quality, Draft or auto; Atlas Cloud only |
76
77
  | T1: Video/audio references, mixed reference media, broad aspect ratios, first+last frames over 10s | `seedance-2` | 4-15s or auto; up to 9 image, 3 video, and 3 audio refs; audio toggle; Mini/Fast are 480p/720p only |
77
78
  | T2: Faster Seedance, when requested | `seedance-2.5-flash` | Separate model; 4-30s or auto, 480p/720p, first/last frames, 10 image + 5 video + 5 audio references (20 total). Audio-only references supported. No quality tiers or Draft mode. |
78
79
  | T1: Single takes past 15s, or more references than Seedance 2.0 allows | `seedance-2.5` | 4-30s or auto; up to 30 image, 10 video, and 10 audio refs (50 files total); one quality tier; 480p/720p/1080p/4k |
@@ -93,7 +94,7 @@ Routing rules:
93
94
  - Dialogue: write the line in the prompt, in quotes, with who says it and how. `gemini-omni-1.2-flash`, `seedance-2.5`, `seedance-2`, `kling-3.0` and `kling-o3` speak it natively; add `--ref-audio` on Seedance or a bound Kling voice for a specific voice. Do not generate speech separately and lip-sync it on.
94
95
  - One existing source video that should be edited: use `videodraft edit video`, which auto-selects Gemini Omni 1.2 Flash for a source from 3 to 15s. Generic `generate video --ref-video` retains source-edit behavior when `--video-task` is omitted, but the dedicated edit command is clearer.
95
96
  - Video supplied as a creative reference: Gemini Omni 1.2 Flash accepts up to 3 videos of at most 15 seconds each, including mixed image and video input. Creative video references are accepted on `--video-task generate` ONLY: edit and extend take exactly one input video, so `--ref-video` cannot accompany `--source-video` or `--previous-interaction-id`. Use Seedance 2.5 for more or longer video/audio references, or Seedance 2.0 when quality-tier control matters.
96
- - First and last frame control: every Tier 1 video model supports it (Gemini Omni 1.2 Flash, Seedance, Kling 4.0 in image-to-video, Kling O3, Kling 3.0, MiniMax H3 Max, FLUX 3 Max). For Gemini, every start/end frame counts toward the 10-image total, leaving up to 9 references with a start frame or 8 with both frames.
97
+ - First and last frame control: every Tier 1 video model supports it (Gemini Omni 1.2 Flash, Seedance, Kling 4.0 in image-to-video, Kling O3, Kling 3.0, MiniMax H3 Max, FLUX 3 Max, MAGI-2). For Gemini, every start/end frame counts toward the 10-image total, leaving up to 9 references with a start frame or 8 with both frames.
97
98
  - Extension with a 1-30s uploaded source uses Gemini Omni 1.2 Flash plus `--source-video` and `--video-task extend` (or `--extend`). Pass an explicit 3-10s output duration; the model appends it at the end, up to 40 seconds total. Creative `--ref-video` clips CANNOT accompany the source: edit and extend take exactly one input video. New dialogue is allowed only when the source video is silent; adding speech on top of a source that already has speech is refused with "the model is currently unable to process speech edits". Continuation uses `--previous-interaction-id <id>` and defaults to a conversational edit; `--video-task extend` lengthens it. A continuation is submitted as the prior turn's output video, so it obeys the same source limits (<=30s to extend, <=15s to edit) and the same silent-source dialogue rule. 40s total is reachable only by extending from a source of 30s or less, so a ladder dead-ends past 30s. Fal returns the video only, and its currently published callable v1.2 endpoints support uploaded-source extension through /v1.2/extend, but not Google interaction IDs or mixed source-edit references; never infer a route or silently fall back to paid Google.
98
99
  - Wan 3.0 reference mode and frame mode are separate. It accepts 10 images, 5 videos, and 5 audio clips, at most 20 media files total. Video and audio each total at most 15 seconds. `--file-url` and `--web-url` require `--thinking`. `--auto-duration` cannot be combined with `--duration`.
99
100
  - MiniMax H3 and H3 Max reference mode and first-plus-last-frame mode are separate. Audio cannot be the only reference. Address references as `Image 1`, `Video 1`, and `Audio 1` in array order.
@@ -243,6 +244,7 @@ videodraft costs topaz-interpolate-video --type video --duration 10 --width 1920
243
244
  videodraft costs minimax-h3 --type video --duration 10 --resolution 2K --ref-images 7
244
245
  videodraft costs minimax-h3-max --type video --duration 10 --resolution 768p --ref-images 2
245
246
  videodraft costs flux-3-max --type video --duration 5 --resolution 720p
247
+ videodraft costs magi-2 --type video --duration 10 # 1080p with audio; references are free
246
248
  videodraft costs kling-4.0 --type video --duration 10 --resolution 1080p --ref-video-seconds 6
247
249
  videodraft costs kling-4.0-video-edit --type video --resolution 720p --ref-video-seconds 12 # source length; output matches it
248
250
  videodraft costs kling-4.0-flash --type video --duration 10 --ref-video-seconds 6
@@ -261,6 +263,22 @@ videodraft generate video "..." --model minimax-h3-max --duration 8 --resolution
261
263
 
262
264
  MiniMax H3 Max and FLUX 3 Max are Tier 1; Gemini Omni remains the default. Use `videodraft costs` or `--estimate` for current prices before spending.
263
265
 
266
+ ## MAGI-2 (Sand AI)
267
+
268
+ `magi-2` is Tier 1 but the last video choice: pick it only when no other Tier 1 model fits better, or when the user asks for it or for low-cost 1080p with sound. It runs on Atlas Cloud only, with VideoDraft credits or the user's own Atlas Cloud key; with any other personal provider key selected, the server refuses it and says so.
269
+
270
+ - Modes follow the inputs. Text: `--ar` one of 16:9 (default), 9:16, 21:9, 4:3, 3:4, 1:1. Frames: `--start-image` with an optional `--end-image`; the output follows the first frame's shape, so omit `--ar`. References: up to 10 `--ref` images, 5 `--ref-video` and 5 `--ref-audio` clips, at least one of any kind; each video or audio clip is 2-30s and each kind totals at most 30s. Frames and references cannot be combined.
271
+ - Output is always 1080p-class H.264 at 25 fps with stereo audio (16:9 is 1920x1080, 9:16 is 1080x1920, 1:1 is 1440x1440). There is no resolution, audio, seed, negative-prompt, quality or Draft control.
272
+ - `--duration` is a whole number from 4 to 30 (default 5). Price is per requested second and the same in every mode; references are free. Quote with `videodraft costs magi-2 --type video --duration <s>` or `--estimate`.
273
+ - Prompts can run to 15,000 characters. Describe subject, motion, camera and sound, and say how each reference is used (for example "the woman from the reference image", "the camera move of the reference video").
274
+ - Generation takes a few minutes, longer for long clips. The CLI always sends an idempotency key; after a lost response, rerun the identical command with `--idempotency-key <the returned key>`, never a new key.
275
+
276
+ ```bash
277
+ videodraft generate video "At blue hour a red fox trots toward the camera. Slow dolly-in. Forest ambience, no music." --model magi-2 --duration 8 --ar 16:9
278
+ videodraft generate video "The biplane banks and flies into the clouds. Wind and engine sound." --model magi-2 --start-image first.png --end-image last.png --duration 6
279
+ videodraft generate video "The woman from the reference image walks through the night market, matching the camera move of the reference video." --model magi-2 --ref woman.png --ref-video move.mp4 --ar 9:16 --duration 10 --estimate
280
+ ```
281
+
264
282
  ## GenJutsu motion transfer
265
283
 
266
284
  `genjutsu` and `genjutsu-light` are two separate native Higgsfield models. Use `videodraft edit motion` with one subject image, a required `--motion-video`, and up to seven additional `--ref` images. Prompt text is optional. Resolution is `480p`, `720p` (default), or `1080p`. GenJutsu accepts 4–30 seconds; Light accepts 4–15 seconds. Use MP4 under 100 MB and trim longer sources before submission.