videodraft 0.29.0 → 0.31.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/README.md CHANGED
@@ -8,6 +8,17 @@ npx videodraft generate image "a red fox in snow, cinematic" --download ./out/
8
8
  npx videodraft create "30s launch video for our espresso machine" --ar 9:16
9
9
  ```
10
10
 
11
+ ## Background removal
12
+
13
+ ```sh
14
+ videodraft remove-background image portrait.png --download cutout.png
15
+ videodraft remove-background video clip.mp4 --estimate
16
+ videodraft remove-background video clip.mp4 --subject person --download cutout.webm
17
+ videodraft remove-background video product.mp4 --subject object --no-refine-edges --no-wait
18
+ ```
19
+
20
+ Image removal uses Pixelcut and returns transparent PNG. Video removal uses VEED Fast and returns transparent WebM, preserving source resolution and timing. Video sources must be uploaded MP4/MOV files, up to 100 MB, five minutes and 120 fps; local files upload automatically. Use `--max-credits` to cap spending, `--session` to group results, and `--idempotency-key <uuid>` to safely retry the same request. VideoDraft credits and Fal BYOK are supported.
21
+
11
22
  ## Install
12
23
 
13
24
  ```bash
@@ -223,10 +234,16 @@ const me = await client.callTool("whoami");
223
234
 
224
235
  MIT © VideoDraft
225
236
 
237
+ GPT Image 2.6 Flare (`gpt-image-2.6-flare`) and Sunburst (`gpt-image-2.6-sunburst`) replace GPT Image 2.5 and stay Tier 1: Flare for fast everyday generation and editing, readable text and precise composition, Sunburst when extra precision or detail matters. Both take up to 16 references, 1-4 outputs, 1K/2K/4K, 10 aspect ratios and quality auto/low/medium/high/xhigh/max (auto is priced at max; low and medium are only modestly cheaper than high). PNG output, no seed. A Pika key needs an explicit quality. Older scripts that pass a 2.5 id run on the matching 2.6 model. MCP uses `reference_images`, `num_images`, `resolution`, `aspect_ratio` and `quality`; the CLI uses `--ref`, `--num`, `--resolution`, `--ar` and `--quality`.
238
+
226
239
  Ideogram 4.5 (`ideogram-v4.5`) replaces the visible Ideogram 4.0 entry and stays Tier 2. Quality: low, medium (default) or high, priced per image; very_low for regular edits. Supports 1-8 outputs, 1K/2K, seed, a source plus four additional references (three with a mask), regular/high edit precision, and text-to-image prompt expansion. MCP uses `source_image`, `reference_images`, `mask_url`, `edit_precision`, `enable_prompt_expansion`, `image_width`, and `image_height`. CLI equivalents are `--source-image`, repeatable `--ref`, `--mask`, `--edit-precision`, `--prompt-expansion`, `--image-width`, and `--image-height`. Precise/masked edits require Auto size with no resolution or custom dimensions. Masks match source dimensions and contain both black edit regions and white preserved regions. Quotes for very_low require the source/reference count (`reference_image_count` or `--ref-images`). Legacy 4.0 jobs retain their original backend support.
227
240
 
228
241
  FLUX 3 image (`flux-3-image`, separate from `flux-3-max` video) is Tier 2. It generates and edits with up to 10 references, 1-4 outputs, 1K/2K/4K (default 1K), prompt expansion (default on) and 14 aspect ratios plus auto. Each image is priced by output size (resolution and ratio); auto is quoted at the tier's highest price. Without an aspect ratio, a new image is 16:9 and an edit follows its first reference. No seed. MCP uses `reference_images`, `num_images`, `resolution`, `aspect_ratio` and `enable_prompt_expansion`; the CLI uses `--ref`, `--num`, `--resolution`, `--ar` and `--prompt-expansion`.
229
242
 
243
+ ### Kling 4.0 video
244
+
245
+ `kling-4.0` is Kling's newest model. It runs on Atlas Cloud first, with Fal, Higgsfield and Pika as backups. It is Tier 1, the preferred Kling after Gemini Omni and Seedance (Kling 3.0 and O3 keep 4K). Three modes, like Kling O3: text to video; image to video from a start image (`start_image_url`) with an optional end image (`end_image_url`), where framing follows the image; and reference to video, chosen when references are given, with an optional start image, up to 10 images including it (`reference_images`, cited as @Image1), up to 5 reference videos (`reference_videos`, cited as @Video1, 3-30s each) and up to 7 `elements` (cited as @Element1; up to 3 with `voice_id`, up to 3 video-backed). Reference and element videos share 5 clips and 30 seconds, and 15 inputs is the total. Duration is 3-30 whole seconds (default 5), or 1-6 `multi_prompt` shots of 1-30s each and 3-30s in total. 720p/1080p, audio always on, aspect ratio 16:9/9:16/1:1/21:9 plus auto with references (none in image to video). Reference mode has no end frame. No seed, negative prompt or quality tier. Reference and element videos are billed by length plus the output, at least twice the output; quote with `videodraft costs kling-4.0 --type video --duration 10 --ref-video-seconds 6` or `--estimate`. CLI: `--model kling-4.0` with `--start-image`, `--end-image`, `--ref`, `--ref-video`, `--element`, `--segment`, `--resolution`. `kling-4.0-video-edit` edits a whole 3-30s source with `videodraft edit video <source> "<prompt citing @Video1>" --model kling-4.0-video-edit`, up to 10 `--ref` images and 7 image-only `--element` entries, and an optional output `--duration` (3-30; default the source length). It bills the source plus the output, at least twice the output; quote with `videodraft costs kling-4.0-video-edit --type video --ref-video-seconds <source seconds>`. See the [model guide](skills/videodraft/references/models.md).
246
+
230
247
  ### FLUX 3 Max video
231
248
 
232
249
  `flux-3-max` replaces FLUX 3 in discovery. It is Tier 1 immediately before MiniMax H3 Max; Gemini Omni remains the default. It accepts a prompt, first/last frames, or up to 10 timed keyframes, at 720p/1080p for 5-20 whole seconds (default 5). Audio is optional. MCP uses `reasoning_level: "low" | "high"` (high default) and `seed`; CLI uses `--reasoning-level`, `--seed`, `--duration`, `--start-image`, `--end-image`, and repeatable `--keyframe image.png@2.5`. No Draft/quality option or auto duration. Get current pricing with `videodraft costs flux-3-max --type video --duration 5 --resolution 720p` or `--estimate`. See the [model guide](skills/videodraft/references/models.md).