makaron-cli 0.17.9 → 0.17.11

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.9",
3
+ "version": "0.17.11",
4
4
  "description": "Give Claude Code a creative agent. Pass complete creative requests and source media to Makaron Chat.",
5
5
  "author": {
6
6
  "name": "Versa AI",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.9",
3
+ "version": "0.17.11",
4
4
  "description": "Give Codex a creative agent. Pass complete creative requests and source media to Makaron Chat.",
5
5
  "author": {
6
6
  "name": "Versa AI",
package/README.md CHANGED
@@ -434,6 +434,7 @@ npx makaron-cli analyze --video input.mp4 "describe the key actions and pacing"
434
434
 
435
435
  # 3a. Submit reference-to-video rendering (images must be public URLs from step 1 or uploaded)
436
436
  npx makaron-cli video create --script "Shot 1 (5s): <<<image_1>>> ..." --image https://...jpg --duration 5 --video-model kling-4
437
+ npx makaron-cli video create --script "Shot 1 (20s): <<<image_1>>> ..." --image https://...jpg --duration 20 --video-model kling-4-flash
437
438
  npx makaron-cli video create --script "Shot 1 (5s): <<<image_1>>> slow cinematic push-in with native ambience" --image https://...jpg --duration 5 --video-model grok
438
439
  npx makaron-cli video create --script "Keep both subjects recognizable as they enter the same studio" --image https://...jpg --image https://...webp --duration 5 --video-model grok --video-resolution 720p
439
440
  npx makaron-cli video create --script "Shot 1 (15s): <<<image_1>>> and <<<image_2>>> build a neon one-person studio" --image https://...jpg --image https://...webp --duration 15 --video-model seedance-mini --video-resolution 480p --aspect 9:16
@@ -472,7 +473,7 @@ For project/timeline video editing, use:
472
473
  npx makaron-cli chat --project <id|auto> --video input.mp4 -b "make it funny"
473
474
  ```
474
475
 
475
- Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. `kling-4-flash` is unavailable: no verified independent callable API or price; never silently substitute the standard model.
476
+ Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. Kling 4.0 Flash: use `--video-model kling-4-flash` for the faster, lower-cost variant with the same inputs, edit route and Retake rules, but integer 3–20s at 720p only and source/reference videos at most 20s total. Never silently substitute one Kling 4 variant for the other.
476
477
 
477
478
  Options for `video create`: `--script "..."`, `--script-file <path>`, `--image <url>` (repeatable, up to the selected model limit), `--video <file|url>` and `--audio <file|url>` (repeatable where supported), `--voice <xai-preset-id>` (repeatable, Grok only), `--duration <seconds>`, `--aspect 9:16|16:9|1:1`, `--video-model seedance-fast|seedance-mini|seedance|seedance-2.5|wan-3.0|wan-3.0-prime|kling-4|grok|google-omni|minimax-h3|minimax-h3-max|fal-h3-max|sync-lipsync-v3`, `--video-resolution auto|480p|720p|768p|1080p|2k|4k`. Default model is FAL H3 Max (`fal-h3-max`) at 768p (480p/1080p optional): native text-to-video or image/video/audio reference-to-video, integer 5-15s, up to 9 images + 3 videos + 3 audios (12 total). SeeDance accepts native text-to-video with no image and integer output duration 4-15s (default 5s); every Seedance image input is submitted through reference-to-video, including one image. `seedance-mini` supports 480p/720p and is best for cheaper drafts/multi-size tests. Wan 3.0 and Wan 3.0 Prime both expose 480p/720p/1080p/2K/4K; 2K/4K automatically use the matching FlashVSR endpoint. MiniMax H3 accepts native text-to-video, 4-15s output, public 768p/2k resolution, and up to 9 image, up to 3 video, and up to 3 audio feature references through Makaron Agent/chat; a single image keeps the `reference_image` role. `sync-lipsync-v3` requires exactly one video plus one MP3/WAV and preserves that replacement audio while aligning the mouth. H3 defaults to 768p; request 2k explicitly for maximum/final quality. Kling 4.0 supports integer 3-30s in one call. Grok generation uses `grok-imagine-video-1.5`: text-only generation supports 480p/720p/1080p, while any 1-7 image or preset voice input uses reference-to-video and is capped at 720p. Grok edit/extend uses `grok-imagine-video` internally under the same `grok` selector. Gemini Omni supports 3-10s fast image/video generation and editing with native generated audio; every image-only generation request uses `reference_to_video`, including a single image, with up to 6 images when no video reference is provided.
478
479
 
@@ -482,7 +483,7 @@ Seedance 2.5: use `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30 se
482
483
 
483
484
  Wan 3.0: choose `--video-model wan-3.0` or the faster `--video-model wan-3.0-prime`. Both support 2-30 second generation, 480p/720p/1080p/2K/4K, and up to 10 images, 5 videos, and 5 audio references. Pass `--video-resolution 2k|4k` to use the matching FlashVSR/Pro endpoint automatically; Pro is not a separate model selector. Use generation mode with feature references; typed edit/extend and `--relaxed-content-filter` are not supported.
484
485
 
485
- Video edit model behavior: `--video-model kling-4 --video --video-operation edit` uses Kling 4.0 direct edit and preserves source audio; `--video-model seedance-fast --video`, `--video-model seedance-mini --video`, or `--video-model seedance --video` uses the SeeDance video-reference path and requires target <=15s, <=50MB, width/height 300-6000px, aspect ratio 0.4-2.5, and frame pixels 409,600-2,086,876. `--video-model minimax-h3 --video` uses H3 feature/reference mode: up to 3 video references totaling <=15s, each <=50MB with width/height 256-5760px and aspect ratio 0.4-2.5. `--video-model google-omni --video` uses Gemini Omni direct video editing and accepts one reference video in Makaron. Output duration is clamped to 3-10s. `--video-model grok --video --video-operation edit` accepts one MP4 up to 8.7s, retains duration/aspect, and caps output at 720p. `--video-operation extend` accepts one 2-15s MP4 and adds 2-10s (default 6s); the returned result includes the original plus extension.
486
+ Video edit model behavior: `--video-model kling-4 --video --video-operation edit` uses Kling 4.0 direct edit and preserves source audio (`kling-4-flash` does the same for a 3–20s source at 720p); `--video-model seedance-fast --video`, `--video-model seedance-mini --video`, or `--video-model seedance --video` uses the SeeDance video-reference path and requires target <=15s, <=50MB, width/height 300-6000px, aspect ratio 0.4-2.5, and frame pixels 409,600-2,086,876. `--video-model minimax-h3 --video` uses H3 feature/reference mode: up to 3 video references totaling <=15s, each <=50MB with width/height 256-5760px and aspect ratio 0.4-2.5. `--video-model google-omni --video` uses Gemini Omni direct video editing and accepts one reference video in Makaron. Output duration is clamped to 3-10s. `--video-model grok --video --video-operation edit` accepts one MP4 up to 8.7s, retains duration/aspect, and caps output at 720p. `--video-operation extend` accepts one 2-15s MP4 and adds 2-10s (default 6s); the returned result includes the original plus extension.
486
487
 
487
488
  ### `music` — Music generation
488
489
 
@@ -738,10 +739,11 @@ GPT Image 2.6 Flare is the default image route; Sunburst is an explicit alternat
738
739
 
739
740
  For new GIF artwork, mascot loops, and animated memes, **GPT Image 2.6 Flare is the go-to model**. Start with `makaron chat`; the Agent uses native image generation. Keep `animated-gif` for assembling existing frames or explicitly requested timing/export controls.
740
741
 
741
- `--output-format png|jpeg|webp|gif|svg` preserves the original format. GIF supports generation/editing and `--frame-count` / `--frame-duration-ms`; all frames share the pixel budget and native sheet, with at most 960px per frame edge even for fewer frames (default 9 frames, 200 ms, 960 square). Per-frame 2K/4K is rejected before submission. SVG is experimental: live provider acceptance still returns 422. Its transport supports **text-to-image only**, with one output and no source/reference images; do not promise a working SVG generation route. Unsafe or external SVG content is rejected. CLI saves real GIF/SVG bytes with matching extensions, even if `--out` requested a different extension. No silent rasterization, fallback model or automatic paid retry.
742
+ `--output-format png|jpeg|webp|gif|svg` preserves the original format. GIF supports generation/editing with `--frame-count` (2–16) / `--frame-duration-ms` / `--gif-size sticker|full`. Frames share one native sheet: full-size square frames are 960px up to 9 frames, 816px for 10–12 and 720px for 13–16 (default 9 frames, 200 ms). `--gif-size sticker` uses ~512px frames for chat stickers and memes at about half the cost. Per-frame 2K/4K is rejected before submission. SVG is experimental: live provider acceptance still returns 422. Its transport supports **text-to-image only**, with one output and no source/reference images; do not promise a working SVG generation route. Unsafe or external SVG content is rejected. CLI saves real GIF/SVG bytes with matching extensions, even if `--out` requested a different extension. No silent rasterization, fallback model or automatic paid retry.
742
743
 
743
744
  ```sh
744
745
  makaron edit --output-format gif --quality medium --frame-count 9 --frame-duration-ms 160 --out spark.gif "A looping purple spark tracing a cyan circle"
746
+ makaron edit --output-format gif --gif-size sticker --frame-count 12 --frame-duration-ms 120 --background opaque --out nope.gif "Chat sticker: a cat wags its finger 'no', smug smile, caption 不行"
745
747
  makaron chat --image mascot.png "Use GPT Image 2.6 Flare to make a looping GIF of this mascot waving; return the original GIF."
746
748
  ```
747
749
 
package/bin/makaron.mjs CHANGED
@@ -2077,8 +2077,9 @@ Options:
2077
2077
  --quality <tier> auto, low, medium, high (2.6; default low).
2078
2078
  --image-reasoning <tier> low, medium, high (2.6; default high).
2079
2079
  --output-format <format> png, jpeg, webp, gif, svg (2.6; default png).
2080
- --frame-count <n> GIF frames, default 9; max frame edge 960px.
2080
+ --frame-count <n> GIF frames 2-16, default 9; 960px frames up to 9, 816px for 10-12, 720px for 13-16.
2081
2081
  --frame-duration-ms <n> GIF frame delay, default 200; multiples of 10.
2082
+ --gif-size <size> sticker (~512px frames, about half cost) or full (default, largest frames).
2082
2083
  --out <file> Save images; batches use name-1.ext, name-2.ext, etc.
2083
2084
  --mj-speed <mode> fast (up to 4 images) or draft (up to 24).
2084
2085
  --mj-quality <mode> standard or hd; HD regenerates, not lossless upscaling.
@@ -2125,12 +2126,12 @@ Inputs:
2125
2126
 
2126
2127
  Generation options:
2127
2128
  --video-model <id> seedance-fast, seedance-mini, seedance, seedance-2.5,
2128
- wan-3.0, wan-3.0-prime, kling-4, grok, google-omni,
2129
+ wan-3.0, wan-3.0-prime, kling-4, kling-4-flash, grok, google-omni,
2129
2130
  minimax-h3, minimax-h3-max, fal-h3-max, or sync-lipsync-v3.
2130
2131
  --duration <seconds> Output duration supported by the selected model.
2131
2132
  --video-resolution <res> auto, 480p, 720p, 768p, 1080p, 2k, or 4k.
2132
2133
  --aspect <ratio> 9:16, 16:9, 1:1, or another supported ratio.
2133
- --video-operation <mode> generate, edit, or extend (Seedance 2.5 / Grok); Kling 4 supports generate/edit.
2134
+ --video-operation <mode> generate, edit, or extend (Seedance 2.5 / Grok); Kling 4 / Kling 4 Flash support generate/edit.
2134
2135
  --extend-direction <dir> forward or backward.
2135
2136
  --output-format <format> mp4 or mov.
2136
2137
  --generated-audio Ask the provider to generate audio.
@@ -2143,6 +2144,8 @@ Generation options:
2143
2144
  Recent model choices:
2144
2145
  kling-4 Kling 4.0 standard: native text/image/video references, 3–30s, 720p/1080p.
2145
2146
  Native edit preserves source audio; default for video retake.
2147
+ kling-4-flash Kling 4.0 Flash: faster, lower-cost Kling 4.0 with the same inputs and edit route;
2148
+ 3–20s, 720p only, video inputs <=20s total.
2146
2149
  fal-h3-max FAL H3 Max (default, 768p) reference-to-video: images, videos and audio;
2147
2150
  integer 5–15s, 480p/768p/1080p, default 768p. Reference inputs cost extra.
2148
2151
  minimax-h3-max fal H3 Turbo faster-than-real-time T2V or one-start-image I2V;
@@ -2174,6 +2177,8 @@ function printVideoHelp() {
2174
2177
  video create --script "..." --video-model minimax-h3-max H3 Max Turbo (native 768p default)
2175
2178
  video create --script "..." --video-model wan-3.0-prime Fast Wan tier, up to 4k
2176
2179
  video create --script "..." --video-model seedance-2.5 4-30s multimodal generation/edit/extend
2180
+ video create --script "..." --video-model kling-4 Kling 4.0, 3-30s, 720p/1080p
2181
+ video create --script "..." --video-model kling-4-flash Kling 4.0 Flash, faster/lower cost, 3-20s 720p
2177
2182
  video create --script "..." --video <file|url> --video-model grok --video-operation extend
2178
2183
  Edit or extend one MP4 with Grok
2179
2184
  video create --script "..." --video <url> --audio <url> --video-model sync-lipsync-v3
@@ -2234,7 +2239,7 @@ Commands:
2234
2239
 
2235
2240
  edit [--image <file>] "prompt" Image edit, text-to-image, or transparent PNG
2236
2241
  analyze --video <file|url> Analyze video content
2237
- video script|create|retake|status H3 Max, Wan, Seedance, Grok, lip-sync, Kling 4; interval retake
2242
+ video script|create|retake|status H3 Max, Wan, Seedance, Grok, lip-sync, Kling 4 / Flash; interval retake
2238
2243
  music create|status Music generation
2239
2244
 
2240
2245
  admin Admin commands (skills, credits, upload, set-admin)
@@ -2387,7 +2392,7 @@ Not sure which built-in skill to use? Start with:
2387
2392
  } else if (topic === 'video') {
2388
2393
  if (subtopic === 'script') console.log('Usage: makaron video script --image <file> [--image <file>] [--lang en|zh] "direction"');
2389
2394
  else if (subtopic === 'create') printVideoCreateHelp();
2390
- else if (subtopic === 'retake') console.log('Usage: makaron video retake --video <url|file> --start <seconds> --end <seconds> --prompt "change" [--model seedance-2.5-eco|seedance-2.5|fal-h3-max|kling-4|wan-3.0|wan-3.0-prime|grok|google-omni|minimax-h3] [--project <id>] [--wait] [--json] [--request-id <uuid>] [--audio-mode original|generated]\nDefault: kling-4 at 720p; source >=3s, original audio only. Select another compatible model explicitly for generated audio.');
2395
+ else if (subtopic === 'retake') console.log('Usage: makaron video retake --video <url|file> --start <seconds> --end <seconds> --prompt "change" [--model seedance-2.5-eco|seedance-2.5|fal-h3-max|kling-4|kling-4-flash|wan-3.0|wan-3.0-prime|grok|google-omni|minimax-h3] [--project <id>] [--wait] [--json] [--request-id <uuid>] [--audio-mode original|generated]\nDefault: kling-4 at 720p; source >=3s, original audio only. Select another compatible model explicitly for generated audio.');
2391
2396
  else if (subtopic === 'status') console.log('Usage: makaron video status <taskId> | --snapshot <snapshotId> [--wait]');
2392
2397
  else printVideoHelp();
2393
2398
  } else if (topic === 'music') {
@@ -3220,16 +3225,16 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3220
3225
  }
3221
3226
  editArgs.background = background;
3222
3227
  }
3223
- else if (['--quality', '--image-reasoning', '--output-format', '--frame-count', '--frame-duration-ms'].includes(args[i])) {
3228
+ else if (['--quality', '--image-reasoning', '--output-format', '--gif-size', '--frame-count', '--frame-duration-ms'].includes(args[i])) {
3224
3229
  const flag = args[i], value = args[++i];
3225
- const fields = { '--quality': ['imageQuality', ['auto', 'low', 'medium', 'high']], '--image-reasoning': ['imageReasoningEffort', ['low', 'medium', 'high']], '--output-format': ['outputFormat', ['png', 'jpeg', 'webp', 'gif', 'svg']] };
3230
+ const fields = { '--quality': ['imageQuality', ['auto', 'low', 'medium', 'high']], '--image-reasoning': ['imageReasoningEffort', ['low', 'medium', 'high']], '--output-format': ['outputFormat', ['png', 'jpeg', 'webp', 'gif', 'svg']], '--gif-size': ['gifFrameSize', ['sticker', 'full']] };
3226
3231
  if (fields[flag]) {
3227
3232
  const [key, allowed] = fields[flag];
3228
3233
  if (!allowed.includes(value)) { console.error(`Invalid ${flag}: use ${allowed.join(', ')}.`); process.exit(1); }
3229
3234
  editArgs[key] = value;
3230
3235
  } else {
3231
3236
  const number = Number(value), frames = flag === '--frame-count';
3232
- if (!Number.isInteger(number) || number < (frames ? 2 : 20) || number > (frames ? 64 : 2000) || (!frames && number % 10)) { console.error(`Invalid ${flag}.`); process.exit(1); }
3237
+ if (!Number.isInteger(number) || number < (frames ? 2 : 20) || number > (frames ? 16 : 2000) || (!frames && number % 10)) { console.error(`Invalid ${flag}.`); process.exit(1); }
3233
3238
  editArgs[frames ? 'frameCount' : 'frameDurationMs'] = number;
3234
3239
  }
3235
3240
  }
@@ -3312,12 +3317,12 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3312
3317
  else if ((flag === '--model' || flag === '--video-model') && args[i + 1]) params.model = args[++i];
3313
3318
  else if (flag === '--project' && args[i + 1]) params.project_id = args[++i];
3314
3319
  else if (flag === '--request-id' && args[i + 1]) params.request_id = args[++i];
3315
- else { console.error('Usage: makaron video retake --video <url|file> --start <seconds> --end <seconds> --prompt "change" [--model seedance-2.5-eco|seedance-2.5|fal-h3-max|kling-4|wan-3.0|wan-3.0-prime|grok|google-omni|minimax-h3] [--project <id>] [--wait] [--json] [--request-id <uuid>] [--audio-mode original|generated]\nDefault: kling-4 at 720p; source >=3s, original audio only. Select another compatible model explicitly for generated audio.'); process.exit(1); }
3320
+ else { console.error('Usage: makaron video retake --video <url|file> --start <seconds> --end <seconds> --prompt "change" [--model seedance-2.5-eco|seedance-2.5|fal-h3-max|kling-4|kling-4-flash|wan-3.0|wan-3.0-prime|grok|google-omni|minimax-h3] [--project <id>] [--wait] [--json] [--request-id <uuid>] [--audio-mode original|generated]\nDefault: kling-4 at 720p; source >=3s, original audio only. Select another compatible model explicitly for generated audio.'); process.exit(1); }
3316
3321
  }
3317
3322
  if (!params.video_url || !params.prompt || !Number.isFinite(params.start) || !Number.isFinite(params.end)
3318
3323
  || params.start < 0 || params.end - params.start < .1 || params.end - params.start > 15
3319
3324
  || (params.audio_mode && !['original','generated'].includes(params.audio_mode))
3320
- || !['seedance-2.5-eco', 'seedance-2.5', 'fal-h3-max', 'kling-4', 'wan-3.0', 'wan-3.0-prime', 'grok', 'google-omni', 'minimax-h3'].includes(params.model)) {
3325
+ || !['seedance-2.5-eco', 'seedance-2.5', 'fal-h3-max', 'kling-4', 'kling-4-flash', 'wan-3.0', 'wan-3.0-prime', 'grok', 'google-omni', 'minimax-h3'].includes(params.model)) {
3321
3326
  console.error('Retake needs one video, a prompt, a valid 0.1–15 second interval, and a supported model.'); process.exit(1);
3322
3327
  }
3323
3328
  if (!isHttpUrl(params.video_url)) {
@@ -3383,6 +3388,8 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3383
3388
  ? 'wan-3.0'
3384
3389
  : ['wan3-prime', 'wan3.0-prime', 'wan30-prime', 'wan-3-prime', 'w3.0-video-prime', 'w3.0-video-prime-pro', 'wan-3.0-prime-pro', 'prime'].includes(videoModel)
3385
3390
  ? 'wan-3.0-prime'
3391
+ : ['kling4', 'kling-4.0', 'kling 4.0', 'kling 4'].includes(String(videoModel).toLowerCase()) ? 'kling-4'
3392
+ : ['kling4-flash', 'kling-4.0-flash', 'kling 4.0 flash', 'kling 4 flash'].includes(String(videoModel).toLowerCase()) ? 'kling-4-flash'
3386
3393
  : (videoModel || 'fal-h3-max');
3387
3394
  const isSeedance25 = ['seedance-2.5', 'seedance-2.5-eco'].includes(selectedVideoModel);
3388
3395
  const isWan30 = selectedVideoModel === 'wan-3.0' || selectedVideoModel === 'wan-3.0-prime';
@@ -3394,14 +3401,18 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3394
3401
  const isGoogleOmni = selectedVideoModel === 'google-omni';
3395
3402
  const isSyncLipsync = selectedVideoModel === 'sync-lipsync-v3';
3396
3403
  if (['kling', 'kling-o3', 'kling-o3-video', 'kling-v3-omni', 'kling-3', 'kling-3.0'].includes(selectedVideoModel)) { console.error('Kling O3 has been retired. Historical videos remain available. Select an available model explicitly; no task submitted.'); process.exit(1); }
3397
- const isKling4 = selectedVideoModel === 'kling-4';
3398
- const supportsNativeTextToVideo = selectedVideoModel === 'kling-4' || selectedVideoModel === 'kling-4-flash' || isSeedanceModel || isWan30 || isMinimaxH3 || isFalH3Max || isFalReference || isGrok || isGoogleOmni;
3404
+ const isKling4Flash = selectedVideoModel === 'kling-4-flash';
3405
+ const isKling4 = selectedVideoModel === 'kling-4' || isKling4Flash;
3406
+ const kling4Label = isKling4Flash ? 'Kling 4.0 Flash' : 'Kling 4.0';
3407
+ const kling4MaxSeconds = isKling4Flash ? 20 : 30;
3408
+ const supportsNativeTextToVideo = isKling4 || isSeedanceModel || isWan30 || isMinimaxH3 || isFalH3Max || isFalReference || isGrok || isGoogleOmni;
3399
3409
  if (!script || (!images.length && !videos.length && !audios.length && !referenceVoices.length && !supportsNativeTextToVideo)) {
3400
- console.error('Usage: makaron video create --script "..." [--image <url>] [--video <file|url>] [--audio <file|url>] [--duration 30] [--video-model seedance-2.5|wan-3.0|wan-3.0-prime|minimax-h3|minimax-h3-max]');
3410
+ console.error('Usage: makaron video create --script "..." [--image <url>] [--video <file|url>] [--audio <file|url>] [--duration 30] [--video-model seedance-2.5|wan-3.0|wan-3.0-prime|kling-4|kling-4-flash|minimax-h3|minimax-h3-max]');
3401
3411
  process.exit(1);
3402
3412
  }
3403
- if (isKling4 && (images.length > 10 || videos.length > 5 || audios.length)) { console.error('Kling 4.0 accepts at most 10 images and 5 videos, with no audio references.'); process.exit(1); }
3404
- if (isKling4 && duration != null && (!Number.isInteger(duration) || duration < 3 || duration > 30)) { console.error('Kling 4.0 output duration must be an integer from 3 to 30 seconds.'); process.exit(1); }
3413
+ if (isKling4 && (images.length > 10 || videos.length > 5 || audios.length)) { console.error(`${kling4Label} accepts at most 10 images and 5 videos, with no audio references.`); process.exit(1); }
3414
+ if (isKling4 && duration != null && (!Number.isInteger(duration) || duration < 3 || duration > kling4MaxSeconds)) { console.error(`${kling4Label} output duration must be an integer from 3 to ${kling4MaxSeconds} seconds.`); process.exit(1); }
3415
+ if (isKling4Flash && videoResolution && !['auto', '720p'].includes(videoResolution.toLowerCase())) { console.error('Kling 4.0 Flash supports 720p only.'); process.exit(1); }
3405
3416
  if (isFalReference && (images.length > 9 || videos.length > 3 || audios.length > 3 || images.length + videos.length + audios.length > 12)) { console.error('FAL H3 Max accepts at most 9 images, 3 videos, 3 audios, 12 total.'); process.exit(1); }
3406
3417
  if (isFalReference && duration != null && (!Number.isInteger(duration) || duration < 5 || duration > 15)) { console.error('FAL H3 Max output duration must be an integer from 5 to 15 seconds.'); process.exit(1); }
3407
3418
  if (isSeedance25 && images.length > 30) { console.error('Seedance 2.5 supports at most 30 image references.'); process.exit(1); }
@@ -3440,7 +3451,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3440
3451
  let providerMaxDuration = isSeedance25 ? SEEDANCE25_MAX_VIDEO_REFERENCE_DURATION : MAX_VIDEO_PROVIDER_REFERENCE_DURATION;
3441
3452
  if (isGrok) providerMaxDuration = inferredOperation === 'edit' ? 8.7 : 15;
3442
3453
  if (isSyncLipsync) providerMaxDuration = 60;
3443
- if (isKling4) providerMaxDuration = 30;
3454
+ if (isKling4) providerMaxDuration = kling4MaxSeconds;
3444
3455
  const providerMaxPixels = isSyncLipsync || isMinimaxH3 || isWan30 || isKling4 ? Infinity : isSeedance25 ? SEEDANCE25_MAX_VIDEO_FRAME_PIXELS : MAX_VIDEO_FRAME_PIXELS;
3445
3456
  const localImages = images.filter(image => !isHttpUrl(image));
3446
3457
  if (localImages.length) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.9",
3
+ "version": "0.17.11",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -357,6 +357,7 @@ npx makaron-cli analyze --video input.mp4 "describe the key actions and pacing"
357
357
 
358
358
  # 3a. Submit reference-to-video rendering (images must be public URLs from step 1 or uploaded)
359
359
  npx makaron-cli video create --script "Shot 1 (5s): <<<image_1>>> ..." --image https://...jpg --duration 5 --video-model kling-4
360
+ npx makaron-cli video create --script "Shot 1 (20s): <<<image_1>>> ..." --image https://...jpg --duration 20 --video-model kling-4-flash
360
361
  npx makaron-cli video create --script "Shot 1 (15s): <<<image_1>>> and <<<image_2>>> build a neon one-person studio" --image https://...jpg --image https://...webp --duration 15 --video-model seedance-mini --video-resolution 480p --aspect 9:16
361
362
 
362
363
  # 3b. Native SeeDance, Wan 3.0, MiniMax H3, or fal H3 Turbo text-to-video (no image required)
@@ -396,7 +397,7 @@ Chat segment inspection also reads source speech through ASR, reusing cached tra
396
397
  npx makaron-cli chat --project <id|auto> --video input.mp4 -b "make it funny"
397
398
  ```
398
399
 
399
- Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. `kling-4-flash` is unavailable: no verified independent callable API or price; never silently substitute the standard model.
400
+ Kling 4.0: use `--video-model kling-4` for native text-to-video or image/video feature references, integer 3–30s at 720p (default) or 1080p. Up to 10 images and 5 videos; source videos must each be 3s or longer, total at most 30s, 720–2160px per side, 24–60fps and at most 200MB each. `--video-operation edit` requires exactly one source video and preserves its canvas/audio. Explicit keyframe I2V, extension and replacement-audio controls are not exposed. Retake defaults to `kling-4` at 720p, original audio only, source at least 3s, no final/middle frame control. Kling 4.0 Flash: use `--video-model kling-4-flash` for the faster, lower-cost variant with the same inputs, edit route and Retake rules, but integer 3–20s at 720p only and source/reference videos at most 20s total. Never silently substitute one Kling 4 variant for the other.
400
401
 
401
402
  Options for `video create`: `--script "..."`, `--script-file <path>`, `--image <url>` (repeatable, up to the selected model limit), `--video <file|url>` and `--audio <file|url>` (repeatable where supported), `--voice <xai-preset-id>` (repeatable, Grok only), `--duration <seconds>`, `--aspect 9:16|16:9|1:1`, `--video-model seedance-fast|seedance-mini|seedance|seedance-2.5|wan-3.0|wan-3.0-prime|kling-4|grok|google-omni|minimax-h3|minimax-h3-max|fal-h3-max|sync-lipsync-v3`, `--video-resolution auto|480p|720p|768p|1080p|2k|4k`. Default model is FAL H3 Max (`fal-h3-max`) at 768p (480p/1080p optional): native text-to-video or image/video/audio reference-to-video, integer 5-15s, up to 9 images + 3 videos + 3 audios (12 total). SeeDance accepts native text-to-video with no image and integer output duration 4-15s (default 5s); every Seedance image input uses reference-to-video, including one image. `seedance-mini` supports 480p/720p and is best for cheaper drafts/multi-size tests. Wan 3.0 and Wan 3.0 Prime both expose 480p/720p/1080p/2K/4K; 2K/4K automatically use the matching FlashVSR endpoint. MiniMax H3 accepts native text-to-video, 4-15s output, public 768p/2k resolution, and up to 9 image, up to 3 video, and up to 3 audio feature references through Makaron Agent/chat; a single image keeps the `reference_image` role. fal H3 Turbo (`minimax-h3-max`) accepts native text-to-video or exactly one start image for image-to-video, exact 5/10/15s duration, and 480p/768p; it does not accept reference video/audio or multiple images. `sync-lipsync-v3` requires exactly one video plus one MP3/WAV and preserves that replacement audio while aligning the mouth. H3 defaults to 768p; request 2k explicitly for maximum/final quality. Kling 4.0 supports integer 3-30s in one call. Grok text-only generation supports 480p/720p/1080p; any 1-7 image or preset voice input uses reference-to-video and is capped at 720p. Grok edit/extend uses `grok-imagine-video` internally. Gemini Omni image-only generation always uses `reference_to_video`, including one image, with up to 6 images when no video reference is provided.
402
403
 
@@ -408,7 +409,7 @@ Seedance 2.5 uses `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30s v
408
409
 
409
410
  Wan 3.0 exposes two model choices: `--video-model wan-3.0` and the faster `--video-model wan-3.0-prime`. Both support 2-30s generation, native audio, up to 10 images + 5 videos + 5 audios, and 480p/720p/1080p/2K/4K. Pass `--video-resolution 2k|4k` to select the matching FlashVSR/Pro endpoint automatically; Pro is not a separate model selector. Use generation mode with feature references; typed edit/extend and the relaxed content-filter flag are not supported.
410
411
 
411
- Video edit model behavior: `--video-model kling-4 --video --video-operation edit` uses Kling 4.0 direct edit and preserves source audio; `--video-model seedance-fast --video`, `--video-model seedance-mini --video`, or `--video-model seedance --video` uses the SeeDance video-reference path and requires target <=15s, <=50MB with width/height 300-6000px, aspect ratio 0.4-2.5, and frame pixels 409,600-2,086,876. `--video-model minimax-h3 --video` uses H3 feature/reference mode: up to 3 video references totaling <=15s, each <=50MB with width/height 256-5760px and aspect ratio 0.4-2.5. `--video-model google-omni --video` uses Gemini Omni direct video editing and accepts one reference video in Makaron. `--video-model grok --video --video-operation edit` accepts one MP4 up to 8.7s and caps output at 720p; `--video-operation extend` accepts one 2-15s MP4 and adds 2-10s.
412
+ Video edit model behavior: `--video-model kling-4 --video --video-operation edit` uses Kling 4.0 direct edit and preserves source audio (`kling-4-flash` does the same for a 3–20s source at 720p); `--video-model seedance-fast --video`, `--video-model seedance-mini --video`, or `--video-model seedance --video` uses the SeeDance video-reference path and requires target <=15s, <=50MB with width/height 300-6000px, aspect ratio 0.4-2.5, and frame pixels 409,600-2,086,876. `--video-model minimax-h3 --video` uses H3 feature/reference mode: up to 3 video references totaling <=15s, each <=50MB with width/height 256-5760px and aspect ratio 0.4-2.5. `--video-model google-omni --video` uses Gemini Omni direct video editing and accepts one reference video in Makaron. `--video-model grok --video --video-operation edit` accepts one MP4 up to 8.7s and caps output at 720p; `--video-operation extend` accepts one 2-15s MP4 and adds 2-10s.
412
413
 
413
414
  ### `music` — Music generation
414
415
 
@@ -564,7 +565,7 @@ FAL video models: **fal H3 Turbo** uses `minimax-h3-max` for single-start-frame
564
565
 
565
566
  For **new GIF art, mascot loops, and animated memes**, GPT Image 2.6 Flare is the go-to model. Use `makaron chat` with the complete request and reference images; the Agent uses native image generation. Do not select `animated-gif` for new generative animation. Retain that skill for assembling existing frames or explicit timing/export controls.
566
567
 
567
- GPT Image 2.6 Flare is the default; Sunburst is optional. `--quality auto|low|medium|high` and `--image-reasoning low|medium|high` are independent (defaults low quality, high reasoning). `--output-format png|jpeg|webp|gif|svg` preserves originals. GIF supports generation/editing; `--frame-count` and `--frame-duration-ms` share the request pixel budget. SVG is experimental and not live-verified (provider acceptance returned 422), text-to-image only, no source/references; report a provider failure honestly, never flatten or replace. Exact active 2.6 pricing is required; final cost uses actual fal units. Legacy 2.5 IDs migrate to 2.6; historical media is unchanged. Administrator Codex Subscription Agents use the same image tool; image API cost is separate from Agent subscription usage.
568
+ GPT Image 2.6 Flare is the default; Sunburst is optional. `--quality auto|low|medium|high` and `--image-reasoning low|medium|high` are independent (defaults low quality, high reasoning). `--output-format png|jpeg|webp|gif|svg` preserves originals. GIF supports generation/editing; `--frame-count` (2–16) and `--frame-duration-ms` share one native sprite sheet: square frames are 960px up to 9 frames, 816px for 10–12, 720px for 13–16. For stickers/memes, describe one action with a numbered frame plan (rest → peak held 2–4 frames → back to rest), a locked camera, a solid background and an exact caption; the Agent follows its `gif-maker` Skill. SVG is experimental and not live-verified (provider acceptance returned 422), text-to-image only, no source/references; report a provider failure honestly, never flatten or replace. Exact active 2.6 pricing is required; final cost uses actual fal units. Legacy 2.5 IDs migrate to 2.6; historical media is unchanged. Administrator Codex Subscription Agents use the same image tool; image API cost is separate from Agent subscription usage.
568
569
 
569
570
  The legacy `openai` image-model parameter now resolves to GPT Image 2.6 Flare.
570
571