@koda-sl/baker-cli 0.300.0-dev.e0610b71d → 0.302.0-dev.3ebf34fad

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.
@@ -2155,6 +2155,16 @@ function nearestClipDuration(model, preferred) {
2155
2155
  if (!allowed?.length || allowed.includes(preferred)) return preferred;
2156
2156
  return [...allowed].sort((a, b) => Math.abs(a - preferred) - Math.abs(b - preferred) || a - b)[0];
2157
2157
  }
2158
+ var SILENT_VIDEO_MODELS = /* @__PURE__ */ new Set([
2159
+ "runway/gen-4.5",
2160
+ "x-ai/grok-imagine-video",
2161
+ "x-ai/grok-imagine-video-1.5",
2162
+ "alibaba/happyhorse-1.1"
2163
+ ]);
2164
+ function clipAudioMode(model) {
2165
+ if (supportsParam("video_generate", model, "generate_audio")) return "toggle";
2166
+ return SILENT_VIDEO_MODELS.has(model) ? "never" : "always";
2167
+ }
2158
2168
  function maxClipSeconds(model) {
2159
2169
  const schema = MODEL_REGISTRY.video_generate[model]?.params.duration;
2160
2170
  const allowed = schema?.kind === "number" ? schema.enum : void 0;
@@ -2414,6 +2424,32 @@ var USD_PER_SECOND = {
2414
2424
  },
2415
2425
  // Flat $0.10/s across resolutions and modes, audio included.
2416
2426
  "alibaba/wan-2.7": { silent: 0.1, audio: 0.1 },
2427
+ // 3.0 prices per resolution where 2.7 was flat, and its rate still includes audio —
2428
+ // there is no separate audio SKU, so a talking clip costs what a silent one costs.
2429
+ // `duration_seconds_480p|720p|1080p` on GET /api/v1/videos/models.
2430
+ "alibaba/wan-3.0": {
2431
+ silent: 0.1,
2432
+ audio: 0.1,
2433
+ byResolution: {
2434
+ "480p": { silent: 0.05, audio: 0.05 },
2435
+ "720p": { silent: 0.1, audio: 0.1 },
2436
+ "1080p": { silent: 0.2, audio: 0.2 }
2437
+ }
2438
+ },
2439
+ // `cents_per_video_output_second_*` — 8c, 14c and 25c. Dearer than the older Grok at
2440
+ // every tier, and it reaches 1080p, which that one does not. No audio, so both columns
2441
+ // are the same rate rather than one being wrong.
2442
+ "x-ai/grok-imagine-video-1.5": {
2443
+ silent: 0.14,
2444
+ audio: 0.14,
2445
+ byResolution: {
2446
+ "480p": { silent: 0.08, audio: 0.08 },
2447
+ "720p": { silent: 0.14, audio: 0.14 },
2448
+ "1080p": { silent: 0.25, audio: 0.25 }
2449
+ }
2450
+ },
2451
+ // One flat rate, one resolution: `cents_per_second_output: 12`. Silent.
2452
+ "runway/gen-4.5": { silent: 0.12, audio: 0.12 },
2417
2453
  "alibaba/happyhorse-1.1": {
2418
2454
  silent: 0.1278,
2419
2455
  audio: 0.1278,
@@ -9456,6 +9492,7 @@ export {
9456
9492
  SPOKEN_WORDS_PER_SECOND,
9457
9493
  spokenWordsIn,
9458
9494
  nearestClipDuration,
9495
+ clipAudioMode,
9459
9496
  splitScriptFor,
9460
9497
  promptMaxLength,
9461
9498
  maxInputSlot,
@@ -9501,4 +9538,4 @@ export {
9501
9538
  defaultRegistry,
9502
9539
  createEngineFromEnv
9503
9540
  };
9504
- //# sourceMappingURL=chunk-FENRH7OF.js.map
9541
+ //# sourceMappingURL=chunk-KKJT24WA.js.map