makaron-cli 0.17.21 → 0.17.23

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.21",
3
+ "version": "0.17.23",
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.21",
3
+ "version": "0.17.23",
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
@@ -409,7 +409,7 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
409
409
  npx makaron-cli edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
410
410
  ```
411
411
 
412
- Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.6-flare|gpt-image-2.6-sunburst|wan2.7-image|mj-v8.2|seedream-5.5`, `--ref <file>` (model-specific limit), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Nano Banana 2.1 (`gemini-2.1`) supports up to 14 total input images and `--image-resolution 1K|2K|4K` (default 1K); it uses OpenRouter and does not retry or switch models automatically. Qwen Spicy supports 0–3 input images; legacy `qwen` requests map to it. Pony and WAI are retired. Transparent output defaults to GPT Image 2.6 Flare; an explicitly selected GPT Image 2.6 variant is retained. Output is returned only when the provider supplies real alpha.
412
+ Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.6-flare|gpt-image-2.6-sunburst|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0`, `--ref <file>` (model-specific limit), `--aspect <ratio>`, `--background auto|opaque|transparent`, `--out <path>`. Nano Banana 2.1 (`gemini-2.1`) supports up to 14 total input images and `--image-resolution 1K|2K|4K` (default 1K); it uses OpenRouter and does not retry or switch models automatically. Qwen Spicy supports 0–3 input images; legacy `qwen` requests map to it. Pony and WAI are retired. Transparent output defaults to GPT Image 2.6 Flare; an explicitly selected GPT Image 2.6 variant is retained. Output is returned only when the provider supplies real alpha.
413
413
 
414
414
  Midjourney V8.2 (`mj-v8.2`) accepts natural-language briefs and prepares the English prompt automatically. Fast returns up to 4 images, Draft up to 24 smaller drafts, and HD regenerates up to 4 higher-resolution images. Every returned image is saved; `--out scene.png` produces `scene-1.png`, `scene-2.png`, etc. A single result keeps the requested filename. Provider filtering can reduce the batch size.
415
415
 
@@ -483,7 +483,7 @@ Options for `video create`: `--script "..."`, `--script-file <path>`, `--image <
483
483
 
484
484
  fal H3 Turbo: use `--video-model minimax-h3-max` for faster-than-real-time generation. It supports exactly 5/10/15 seconds at 480p/768p and defaults to native 768p, with no image for T2V or exactly one `--image` for I2V. It does not accept reference video/audio or multiple images.
485
485
 
486
- Seedance 2.5: use `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30 second videos generated at 480p then automatically upscaled to 720p, 1080p (default), 2K or 4K. Use `seedance-2.5-native` explicitly for native output at 480p (default) or 720p. `--image` accepts local files or URLs (up to 30), while repeatable `--video` and `--audio` accept up to 10 each. Use `--video-operation generate|edit|extend`, `--extend-direction forward|backward`, `--output-format mp4|mov`, `--web-search`, `--generated-audio` / `--no-generated-audio`, and `--relaxed-content-filter`. Edit/extend require a video reference. Eco delivers MP4; MOV is native-only. The native Evolink route does not expose 4K output.
486
+ Seedance 2.5: use `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30 second videos generated at 480p then automatically upscaled to 720p, 1080p (default), 2K or 4K. Use `seedance-2.5-native` explicitly for native output at 480p (default), 720p, 1080p or 4K. `--image` accepts local files or URLs (up to 30), while repeatable `--video` and `--audio` accept up to 10 each. Use `--video-operation generate|edit|extend`, `--extend-direction forward|backward`, `--output-format mp4|mov`, `--web-search`, `--generated-audio` / `--no-generated-audio`, and `--relaxed-content-filter`. Edit/extend require a video reference. Eco delivers MP4; MOV is native-only. Native 4K passes `quality: "4k"` to the EvoLink generation API, without Eco enhancement. Native1080p/4K MP4 uses10bit HEVC; verify playback in a compatible player. Apply the reviewed high-resolution tariff before new product requests; missing prices block submission.
487
487
 
