@sogni-ai/sogni-creative-agent-skill 3.28.0 → 3.30.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/sogni-agent.mjs CHANGED
@@ -231,7 +231,11 @@ const {
231
231
  SogniClientWrapper,
232
232
  ClientEvent,
233
233
  getMaxContextImages: getWrapperMaxContextImages,
234
- parseCreativeWorkflowSseChunk
234
+ parseCreativeWorkflowSseChunk,
235
+ // Model-aware wrapper dimension rules (intelligence-client > 3.15.1). On
236
+ // older pinned clients this is undefined and the CLI falls back to the
237
+ // historical mirror constants below.
238
+ getVideoDimensionRules: getWrapperVideoDimensionRules
235
239
  } = rootClientModule;
236
240
 
237
241
  // ---------------------------------------------------------------------------
@@ -1471,13 +1475,14 @@ const DEFAULT_VIDEO_DIMENSION_RULES = {
1471
1475
  const WRAPPER_MAX_VIDEO_DIMENSION = 2048;
1472
1476
  const WRAPPER_MAX_WAN_VIDEO_DIMENSION = 1536;
1473
1477
 
1474
- // SogniClientWrapper.normalizeVideoDimensions in @sogni-ai/sogni-intelligence-client clamps to
1475
- // MAX_VIDEO_DIMENSION = 1536 for every model before it resizes a reference image and overwrites
1476
- // the project dimensions with the resized reference's. So on any reference-bearing workflow a
1477
- // larger ceiling is not reachable: the CLI waves 1600x896 through as "valid", the wrapper then
1478
- // clamps to 1536x848 and hands the model a 1514x848 reference that is off-divisor — the exact
1479
- // failure the i2v sizing logic exists to prevent. Applied only to reference-bearing workflows;
1480
- // t2v never goes through the reference resize. Keep in sync with the pinned client version.
1478
+ // Historical mirror of SogniClientWrapper.normalizeVideoDimensions in
1479
+ // @sogni-ai/sogni-intelligence-client, which used to clamp every model to
1480
+ // MAX_VIDEO_DIMENSION = 1536 before resizing a reference image and overwriting
1481
+ // the project dimensions with the resized reference's — silently downscaling
1482
+ // LTX-2.5 1920x1088 requests to 1536x864. Newer clients export
1483
+ // getVideoDimensionRules() with per-family envelopes (LTX-2.x up to 3840) and
1484
+ // these constants only apply as a fallback when the pinned client predates it
1485
+ // (see wrapperMaxVideoDimension / wrapperRefVideoDimensionCeiling).
1481
1486
  const WRAPPER_MAX_REF_VIDEO_DIMENSION = 1536;
1482
1487
  const VIDEO_DIMENSION_MULTIPLE = DEFAULT_VIDEO_DIMENSION_RULES.dimensionMultiple;
1483
1488
 
@@ -1607,7 +1612,7 @@ function videoDurationLimitsLikeWrapper(modelId) {
1607
1612
  if (isMiniMaxH3Model(modelId)) return { ...MINIMAX_H3_DURATION_LIMITS };
1608
1613
  if (isSeedanceModel(modelId)) return { min: 4, max: 15 };
1609
1614
  if (isHappyHorseModel(modelId)) return { min: 3, max: 15 };
1610
- if (isLtx2Model(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
1615
+ if (isLtxFamilyModel(modelId) || isWanAnimateVideoModelId(modelId)) return { min: 1, max: 20 };
1611
1616
  return { min: 1, max: 10 };
1612
1617
  }
1613
1618
 
@@ -1625,6 +1630,9 @@ function videoDurationLimitsLikeWrapper(modelId) {
1625
1630
  // explicit -w/-h/--target-resolution, config, and prompt-derived dimensions
1626
1631
  // still win (see the video preflight defaults block).
1627
1632
  function videoModelDimensionDefaultsLikeWrapper(modelId) {
1633
+ if (String(modelId || '').trim().toLowerCase() === MINIMAX_H3_R2V_TURBO_MODEL_ID) {
1634
+ return { defaultWidth: 960, defaultHeight: 544, maxDimension: 1344, dimensionMultiple: 32 };
1635
+ }
1628
1636
  if (isMiniMaxH3Model(modelId)) {
1629
1637
  return { defaultWidth: 1344, defaultHeight: 768, maxDimension: 1344, dimensionMultiple: 32 };
1630
1638
  }
@@ -1635,9 +1643,28 @@ function videoModelDimensionDefaultsLikeWrapper(modelId) {
1635
1643
  }
1636
1644
 
1637
1645
  function wrapperMaxVideoDimension(modelId) {
1646
+ // Prefer the wrapper's own model-aware envelope so the CLI ceiling can never
1647
+ // drift from what the pinned client will actually accept (LTX-2.x: 3840).
1648
+ if (typeof getWrapperVideoDimensionRules === 'function') {
1649
+ const rules = getWrapperVideoDimensionRules(modelId);
1650
+ if (Number.isFinite(rules?.maxDimension) && rules.maxDimension > 0) {
1651
+ return rules.maxDimension;
1652
+ }
1653
+ }
1638
1654
  return isWanVideoModelId(modelId) ? WRAPPER_MAX_WAN_VIDEO_DIMENSION : WRAPPER_MAX_VIDEO_DIMENSION;
1639
1655
  }
1640
1656
 
1657
+ // Ceiling for reference-bearing workflows: the wrapper resizes the reference
1658
+ // and adopts its dimensions, so the CLI must pick sizes the wrapper will not
1659
+ // re-clamp. Model-aware on newer clients; the blanket 1536 applies only to
1660
+ // legacy pinned clients that still clamp every model.
1661
+ function wrapperRefVideoDimensionCeiling(modelId) {
1662
+ if (typeof getWrapperVideoDimensionRules === 'function') {
1663
+ return wrapperMaxVideoDimension(modelId);
1664
+ }
1665
+ return WRAPPER_MAX_REF_VIDEO_DIMENSION;
1666
+ }
1667
+
1641
1668
  function videoDimensionRulesFromDefaults(modelDefaults, modelId) {
1642
1669
  const wrapperMax = wrapperMaxVideoDimension(modelId);
1643
1670
  // Fall back to skill-local dimension rules for models the intel registry does
@@ -1880,6 +1907,13 @@ const LTX_TRANSITION_LORA_ID = 'transition';
1880
1907
  const LTX_TRANSITION_TRIGGER = 'zhuanchang';
1881
1908
  const LTX_TRANSITION_DEFAULT_STRENGTH = 1.0;
1882
1909
  const LTX23_10EROS_MODEL_ID = 'ltx23-22b-10eros-v1.4-fp8mixed_i2v';
1910
+ const LTX25_DISTILLED_WORKFLOW_MODELS = Object.freeze({
1911
+ t2v: 'ltx25-22b-int8_t2v_distilled',
1912
+ i2v: 'ltx25-22b-int8_i2v_distilled',
1913
+ a2v: 'ltx25-22b-int8_a2v_distilled',
1914
+ ia2v: 'ltx25-22b-int8_ia2v_distilled',
1915
+ v2v: 'ltx25-22b-int8_v2v_distilled'
1916
+ });
1883
1917
  const MINIMAX_H3_MODEL_MODES = new Map([
1884
1918
  ['minimax-h3-fl2va-fp8_t2v', 't2v'],
1885
1919
  ['minimax-h3-fl2va-fp8_i2v', 'i2v'],
@@ -1887,17 +1921,20 @@ const MINIMAX_H3_MODEL_MODES = new Map([
1887
1921
  ['minimax-h3-ref2va-fp8_r2v', 'r2v'],
1888
1922
  ['minimax-h3-fl2va-fp8_t2v_turbo', 't2v'],
1889
1923
  ['minimax-h3-fl2va-fp8_i2v_turbo', 'i2v'],
1890
- ['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v']
1924
+ ['minimax-h3-fl2va-fp8_flf2v_turbo', 'flf2v'],
1925
+ ['minimax-h3-ref2va-fp8_r2v_turbo', 'r2v']
1891
1926
  ]);
1892
1927
  const MINIMAX_H3_MODEL_IDS = new Set(MINIMAX_H3_MODEL_MODES.keys());
1893
1928
  const MINIMAX_H3_TURBO_MODEL_IDS = new Set([
1894
1929
  'minimax-h3-fl2va-fp8_t2v_turbo',
1895
1930
  'minimax-h3-fl2va-fp8_i2v_turbo',
1896
- 'minimax-h3-fl2va-fp8_flf2v_turbo'
1931
+ 'minimax-h3-fl2va-fp8_flf2v_turbo',
1932
+ 'minimax-h3-ref2va-fp8_r2v_turbo'
1897
1933
  ]);
1898
1934
  const MINIMAX_H3_TURBO_SAMPLERS = Object.freeze(['euler', 'er_sde', 'sa_solver']);
1899
1935
  const MINIMAX_H3_TURBO_SAMPLER_SET = new Set(MINIMAX_H3_TURBO_SAMPLERS);
1900
1936
  const MINIMAX_H3_R2V_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v';
1937
+ const MINIMAX_H3_R2V_TURBO_MODEL_ID = 'minimax-h3-ref2va-fp8_r2v_turbo';
1901
1938
  const MINIMAX_H3_REFERENCE_LIMITS = Object.freeze({
1902
1939
  images: 9,
1903
1940
  videos: 3,
@@ -1948,6 +1985,14 @@ const DR34ML4Y_SUPPORTED_MODEL_IDS = new Set([
1948
1985
 
1949
1986
  function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = false) {
1950
1987
  const normalized = String(modelId || '').trim().toLowerCase();
1988
+ if (normalized === 'ltx25' || normalized === 'ltx25-t2v') {
1989
+ const mode = ['i2v', 'a2v', 'ia2v', 'v2v'].includes(workflow) ? workflow : 't2v';
1990
+ return LTX25_DISTILLED_WORKFLOW_MODELS[mode];
1991
+ }
1992
+ if (normalized === 'ltx25-i2v') return LTX25_DISTILLED_WORKFLOW_MODELS.i2v;
1993
+ if (normalized === 'ltx25-a2v') return LTX25_DISTILLED_WORKFLOW_MODELS.a2v;
1994
+ if (normalized === 'ltx25-ia2v') return LTX25_DISTILLED_WORKFLOW_MODELS.ia2v;
1995
+ if (normalized === 'ltx25-v2v') return LTX25_DISTILLED_WORKFLOW_MODELS.v2v;
1951
1996
  if (normalized === 'minimax-h3' && workflow) {
1952
1997
  if (workflow === 'r2v') return MINIMAX_H3_R2V_MODEL_ID;
1953
1998
  if (workflow === 'i2v') {
@@ -1961,12 +2006,10 @@ function resolveSkillVideoModelAlias(modelId, workflow = null, hasEndFrame = fal
1961
2006
  if (normalized === 'minimax-h3-i2v') return 'minimax-h3-fl2va-fp8_i2v';
1962
2007
  if (normalized === 'minimax-h3-flf2v') return 'minimax-h3-fl2va-fp8_flf2v';
1963
2008
  if (normalized === 'minimax-h3-r2v') return MINIMAX_H3_R2V_MODEL_ID;
2009
+ if (normalized === 'minimax-h3-r2v-turbo') return MINIMAX_H3_R2V_TURBO_MODEL_ID;
1964
2010
  if (normalized === 'minimax-h3-turbo' && workflow) {
1965
2011
  if (workflow === 'r2v') {
1966
- fatalCliError('MiniMax H3 Turbo does not support r2v; use minimax-h3-r2v for Ref2VA.', {
1967
- code: 'INVALID_ARGUMENT',
1968
- details: { workflow, model: normalized }
1969
- });
2012
+ return MINIMAX_H3_R2V_TURBO_MODEL_ID;
1970
2013
  }
1971
2014
  if (workflow === 'i2v') {
1972
2015
  return hasEndFrame
@@ -1998,7 +2041,15 @@ function isMiniMaxH3TurboModel(modelId) {
1998
2041
  }
1999
2042
 
2000
2043
  function isMiniMaxH3R2vModel(modelId) {
2001
- return String(modelId || '').trim().toLowerCase() === MINIMAX_H3_R2V_MODEL_ID;
2044
+ const normalized = String(modelId || '').trim().toLowerCase();
2045
+ return normalized === MINIMAX_H3_R2V_MODEL_ID || normalized === MINIMAX_H3_R2V_TURBO_MODEL_ID;
2046
+ }
2047
+
2048
+ function isMiniMaxH3R2vTurboSelectionLocal(modelId, workflow = null) {
2049
+ const normalized = String(modelId || '').trim().toLowerCase();
2050
+ return normalized === 'minimax-h3-r2v-turbo'
2051
+ || normalized === MINIMAX_H3_R2V_TURBO_MODEL_ID
2052
+ || (normalized === 'minimax-h3-turbo' && workflow === 'r2v');
2002
2053
  }
2003
2054
 
2004
2055
  function isMiniMaxH3ModelSelectionLocal(modelId) {
@@ -2012,6 +2063,7 @@ function isMiniMaxH3ModelSelectionLocal(modelId) {
2012
2063
  || normalized === 'minimax-h3-t2v-turbo'
2013
2064
  || normalized === 'minimax-h3-i2v-turbo'
2014
2065
  || normalized === 'minimax-h3-flf2v-turbo'
2066
+ || normalized === 'minimax-h3-r2v-turbo'
2015
2067
  || isMiniMaxH3Model(normalized);
2016
2068
  }
2017
2069
 
@@ -2021,6 +2073,7 @@ function isMiniMaxH3TurboModelSelectionLocal(modelId) {
2021
2073
  || normalized === 'minimax-h3-t2v-turbo'
2022
2074
  || normalized === 'minimax-h3-i2v-turbo'
2023
2075
  || normalized === 'minimax-h3-flf2v-turbo'
2076
+ || normalized === 'minimax-h3-r2v-turbo'
2024
2077
  || isMiniMaxH3TurboModel(normalized);
2025
2078
  }
2026
2079
 
@@ -2033,6 +2086,7 @@ function miniMaxH3ModeFromModelId(modelId) {
2033
2086
  if (normalized === 'minimax-h3-t2v-turbo') return 't2v';
2034
2087
  if (normalized === 'minimax-h3-i2v-turbo') return 'i2v';
2035
2088
  if (normalized === 'minimax-h3-flf2v-turbo') return 'flf2v';
2089
+ if (normalized === 'minimax-h3-r2v-turbo') return 'r2v';
2036
2090
  return MINIMAX_H3_MODEL_MODES.get(normalized) || null;
2037
2091
  }
2038
2092
 
@@ -2080,15 +2134,43 @@ function parseOutpaintAspectRatio(value) {
2080
2134
  return width / height;
2081
2135
  }
2082
2136
 
2083
- function isLtx23V2VModelId(modelId) {
2084
- return !!modelId && modelId.includes('ltx23') && /_v2v(_|$)/.test(modelId);
2137
+ function isLtxV2VModelId(modelId) {
2138
+ return !!modelId && (modelId.includes('ltx23') || modelId.includes('ltx25')) && /_v2v(_|$)/.test(modelId);
2139
+ }
2140
+
2141
+ function isLtx23ModelId(modelId) {
2142
+ return String(modelId || '').trim().toLowerCase().startsWith('ltx23-');
2143
+ }
2144
+
2145
+ function isLtx25ModelId(modelId) {
2146
+ return String(modelId || '').trim().toLowerCase().startsWith('ltx25-');
2147
+ }
2148
+
2149
+ function isLtxFamilyModel(modelId) {
2150
+ return isLtx2Model(modelId) || isLtx25ModelId(modelId);
2151
+ }
2152
+
2153
+ function ltx25WorkflowFromModelSelection(modelId) {
2154
+ const normalized = String(modelId || '').trim().toLowerCase();
2155
+ const exact = normalized.match(/^ltx25-22b-int8_(t2v|i2v|a2v|ia2v|v2v)_(?:distilled|dev)$/);
2156
+ if (exact) return exact[1];
2157
+ const alias = normalized.match(/^ltx25-(t2v|i2v|a2v|ia2v|v2v)$/);
2158
+ return alias ? alias[1] : null;
2159
+ }
2160
+
2161
+ function upgradeBuiltInLtx23Default(modelId, workflow) {
2162
+ const normalized = String(modelId || '').trim().toLowerCase();
2163
+ const match = normalized.match(/^ltx23-22b-fp8_(t2v|i2v|a2v|ia2v|v2v)_(distilled|dev)$/);
2164
+ if (!match) return modelId;
2165
+ const mode = ['t2v', 'i2v', 'a2v', 'ia2v', 'v2v'].includes(workflow) ? workflow : match[1];
2166
+ return `ltx25-22b-int8_${mode}_${match[2]}`;
2085
2167
  }
2086
2168
 
2087
2169
  function isLtxI2vTransitionModelId(modelId) {
2088
2170
  return (
2089
2171
  !!modelId &&
2090
2172
  modelId !== LTX23_10EROS_MODEL_ID &&
2091
- modelId.includes('ltx') &&
2173
+ isLtx23ModelId(modelId) &&
2092
2174
  /_i2v(_|$)/.test(modelId)
2093
2175
  );
2094
2176
  }
@@ -2293,8 +2375,8 @@ const options = {
2293
2375
  refVideo: null, // Reference video for animate workflows (primary)
2294
2376
  refVideos: [], // Additional Seedance loose video refs; first --ref-video fills refVideo, subsequent calls append here
2295
2377
  videoStart: null, // Optional start offset into reference video
2296
- refMask: null, // Inpaint mask image for LTX-2.3 v2v inpaint
2297
- outpaintPosition: null, // LTX-2.3 v2v outpaint canvas anchor
2378
+ refMask: null, // Inpaint mask image for LTX v2v inpaint
2379
+ outpaintPosition: null, // LTX v2v outpaint canvas anchor
2298
2380
  outpaintAspectRatio: null, // Optional target aspect ratio for outpaint canvas growth
2299
2381
  contextImages: [], // Context images for image editing
2300
2382
  looping: false, // Create looping video (i2v only): generate A→B then B→A and concatenate
@@ -2403,7 +2485,7 @@ const options = {
2403
2485
  // Tier 2 local storyboard planning surface:
2404
2486
  storyboardPlanAction: false,
2405
2487
  storyboardPlanFrames: null,
2406
- storyboardPlanModel: null, // seedance|seedance2|gpt-image-2|ltx23|wan
2488
+ storyboardPlanModel: null, // seedance|seedance2|gpt-image-2|ltx25|ltx23|wan
2407
2489
  storyboardPlanStage: null, // storyboard_image|scene_clip
2408
2490
  noFilter: false // Disable NSFW content filter
2409
2491
  };
@@ -3442,7 +3524,7 @@ Video Options:
3442
3524
  --estimate-video-cost Estimate video cost and exit
3443
3525
  --ref <path|url> Reference image for video (start frame; Picture 1 on H3 r2v)
3444
3526
  --ref-end <path|url> End frame for interpolation/morphing; with --ref it
3445
- defaults to the LTX-2.3 transition/morph model
3527
+ defaults to the LTX-2.5 i2v first/last-frame workflow
3446
3528
  (last frame on Seedance)
3447
3529
  --ref-audio <path|url> Audio reference. Repeatable on Seedance and H3 r2v (up to 3 total);
3448
3530
  first entry is the primary, extras must be HTTPS URLs in CLI
@@ -3473,9 +3555,9 @@ Seedance Reference Modes (mutually exclusive on seedance2 / seedance2-mini / see
3473
3555
  --controlnet-name <n> ControlNet type for v2v: canny|pose|depth|detailer|outpaint|inpaint
3474
3556
  --control-type <n> Alias for --controlnet-name
3475
3557
  --controlnet-strength <n> ControlNet strength for v2v (0.0-1.0, default: 0.8)
3476
- --mask <path|url> Inpaint mask image for LTX-2.3 v2v inpaint (white = regenerate)
3477
- --outpaint-position <p> LTX-2.3 outpaint anchor: center|top|bottom|left|right
3478
- --outpaint-aspect-ratio <r> LTX-2.3 outpaint target ratio, e.g. 16:9 or 9:16
3558
+ --mask <path|url> Inpaint mask image for LTX v2v inpaint (white = regenerate)
3559
+ --outpaint-position <p> LTX outpaint anchor: center|top|bottom|left|right
3560
+ --outpaint-aspect-ratio <r> LTX outpaint target ratio, e.g. 16:9 or 9:16
3479
3561
  --sam2-coordinates <coords> SAM2 click coords for animate-replace (x,y or x1,y1;x2,y2)
3480
3562
  --trim-end-frame Trim last frame for seamless video stitching
3481
3563
  --first-frame-strength <n> Keyframe strength for start frame (0.0-1.0)
@@ -3614,13 +3696,21 @@ Image Models:
3614
3696
  qwen_image_edit_2511_fp8 Image editing with context (up to 3 images)
3615
3697
  qwen_image_edit_2511_fp8_lightning Fast image editing
3616
3698
 
3617
- Recommended LTX 2.3 Video Models:
3699
+ Recommended LTX 2.5 Video Models:
3700
+ ltx25 / ltx25-t2v Distilled text-to-video with native dialogue/audio
3701
+ ltx25-i2v Distilled image-to-video and first/last-frame workflow
3702
+ ltx25-a2v Distilled audio-to-video
3703
+ ltx25-ia2v Distilled image+audio-to-video
3704
+ ltx25-v2v Distilled video-to-video control, inpaint, and outpaint
3705
+ ltx25-22b-int8_<mode>_dev Dev/HQ two-stage workflow for t2v/i2v/a2v/ia2v/v2v
3706
+
3707
+ LTX 2.3 rollback-only capabilities:
3618
3708
  ltx23-22b-fp8_t2v_distilled Text-to-video with native dialogue/audio
3619
- ltx23-22b-fp8_i2v_distilled Image-to-video with native dialogue/audio; default for --ref + --ref-end pairs
3709
+ ltx23-22b-fp8_i2v_distilled Image-to-video; transition LoRA only when both frames are supplied
3620
3710
  ltx23-eros Explicit uncensored I2V (30GB+ worker; requires --no-filter)
3621
3711
  ltx23-22b-fp8_ia2v_distilled Image+audio-to-video
3622
3712
  ltx23-22b-fp8_a2v_distilled Audio-to-video
3623
- ltx23-22b-fp8_v2v_distilled Video-to-video with ControlNet
3713
+ ltx23-22b-fp8_v2v_distilled Video-to-video rollback
3624
3714
  ltx23-22b-10eros-v1.4-fp8mixed_i2v Private mature-theme I2V; first and/or last frame; requires --no-filter
3625
3715
 
3626
3716
  Music Models:
@@ -3661,10 +3751,12 @@ state negatives in the structured prompt.):
3661
3751
  minimax-h3-t2v-turbo 4-step Turbo text-to-video
3662
3752
  minimax-h3-i2v-turbo 4-step Turbo image-to-video (--ref)
3663
3753
  minimax-h3-flf2v-turbo 4-step Turbo first-frame -> last-frame (--ref plus --ref-end)
3664
- (Turbo has no r2v/Ref2VA variant)
3665
- H3 Turbo sampler override --sampler euler|er_sde|sa_solver
3754
+ minimax-h3-r2v-turbo 4-step Ref2VA Turbo with loose image/video/audio references
3755
+ (upstream default: 960x544, Euler/simple)
3756
+ H3 FL2VA Turbo sampler override --sampler euler|er_sde|sa_solver
3666
3757
  (Socket default: er_sde; CLI omits unless set)
3667
3758
  (scheduler remains fixed to simple)
3759
+ H3 Ref2VA Turbo sampler Euler only; CLI omits unless --sampler euler is passed
3668
3760
 
3669
3761
  WAN 2.2 Video Models:
3670
3762
  wan_v2.2-14b-fp8_t2v_lightx2v Text-to-video (fast)
@@ -3675,7 +3767,14 @@ WAN 2.2 Video Models:
3675
3767
  wan_v2.2-14b-fp8_animate-move_lightx2v Animate-move (fast)
3676
3768
  wan_v2.2-14b-fp8_animate-replace_lightx2v Animate-replace (fast)
3677
3769
 
3678
- LTX-2 / LTX-2.3 Video Models:
3770
+ LTX-2.5 standard models (Distilled fast path; replace _distilled with _dev for Dev/HQ):
3771
+ ltx25-22b-int8_t2v_distilled Text-to-video with native audio
3772
+ ltx25-22b-int8_i2v_distilled Image-to-video; also first/last-frame conditioning
3773
+ ltx25-22b-int8_a2v_distilled Audio-to-video
3774
+ ltx25-22b-int8_ia2v_distilled Image+audio-to-video
3775
+ ltx25-22b-int8_v2v_distilled Video-to-video controls, inpaint, and outpaint
3776
+
3777
+ LTX-2 / LTX-2.3 rollback models:
3679
3778
  ltx2-19b-fp8_t2v_distilled Text-to-video, fast 8-step
3680
3779
  ltx2-19b-fp8_t2v Text-to-video, quality 20-step
3681
3780
  ltx2-19b-fp8_i2v_distilled Image-to-video, fast 8-step
@@ -3704,7 +3803,7 @@ Examples:
3704
3803
  sogni-agent --api-workflow --video-prompt "slow push-in as it comes alive" "a graphite robot sketch"
3705
3804
  sogni-agent --api-workflow --workflow-input @workflow.json
3706
3805
  sogni-agent --api-workflow storyboard-video --storyboard-frames 6 "Create a 12s 9:16 bakery launch video with GPT Image 2 and Seedance"
3707
- sogni-agent --video -m ltx23-22b-fp8_t2v_distilled --duration 20 "A wide cinematic aerial shot opens over steep tropical cliffs at golden hour, warm sunlight grazing the rock faces while sea mist drifts above the water below. Palm trees bend gently along the ridge as waves roll against the shoreline, leaving bright bands of foam across the dark stone. The camera glides forward in one continuous pass, revealing more of the coastline as sunlight flickers across wet surfaces and distant birds wheel through the haze. The scene holds a calm, upscale travel-film mood with smooth stabilized motion and crisp environmental detail."
3806
+ sogni-agent --video -m ltx25 --duration 20 "A wide cinematic aerial shot opens over steep tropical cliffs at golden hour, warm sunlight grazing the rock faces while sea mist drifts above the water below. Palm trees bend gently along the ridge as waves roll against the shoreline, leaving bright bands of foam across the dark stone. The camera glides forward in one continuous pass, revealing more of the coastline as sunlight flickers across wet surfaces and distant birds wheel through the haze. The scene holds a calm, upscale travel-film mood with smooth stabilized motion and crisp environmental detail."
3708
3807
  sogni-agent --video --ref subject.jpg --ref-video motion.mp4 --workflow animate-move "transfer motion"
3709
3808
  sogni-agent --video --last-image "gentle camera pan"
3710
3809
  sogni-agent -c photo.jpg "make the background a beach" -m qwen_image_edit_2511_fp8
@@ -4148,6 +4247,12 @@ if (options.video && options.sampler) {
4148
4247
  details: { model: options.model, sampler: options.sampler, allowed: MINIMAX_H3_TURBO_SAMPLERS }
4149
4248
  });
4150
4249
  }
4250
+ if (isMiniMaxH3R2vTurboSelectionLocal(options.model, options.videoWorkflow) && options.sampler !== 'euler') {
4251
+ fatalCliError('MiniMax H3 Ref2VA Turbo --sampler must be euler.', {
4252
+ code: 'INVALID_ARGUMENT',
4253
+ details: { model: options.model, sampler: options.sampler, allowed: ['euler'] }
4254
+ });
4255
+ }
4151
4256
  }
4152
4257
 
4153
4258
  applyPersonaAndVoiceReferences();
@@ -4257,7 +4362,9 @@ if (options.video) {
4257
4362
  options.model = resolveHappyHorseModelId(options.model, options.videoWorkflow);
4258
4363
  }
4259
4364
 
4260
- const workflowFromModel = inferVideoWorkflowFromModel(resolveVideoModelAlias(options.model, options.videoWorkflow));
4365
+ const workflowFromModel =
4366
+ ltx25WorkflowFromModelSelection(options.model) ||
4367
+ inferVideoWorkflowFromModel(resolveVideoModelAlias(options.model, options.videoWorkflow));
4261
4368
  if (options.videoWorkflow && workflowFromModel && options.videoWorkflow !== workflowFromModel) {
4262
4369
  fatalCliError(`Workflow "${options.videoWorkflow}" does not match model "${options.model}".`, {
4263
4370
  code: 'INVALID_ARGUMENT',
@@ -4329,19 +4436,34 @@ if (options.music) {
4329
4436
  } else if (options.video) {
4330
4437
  if (!options.model) {
4331
4438
  let defaultVideoModel = selectDefaultVideoModel(options.videoWorkflow, options, openclawConfig);
4332
- // Two-image first/last-frame animation defaults to the LTX-2.3 i2v morph
4333
- // path (transition LoRA auto-applies); a configured videoModels.i2v or an
4334
- // LTX pick from audio/quality routing still wins.
4439
+ const configuredWorkflowModel = openclawConfig?.videoModels?.[options.videoWorkflow];
4440
+ if (!configuredWorkflowModel) {
4441
+ defaultVideoModel = upgradeBuiltInLtx23Default(defaultVideoModel, options.videoWorkflow);
4442
+ }
4443
+ // Two-image first/last-frame animation defaults to the current LTX-2.5
4444
+ // i2v/FLF workflow. A configured videoModels.i2v or an LTX pick from
4445
+ // audio/quality routing still wins.
4335
4446
  if (
4336
4447
  options.videoWorkflow === 'i2v'
4337
4448
  && options.refImage && options.refImageEnd
4338
4449
  && !openclawConfig?.videoModels?.i2v
4339
- && !isLtx2Model(defaultVideoModel)
4450
+ && !isLtxFamilyModel(defaultVideoModel)
4340
4451
  ) {
4341
- defaultVideoModel = 'ltx23-22b-fp8_i2v_distilled';
4452
+ defaultVideoModel = LTX25_DISTILLED_WORKFLOW_MODELS.i2v;
4342
4453
  }
4343
4454
  options.model = defaultVideoModel || 'wan_v2.2-14b-fp8_i2v_lightx2v';
4344
4455
  }
4456
+ // Voice identity is a legacy LTX 2.3-only capability. Route an implicit
4457
+ // request (including an OpenClaw default) to the matching 2.3 workflow, but
4458
+ // preserve an explicit -m choice so the validation below can reject an
4459
+ // incompatible LTX 2.5 selection clearly.
4460
+ if (
4461
+ (options.referenceAudioIdentity || options.voicePersonaName)
4462
+ && !cliSet.model
4463
+ && (options.videoWorkflow === 't2v' || options.videoWorkflow === 'i2v')
4464
+ ) {
4465
+ options.model = LTX23_WORKFLOW_MODELS[options.videoWorkflow];
4466
+ }
4345
4467
  options.model = resolveVideoModelAlias(options.model, options.videoWorkflow);
4346
4468
  try {
4347
4469
  await loadLiveModelDefaults(options.model);
@@ -4737,6 +4859,16 @@ if (options.video) {
4737
4859
  if (!options.videoControlNetName && !isSeedanceModel(options.model)) {
4738
4860
  fatalCliError(`v2v requires --controlnet-name/--control-type (${VIDEO_CONTROLNET_NAMES.join('|')}).`, { code: 'INVALID_ARGUMENT' });
4739
4861
  }
4862
+ if (
4863
+ options.videoControlNetName === 'pose'
4864
+ && isLtx25ModelId(options.model)
4865
+ && !options.refImage
4866
+ ) {
4867
+ fatalCliError('LTX 2.5 pose control requires both --ref-video and --ref (a still image that defines the subject appearance).', {
4868
+ code: 'INVALID_ARGUMENT',
4869
+ details: { model: options.model, controlType: 'pose', requiredFlag: '--ref' }
4870
+ });
4871
+ }
4740
4872
  if (!isSeedanceVideo && options.refAudio) {
4741
4873
  fatalCliError('v2v does not accept reference audio.', { code: 'INVALID_ARGUMENT' });
4742
4874
  }
@@ -4803,9 +4935,10 @@ if (options.video) {
4803
4935
  code: 'INVALID_ARGUMENT'
4804
4936
  });
4805
4937
  }
4806
- if (options.referenceAudioIdentity && !isLtx2Model(options.model)) {
4807
- fatalCliError('--reference-audio-identity/--voice-persona requires an LTX video model.', {
4938
+ if (options.referenceAudioIdentity && !isLtx23ModelId(options.model)) {
4939
+ fatalCliError('--reference-audio-identity/--voice-persona requires an LTX-2.3 video model.', {
4808
4940
  code: 'INVALID_ARGUMENT',
4941
+ details: { model: options.model, unsupportedOnLtx25: isLtx25ModelId(options.model) },
4809
4942
  hint: `Use -m ${LTX23_WORKFLOW_MODELS[options.videoWorkflow] || LTX23_WORKFLOW_MODELS.t2v}`
4810
4943
  });
4811
4944
  }
@@ -4818,15 +4951,15 @@ if (options.video) {
4818
4951
  details: { flag: '--controlnet-name', value: options.videoControlNetName, allowed: VIDEO_CONTROLNET_NAMES }
4819
4952
  });
4820
4953
  }
4821
- if ((options.videoControlNetName === 'outpaint' || options.videoControlNetName === 'inpaint') && !isLtx23V2VModelId(options.model)) {
4822
- fatalCliError(`${options.videoControlNetName} control requires the LTX-2.3 v2v model.`, {
4954
+ if ((options.videoControlNetName === 'outpaint' || options.videoControlNetName === 'inpaint') && !isLtxV2VModelId(options.model)) {
4955
+ fatalCliError(`${options.videoControlNetName} control requires an LTX v2v model.`, {
4823
4956
  code: 'INVALID_ARGUMENT',
4824
4957
  details: { controlNetName: options.videoControlNetName, model: options.model },
4825
- hint: 'Use --workflow v2v -m ltx23 --control-type ' + options.videoControlNetName
4958
+ hint: 'Use --workflow v2v -m ltx25-v2v --control-type ' + options.videoControlNetName
4826
4959
  });
4827
4960
  }
4828
4961
  if (options.videoControlNetName === 'inpaint' && !options.refMask) {
4829
- fatalCliError('LTX-2.3 v2v inpaint requires --mask <image> (white pixels = region to regenerate).', {
4962
+ fatalCliError('LTX v2v inpaint requires --mask <image> (white pixels = region to regenerate).', {
4830
4963
  code: 'INVALID_ARGUMENT'
4831
4964
  });
4832
4965
  }
@@ -4952,14 +5085,16 @@ if (options.video && !options.frames) {
4952
5085
  // That means a "valid" requested size can still fail if the resized ref lands off the model divisor.
4953
5086
  if (options.video) {
4954
5087
  const baseVideoDimensionRules = videoDimensionRulesFromDefaults(getModelDefaults(options.model, openclawConfig), options.model);
4955
- // A reference image routes through the wrapper's resize, which caps at 1536 for every model
4956
- // and then adopts the resized reference's dimensions as the project's. Honour that ceiling up
4957
- // front so the CLI picks a divisor-valid size instead of letting the wrapper clamp blindly.
5088
+ // A reference image routes through the wrapper's resize, and the wrapper then adopts the
5089
+ // resized reference's dimensions as the project's. Honour the wrapper's ceiling up front so
5090
+ // the CLI picks a divisor-valid size instead of letting the wrapper clamp blindly (on modern
5091
+ // clients that ceiling is model-aware — e.g. 3840 for LTX-2.x — on legacy clients it is a
5092
+ // blanket 1536).
4958
5093
  const hasVideoReference = Boolean(options.refImage || options.refImageEnd);
4959
5094
  const videoDimensionRules = hasVideoReference
4960
5095
  ? {
4961
5096
  ...baseVideoDimensionRules,
4962
- maxDimension: Math.min(baseVideoDimensionRules.maxDimension, WRAPPER_MAX_REF_VIDEO_DIMENSION)
5097
+ maxDimension: Math.min(baseVideoDimensionRules.maxDimension, wrapperRefVideoDimensionCeiling(options.model))
4963
5098
  }
4964
5099
  : baseVideoDimensionRules;
4965
5100
 
@@ -4977,7 +5112,7 @@ if (options.video) {
4977
5112
  heightFromPrompt ||
4978
5113
  targetResolutionFromPrompt;
4979
5114
  if (
4980
- isLtx2Model(options.model) &&
5115
+ isLtxFamilyModel(options.model) &&
4981
5116
  options.videoWorkflow === 'i2v' &&
4982
5117
  !hasRequestedVideoCanvas
4983
5118
  ) {
@@ -7158,7 +7293,7 @@ function runStoryboardPlanAction() {
7158
7293
  promptAuthorship: 'user',
7159
7294
  });
7160
7295
  // --storyboard-plan is a model-agnostic preview surface that hands off to
7161
- // a per-model adapter (seedance / gpt-image-2 / ltx23 / wan). When the
7296
+ // a per-model adapter (seedance / gpt-image-2 / ltx25 / ltx23 / wan). When the
7162
7297
  // user doesn't pick one, prefer the seedance adapter because it owns the
7163
7298
  // canonical storyboard-reference prompt; the user's currently-set image
7164
7299
  // model (e.g., z_image_turbo_bf16) is not a registered storyboard adapter.
package/version.mjs CHANGED
@@ -1 +1 @@
1
- export const PACKAGE_VERSION = '3.28.0';
1
+ export const PACKAGE_VERSION = '3.30.0';