@nodaro/shared 3.61.0 → 3.63.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/dist/{chunk-4KYLNTR7.cjs → chunk-2PU3AGGS.cjs} +27 -4
- package/dist/chunk-2PU3AGGS.cjs.map +1 -0
- package/dist/{chunk-43TGSZRJ.js → chunk-2QKF7M2Z.js} +3 -3
- package/dist/{chunk-43TGSZRJ.js.map → chunk-2QKF7M2Z.js.map} +1 -1
- package/dist/{chunk-B6BG3LV2.js → chunk-34QLPTSA.js} +3 -3
- package/dist/{chunk-B6BG3LV2.js.map → chunk-34QLPTSA.js.map} +1 -1
- package/dist/chunk-3K24DWOH.js +453 -0
- package/dist/chunk-3K24DWOH.js.map +1 -0
- package/dist/{chunk-IRQ3SPX7.js → chunk-4DVWXEB6.js} +23 -4
- package/dist/chunk-4DVWXEB6.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4MMZD63H.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4MMZD63H.js.map} +1 -1
- package/dist/{chunk-MQZRQ5LM.cjs → chunk-63H4C56Q.cjs} +8 -8
- package/dist/{chunk-MQZRQ5LM.cjs.map → chunk-63H4C56Q.cjs.map} +1 -1
- package/dist/{chunk-IVXSNW2B.cjs → chunk-6BZC2ZHC.cjs} +18 -332
- package/dist/chunk-6BZC2ZHC.cjs.map +1 -0
- package/dist/{chunk-M3SXUUWC.cjs → chunk-6FQBKI2A.cjs} +4 -11
- package/dist/chunk-6FQBKI2A.cjs.map +1 -0
- package/dist/{chunk-673E4KYC.js → chunk-6M563QE6.js} +134 -8
- package/dist/chunk-6M563QE6.js.map +1 -0
- package/dist/chunk-6TGB7ECA.cjs +48 -0
- package/dist/chunk-6TGB7ECA.cjs.map +1 -0
- package/dist/{chunk-XUJC6GHE.cjs → chunk-6XUG4L7X.cjs} +6 -6
- package/dist/{chunk-XUJC6GHE.cjs.map → chunk-6XUG4L7X.cjs.map} +1 -1
- package/dist/{chunk-XZKFZMRT.cjs → chunk-77WU3V3J.cjs} +6 -6
- package/dist/{chunk-XZKFZMRT.cjs.map → chunk-77WU3V3J.cjs.map} +1 -1
- package/dist/{chunk-ZFJN23V4.cjs → chunk-A2PX5IRC.cjs} +4 -4
- package/dist/{chunk-ZFJN23V4.cjs.map → chunk-A2PX5IRC.cjs.map} +1 -1
- package/dist/{chunk-ZDBPQBAA.js → chunk-AE3AAJ4O.js} +3 -3
- package/dist/{chunk-ZDBPQBAA.js.map → chunk-AE3AAJ4O.js.map} +1 -1
- package/dist/chunk-ALRXY4QH.cjs +13 -0
- package/dist/chunk-ALRXY4QH.cjs.map +1 -0
- package/dist/{chunk-UARGJ5IZ.js → chunk-BMJVKYVB.js} +56 -12
- package/dist/chunk-BMJVKYVB.js.map +1 -0
- package/dist/{chunk-6XVHYD5R.js → chunk-CLAKSLXF.js} +4 -9
- package/dist/chunk-CLAKSLXF.js.map +1 -0
- package/dist/chunk-CTANEPMY.js +61 -0
- package/dist/chunk-CTANEPMY.js.map +1 -0
- package/dist/chunk-CZ5IQB3L.js +42 -0
- package/dist/chunk-CZ5IQB3L.js.map +1 -0
- package/dist/{chunk-WGKAOUEQ.cjs → chunk-D34K455O.cjs} +3 -2
- package/dist/chunk-D34K455O.cjs.map +1 -0
- package/dist/chunk-EPXGG27L.js +331 -0
- package/dist/chunk-EPXGG27L.js.map +1 -0
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-F6WGGYQW.cjs} +167 -3
- package/dist/chunk-F6WGGYQW.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-FXGNRYQQ.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-FXGNRYQQ.js.map} +1 -1
- package/dist/{chunk-ZNM2LW3D.cjs → chunk-GMBDLNLD.cjs} +105 -56
- package/dist/chunk-GMBDLNLD.cjs.map +1 -0
- package/dist/{chunk-NJVOJXBS.cjs → chunk-GSKLPI3J.cjs} +104 -49
- package/dist/chunk-GSKLPI3J.cjs.map +1 -0
- package/dist/{chunk-EWS2VFO4.js → chunk-HBXF6RUU.js} +4 -4
- package/dist/{chunk-EWS2VFO4.js.map → chunk-HBXF6RUU.js.map} +1 -1
- package/dist/{chunk-MOMFX32D.js → chunk-HWQ2SYNA.js} +194 -325
- package/dist/chunk-HWQ2SYNA.js.map +1 -0
- package/dist/{chunk-SCMTN57Y.js → chunk-IY3Y462W.js} +3 -3
- package/dist/{chunk-SCMTN57Y.js.map → chunk-IY3Y462W.js.map} +1 -1
- package/dist/{chunk-ZZGQRRN7.js → chunk-KCZHQH2O.js} +6 -306
- package/dist/chunk-KCZHQH2O.js.map +1 -0
- package/dist/{chunk-XROE3CAS.cjs → chunk-KHH54GRP.cjs} +120 -79
- package/dist/chunk-KHH54GRP.cjs.map +1 -0
- package/dist/{chunk-FVVD6XY2.js → chunk-KL6GAYTT.js} +13 -4
- package/dist/chunk-KL6GAYTT.js.map +1 -0
- package/dist/{chunk-FVII3KHN.js → chunk-KMGCHV6O.js} +163 -4
- package/dist/chunk-KMGCHV6O.js.map +1 -0
- package/dist/{chunk-FMXFHJWX.cjs → chunk-L2TVY6XN.cjs} +4 -4
- package/dist/{chunk-FMXFHJWX.cjs.map → chunk-L2TVY6XN.cjs.map} +1 -1
- package/dist/{chunk-FQXRYPCX.cjs → chunk-LH72PQO2.cjs} +505 -68
- package/dist/chunk-LH72PQO2.cjs.map +1 -0
- package/dist/chunk-LMAQUR55.cjs +506 -0
- package/dist/chunk-LMAQUR55.cjs.map +1 -0
- package/dist/{chunk-F5YEMSNK.cjs → chunk-M5OCFGHF.cjs} +571 -30
- package/dist/chunk-M5OCFGHF.cjs.map +1 -0
- package/dist/{chunk-VOWJCUMR.js → chunk-MD4XHED4.js} +3 -3
- package/dist/{chunk-VOWJCUMR.js.map → chunk-MD4XHED4.js.map} +1 -1
- package/dist/chunk-N5HH46JF.cjs +68 -0
- package/dist/chunk-N5HH46JF.cjs.map +1 -0
- package/dist/{chunk-G4XWVWRI.js → chunk-NIAFR5EE.js} +5 -4
- package/dist/chunk-NIAFR5EE.js.map +1 -0
- package/dist/{chunk-CF4S4N5X.js → chunk-O2QOBA6Q.js} +2 -2
- package/dist/{chunk-CF4S4N5X.js.map → chunk-O2QOBA6Q.js.map} +1 -1
- package/dist/{chunk-4GGLKRYI.cjs → chunk-O6TBB4IF.cjs} +2 -2
- package/dist/{chunk-4GGLKRYI.cjs.map → chunk-O6TBB4IF.cjs.map} +1 -1
- package/dist/{chunk-SWVGHAYO.js → chunk-O7RZRUMZ.js} +110 -74
- package/dist/chunk-O7RZRUMZ.js.map +1 -0
- package/dist/{chunk-LLOIAGFB.js → chunk-OV3JTKBY.js} +449 -51
- package/dist/chunk-OV3JTKBY.js.map +1 -0
- package/dist/{chunk-A3FHTSLB.js → chunk-PSKZKLDG.js} +550 -31
- package/dist/chunk-PSKZKLDG.js.map +1 -0
- package/dist/{chunk-VB2ARGQ6.js → chunk-RGNHHIMN.js} +3 -3
- package/dist/chunk-RGNHHIMN.js.map +1 -0
- package/dist/chunk-SMOO5FAH.js +10 -0
- package/dist/chunk-SMOO5FAH.js.map +1 -0
- package/dist/{chunk-5XRRENHD.cjs → chunk-TM5JYSJF.cjs} +170 -17
- package/dist/chunk-TM5JYSJF.cjs.map +1 -0
- package/dist/{chunk-PONP5J5E.cjs → chunk-V24EPI5N.cjs} +13 -3
- package/dist/chunk-V24EPI5N.cjs.map +1 -0
- package/dist/{chunk-RQ4F3AJH.cjs → chunk-V5EEQR2U.cjs} +21 -21
- package/dist/{chunk-RQ4F3AJH.cjs.map → chunk-V5EEQR2U.cjs.map} +1 -1
- package/dist/chunk-WZVIBAKN.cjs +351 -0
- package/dist/chunk-WZVIBAKN.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-X5BAFW3Q.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-X5BAFW3Q.cjs.map} +1 -1
- package/dist/{chunk-RUHKBEFF.js → chunk-XBTYGQ6Z.js} +63 -10
- package/dist/chunk-XBTYGQ6Z.js.map +1 -0
- package/dist/{chunk-JHTT2V4A.cjs → chunk-XGGZWA4A.cjs} +118 -52
- package/dist/chunk-XGGZWA4A.cjs.map +1 -0
- package/dist/{chunk-5I4T4QR5.cjs → chunk-XGVJGNZW.cjs} +5 -5
- package/dist/{chunk-5I4T4QR5.cjs.map → chunk-XGVJGNZW.cjs.map} +1 -1
- package/dist/{chunk-7ARKVJTN.cjs → chunk-Y35JQPT6.cjs} +228 -383
- package/dist/chunk-Y35JQPT6.cjs.map +1 -0
- package/dist/{chunk-AFQFGZN7.cjs → chunk-Y4GCJJPF.cjs} +8 -6
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-C77F4ZTL.js → chunk-YUER7TJG.js} +3 -3
- package/dist/{chunk-C77F4ZTL.js.map → chunk-YUER7TJG.js.map} +1 -1
- package/dist/{chunk-HGI2VKIV.js → chunk-YX6TFX7H.js} +67 -14
- package/dist/chunk-YX6TFX7H.js.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-ZPE2ZTJ4.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-ZPE2ZTJ4.cjs.map} +1 -1
- package/dist/entries/apps.cjs +44 -44
- package/dist/entries/apps.js +9 -9
- package/dist/entries/credits.cjs +286 -153
- package/dist/entries/credits.d.cts +254 -5
- package/dist/entries/credits.d.ts +254 -5
- package/dist/entries/credits.js +14 -9
- package/dist/entries/entities.cjs +188 -143
- package/dist/entries/entities.d.cts +122 -1
- package/dist/entries/entities.d.ts +122 -1
- package/dist/entries/entities.js +2 -1
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +85 -5
- package/dist/entries/llm-models.d.ts +85 -5
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +92 -87
- package/dist/entries/media.d.cts +19 -1
- package/dist/entries/media.d.ts +19 -1
- package/dist/entries/media.js +3 -2
- package/dist/entries/model-catalog.cjs +211 -103
- package/dist/entries/model-catalog.d.cts +135 -19
- package/dist/entries/model-catalog.d.ts +135 -19
- package/dist/entries/model-catalog.js +5 -5
- package/dist/entries/models.cjs +504 -295
- package/dist/entries/models.d.cts +71 -4
- package/dist/entries/models.d.ts +71 -4
- package/dist/entries/models.js +7 -6
- package/dist/entries/nodes.cjs +249 -233
- package/dist/entries/nodes.d.cts +35 -6
- package/dist/entries/nodes.d.ts +35 -6
- package/dist/entries/nodes.js +10 -10
- package/dist/entries/pipeline.cjs +152 -152
- package/dist/entries/pipeline.d.cts +3 -2
- package/dist/entries/pipeline.d.ts +3 -2
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/runtime-config.cjs +29 -29
- package/dist/entries/runtime-config.d.cts +10 -7
- package/dist/entries/runtime-config.d.ts +10 -7
- package/dist/entries/runtime-config.js +1 -1
- package/dist/entries/social.cjs +177 -177
- package/dist/entries/social.js +2 -2
- package/dist/entries/types.d.cts +8 -0
- package/dist/entries/types.d.ts +8 -0
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +316 -208
- package/dist/entries/video.d.cts +490 -99
- package/dist/entries/video.d.ts +490 -99
- package/dist/entries/video.js +8 -4
- package/dist/entries/workflow.cjs +102 -102
- package/dist/entries/workflow.d.cts +5 -4
- package/dist/entries/workflow.d.ts +5 -4
- package/dist/entries/workflow.js +2 -2
- package/dist/{gpt-image-2-6-BeZdT-pW.d.cts → gpt-image-2-6-jIRQBRag.d.cts} +6 -0
- package/dist/{gpt-image-2-6-BeZdT-pW.d.ts → gpt-image-2-6-jIRQBRag.d.ts} +6 -0
- package/dist/index.cjs +2727 -2092
- package/dist/index.d.cts +11 -11
- package/dist/index.d.ts +11 -11
- package/dist/index.js +30 -27
- package/dist/{model-catalog-BgSvskgY.d.ts → model-catalog-C_Eo35tL.d.cts} +158 -14
- package/dist/{model-catalog-BgSvskgY.d.cts → model-catalog-C_Eo35tL.d.ts} +158 -14
- package/dist/{model-constants-DHd9jwQ7.d.cts → model-constants-Bg4ccSQb.d.ts} +427 -34
- package/dist/{model-constants-DHd9jwQ7.d.ts → model-constants-DWcxOmaY.d.cts} +427 -34
- package/package.json +1 -1
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +194 -0
- package/src/__tests__/fixtures/mask-composite-quote-parity.json +118 -0
- package/src/__tests__/fixtures/root-exports.baseline.json +68 -0
- package/src/__tests__/gpt-image-2-6-formats.test.ts +4 -1
- package/src/__tests__/grok-video-15-catalog.test.ts +189 -0
- package/src/__tests__/gvp-supported-providers.test.ts +32 -4
- package/src/__tests__/lip-sync-audio-rate.test.ts +74 -0
- package/src/__tests__/lip-sync-levers.test.ts +31 -0
- package/src/__tests__/llm-models.test.ts +132 -3
- package/src/__tests__/llm-price-key.test.ts +152 -1
- package/src/__tests__/minimax-h3-image.test.ts +140 -0
- package/src/__tests__/model-makers.test.ts +49 -11
- package/src/__tests__/model-tree.test.ts +13 -0
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/normalize-node-params.test.ts +25 -0
- package/src/__tests__/pixverse-v6-max-catalog.test.ts +271 -0
- package/src/__tests__/prompt-length-limits.test.ts +4 -0
- package/src/__tests__/retired-video-provider.test.ts +15 -5
- package/src/__tests__/seedance-25-catalog-modes.test.ts +1 -1
- package/src/__tests__/seedance-task-type.test.ts +188 -0
- package/src/__tests__/seedream-5-5.test.ts +117 -0
- package/src/__tests__/transcribe-capabilities.test.ts +39 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/unit-contract-compose.test.ts +27 -1
- package/src/__tests__/unit-contracts.test.ts +20 -6
- package/src/__tests__/upscale-factors.test.ts +107 -0
- package/src/__tests__/video-audio-capability.test.ts +35 -6
- package/src/__tests__/video-character-refs.test.ts +20 -2
- package/src/__tests__/video-collapse-parity.test.ts +19 -0
- package/src/__tests__/video-overlay-geometry.test.ts +68 -0
- package/src/__tests__/video-overlay-layer-plan.test.ts +3 -4
- package/src/__tests__/video-overlay-layouts.test.ts +529 -0
- package/src/__tests__/video-overlay-pricing.test.ts +61 -0
- package/src/__tests__/video-overlay-validate.test.ts +128 -0
- package/src/__tests__/video-overlay-wired-kind.test.ts +207 -0
- package/src/__tests__/video-overlay.test.ts +280 -194
- package/src/__tests__/video-ref-limits.test.ts +2 -1
- package/src/__tests__/video-reference-only.test.ts +6 -2
- package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
- package/src/__tests__/video-start-frame-only.test.ts +98 -0
- package/src/__tests__/video-upscale-params.test.ts +62 -0
- package/src/__tests__/wired-character-names.test.ts +220 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/index.ts +18 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-estimators/video-overlay.ts +70 -0
- package/src/credit-identifiers.ts +183 -16
- package/src/entity-image-url.ts +21 -0
- package/src/entries/credits.ts +26 -1
- package/src/entries/entities.ts +14 -0
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +44 -1
- package/src/entries/models.ts +69 -0
- package/src/entries/nodes.ts +4 -0
- package/src/entries/video.ts +7 -1
- package/src/freecut-protocol.ts +8 -0
- package/src/generated/unit-contracts.ts +8 -1
- package/src/gpt-image-2-6.ts +6 -0
- package/src/input-image-pricing.ts +76 -0
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +249 -4
- package/src/mask-composite.ts +11 -0
- package/src/minimax-h3-image.ts +61 -0
- package/src/model-catalog.ts +604 -40
- package/src/model-constants.ts +860 -55
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +15 -2
- package/src/node-execution-state.ts +4 -3
- package/src/normalize-node-params.ts +49 -1
- package/src/producer-types.ts +23 -1
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/seedance-task-type.ts +37 -0
- package/src/seedream-5-5.ts +45 -0
- package/src/transcribe-preflight.ts +58 -7
- package/src/unit-contract-compose.ts +4 -1
- package/src/upscale-factors.ts +111 -0
- package/src/video-character-refs.ts +7 -4
- package/src/video-duration.ts +9 -0
- package/src/video-overlay-geometry.ts +99 -0
- package/src/video-overlay-input.ts +25 -0
- package/src/video-overlay-layout-ids.ts +48 -0
- package/src/video-overlay-layouts.ts +315 -0
- package/src/video-overlay-validate.ts +223 -0
- package/src/video-overlay-video-layers.ts +304 -0
- package/src/video-overlay.ts +165 -297
- package/src/video-ui-defaults.ts +11 -7
- package/src/video-upscale-params.ts +67 -0
- package/src/wired-character-names.ts +202 -0
- package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
- package/dist/chunk-4KYLNTR7.cjs.map +0 -1
- package/dist/chunk-5XRRENHD.cjs.map +0 -1
- package/dist/chunk-673E4KYC.js.map +0 -1
- package/dist/chunk-6XVHYD5R.js.map +0 -1
- package/dist/chunk-7ARKVJTN.cjs.map +0 -1
- package/dist/chunk-7WGKP3EU.js +0 -23
- package/dist/chunk-7WGKP3EU.js.map +0 -1
- package/dist/chunk-A3FHTSLB.js.map +0 -1
- package/dist/chunk-AFQFGZN7.cjs.map +0 -1
- package/dist/chunk-F5YEMSNK.cjs.map +0 -1
- package/dist/chunk-FQXRYPCX.cjs.map +0 -1
- package/dist/chunk-FVII3KHN.js.map +0 -1
- package/dist/chunk-FVVD6XY2.js.map +0 -1
- package/dist/chunk-G4XWVWRI.js.map +0 -1
- package/dist/chunk-HGI2VKIV.js.map +0 -1
- package/dist/chunk-IRQ3SPX7.js.map +0 -1
- package/dist/chunk-IVXSNW2B.cjs.map +0 -1
- package/dist/chunk-JHTT2V4A.cjs.map +0 -1
- package/dist/chunk-KHZAQGRP.js +0 -17
- package/dist/chunk-KHZAQGRP.js.map +0 -1
- package/dist/chunk-LLOIAGFB.js.map +0 -1
- package/dist/chunk-M3SXUUWC.cjs.map +0 -1
- package/dist/chunk-MOMFX32D.js.map +0 -1
- package/dist/chunk-NCOGGRRP.cjs +0 -27
- package/dist/chunk-NCOGGRRP.cjs.map +0 -1
- package/dist/chunk-NJVOJXBS.cjs.map +0 -1
- package/dist/chunk-PONP5J5E.cjs.map +0 -1
- package/dist/chunk-RUHKBEFF.js.map +0 -1
- package/dist/chunk-SWVGHAYO.js.map +0 -1
- package/dist/chunk-UARGJ5IZ.js.map +0 -1
- package/dist/chunk-VB2ARGQ6.js.map +0 -1
- package/dist/chunk-WGKAOUEQ.cjs.map +0 -1
- package/dist/chunk-XROE3CAS.cjs.map +0 -1
- package/dist/chunk-ZLDFPVVI.cjs +0 -19
- package/dist/chunk-ZLDFPVVI.cjs.map +0 -1
- package/dist/chunk-ZNM2LW3D.cjs.map +0 -1
- package/dist/chunk-ZZGQRRN7.js.map +0 -1
|
@@ -28,12 +28,22 @@ import {
|
|
|
28
28
|
isViduQ4Provider,
|
|
29
29
|
isKling4Provider,
|
|
30
30
|
normalizeKling4Resolution,
|
|
31
|
+
isKling4FlashProvider,
|
|
32
|
+
KLING_4_FLASH_RESOLUTION,
|
|
33
|
+
isGrokVideo15Provider,
|
|
34
|
+
normalizeGrokVideo15Resolution,
|
|
35
|
+
isPixverseV6MaxProvider,
|
|
36
|
+
normalizePixverseV6MaxQuality,
|
|
31
37
|
VIDEO_REF_RATE_PROVIDERS,
|
|
32
38
|
normalizeMinimaxH3Resolution,
|
|
33
39
|
normalizeWan3Resolution,
|
|
34
40
|
normalizeViduQ4Resolution,
|
|
35
|
-
|
|
41
|
+
videoAudioPricedOn,
|
|
42
|
+
type VideoAudioRequest,
|
|
36
43
|
canonicalVideoProvider,
|
|
44
|
+
isTailExtendProvider,
|
|
45
|
+
type SeedanceExtendProvider,
|
|
46
|
+
type TailExtendProvider,
|
|
37
47
|
} from "./model-constants.js"
|
|
38
48
|
import { isFlux2Model, FLUX2_RES_MP, type Flux2Model } from "./flux2-pricing.js"
|
|
39
49
|
import {
|
|
@@ -48,6 +58,15 @@ import {
|
|
|
48
58
|
type GptImage26TieredModel,
|
|
49
59
|
type ImageFormatLevers,
|
|
50
60
|
} from "./gpt-image-2-6.js"
|
|
61
|
+
import { isMinimaxH3Image, minimaxH3ImageCreditId } from "./minimax-h3-image.js"
|
|
62
|
+
import {
|
|
63
|
+
SEEDREAM_5_5_I2I,
|
|
64
|
+
SEEDREAM_5_5_MAX_INPUT_IMAGES,
|
|
65
|
+
isSeedream55,
|
|
66
|
+
isSeedream55I2i,
|
|
67
|
+
seedream55Resolution,
|
|
68
|
+
type Seedream55Model,
|
|
69
|
+
} from "./seedream-5-5.js"
|
|
51
70
|
import { VIDEO_DURATION_AUTO } from "./video-duration-auto.js"
|
|
52
71
|
import { uiResolutionFill } from "./video-ui-defaults.js"
|
|
53
72
|
import { MODEL_CATALOG, autoAspectNeedsSourceImage, normalizeModelInput, normalizeVideoRequestParams, defaultResolutionFor, type ModelInputAdjustment, type SourceImageSize } from "./model-catalog.js"
|
|
@@ -127,6 +146,31 @@ function gptImage26CreditId(
|
|
|
127
146
|
return `${base}:${Math.min(Math.max(1, images), GPT_IMAGE_2_6_MAX_INPUT_IMAGES)}ref`
|
|
128
147
|
}
|
|
129
148
|
|
|
149
|
+
/**
|
|
150
|
+
* The price id of a Seedream 5.5 run: `seedream-5-5:<size>`, and on an edit
|
|
151
|
+
* `seedream-5-5-i2i:<size>:<N>ref`, N being the input images (1 to 10). Each
|
|
152
|
+
* size has its own id, 1K and 1.5K at the same price.
|
|
153
|
+
*
|
|
154
|
+
* A size off its list (a stored node, the multi-provider preview pricing one
|
|
155
|
+
* node's data against every model) or none lands on the default, 2K, which is
|
|
156
|
+
* what the provider renders with none. A text-to-image id sent input images
|
|
157
|
+
* runs on the edit endpoint (the provider swaps it), so a caller that does not
|
|
158
|
+
* swap the model first (the entity routes, a pipeline pin) is priced there too.
|
|
159
|
+
* An edit always has at least its source, and is priced for at most the images
|
|
160
|
+
* the provider takes (what a request holds past it is not sent).
|
|
161
|
+
*/
|
|
162
|
+
function seedream55CreditId(
|
|
163
|
+
provider: Seedream55Model,
|
|
164
|
+
resolution: string | undefined,
|
|
165
|
+
referenceImageCount: number | undefined,
|
|
166
|
+
): string {
|
|
167
|
+
const size = seedream55Resolution(resolution)
|
|
168
|
+
const images = Math.trunc(referenceImageCount ?? 0)
|
|
169
|
+
const model = !isSeedream55I2i(provider) && images > 0 ? SEEDREAM_5_5_I2I : provider
|
|
170
|
+
if (!isSeedream55I2i(model)) return `${model}:${size}`
|
|
171
|
+
return `${model}:${size}:${Math.min(Math.max(1, images), SEEDREAM_5_5_MAX_INPUT_IMAGES)}ref`
|
|
172
|
+
}
|
|
173
|
+
|
|
130
174
|
/**
|
|
131
175
|
* Compute composite model identifier for variable credit pricing.
|
|
132
176
|
* Examples: "gpt-image:high", "flux:2K", "nano-banana-pro:4K", "ideogram:TURBO",
|
|
@@ -158,6 +202,14 @@ export function buildCreditModelIdentifier(
|
|
|
158
202
|
if (isGptImage26Tiered(provider)) {
|
|
159
203
|
return gptImage26CreditId(provider, quality, resolution, referenceImageCount, imageFormat)
|
|
160
204
|
}
|
|
205
|
+
// MiniMax H3 Image: by size, and on an edit by its reference images
|
|
206
|
+
// (`minimax-h3-image:2K`, `minimax-h3-image-i2i:4K:3ref`).
|
|
207
|
+
if (isMinimaxH3Image(provider)) {
|
|
208
|
+
return minimaxH3ImageCreditId(provider, resolution, referenceImageCount)
|
|
209
|
+
}
|
|
210
|
+
if (isSeedream55(provider)) {
|
|
211
|
+
return seedream55CreditId(provider, resolution, referenceImageCount)
|
|
212
|
+
}
|
|
161
213
|
if (HIGH_QUALITY_PROVIDERS.has(provider) && quality === "high") {
|
|
162
214
|
return `${provider}:high`
|
|
163
215
|
}
|
|
@@ -402,7 +454,9 @@ const T2V_CREDIT_OVERRIDES: Record<string, string> = {
|
|
|
402
454
|
*
|
|
403
455
|
* @param provider - Video model key (e.g., "kling-3.0")
|
|
404
456
|
* @param duration - Video duration in seconds
|
|
405
|
-
* @param sound -
|
|
457
|
+
* @param sound - The request's audio: its `sound` flag, or the whole audio
|
|
458
|
+
* request (`{ sound, generateAudio }`) — read through `videoAudioIntent`, the
|
|
459
|
+
* same reading the provider runner sends the model's switch from
|
|
406
460
|
* @param nodeType - Node type for T2V-specific cost overrides
|
|
407
461
|
* @param mode - Quality variant that affects pricing
|
|
408
462
|
* @param resolution - Output resolution (used by Seedance 2 for 480p/720p pricing)
|
|
@@ -458,20 +512,29 @@ function wireNormalizedResolution(provider: string, resolution: string | undefin
|
|
|
458
512
|
if (isWan3Provider(provider)) return normalizeWan3Resolution(resolution).toLowerCase()
|
|
459
513
|
if (isViduQ4Provider(provider)) return normalizeViduQ4Resolution(resolution)
|
|
460
514
|
if (isKling4Provider(provider)) return normalizeKling4Resolution(resolution)
|
|
515
|
+
// Kling 4.0 Flash renders 720p whatever it is asked (its runner sends 720p).
|
|
516
|
+
if (isKling4FlashProvider(provider)) return KLING_4_FLASH_RESOLUTION
|
|
517
|
+
if (isGrokVideo15Provider(provider)) return normalizeGrokVideo15Resolution(resolution)
|
|
518
|
+
if (isPixverseV6MaxProvider(provider)) return normalizePixverseV6MaxQuality(resolution)
|
|
461
519
|
return resolution
|
|
462
520
|
}
|
|
463
521
|
|
|
464
522
|
export function buildVideoCreditModelIdentifier(
|
|
465
523
|
rawProvider: string,
|
|
466
524
|
duration?: number | string,
|
|
467
|
-
sound?: boolean,
|
|
525
|
+
sound?: boolean | VideoAudioRequest,
|
|
468
526
|
nodeType?: "image-to-video" | "text-to-video",
|
|
469
527
|
mode?: string,
|
|
470
528
|
resolution?: string,
|
|
471
529
|
hasVideoRef?: boolean,
|
|
472
530
|
): string {
|
|
531
|
+
const audio: VideoAudioRequest = typeof sound === "object" && sound !== null ? sound : { sound }
|
|
473
532
|
// A retired model (RETIRED_VIDEO_PROVIDERS) is priced as the model it runs as.
|
|
474
533
|
const provider = canonicalVideoProvider(rawProvider) as string
|
|
534
|
+
// A tail-recipe Extend Video provider (Seedance 2.5 / 2.0, Kling 4) is
|
|
535
|
+
// priced on its own rows — the one builder every surface that prices an
|
|
536
|
+
// extend reads.
|
|
537
|
+
if (isTailExtendProvider(provider)) return tailExtendCreditId(provider, duration, resolution)
|
|
475
538
|
// T2V overrides: some providers have different base costs for text-to-video
|
|
476
539
|
let effectiveProvider = provider
|
|
477
540
|
if (nodeType === "text-to-video") {
|
|
@@ -542,16 +605,6 @@ export function buildVideoCreditModelIdentifier(
|
|
|
542
605
|
const tier = tiers.find(t => durationSec <= t.maxSeconds) ?? tiers[tiers.length - 1]
|
|
543
606
|
let identifier = `${effectiveProvider}:${tier.suffix}`
|
|
544
607
|
|
|
545
|
-
// Append audio suffix if applicable. When the caller expressed no intent
|
|
546
|
-
// (sound === undefined), fall back to the model's own default (capability
|
|
547
|
-
// `defaultOn` — kling-3.0 generates audio unless explicitly disabled), so an
|
|
548
|
-
// intent-less request is billed for the audio it actually produces instead
|
|
549
|
-
// of reserving the cheaper no-audio tier against an audio-on generation.
|
|
550
|
-
const soundOn = sound ?? (getVideoAudioCapability(effectiveProvider).defaultOn === true)
|
|
551
|
-
if (AUDIO_ADDON_PROVIDERS.has(effectiveProvider) && soundOn) {
|
|
552
|
-
identifier += ":audio"
|
|
553
|
-
}
|
|
554
|
-
|
|
555
608
|
// Append mode suffix for providers with quality-tiered pricing
|
|
556
609
|
// "high" comes from I2V videoSize field, "pro" comes from T2V mode field
|
|
557
610
|
if (MODE_ADDON_PROVIDERS.has(effectiveProvider) && (mode === "high" || mode === "pro")) {
|
|
@@ -606,7 +659,7 @@ export function buildVideoCreditModelIdentifier(
|
|
|
606
659
|
// Collapsing through the SAME normalizer the runner uses makes render == billed
|
|
607
660
|
// by construction for every spelling, including garbage (→ the declared 720p).
|
|
608
661
|
// Scoped to the families whose runner normalizes on purpose (Wan 3.0, Vidu
|
|
609
|
-
// Q4): the other RESOLUTION_DURATION_PRICING members pass `resolution` to
|
|
662
|
+
// Q4, Kling 4.0, Grok Imagine Video 1.5, PixVerse V6 Max): the other RESOLUTION_DURATION_PRICING members pass `resolution` to
|
|
610
663
|
// their wire verbatim, so case-folding their billing without probing their
|
|
611
664
|
// wire would reprice live models.
|
|
612
665
|
const requested = wireNormalizedResolution(effectiveProvider, resolution)
|
|
@@ -626,6 +679,17 @@ export function buildVideoCreditModelIdentifier(
|
|
|
626
679
|
identifier += ":768p"
|
|
627
680
|
}
|
|
628
681
|
|
|
682
|
+
// Append the audio suffix LAST, after every other dimension
|
|
683
|
+
// (`kling-3.0:10s:audio`, `pixverse-v6-max:5s:720p:audio`). The request's
|
|
684
|
+
// audio is read by `videoAudioIntent` — the reading `applyVideoAudioToggle`
|
|
685
|
+
// sends the model's switch from — and with no intent falls back to the
|
|
686
|
+
// model's own default (capability `defaultOn` — kling-3.0 and PixVerse V6 Max
|
|
687
|
+
// generate audio unless explicitly disabled), so a request is billed for the
|
|
688
|
+
// audio it actually produces.
|
|
689
|
+
if (AUDIO_ADDON_PROVIDERS.has(effectiveProvider) && videoAudioPricedOn(effectiveProvider, audio)) {
|
|
690
|
+
identifier += ":audio"
|
|
691
|
+
}
|
|
692
|
+
|
|
629
693
|
return identifier
|
|
630
694
|
}
|
|
631
695
|
|
|
@@ -652,6 +716,8 @@ export function videoGenerationCreditId(args: {
|
|
|
652
716
|
provider: string
|
|
653
717
|
duration?: number | string
|
|
654
718
|
sound?: boolean
|
|
719
|
+
/** The request's `generateAudio`, read after `sound` where the model reads it (`videoAudioIntent`). */
|
|
720
|
+
generateAudio?: boolean
|
|
655
721
|
nodeType?: "image-to-video" | "text-to-video"
|
|
656
722
|
mode?: string
|
|
657
723
|
resolution?: string
|
|
@@ -665,7 +731,7 @@ export function videoGenerationCreditId(args: {
|
|
|
665
731
|
return buildVideoCreditModelIdentifier(
|
|
666
732
|
args.provider,
|
|
667
733
|
args.duration,
|
|
668
|
-
args.sound,
|
|
734
|
+
{ sound: args.sound, generateAudio: args.generateAudio },
|
|
669
735
|
args.nodeType ?? "image-to-video",
|
|
670
736
|
args.mode,
|
|
671
737
|
resolution,
|
|
@@ -703,6 +769,61 @@ export function seedanceVideoEditCreditId(provider: string, resolution?: string,
|
|
|
703
769
|
})
|
|
704
770
|
}
|
|
705
771
|
|
|
772
|
+
/** The resolution a tail-recipe extend that names none, or one it does not offer, is priced and run at (every one offers it). */
|
|
773
|
+
const TAIL_EXTEND_DEFAULT_RESOLUTION = "720p"
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* The resolution a tail-recipe Extend Video run (Seedance 2.5 / 2.0, Kling 4)
|
|
777
|
+
* is priced at, and so the one it must render at: the requested one when it is
|
|
778
|
+
* among the provider's catalog `resolutions`, else 720p (also when none is
|
|
779
|
+
* named). The workflow run queues it and the worker holds the job to it, so a
|
|
780
|
+
* stored or sent resolution the model does not offer (`4k`, or `480p` on Kling
|
|
781
|
+
* 4) can never render above, or bill apart from, the row it reserved.
|
|
782
|
+
*/
|
|
783
|
+
export function tailExtendResolution(provider: TailExtendProvider, resolution?: unknown): string {
|
|
784
|
+
return typeof resolution === "string" && MODEL_CATALOG[provider]?.resolutions?.includes(resolution)
|
|
785
|
+
? resolution
|
|
786
|
+
: TAIL_EXTEND_DEFAULT_RESOLUTION
|
|
787
|
+
}
|
|
788
|
+
|
|
789
|
+
/**
|
|
790
|
+
* The credit identifier one tail-recipe Extend Video run is priced at — the
|
|
791
|
+
* one builder every surface that prices it reads (the route's guard and
|
|
792
|
+
* reservation, the workflow reservation and estimate, the editor), so none of
|
|
793
|
+
* them can name a different row.
|
|
794
|
+
*
|
|
795
|
+
* The seconds added snap into the provider's catalog `durations` (its catalog
|
|
796
|
+
* `defaultDuration` when unset, through {@link pricedOutputDurationSec}); the
|
|
797
|
+
* resolution is {@link tailExtendResolution}'s. Each provider has its own
|
|
798
|
+
* rows, one per second of its window and resolution: `<provider>:<N>s:<res>`
|
|
799
|
+
* (`seedance-2-5-extend` 4–30 s, `seedance-2-0-extend` 4–15 s, both at
|
|
800
|
+
* 480p / 720p / 1080p; `kling-4-extend` 3–30 s at 720p / 1080p).
|
|
801
|
+
*
|
|
802
|
+
* A retired id (`seedance-2-extend`) is not a {@link TailExtendProvider}:
|
|
803
|
+
* pass a stored or sent provider through `canonicalVideoProvider` first.
|
|
804
|
+
*/
|
|
805
|
+
export function tailExtendCreditId(
|
|
806
|
+
provider: TailExtendProvider,
|
|
807
|
+
duration?: number | string,
|
|
808
|
+
resolution?: string,
|
|
809
|
+
): string {
|
|
810
|
+
return `${provider}:${pricedOutputDurationSec(provider, duration)}s:${tailExtendResolution(provider, resolution)}`
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
/** @deprecated Use {@link tailExtendResolution}, which also answers for Kling 4 Extend. */
|
|
814
|
+
export function seedanceExtendResolution(provider: SeedanceExtendProvider, resolution?: unknown): string {
|
|
815
|
+
return tailExtendResolution(provider, resolution)
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
/** @deprecated Use {@link tailExtendCreditId}, which also answers for Kling 4 Extend. */
|
|
819
|
+
export function seedanceExtendCreditId(
|
|
820
|
+
provider: SeedanceExtendProvider,
|
|
821
|
+
duration?: number | string,
|
|
822
|
+
resolution?: string,
|
|
823
|
+
): string {
|
|
824
|
+
return tailExtendCreditId(provider, duration, resolution)
|
|
825
|
+
}
|
|
826
|
+
|
|
706
827
|
/** What the video credit identifier PRICES for a request, for the levers whose
|
|
707
828
|
* priced value must also be the value we SEND. */
|
|
708
829
|
export interface PricedVideoSelection {
|
|
@@ -804,13 +925,59 @@ export function pricedVideoSelection(opts: {
|
|
|
804
925
|
* "wan-animate-move" (480p default), "wan-animate-move:580p", "wan-animate-move:720p"
|
|
805
926
|
*
|
|
806
927
|
* @param provider - Motion control provider key ("kling" for 2.6, "kling-3.0", "wan-animate-move", "wan-animate-replace")
|
|
807
|
-
* @param resolution - "720p" or "1080p" (Kling), "480p" or "580p" or "720p" (Wan Animate)
|
|
928
|
+
* @param resolution - "720p" or "1080p" (Kling), "480p" or "580p" or "720p" (Wan Animate); a size the
|
|
929
|
+
* model does not have is priced as the size it runs at (`motionTransferResolution`: Wan Animate's 1080p as 720p)
|
|
808
930
|
* @param videoDuration - Reference video duration in seconds (defaults to 10s, unused for Wan Animate)
|
|
809
931
|
*/
|
|
810
932
|
export function buildMotionCreditModelIdentifier(
|
|
811
933
|
provider: string,
|
|
812
934
|
resolution: string,
|
|
813
935
|
videoDuration?: number,
|
|
936
|
+
): string {
|
|
937
|
+
return motionCreditIdentifier(provider, motionTransferResolution(provider, resolution).resolution, videoDuration)
|
|
938
|
+
}
|
|
939
|
+
|
|
940
|
+
/** The catalog model a Motion Transfer option runs: the base of the id it is billed under. */
|
|
941
|
+
function motionModelOf(provider: string): string {
|
|
942
|
+
return motionCreditIdentifier(provider, "720p").split(":")[0]!
|
|
943
|
+
}
|
|
944
|
+
|
|
945
|
+
/**
|
|
946
|
+
* Motion models still SENT at a size their catalog entry does not list, as
|
|
947
|
+
* before Wan Animate had entries: Kling 2.6 and Kling 3.0 Motion Control
|
|
948
|
+
* (720p and 1080p). Their price is the same either way (any size but 1080p is
|
|
949
|
+
* charged on the 720p rows), and Kling 3.0's provider already sends such a
|
|
950
|
+
* size as 720p; whether Kling 2.6 should too is not decided. Only shrinks.
|
|
951
|
+
*/
|
|
952
|
+
const MOTION_MODELS_SENT_AS_NAMED: ReadonlySet<string> = new Set(["motion-transfer", "kling-3.0-motion"])
|
|
953
|
+
|
|
954
|
+
/** The size a Motion Transfer run is sent and charged at, and what moved. */
|
|
955
|
+
export interface MotionTransferResolution {
|
|
956
|
+
resolution: string
|
|
957
|
+
/** Empty when the size it names is the one it runs at. */
|
|
958
|
+
adjustments: ModelInputAdjustment[]
|
|
959
|
+
}
|
|
960
|
+
|
|
961
|
+
/**
|
|
962
|
+
* The size a Motion Transfer run is sent and charged at (decided 2026-11-12):
|
|
963
|
+
* the size it names, held to the catalog entry of the model its option runs
|
|
964
|
+
* (`normalizeModelInput`), so a size that model does not have moves to the
|
|
965
|
+
* entry's `defaultResolution` — a Wan Animate request at 1080p runs, and is
|
|
966
|
+
* charged, as 720p. The route, the workflow build, the MCP workflow writes and
|
|
967
|
+
* every price (through `buildMotionCreditModelIdentifier`) read this one rule.
|
|
968
|
+
*/
|
|
969
|
+
export function motionTransferResolution(provider: string, resolution: string): MotionTransferResolution {
|
|
970
|
+
const model = motionModelOf(provider)
|
|
971
|
+
if (MOTION_MODELS_SENT_AS_NAMED.has(model)) return { resolution, adjustments: [] }
|
|
972
|
+
const normalized = normalizeModelInput(model, { resolution })
|
|
973
|
+
if (normalized.resolution === undefined) return { resolution, adjustments: [] }
|
|
974
|
+
return { resolution: normalized.resolution, adjustments: normalized.adjustments }
|
|
975
|
+
}
|
|
976
|
+
|
|
977
|
+
function motionCreditIdentifier(
|
|
978
|
+
provider: string,
|
|
979
|
+
resolution: string,
|
|
980
|
+
videoDuration?: number,
|
|
814
981
|
): string {
|
|
815
982
|
// Wan Animate providers use resolution-tiered pricing (not duration-based)
|
|
816
983
|
if (provider === "wan-animate-move" || provider === "wan-animate-replace") {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The image an entity node (character / face / object / creature / location)
|
|
3
|
+
* gives out: the asset the user starred as its default, else its active
|
|
4
|
+
* generated result, else its source image — the image its card shows. It is
|
|
5
|
+
* the node's output on both run paths, and it is a wired Character's portrait
|
|
6
|
+
* (its identity reference, a Kling subject's first image), so the character
|
|
7
|
+
* and its output are one image and one image goes out. `||`, so an empty
|
|
8
|
+
* string falls through.
|
|
9
|
+
*/
|
|
10
|
+
export function entityImageUrl(data: unknown): string | undefined {
|
|
11
|
+
const d = (data ?? {}) as {
|
|
12
|
+
readonly defaultAssetUrl?: unknown
|
|
13
|
+
readonly generatedResults?: unknown
|
|
14
|
+
readonly activeResultIndex?: unknown
|
|
15
|
+
readonly sourceImageUrl?: unknown
|
|
16
|
+
}
|
|
17
|
+
const str = (v: unknown): string | undefined => (typeof v === "string" && v ? v : undefined)
|
|
18
|
+
const results = Array.isArray(d.generatedResults) ? (d.generatedResults as ReadonlyArray<{ readonly url?: unknown } | null | undefined>) : []
|
|
19
|
+
const active = typeof d.activeResultIndex === "number" ? d.activeResultIndex : 0
|
|
20
|
+
return str(d.defaultAssetUrl) || str(results[active]?.url) || str(d.sourceImageUrl)
|
|
21
|
+
}
|
package/src/entries/credits.ts
CHANGED
|
@@ -24,9 +24,15 @@ export {
|
|
|
24
24
|
imageGenAutoAspectNeedsSourceImage,
|
|
25
25
|
buildVideoCreditModelIdentifier,
|
|
26
26
|
seedanceVideoEditCreditId,
|
|
27
|
+
tailExtendCreditId,
|
|
28
|
+
tailExtendResolution,
|
|
29
|
+
seedanceExtendCreditId,
|
|
30
|
+
seedanceExtendResolution,
|
|
27
31
|
videoGenerationCreditId,
|
|
28
32
|
pricedVideoSelection,
|
|
29
33
|
buildMotionCreditModelIdentifier,
|
|
34
|
+
motionTransferResolution,
|
|
35
|
+
type MotionTransferResolution,
|
|
30
36
|
speedRampCreditId,
|
|
31
37
|
applyEdlCreditId,
|
|
32
38
|
speakerViewCreditId,
|
|
@@ -49,6 +55,18 @@ export {
|
|
|
49
55
|
type TopazUpscaleAdjustment,
|
|
50
56
|
type TopazUpscaleResolution,
|
|
51
57
|
} from "../topaz-upscale.js"
|
|
58
|
+
export {
|
|
59
|
+
NODARO_IMAGE_UPSCALE_MODEL_ID,
|
|
60
|
+
NODARO_IMAGE_UPSCALE_FACTORS,
|
|
61
|
+
NODARO_IMAGE_UPSCALE_DEFAULT_FACTOR,
|
|
62
|
+
UPSCALE_FACTORS,
|
|
63
|
+
resolveNodaroImageUpscaleFactor,
|
|
64
|
+
resolveUpscaleFactor,
|
|
65
|
+
snappedUpscaleFactor,
|
|
66
|
+
upscaleFactorsFor,
|
|
67
|
+
type NodaroImageUpscaleFactor,
|
|
68
|
+
type UpscaleFactor,
|
|
69
|
+
} from "../upscale-factors.js"
|
|
52
70
|
export { calculateMonetizationMarkup, calculateMonetizedCost } from "../monetization.js"
|
|
53
71
|
export {
|
|
54
72
|
LIP_SYNC_DURATION_BUCKETS,
|
|
@@ -57,8 +75,15 @@ export {
|
|
|
57
75
|
getLipSyncMaxAudioSeconds,
|
|
58
76
|
isPerSecondLipSyncProvider,
|
|
59
77
|
buildLipSyncCreditId,
|
|
78
|
+
LIP_SYNC_AUDIO_RATES,
|
|
79
|
+
OMNIHUMAN_2_0_PER_SECOND_CREDIT_ID,
|
|
80
|
+
lipSyncAudioRateOf,
|
|
81
|
+
lipSyncBilledSeconds,
|
|
82
|
+
lipSyncEstimateSeconds,
|
|
83
|
+
lipSyncFifteenSecondCreditId,
|
|
84
|
+
LIP_SYNC_UNMEASURED_ESTIMATE_SECONDS,
|
|
60
85
|
} from "../lip-sync-pricing.js"
|
|
61
|
-
export type { LipSyncDurationBucket } from "../lip-sync-pricing.js"
|
|
86
|
+
export type { LipSyncDurationBucket, LipSyncAudioRate } from "../lip-sync-pricing.js"
|
|
62
87
|
export {
|
|
63
88
|
AI_AVATAR_MAX_DURATION_SEC,
|
|
64
89
|
AI_AVATAR_MAX_AUDIO_SEC,
|
package/src/entries/entities.ts
CHANGED
|
@@ -42,6 +42,20 @@ export {
|
|
|
42
42
|
parseCharacterMentionToken,
|
|
43
43
|
findCharacterMentionTokens,
|
|
44
44
|
} from "../character-mention-slug.js"
|
|
45
|
+
export {
|
|
46
|
+
CHARACTER_NODE_DEFAULT_LABEL,
|
|
47
|
+
CHARACTER_NODE_RETIRED_DEFAULT_LABELS,
|
|
48
|
+
UNNAMED_CHARACTER_NAME_PREFIX,
|
|
49
|
+
characterOwnName,
|
|
50
|
+
wiredCharacterNames,
|
|
51
|
+
wiredCharacterNamesOf,
|
|
52
|
+
wiredCharacterBySlug,
|
|
53
|
+
wiredCharacterKey,
|
|
54
|
+
aliasRetiredCharacterMentions,
|
|
55
|
+
RETIRED_CHARACTER_MENTION_SLUGS,
|
|
56
|
+
} from "../wired-character-names.js"
|
|
57
|
+
export { entityImageUrl } from "../entity-image-url.js"
|
|
58
|
+
export type { WiredCharacterSource, WiredCharacterName } from "../wired-character-names.js"
|
|
45
59
|
export type { CharacterMentionTokenInfo } from "../character-mention-slug.js"
|
|
46
60
|
export {
|
|
47
61
|
CHARACTER_VARIANT_ASSET_BUCKETS,
|
|
@@ -51,6 +51,12 @@ export {
|
|
|
51
51
|
supportsAdvancedMode,
|
|
52
52
|
llmServesDirect,
|
|
53
53
|
llmPriceKey,
|
|
54
|
+
LLM_PRICE_KEY_DIRECT,
|
|
55
|
+
LLM_PRICE_KEY_EFFORT,
|
|
56
|
+
parseLlmPriceKeyModel,
|
|
57
|
+
type LlmPriceKeyModel,
|
|
58
|
+
structuredWireMode,
|
|
59
|
+
llmSendsSchema,
|
|
54
60
|
LLM_FEATURE_DEFAULTS_FROM,
|
|
55
61
|
llmDefaultsFeature,
|
|
56
62
|
LLM_CREDIT_RUNGS,
|
|
@@ -30,13 +30,44 @@ export {
|
|
|
30
30
|
isGptImage26Tiered,
|
|
31
31
|
} from "../gpt-image-2-6.js"
|
|
32
32
|
export type { GptImage26GifBand, GptImage26PricedFormat, GptImage26SvgLevel, ImageFormatLevers } from "../gpt-image-2-6.js"
|
|
33
|
+
export {
|
|
34
|
+
MINIMAX_H3_IMAGE_DEFAULT_RESOLUTION,
|
|
35
|
+
MINIMAX_H3_IMAGE_I2I,
|
|
36
|
+
MINIMAX_H3_IMAGE_MAX_INPUT_IMAGES,
|
|
37
|
+
MINIMAX_H3_IMAGE_RESOLUTIONS,
|
|
38
|
+
MINIMAX_H3_IMAGE_T2I,
|
|
39
|
+
isMinimaxH3Image,
|
|
40
|
+
isMinimaxH3ImageI2i,
|
|
41
|
+
minimaxH3ImageCreditId,
|
|
42
|
+
} from "../minimax-h3-image.js"
|
|
43
|
+
export type { MinimaxH3ImageModel, MinimaxH3ImageResolution } from "../minimax-h3-image.js"
|
|
44
|
+
export {
|
|
45
|
+
SEEDREAM_5_5_DEFAULT_RESOLUTION,
|
|
46
|
+
SEEDREAM_5_5_I2I,
|
|
47
|
+
SEEDREAM_5_5_MAX_INPUT_IMAGES,
|
|
48
|
+
SEEDREAM_5_5_MIN_PROMPT_CHARS,
|
|
49
|
+
SEEDREAM_5_5_RESOLUTIONS,
|
|
50
|
+
SEEDREAM_5_5_T2I,
|
|
51
|
+
isSeedream55,
|
|
52
|
+
isSeedream55I2i,
|
|
53
|
+
seedream55Resolution,
|
|
54
|
+
} from "../seedream-5-5.js"
|
|
55
|
+
export type { Seedream55Model, Seedream55Resolution } from "../seedream-5-5.js"
|
|
56
|
+
// The models priced by the input images a run sends, and how a run's images are counted.
|
|
57
|
+
export {
|
|
58
|
+
isPricedPerInputImage,
|
|
59
|
+
isPricedPerInputImageEdit,
|
|
60
|
+
pricedEstimatedImages,
|
|
61
|
+
pricedSentImages,
|
|
62
|
+
} from "../input-image-pricing.js"
|
|
33
63
|
export type { Flux2Model } from "../flux2-pricing.js"
|
|
34
64
|
// Model catalog (single source of truth for MCP `list_models` and the
|
|
35
65
|
// frontend config-panel registries).
|
|
36
66
|
export {
|
|
37
67
|
MODEL_CATALOG,
|
|
38
68
|
MODEL_RECOMMENDATIONS,
|
|
39
|
-
// The companies behind the models (`maker` on every entry
|
|
69
|
+
// The companies behind the models (`maker` on every entry but one offered
|
|
70
|
+
// under the deployment's own label, `ownLabel`; the wire's `maker`).
|
|
40
71
|
MODEL_MAKERS,
|
|
41
72
|
isModelMakerId,
|
|
42
73
|
modelMakerOf,
|
|
@@ -83,12 +114,15 @@ export {
|
|
|
83
114
|
resolutionNearestSource,
|
|
84
115
|
maskedEditResolution,
|
|
85
116
|
isAutoAspectToken,
|
|
117
|
+
isVideoAutoAspectToken,
|
|
118
|
+
videoAutoAspectRunsAt,
|
|
86
119
|
resolutionsAtAspectRatio,
|
|
87
120
|
resolutionAtAspectRatio,
|
|
88
121
|
} from "../model-catalog.js"
|
|
89
122
|
export type {
|
|
90
123
|
NormalizedVideoRequest,
|
|
91
124
|
ModelCatalogEntry,
|
|
125
|
+
ModelCatalogEntryFields,
|
|
92
126
|
ModelKind,
|
|
93
127
|
ModelMaker,
|
|
94
128
|
ModelMakerId,
|
|
@@ -133,3 +167,12 @@ export {
|
|
|
133
167
|
export type { ImageModelRole } from "../image-model-roles.js"
|
|
134
168
|
export type { SafetyRetryPolicy } from "../safety-retry-policy.js"
|
|
135
169
|
export { VIDEO_DURATION_AUTO, isAutoVideoDuration } from "../video-duration-auto.js"
|
|
170
|
+
// Video Upscale's target resolution per provider, coerced from the catalog
|
|
171
|
+
// (`resolutions` / `defaultResolution`) on every lane.
|
|
172
|
+
export {
|
|
173
|
+
VIDEO_UPSCALE_RESOLUTIONS,
|
|
174
|
+
videoUpscaleModelOf,
|
|
175
|
+
videoUpscaleResolutionsFor,
|
|
176
|
+
normalizeVideoUpscaleResolution,
|
|
177
|
+
} from "../video-upscale-params.js"
|
|
178
|
+
export type { VideoUpscaleResolution, NormalizedVideoUpscaleResolution } from "../video-upscale-params.js"
|
package/src/entries/models.ts
CHANGED
|
@@ -9,6 +9,7 @@ export {
|
|
|
9
9
|
CREDIT_BASE_USD,
|
|
10
10
|
IMAGE_PROMPT_MAX,
|
|
11
11
|
IMAGE_ASPECT_RATIO_VALUES,
|
|
12
|
+
IMAGE_K_RESOLUTION_VALUES,
|
|
12
13
|
IMAGE_RESOLUTION_VALUES,
|
|
13
14
|
IMAGE_QUALITY_VALUES,
|
|
14
15
|
IMAGE_BACKGROUND_VALUES,
|
|
@@ -20,6 +21,8 @@ export {
|
|
|
20
21
|
IMAGE_EDIT_TARGET_RESOLUTION_VALUES,
|
|
21
22
|
MAX_IMAGE_PROMPT_CHARS_BY_PROVIDER,
|
|
22
23
|
getMaxImagePromptChars,
|
|
24
|
+
MIN_IMAGE_PROMPT_CHARS_BY_PROVIDER,
|
|
25
|
+
getMinImagePromptChars,
|
|
23
26
|
PROMPT_HARD_CEILING,
|
|
24
27
|
LLM_TEXT_INPUT_MAX,
|
|
25
28
|
LLM_STRUCTURED_SYSTEM_MAX,
|
|
@@ -60,6 +63,8 @@ export {
|
|
|
60
63
|
videoModelSupportsAudio,
|
|
61
64
|
videoModelCanSpeakDialogue,
|
|
62
65
|
applyVideoAudioToggle,
|
|
66
|
+
videoAudioIntent,
|
|
67
|
+
videoAudioPricedOn,
|
|
63
68
|
VIDEO_VARIABLE_PRICING,
|
|
64
69
|
VIDEO_DURATION_TIERS,
|
|
65
70
|
ASPECT_RATIO_DIMENSIONS,
|
|
@@ -79,9 +84,12 @@ export {
|
|
|
79
84
|
VIDEO_TO_VIDEO_NODE_PROVIDERS,
|
|
80
85
|
DEFAULT_VIDEO_TO_VIDEO_PROVIDER,
|
|
81
86
|
SEEDANCE_VIDEO_EDIT_SHAPE,
|
|
87
|
+
SEEDANCE_VIDEO_EDIT_TASK_TYPE,
|
|
82
88
|
FACE_SWAP_PROVIDERS,
|
|
83
89
|
VIDEO_UPSCALE_PROVIDERS,
|
|
84
90
|
EXTEND_VIDEO_PROVIDERS,
|
|
91
|
+
isSeedanceExtendProvider,
|
|
92
|
+
isTailExtendProvider,
|
|
85
93
|
LIP_SYNC_PROVIDERS,
|
|
86
94
|
REPLICATE_LIP_SYNC_PROVIDERS,
|
|
87
95
|
FAL_LIP_SYNC_PROVIDERS,
|
|
@@ -106,8 +114,12 @@ export {
|
|
|
106
114
|
TRANSCRIBE_PROVIDERS,
|
|
107
115
|
TRANSCRIBE_LANES,
|
|
108
116
|
TRANSCRIBE_PROVIDER_CAPABILITIES,
|
|
117
|
+
CAPTION_TRANSCRIBE_LANES,
|
|
118
|
+
TRANSCRIBE_TARGET_LANGUAGES,
|
|
109
119
|
transcribeProvidersWithWordTimestamps,
|
|
110
120
|
transcribeLaneSupportsWordTimestamps,
|
|
121
|
+
transcribeProvidersWithTranslation,
|
|
122
|
+
transcribeLaneSupportsTranslation,
|
|
111
123
|
DEFAULT_TRANSCRIBE_PROVIDER,
|
|
112
124
|
DEFAULT_TRANSCRIBE_NODE_PROVIDER,
|
|
113
125
|
SCRIPT_PROVIDERS,
|
|
@@ -145,6 +157,12 @@ export {
|
|
|
145
157
|
VIDEO_PROVIDERS_REQUIRING_IMAGE,
|
|
146
158
|
videoProviderRequiresImage,
|
|
147
159
|
videoProviderFoldsLoneEndFrame,
|
|
160
|
+
videoProviderTakesLoneEndFrame,
|
|
161
|
+
videoProviderRefsReplaceStartFrame,
|
|
162
|
+
VIDEO_START_FRAME_ONLY_CODE,
|
|
163
|
+
videoStartFrameOnlyResolution,
|
|
164
|
+
videoStartFrameOnlyMessage,
|
|
165
|
+
videoStartFrameOnlyProblem,
|
|
148
166
|
VIDEO_MODE_ALIASES,
|
|
149
167
|
RETIRED_VIDEO_PROVIDERS,
|
|
150
168
|
canonicalVideoProvider,
|
|
@@ -175,6 +193,21 @@ export {
|
|
|
175
193
|
normalizeKling4Resolution,
|
|
176
194
|
KLING_4_MAX_MIDDLE_FRAMES,
|
|
177
195
|
kling4KeyframeFrameCap,
|
|
196
|
+
KLING_4_FLASH_PROVIDER,
|
|
197
|
+
isKling4FlashProvider,
|
|
198
|
+
KLING_4_FLASH_RESOLUTION,
|
|
199
|
+
isKling4RunnerProvider,
|
|
200
|
+
GROK_VIDEO_15_PROVIDER,
|
|
201
|
+
isGrokVideo15Provider,
|
|
202
|
+
GROK_VIDEO_15_DEFAULT_RESOLUTION,
|
|
203
|
+
normalizeGrokVideo15Resolution,
|
|
204
|
+
GROK_VIDEO_15_MAX_MIDDLE_FRAMES,
|
|
205
|
+
grokVideo15MiddleFrameSlots,
|
|
206
|
+
PIXVERSE_V6_MAX_PROVIDER,
|
|
207
|
+
isPixverseV6MaxProvider,
|
|
208
|
+
PIXVERSE_V6_MAX_DEFAULT_QUALITY,
|
|
209
|
+
normalizePixverseV6MaxQuality,
|
|
210
|
+
videoKeyframesMiddleCap,
|
|
178
211
|
VIDEO_REF_RATE_PROVIDERS,
|
|
179
212
|
billsReferenceVideoSeconds,
|
|
180
213
|
GEMINI_OMNI_PROVIDERS,
|
|
@@ -221,9 +254,14 @@ export {
|
|
|
221
254
|
snapToNearestDuration,
|
|
222
255
|
videoDefaultDurationSec,
|
|
223
256
|
supportsAutoVideoDuration,
|
|
257
|
+
supportsReferenceTaskType,
|
|
258
|
+
listedSeedanceTaskType,
|
|
259
|
+
seedanceTaskTypeFitsMedia,
|
|
260
|
+
resolveSeedanceTaskType,
|
|
224
261
|
maxVideoDurationSec,
|
|
225
262
|
PRICING_DEFAULT_RESOLUTION,
|
|
226
263
|
} from "../model-constants.js"
|
|
264
|
+
export type { VideoStartFrameOnlyProblem } from "../model-constants.js"
|
|
227
265
|
export {
|
|
228
266
|
CAST_SWAP_POST_PROMPT_MAX,
|
|
229
267
|
TREND_PROMPT_LIMITS,
|
|
@@ -274,6 +312,8 @@ export type {
|
|
|
274
312
|
VideoToVideoNodeProvider,
|
|
275
313
|
VideoUpscaleProvider,
|
|
276
314
|
ExtendVideoProvider,
|
|
315
|
+
SeedanceExtendProvider,
|
|
316
|
+
TailExtendProvider,
|
|
277
317
|
FaceSwapProvider,
|
|
278
318
|
LipSyncProvider,
|
|
279
319
|
MotionTransferProviderType,
|
|
@@ -284,6 +324,8 @@ export type {
|
|
|
284
324
|
MusicProvider,
|
|
285
325
|
TranscribeProvider,
|
|
286
326
|
TranscribeLane,
|
|
327
|
+
CaptionTranscribeLane,
|
|
328
|
+
TranscribeTargetLanguage,
|
|
287
329
|
ScriptProvider,
|
|
288
330
|
AiWriterProvider,
|
|
289
331
|
QaCheckProvider,
|
|
@@ -299,6 +341,7 @@ export type {
|
|
|
299
341
|
ModelPromptingStyle,
|
|
300
342
|
VideoModelCapabilities,
|
|
301
343
|
VideoAudioMode,
|
|
344
|
+
VideoAudioRequest,
|
|
302
345
|
VideoAudioCapability,
|
|
303
346
|
GvpAnchorChoice,
|
|
304
347
|
GvpAnchorWireMode,
|
|
@@ -307,7 +350,13 @@ export type {
|
|
|
307
350
|
RefAudioProbe,
|
|
308
351
|
RefAudioCheck,
|
|
309
352
|
VideoReferenceSyntax,
|
|
353
|
+
SeedanceTaskTypeFacts,
|
|
354
|
+
SeedanceTaskTypeResolution,
|
|
355
|
+
SeedanceReferenceMediaCount,
|
|
310
356
|
} from "../model-constants.js"
|
|
357
|
+
// Seedance 2.5 reference task type: what a request's reference media is for.
|
|
358
|
+
export { SEEDANCE_REFERENCE_TASK_TYPES, SEEDANCE_EDIT_REF_VIDEO_SEC } from "../seedance-task-type.js"
|
|
359
|
+
export type { SeedanceReferenceTaskType, DeclaredSeedanceTaskType } from "../seedance-task-type.js"
|
|
311
360
|
export { GEMINI_OMNI_VOICE_PRESETS, GEMINI_OMNI_VOICE_PRESET_IDS } from "../gemini-omni-voices.js"
|
|
312
361
|
export type { GeminiOmniVoicePreset, GeminiOmniVoicePresetId } from "../gemini-omni-voices.js"
|
|
313
362
|
export {
|
|
@@ -387,6 +436,18 @@ export type {
|
|
|
387
436
|
TopazVideoTargetInput,
|
|
388
437
|
TopazVideoTarget,
|
|
389
438
|
} from "../topaz-video.js"
|
|
439
|
+
// --- Nodaro Video Upscale (tiers, limits) ---
|
|
440
|
+
export {
|
|
441
|
+
NODARO_VIDEO_UPSCALE_PROVIDER,
|
|
442
|
+
NODARO_VIDEO_UPSCALE_TIERS,
|
|
443
|
+
NODARO_VIDEO_UPSCALE_DEFAULT_TIER,
|
|
444
|
+
NODARO_VIDEO_UPSCALE_BOX,
|
|
445
|
+
NODARO_VIDEO_UPSCALE_MAX_SEC,
|
|
446
|
+
NODARO_VIDEO_UPSCALE_MAX_BYTES,
|
|
447
|
+
isNodaroVideoUpscaleTier,
|
|
448
|
+
isNodaroVideoUpscaleProvider,
|
|
449
|
+
} from "../nodaro-video-upscale.js"
|
|
450
|
+
export type { NodaroVideoUpscaleTier } from "../nodaro-video-upscale.js"
|
|
390
451
|
export {
|
|
391
452
|
AUDIO_SOUNDTRACK_MIN_SEC,
|
|
392
453
|
AUDIO_SOUNDTRACK_FPS,
|
|
@@ -394,3 +455,11 @@ export {
|
|
|
394
455
|
audioSoundtrackClipSec,
|
|
395
456
|
audioSoundtrackPrompt,
|
|
396
457
|
} from "../audio-soundtrack.js"
|
|
458
|
+
export {
|
|
459
|
+
LIP_SYNC_MODEL_LEVERS,
|
|
460
|
+
lipSyncLeversNotTaken,
|
|
461
|
+
lipSyncTakesLever,
|
|
462
|
+
lipSyncLeverClearPatch,
|
|
463
|
+
withoutLipSyncLeversNotTaken,
|
|
464
|
+
} from "../lip-sync-levers.js"
|
|
465
|
+
export type { LipSyncModelLever } from "../lip-sync-levers.js"
|
package/src/entries/nodes.ts
CHANGED
|
@@ -191,6 +191,8 @@ export {
|
|
|
191
191
|
export * from "../node-pass-through.js"
|
|
192
192
|
export {
|
|
193
193
|
transcribeWordTimestampsRefusal,
|
|
194
|
+
transcribeTranslationRefusal,
|
|
195
|
+
transcribeTargetLanguageOf,
|
|
194
196
|
findWordlessTranscriptFeeds,
|
|
195
197
|
} from "../transcribe-preflight.js"
|
|
196
198
|
export type { PreflightGraphNode, PreflightGraphEdge, WordlessTranscriptFeed } from "../transcribe-preflight.js"
|
|
@@ -206,6 +208,8 @@ export {
|
|
|
206
208
|
ownsItsList,
|
|
207
209
|
defaultEdgeOutputMode,
|
|
208
210
|
listResultsServeHandle,
|
|
211
|
+
LIST_OUTPUT_HANDLES,
|
|
212
|
+
isListOutputHandle,
|
|
209
213
|
FAN_IN_TARGETS,
|
|
210
214
|
isFanInNodeType,
|
|
211
215
|
isFanInEdge,
|