488
488
  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.
489
489
 
@@ -769,3 +769,14 @@ Both paths return a Makaron `projectUrl`. Open it to move/scale, reorder or dele
769
769
  Use `--editable-text` only when the user explicitly requests native editable text fields. It makes recognized text editable using approximate fonts; edited wording can differ in typography, texture and styling. A request to split layers or change wording alone does not imply this option. Describe the default result as image layers, including lettering, rather than promising native editable text. The original image and PNG layers remain in the project/workspace.
770
770
 
771
771
  `--project` reuses a project; otherwise the direct command creates a private project. `--max-outputs` is 2–100 including the background (default 8); quality is `auto|1K|1.5K|2K` (default `1K` for faster decomposition). One quality setting applies to the whole task; per-layer resolution controls are unavailable. Use an explicit higher tier or `auto` when preserving source resolution is required. The actual output count and pixel tiers determine one task charge. Failed or uncertain submissions are never replayed automatically; retain the printed job ID and query status. Repeated status reads preserve saved GUI edits and do not debit again. When the layers are ready, the edit link opens the resulting snapshot.
772
+
773
+ Native Seedance 2.5 4K is high cost and explicit opt-in only. Ordinary video,
774
+ vague HD requests and failed tasks must not upgrade to it. Run `makaron video
775
+ create --video-model seedance-2.5-native --video-resolution 4k --duration 4
776
+ --script "..."` without `--max-credits` first to obtain a no-charge complete quote.
777
+ Show the quoted total Makaron credits before repeating the identical request with
778
+ `--max-credits <quoted-total>` and a stable `--request-id <uuid>`. A higher fresh
779
+ quote stops before charging. Input video adds billable seconds; supplier credits
780
+ are different from Makaron credits. Native 4K uses EvoLink, never Eco enhancement.
781
+
782
+ Kling Image 4.0 (`--image-model kling-image-4.0`) generates or edits one native PNG at `--image-resolution 2K|4K|8K` (default 2K) on fal. You can include up to 10 ordered reference images, counting the source image. The CLI uploads local files automatically. Each input must be at most 30 MiB, at least 300 pixels on both sides, with an aspect ratio from 0.4 to 2.5. Refer to them as `@Image1`, `@Image2`. Keep the image request UUID printed by the CLI. If the response is uncertain, pass the same UUID with `--image-request-id <uuid>` to check the existing receipt without a second submission or charge. Hosted MCP requires `imageRequestId`. Pick a model with native transparency for cutouts. Kling Image 4.0 uses prompt-guided edits, so areas outside the requested edit can change.
package/bin/makaron.mjs CHANGED
@@ -2020,10 +2020,10 @@ function validateVideoFileForAnalysis(videoPath) {
2020
2020
  return { ok: true, mime };
2021
2021
  }
2022
2022
 
2023
- function saveMcpImage(result, outputPath) {
2023
+ async function saveMcpImage(result, outputPath) {
2024
2024
  const content = result?.content || [];
2025
2025
  const texts = content.filter(c => c.type === 'text');
2026
- const images = content.filter(c => c.type === 'image');
2026
+ const images = content.filter(c => c.type === 'image' || (c.type === 'resource_link' && c.mimeType?.startsWith('image/')));
2027
2027
  for (const text of texts) process.stderr.write(`${text.text}\n`);
2028
2028
  if (result?.isError) { process.exitCode = 1; return null; }
2029
2029
  const saved = [];
@@ -2037,7 +2037,15 @@ function saveMcpImage(result, outputPath) {
2037
2037
  const suffix = images.length > 1 ? `-${index + 1}` : '';
2038
2038
  const out = `${stem}${suffix}.${compatible ? requestedExtension : extension}`;
2039
2039
  if (outputPath && !compatible) process.stderr.write(`Output is ${image.mimeType}; saving as ${out} so bytes and filename agree.\n`);
2040
- fs.writeFileSync(out, Buffer.from(image.data, 'base64'));
2040
+ if (image.type === 'resource_link') {
2041
+ const url = new URL(image.uri);
2042
+ if (url.protocol !== 'https:' || url.username || url.password) throw new Error('Generated originals require a public HTTPS URL.');
2043
+ const response = await fetch(url, { signal: AbortSignal.timeout(180_000), redirect: 'error' });
2044
+ if (!response.ok) throw new Error(`Original download failed (${response.status}). Keep the image request ID; do not regenerate.`);
2045
+ const bytes = Buffer.from(await response.arrayBuffer());
2046
+ if (bytes.length > 200 * 1024 * 1024) throw new Error('Generated original exceeds 200MiB.');
2047
+ fs.writeFileSync(out, bytes);
2048
+ } else fs.writeFileSync(out, Buffer.from(image.data, 'base64'));
2041
2049
  console.log(out);
2042
2050
  saved.push(out);
2043
2051
  }
@@ -2083,9 +2091,10 @@ Usage:
2083
2091
  Options:
2084
2092
  --image <file|url> Base image to edit. Omit for text-to-image.
2085
2093
  --ref <file|url> Additional reference image. Repeatable; model-specific limit (Nano Banana 2.1: 14 total inputs).
2086
- --image-model <id> gemini, gemini-2.1, gemini-lite, qwen-spicy, openai, gpt-image-2.6-flare, gpt-image-2.6-sunburst, wan2.7-image, mj-v8.2, or seedream-5.5. Legacy qwen maps to qwen-spicy.
2094
+ --image-request-id <uuid> Stable Kling Image 4.0 generation ID; reuse to inspect a repeated attempt.
2095
+ --image-model <id> gemini, gemini-2.1, gemini-lite, qwen-spicy, openai, gpt-image-2.6-flare, gpt-image-2.6-sunburst, wan2.7-image, mj-v8.2, seedream-5.5, or kling-image-4.0. Legacy qwen maps to qwen-spicy.
2087
2096
  --skill <id> enhance, creative, wild, or captions.
2088
- --image-resolution <id> 1K, 2K, or 4K; Seedream 5.5 supports 1K, 1.5K and 2K. Auto remains Flare-first.
2097
+ --image-resolution <id> 1K, 2K, or 4K; Kling Image 4.0 supports 2K/4K/8K; Seedream 5.5 supports 1K, 1.5K and 2K. Auto remains Flare-first.
2089
2098
  --nsfw Route NSFW directly to Qwen Spicy.
2090
2099
  --aspect <ratio> Output aspect ratio, for example 1:1, 16:9, or 9:16.
2091
2100
  --background <mode> auto, opaque, or transparent.
@@ -2141,6 +2150,7 @@ Inputs:
2141
2150
 
2142
2151
  Generation options:
2143
2152
  --video-model <id> seedance-fast, seedance-mini, seedance, seedance-2.5-flash, seedance-2.5,
2153
+ seedance-2.5-eco (upscaled), seedance-2.5-native (high-cost native 4k: quote before submission),
2144
2154
  wan-3.0, wan-3.0-prime, kling-4, kling-4-flash, grok, google-omni,
2145
2155
  minimax-h3, minimax-h3-max, fal-h3-max, or sync-lipsync-v3.
2146
2156
  --duration <seconds> Output duration supported by the selected model.
@@ -2173,6 +2183,8 @@ Recent model choices:
2173
2183
  seedance-2.5-flash 4-30s; 480p/720p;10 images/5 videos/5 audios; edit follows source.
2174
2184
  --image-workflow <id> Flash: reference-to-video (default) or image-to-video (1-2 first/last frames).
2175
2185
  --request-id <uuid> Reuse this ID with identical arguments to recover the original billed task.
2186
+ --max-credits <integer> Native 4K spending ceiling; omit for a quote with no generation.
2187
+ seedance-2.5-native Native 480p/720p/1080p/4k; 4k is high-cost, explicit opt-in only.
2176
2188
  seedance-2.5 Defaults to Eco; 4-30s; 1080p default, 720p/2k/4k; multimodal refs.
2177
2189
  seedance-2.5-eco 480p generation → ByteDance Fast; 1080p default, 2k/4k.
2178
2190
  minimax-h3 4-15s; 768p default or 2k; image/video/audio feature refs.
@@ -3311,6 +3323,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3311
3323
  editSourceFile = args[++i];
3312
3324
  editArgs.image = imageToArg(editSourceFile);
3313
3325
  }
3326
+ else if (args[i] === '--image-request-id' && args[i + 1]) editArgs.imageRequestId = args[++i];
3314
3327
  else if (args[i] === '--image-model' && args[i + 1]) editArgs.model = args[++i];
3315
3328
  else if (args[i] === '--model' && args[i + 1]) {
3316
3329
  warnLegacyModelFlag('--image-model');
@@ -3380,10 +3393,14 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3380
3393
  editArgs.midjourney = mjArgs;
3381
3394
  }
3382
3395
  editArgs.editPrompt = promptParts.join(' ');
3383
- if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|wan2.7-image|mj-v8.2|seedream-5.5] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
3384
- if (editArgs.model === 'seedream-5.5') {
3396
+ if (!editArgs.editPrompt) { console.error('Usage: makaron edit [--image <file|url>] [--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0] [--ref <file>] [--aspect <ratio>] [--background auto|opaque|transparent] [--out <file>] "prompt"'); process.exit(1); }
3397
+ if (editArgs.model === 'kling-image-4.0') {
3398
+ editArgs.imageRequestId ||= randomUUID();
3399
+ process.stderr.write(`Image request ID: ${editArgs.imageRequestId} (retain it; never repeat an uncertain paid submission with a new ID)\n`);
3400
+ }
3401
+ if (['seedream-5.5', 'kling-image-4.0'].includes(editArgs.model)) {
3385
3402
  const sources = [...(editSourceFile ? [editSourceFile] : []), ...editReferenceFiles];
3386
- if (sources.length > 10) { console.error('Seedream 5.5 accepts at most 10 inputs including the base.'); process.exit(1); }
3403
+ if (sources.length > 10) { console.error('This model accepts at most 10 inputs including the base.'); process.exit(1); }
3387
3404
  const localFiles = sources.filter(source => !isHttpUrl(source));
3388
3405
  const uploaded = localFiles.length ? await uploadImageFilesViaSignedUrl(baseUrl, headers, undefined, localFiles) : [];
3389
3406
  const byPath = new Map(localFiles.map((source, index) => [source, uploaded[index]]));
@@ -3393,7 +3410,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3393
3410
  }
3394
3411
  process.stderr.write('🎨 Generating...\n');
3395
3412
  const result = await callMcpTool(baseUrl, headers, 'makaron_edit_image', editArgs);
3396
- saveMcpImage(result, outputPath);
3413
+ await saveMcpImage(result, outputPath);
3397
3414
 
3398
3415
  } else if (command === 'analyze') {
3399
3416
  const { headers, baseUrl } = getAuth();
@@ -3474,7 +3491,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3474
3491
  const referenceVoices = [];
3475
3492
  let script = '', duration = undefined, aspectRatio = undefined, videoModel = undefined, videoResolution = undefined, imageWorkflow = undefined, wait = false;
3476
3493
  let keepOriginalSound = false, videoOperation = undefined, extendDirection = undefined, outputFormat = undefined;
3477
- let generateAudio = undefined, contentFilter = undefined, webSearch = false, billingRequestId = undefined;
3494
+ let generateAudio = undefined, contentFilter = undefined, webSearch = false, billingRequestId = undefined, maxCredits = undefined;
3478
3495
  for (let i = 2; i < args.length; i++) {
3479
3496
  if (args[i] === '--image' && args[i + 1]) images.push(args[++i]);
3480
3497
  else if (args[i] === '--video' && args[i + 1]) videos.push(args[++i]);
@@ -3494,6 +3511,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3494
3511
  else if (args[i] === '--keep-original-sound') keepOriginalSound = true;
3495
3512
  else if (args[i] === '--image-workflow' && args[i + 1]) imageWorkflow = args[++i];
3496
3513
  else if (args[i] === '--request-id' && args[i + 1]) billingRequestId = args[++i];
3514
+ else if (args[i] === '--max-credits' && args[i + 1]) maxCredits = Number(args[++i]);
3497
3515
  else if (args[i] === '--video-operation' && args[i + 1]) videoOperation = args[++i];
3498
3516
  else if (args[i] === '--extend-direction' && args[i + 1]) extendDirection = args[++i];
3499
3517
  else if (args[i] === '--output-format' && args[i + 1]) outputFormat = args[++i];
@@ -3521,8 +3539,9 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3521
3539
  if (billingRequestId && !/^[0-9a-f]{8}-[0-9a-f]{4}-[1-8][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}$/i.test(billingRequestId)) {
3522
3540
  console.error('--request-id must be a UUID. Reuse it only for the identical submission.'); process.exit(1);
3523
3541
  }
3542
+ if (maxCredits != null && (!Number.isSafeInteger(maxCredits) || maxCredits <= 0)) { console.error('--max-credits must be a positive integer.'); process.exit(1); }
3524
3543
  const isFlash = selectedVideoModel === 'seedance-2.5-flash';
3525
- const isSeedance25 = ['seedance-2.5', 'seedance-2.5-eco'].includes(selectedVideoModel);
3544
+ const isSeedance25 = ['seedance-2.5', 'seedance-2.5-eco', 'seedance-2.5-native'].includes(selectedVideoModel);
3526
3545
  const isWan30 = selectedVideoModel === 'wan-3.0' || selectedVideoModel === 'wan-3.0-prime';
3527
3546
  const isSeedanceModel = selectedVideoModel === 'seedance-fast' || selectedVideoModel === 'seedance-mini' || selectedVideoModel === 'seedance' || isSeedance25 || isFlash;
3528
3547
  const isMinimaxH3 = selectedVideoModel === 'minimax-h3';
@@ -3662,6 +3681,7 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3662
3681
  : videoUrls[0]
3663
3682
  ? { videoUrl: videoUrls[0], editPrompt: script, images, videoModel: selectedVideoModel, videoResolution, referType: isSeedanceModel ? 'feature' : 'base' }
3664
3683
  : { script, images, videoModel: selectedVideoModel, videoResolution };
3684
+ if (maxCredits != null) vArgs.maxCredits = maxCredits;
3665
3685
  if (imageWorkflow) vArgs.imageWorkflow = imageWorkflow;
3666
3686
  if (billingRequestId) vArgs.billingRequestId = billingRequestId;
3667
3687
  if (inputVideoMeta?.duration) vArgs.referenceVideoDuration = inputVideoMeta.duration;
@@ -3669,6 +3689,29 @@ if (!command || command === '--help' || command === '-h' || command === 'help')
3669
3689
  if (effectiveDuration) vArgs.duration = effectiveDuration;
3670
3690
  if (aspectRatio) vArgs.aspectRatio = aspectRatio;
3671
3691
  if (keepOriginalSound && videoUrls.length && !isSeedance25) vArgs.keepOriginalSound = true;
3692
+ if (selectedVideoModel === 'seedance-2.5-native' && videoResolution === '4k') {
3693
+ vArgs.billingRequestId ||= randomUUID();
3694
+ const previewArgs = { ...vArgs };
3695
+ delete previewArgs.maxCredits;
3696
+ const preview = await callMcpTool(baseUrl, headers, 'makaron_create_video', previewArgs);
3697
+ const previewText = preview?.content?.find(c => c.type === 'text')?.text;
3698
+ let quote;
3699
+ try { quote = JSON.parse(previewText); } catch { /* Existing receipt or pricing error. */ }
3700
+ if (!quote?.costQuote) {
3701
+ // Replays return their original receipt; never turn an unknown response into a new paid call.
3702
+ if (previewText) console.log(previewText);
3703
+ process.exit(previewText?.includes('Task ID:') ? 0 : 1);
3704
+ }
3705
+ process.stderr.write(`Native 4K is high cost. Estimated total: ${quote.costQuote.credits} Makaron credits (${quote.costQuote.durationSec}s output, ${quote.costQuote.referenceVideoDurationSec}s video input).\n`);
3706
+ if (maxCredits == null) {
3707
+ console.log(JSON.stringify({ ...quote, billingRequestId: vArgs.billingRequestId }, null, 2));
3708
+ process.exit(0);
3709
+ }
3710
+ if (quote.costQuote.credits > maxCredits) {
3711
+ console.error(`Quote exceeds --max-credits ${maxCredits}. No generation submitted.`);
3712
+ process.exit(1);
3713
+ }
3714
+ }
3672
3715
  const result = await callMcpTool(baseUrl, headers, videoUrls.length && !isSeedance25 && !isFlash && !isWan30 && !isGrok && !isMinimaxH3 && !isFalReference && !isSyncLipsync ? 'makaron_edit_video' : 'makaron_create_video', vArgs);
3673
3716
  const text = result?.content?.find(c => c.type === 'text')?.text;
3674
3717
  if (text) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "makaron-cli",
3
- "version": "0.17.21",
3
+ "version": "0.17.23",
4
4
  "description": "Talk to Makaron Agent from the terminal — create projects, edit images, generate videos",
5
5
  "type": "module",
6
6
  "scripts": {
@@ -334,7 +334,7 @@ npx makaron-cli edit --image photo.jpg --out result.jpg "make it dramatic"
334
334
  npx makaron-cli edit --image-model gpt-image-2.6-flare --background transparent --out sticker.png "a magenta star sticker"
335
335
  ```
336
336
 
337
- Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.6-flare|gpt-image-2.6-sunburst|wan2.7-image|mj-v8.2|seedream-5.5`, `--ref <file>` (model-specific limit), `--aspect <ratio>`, `--image-resolution 1K|2K|4K`, `--background auto|opaque|transparent`, `--nsfw`, `--out <path>`. Image Model Capability prefers matching requirements, then relaxes output conflicts to deliver an image: GPT Image 2.6 Flare → Nano Banana 2.1 → Qwen Spicy. Omit the model for Auto: an 8:1 banner or an explicit resolution tier selects Nano Banana 2.1. Native ratio presets do not promise exact mathematical ratios or user pixel dimensions. For Agent-assessed NSFW, pass `--nsfw` to route directly to Spicy; never probe another provider first. Unknown IDs use Flare-first Auto. Output conflicts relax before submission: transparent 8:1 normally keeps 8:1 with opaque output; NSFW always uses Spicy regardless of unsupported dimensions. Preserve input content first and explain actual adjustments. See current MCP tool descriptions for the generated capability table. Classic Nano Banana 2 (`gemini`), Lite, Sunburst and Wan are explicit routes; `openai` means Flare and legacy `qwen` means Spicy. Pony/WAI are retired. Transparent output prefers Flare or explicitly selected Sunburst, and may relax alpha when other requirements conflict. Supplier failures never trigger automatic image resubmission or model switching.
337
+ Options: `--image`, `--image-model gemini|gemini-2.1|gemini-lite|qwen-spicy|openai|gpt-image-2.6-flare|gpt-image-2.6-sunburst|wan2.7-image|mj-v8.2|seedream-5.5|kling-image-4.0`, `--ref <file>` (model-specific limit), `--aspect <ratio>`, `--image-resolution 1K|2K|4K`, `--background auto|opaque|transparent`, `--nsfw`, `--out <path>`. Image Model Capability prefers matching requirements, then relaxes output conflicts to deliver an image: GPT Image 2.6 Flare → Nano Banana 2.1 → Qwen Spicy. Omit the model for Auto: an 8:1 banner or an explicit resolution tier selects Nano Banana 2.1. Native ratio presets do not promise exact mathematical ratios or user pixel dimensions. For Agent-assessed NSFW, pass `--nsfw` to route directly to Spicy; never probe another provider first. Unknown IDs use Flare-first Auto. Output conflicts relax before submission: transparent 8:1 normally keeps 8:1 with opaque output; NSFW always uses Spicy regardless of unsupported dimensions. Preserve input content first and explain actual adjustments. See current MCP tool descriptions for the generated capability table. Classic Nano Banana 2 (`gemini`), Lite, Sunburst and Wan are explicit routes; `openai` means Flare and legacy `qwen` means Spicy. Pony/WAI are retired. Transparent output prefers Flare or explicitly selected Sunburst, and may relax alpha when other requirements conflict. Supplier failures never trigger automatic image resubmission or model switching.
338
338
 
339
339
  Midjourney V8.2 (`mj-v8.2`) accepts natural-language briefs and prepares the English prompt automatically. Fast returns up to 4 images, Draft up to 24 smaller drafts, and HD regenerates up to 4 higher-resolution images. Every returned image is saved; `--out scene.png` produces `scene-1.png`, `scene-2.png`, etc. A single result keeps the requested filename. Provider filtering can reduce the batch size.
340
340
 
@@ -401,7 +401,7 @@ npx makaron-cli chat --project <id|auto> --video input.mp4 -b "make it funny"
401
401
 
402
402
  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 (`kling-4-flash`) is the default when `--video-model` is omitted (omitting it with `--duration` above 20 uses `seedance-2.5`): the faster variant with the same inputs, edit route and Retake rules, but integer 3–20s at 720p only, scripts at most 2500 characters, and source/reference videos at most 20s total. Never silently substitute one Kling 4 variant for the other.
403
403
 
404
- 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.
404
+ 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 Kling 4.0 Flash (`kling-4-flash`) at 720p. Explicit FAL H3 Max (`fal-h3-max`) supports 480p/768p/1080p 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.
405
405
 
406
406
  Provider integration contract: every image passed to video generation is a feature reference by default, even when there is exactly one image. Never infer image-to-video/first-frame mode from image count. The sole current exception is explicitly selected `minimax-h3-max`, whose declared capability maps exactly one selected image to native image-to-video; it does not accept reference video/audio or multiple images.
407
407
 
@@ -409,7 +409,7 @@ fal H3 Turbo uses the `minimax-h3-max` selector, supports exactly 5/10/15 second
409
409
 
410
410
  Seedance 2.5 Flash: explicitly select `--video-model seedance-2.5-flash`; generation is integer 4–30s at480p/720p (default720p). Up to10images,5videos(each2–30s,total≤30s),5audios(total≤30s). Images are feature references by default; `--image-workflow image-to-video` locks1–2 first/last frames with no video/audio inputs. Use `--video-operation generate` for video references or `edit` for exactly one4–30s source; edit and first/last frames follow source canvas. Edit follows source duration: omit duration, never -1. Native synchronized audio is included. No extend, draft, MOV, web-search, relaxed content filter or native1080p/4K. Keep the returned task ID and poll it; never silently substitute Eco or another model. This candidate needs its additive media-pricing migration before live product billing can submit.
411
411
 
412
- Seedance 2.5 uses `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30s videos: generate at 480p, then automatically upscale to 720p, 1080p (default), 2K or 4K in one task. This is upscaled output. Use `seedance-2.5-native` explicitly for unenhanced native output at 480p (default) or 720p; the native Evolink route does not expose 4K. All Seedance 2.5 routes accept up to 30 images + 10 videos + 10 audios, repeatable local/URL references, `--video-operation generate|edit|extend`, `--extend-direction`, and `--web-search`. Eco delivers MP4; native also supports `--output-format mov`. Use `makaron chat` to enhance an existing video without regeneration, or MCP `makaron_upscale_video` with one video URL and `resolution=720p|1080p|2k|4k` (up to 60s).
412
+ Seedance 2.5 uses `--video-model seedance-2.5` or `seedance-2.5-eco` for 4-30s videos: generate at 480p, then automatically upscale to 720p, 1080p (default), 2K or 4K in one task. This is upscaled output. Use `seedance-2.5-native` explicitly for native 480p (default), 720p, 1080p or 4K. Native 4K is high cost: use only for an explicit native 4K request or explicit Native + 4K selection. Ordinary/HD requests and failures must never upgrade to it. For direct `video create`, omit `--max-credits` first to obtain the complete no-charge quote, disclose the total Makaron credits, then repeat identical arguments with `--max-credits <quoted-total>` and the returned `--request-id`. A changed/higher quote stops before charging. Input videos count toward the total; supplier credits are not Makaron credits. Native 4K requires fixed 4–30s generation/extension; edit follows source duration. Web search is disabled on this route until its extra fee can be quoted. Native 1080p/4K MP4 uses 10-bit HEVC; playback requires codec support. All Seedance 2.5 routes accept up to 30 images + 10 videos + 10 audios, repeatable local/URL references, `--video-operation generate|edit|extend`, `--extend-direction`, and `--web-search`. Eco delivers MP4; native also supports `--output-format mov`. Use `makaron chat` to enhance an existing video without regeneration, or MCP `makaron_upscale_video` with one video URL and `resolution=720p|1080p|2k|4k` (up to 60s).
413
413
 
414
414
  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.
415
415
 
@@ -590,3 +590,5 @@ Both paths return a Makaron `projectUrl`. Open it to move/scale, reorder or dele
590
590
  Use `--editable-text` only when the user explicitly requests native editable text fields. It makes recognized text editable using approximate fonts; edited wording can differ in typography, texture and styling. A request to split layers or change wording alone does not imply this option. Describe the default result as image layers, including lettering, rather than promising native editable text. The original image and PNG layers remain in the project/workspace.
591
591
 
592
592
  `--project` reuses a project; otherwise the direct command creates a private project. `--max-outputs` is 2–100 including the background (default 8); quality is `auto|1K|1.5K|2K` (default `1K` for faster decomposition). One quality setting applies to the whole task; per-layer resolution controls are unavailable. Use an explicit higher tier or `auto` when preserving source resolution is required. The actual output count and pixel tiers determine one task charge. Failed or uncertain submissions are never replayed automatically; retain the printed job ID and query status. Repeated status reads preserve saved GUI edits and do not debit again. When the layers are ready, the edit link opens the resulting snapshot.
593
+
594
+ Kling Image 4.0 (`--image-model kling-image-4.0`) generates or edits one native PNG at `--image-resolution 2K|4K|8K` (default 2K) on fal. You can include up to 10 ordered reference images, counting the source image. The CLI uploads local files automatically. Each input must be at most 30 MiB, at least 300 pixels on both sides, with an aspect ratio from 0.4 to 2.5. Refer to them as `@Image1`, `@Image2`. Keep the image request UUID printed by the CLI. If the response is uncertain, pass the same UUID with `--image-request-id <uuid>` to check the existing receipt without a second submission or charge. Hosted MCP requires `imageRequestId`. Pick a model with native transparency for cutouts. Kling Image 4.0 uses prompt-guided edits, so areas outside the requested edit can change.