@nodaro/shared 3.62.0 → 3.64.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-C7POAYFE.js → chunk-36VWLB4J.js} +3 -3
- package/dist/{chunk-C7POAYFE.js.map → chunk-36VWLB4J.js.map} +1 -1
- package/dist/{chunk-S24ZBUB4.js → chunk-3AYM47GW.js} +6 -32
- package/dist/chunk-3AYM47GW.js.map +1 -0
- package/dist/{chunk-YCXRSWCQ.js → chunk-3KTWYYCN.js} +8 -5
- package/dist/chunk-3KTWYYCN.js.map +1 -0
- package/dist/{chunk-ZES6EZC4.js → chunk-4IUE2JB7.js} +3 -3
- package/dist/{chunk-ZES6EZC4.js.map → chunk-4IUE2JB7.js.map} +1 -1
- package/dist/{chunk-MYJQELFN.cjs → chunk-5OBTGNUQ.cjs} +547 -29
- package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
- package/dist/{chunk-TWF2OSH4.cjs → chunk-67CMMTLN.cjs} +4 -4
- package/dist/{chunk-TWF2OSH4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
- package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
- package/dist/chunk-6BRWPJPP.cjs.map +1 -0
- package/dist/{chunk-S5TMRJMX.js → chunk-6YIV37V7.js} +4 -4
- package/dist/{chunk-S5TMRJMX.js.map → chunk-6YIV37V7.js.map} +1 -1
- package/dist/{chunk-3M4BNKFJ.cjs → chunk-7AJGUI7L.cjs} +202 -16
- package/dist/chunk-7AJGUI7L.cjs.map +1 -0
- package/dist/{chunk-JZGZ26YB.js → chunk-7KQ6W5DS.js} +4 -4
- package/dist/{chunk-JZGZ26YB.js.map → chunk-7KQ6W5DS.js.map} +1 -1
- package/dist/{chunk-IWWVPR3W.cjs → chunk-ACZZHHFZ.cjs} +149 -34
- package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
- package/dist/{chunk-2W745U4A.cjs → chunk-AZNZ5WNZ.cjs} +42 -70
- package/dist/chunk-AZNZ5WNZ.cjs.map +1 -0
- package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
- package/dist/chunk-BQYCZLMF.js.map +1 -0
- package/dist/chunk-CHS2SIP6.cjs +504 -0
- package/dist/chunk-CHS2SIP6.cjs.map +1 -0
- package/dist/{chunk-CIPPPT7E.cjs → chunk-CHTZZRAL.cjs} +6 -6
- package/dist/{chunk-CIPPPT7E.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
- package/dist/{chunk-AOJ6B7K4.cjs → chunk-D4KWNDPH.cjs} +12 -12
- package/dist/chunk-D4KWNDPH.cjs.map +1 -0
- package/dist/{chunk-5YYN5X57.js → chunk-DZ4IOP3Q.js} +536 -30
- package/dist/chunk-DZ4IOP3Q.js.map +1 -0
- package/dist/{chunk-VACPZPUA.cjs → chunk-EXEVT6D2.cjs} +15 -5
- package/dist/chunk-EXEVT6D2.cjs.map +1 -0
- package/dist/{chunk-5M43XMRB.cjs → chunk-FHGRKQVZ.cjs} +8 -8
- package/dist/{chunk-5M43XMRB.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
- package/dist/{chunk-KJSRPHJ2.cjs → chunk-GTWUS6MQ.cjs} +165 -54
- package/dist/chunk-GTWUS6MQ.cjs.map +1 -0
- package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
- package/dist/chunk-H5KHWTAE.js.map +1 -0
- package/dist/{chunk-G3KVK7OU.cjs → chunk-HDPJNNMF.cjs} +21 -21
- package/dist/{chunk-G3KVK7OU.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
- package/dist/{chunk-3OYO3XCC.js → chunk-IYSOVS7O.js} +118 -24
- package/dist/chunk-IYSOVS7O.js.map +1 -0
- package/dist/{chunk-AFYTX4AI.cjs → chunk-J6B7J73J.cjs} +110 -50
- package/dist/chunk-J6B7J73J.cjs.map +1 -0
- package/dist/{chunk-I2RQB7VG.js → chunk-KB2SQAR3.js} +3 -3
- package/dist/{chunk-I2RQB7VG.js.map → chunk-KB2SQAR3.js.map} +1 -1
- package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
- package/dist/chunk-KSHAAPQF.cjs.map +1 -0
- package/dist/{chunk-6G7NN4S4.js → chunk-NIAFR5EE.js} +2 -2
- 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-IDTKF5EX.cjs → chunk-O4RPXBDZ.cjs} +12 -8
- package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
- 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-PTD6EDUU.js → chunk-OBOOHG3N.js} +13 -4
- package/dist/chunk-OBOOHG3N.js.map +1 -0
- package/dist/{chunk-2D5LQFV4.cjs → chunk-OOZW2MM6.cjs} +9 -9
- package/dist/{chunk-2D5LQFV4.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
- package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
- package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
- package/dist/{chunk-G4U3HW6W.js → chunk-PJJAZQVZ.js} +3 -3
- package/dist/{chunk-G4U3HW6W.js.map → chunk-PJJAZQVZ.js.map} +1 -1
- package/dist/{chunk-E2HZTGYX.js → chunk-Q2Y4JHF7.js} +7 -7
- package/dist/chunk-Q2Y4JHF7.js.map +1 -0
- package/dist/{chunk-FVII3KHN.js → chunk-QYU7J5EQ.js} +198 -17
- package/dist/chunk-QYU7J5EQ.js.map +1 -0
- package/dist/{chunk-JJNNM23P.js → chunk-S3UGLZSF.js} +3 -3
- package/dist/{chunk-JJNNM23P.js.map → chunk-S3UGLZSF.js.map} +1 -1
- package/dist/{chunk-CC4V2B7S.js → chunk-SHH2T4CR.js} +3 -3
- package/dist/{chunk-CC4V2B7S.js.map → chunk-SHH2T4CR.js.map} +1 -1
- package/dist/{chunk-4ZEFP2FQ.cjs → chunk-SPAHI7DY.cjs} +4 -4
- package/dist/{chunk-4ZEFP2FQ.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
- package/dist/{chunk-Y6X7UJSD.js → chunk-SXHHLZ22.js} +122 -15
- package/dist/chunk-SXHHLZ22.js.map +1 -0
- package/dist/{chunk-HRY7KGAE.cjs → chunk-T2OVDF2M.cjs} +6 -6
- package/dist/{chunk-HRY7KGAE.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
- package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
- package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
- package/dist/{chunk-NGKKNSK6.js → chunk-TPQJKS7D.js} +139 -16
- package/dist/chunk-TPQJKS7D.js.map +1 -0
- package/dist/{chunk-N7OUQK7E.cjs → chunk-TQW3R44P.cjs} +8 -8
- package/dist/{chunk-N7OUQK7E.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
- package/dist/{chunk-GSFB537T.js → chunk-TTGZ2L3O.js} +23 -4
- package/dist/chunk-TTGZ2L3O.js.map +1 -0
- package/dist/{chunk-SYWR5G3T.js → chunk-VPTA4Z7G.js} +54 -7
- package/dist/chunk-VPTA4Z7G.js.map +1 -0
- package/dist/{chunk-2HZGDZZN.cjs → chunk-VZ6TE23U.cjs} +6 -6
- package/dist/{chunk-2HZGDZZN.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
- package/dist/{chunk-TRVWMKNE.cjs → chunk-W6VJAUGM.cjs} +285 -64
- package/dist/chunk-W6VJAUGM.cjs.map +1 -0
- package/dist/{chunk-UDDVDQMF.js → chunk-W7KHHNZR.js} +235 -37
- package/dist/chunk-W7KHHNZR.js.map +1 -0
- package/dist/{chunk-KYMHFVAZ.cjs → chunk-Y4GCJJPF.cjs} +2 -2
- package/dist/chunk-Y4GCJJPF.cjs.map +1 -0
- package/dist/{chunk-6CSXMWL4.cjs → chunk-YQV53HRR.cjs} +27 -4
- package/dist/chunk-YQV53HRR.cjs.map +1 -0
- package/dist/{chunk-7FCTCWHD.js → chunk-ZI3QDUHO.js} +3 -3
- package/dist/{chunk-7FCTCWHD.js.map → chunk-ZI3QDUHO.js.map} +1 -1
- package/dist/entries/apps.cjs +43 -42
- package/dist/entries/apps.js +8 -7
- package/dist/entries/captions.cjs +38 -30
- package/dist/entries/captions.d.cts +47 -1
- package/dist/entries/captions.d.ts +47 -1
- package/dist/entries/captions.js +1 -1
- package/dist/entries/credits.cjs +354 -174
- package/dist/entries/credits.d.cts +378 -27
- package/dist/entries/credits.d.ts +378 -27
- package/dist/entries/credits.js +11 -11
- package/dist/entries/llm-models.cjs +77 -57
- package/dist/entries/llm-models.d.cts +108 -7
- package/dist/entries/llm-models.d.ts +108 -7
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +63 -63
- package/dist/entries/media.d.cts +8 -0
- package/dist/entries/media.d.ts +8 -0
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +161 -105
- package/dist/entries/model-catalog.d.cts +109 -22
- package/dist/entries/model-catalog.d.ts +109 -22
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +466 -322
- package/dist/entries/models.d.cts +71 -5
- package/dist/entries/models.d.ts +71 -5
- package/dist/entries/models.js +5 -5
- package/dist/entries/nodes.cjs +226 -209
- package/dist/entries/nodes.d.cts +66 -7
- package/dist/entries/nodes.d.ts +66 -7
- package/dist/entries/nodes.js +10 -9
- package/dist/entries/pipeline.cjs +156 -152
- package/dist/entries/pipeline.d.cts +14 -4
- package/dist/entries/pipeline.d.ts +14 -4
- 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 +154 -150
- package/dist/entries/video.d.cts +11 -2
- package/dist/entries/video.d.ts +11 -2
- package/dist/entries/video.js +6 -6
- package/dist/entries/workflow.cjs +150 -150
- package/dist/entries/workflow.d.cts +1 -1
- package/dist/entries/workflow.d.ts +1 -1
- package/dist/entries/workflow.js +2 -2
- package/dist/index.cjs +2136 -1704
- package/dist/index.d.cts +10 -10
- package/dist/index.d.ts +10 -10
- package/dist/index.js +27 -27
- package/dist/{model-catalog-CCEcv08q.d.ts → model-catalog-Cf9fkEUp.d.cts} +45 -2
- package/dist/{model-catalog-CCEcv08q.d.cts → model-catalog-Cf9fkEUp.d.ts} +45 -2
- package/dist/{model-constants-B88p6XR0.d.ts → model-constants-BxjiWVQ9.d.ts} +215 -32
- package/dist/{model-constants-Cf3zaITt.d.cts → model-constants-C_Nyft_i.d.cts} +215 -32
- package/package.json +1 -1
- package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
- package/src/__tests__/credit-identifiers.test.ts +29 -0
- package/src/__tests__/extend-providers.test.ts +359 -39
- package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
- package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
- package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
- package/src/__tests__/flux-3-klein.test.ts +203 -0
- package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
- package/src/__tests__/gvp-supported-providers.test.ts +27 -2
- 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 +139 -12
- package/src/__tests__/llm-price-key.test.ts +164 -1
- package/src/__tests__/model-makers.test.ts +3 -0
- package/src/__tests__/nemotron-transcribe-pricing.test.ts +61 -0
- package/src/__tests__/node-runtime-keys.test.ts +7 -0
- package/src/__tests__/normalize-node-params.test.ts +172 -1
- 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-lip-sync-providers.test.ts +43 -0
- package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
- package/src/__tests__/seedance-task-type.test.ts +13 -3
- package/src/__tests__/sequence-execution.test.ts +22 -1
- package/src/__tests__/suno-credit-type.test.ts +21 -2
- package/src/__tests__/transcribe-capabilities.test.ts +41 -2
- package/src/__tests__/transcribe-preflight.test.ts +50 -1
- package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
- package/src/__tests__/video-analysis-pricing.test.ts +10 -9
- package/src/__tests__/video-audio-capability.test.ts +35 -6
- package/src/__tests__/video-resolution-billed-as-named.test.ts +30 -0
- package/src/__tests__/video-upscale-params.test.ts +62 -0
- package/src/caption-styles.ts +62 -0
- package/src/catalog-projection.ts +8 -0
- package/src/credit-estimators/add-captions-nemotron.ts +73 -0
- package/src/credit-estimators/index.ts +20 -0
- package/src/credit-estimators/nemotron-transcribe.ts +87 -0
- package/src/credit-identifiers.ts +351 -41
- package/src/entries/captions.ts +2 -0
- package/src/entries/credits.ts +37 -2
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/model-catalog.ts +22 -0
- package/src/entries/models.ts +50 -0
- package/src/entries/nodes.ts +4 -0
- package/src/entries/pipeline.ts +1 -1
- package/src/entries/video.ts +1 -1
- package/src/flux-3-klein.ts +69 -0
- package/src/freecut-protocol.ts +8 -0
- package/src/input-image-pricing.ts +23 -6
- package/src/lip-sync-levers.ts +56 -0
- package/src/lip-sync-pricing.ts +91 -1
- package/src/llm-models.ts +305 -16
- package/src/model-catalog.ts +529 -28
- package/src/model-constants.ts +417 -41
- package/src/model-tree.ts +2 -1
- package/src/nodaro-video-upscale.ts +48 -0
- package/src/node-default-mappings.ts +6 -0
- package/src/node-runtime-keys.ts +3 -0
- package/src/normalize-node-params.ts +172 -3
- package/src/runtime-config/contract.ts +10 -7
- package/src/seedance-draft.ts +2 -1
- package/src/seedance-extend-rate.ts +116 -0
- package/src/sequence-execution.ts +24 -0
- package/src/transcribe-preflight.ts +81 -7
- package/src/video-analysis-pricing.ts +28 -15
- package/src/video-duration.ts +9 -0
- package/src/video-ui-defaults.ts +5 -3
- package/src/video-upscale-params.ts +67 -0
- package/dist/chunk-2W745U4A.cjs.map +0 -1
- package/dist/chunk-3M4BNKFJ.cjs.map +0 -1
- package/dist/chunk-3OYO3XCC.js.map +0 -1
- package/dist/chunk-5YYN5X57.js.map +0 -1
- package/dist/chunk-6CSXMWL4.cjs.map +0 -1
- package/dist/chunk-6G7NN4S4.js.map +0 -1
- package/dist/chunk-AFYTX4AI.cjs.map +0 -1
- package/dist/chunk-AOJ6B7K4.cjs.map +0 -1
- package/dist/chunk-BLJUCPMV.cjs.map +0 -1
- package/dist/chunk-E2HZTGYX.js.map +0 -1
- package/dist/chunk-FVII3KHN.js.map +0 -1
- package/dist/chunk-GSFB537T.js.map +0 -1
- package/dist/chunk-HSHCCBIV.js.map +0 -1
- package/dist/chunk-IDTKF5EX.cjs.map +0 -1
- package/dist/chunk-IWWVPR3W.cjs.map +0 -1
- package/dist/chunk-KJSRPHJ2.cjs.map +0 -1
- package/dist/chunk-KYMHFVAZ.cjs.map +0 -1
- package/dist/chunk-MYJQELFN.cjs.map +0 -1
- package/dist/chunk-NGKKNSK6.js.map +0 -1
- package/dist/chunk-PTD6EDUU.js.map +0 -1
- package/dist/chunk-Q6IES3U2.js.map +0 -1
- package/dist/chunk-QWYFHQYK.cjs +0 -357
- package/dist/chunk-QWYFHQYK.cjs.map +0 -1
- package/dist/chunk-S24ZBUB4.js.map +0 -1
- package/dist/chunk-SYWR5G3T.js.map +0 -1
- package/dist/chunk-TRVWMKNE.cjs.map +0 -1
- package/dist/chunk-UDDVDQMF.js.map +0 -1
- package/dist/chunk-VACPZPUA.cjs.map +0 -1
- package/dist/chunk-WRSWH7US.cjs.map +0 -1
- package/dist/chunk-Y6X7UJSD.js.map +0 -1
- package/dist/chunk-YCXRSWCQ.js.map +0 -1
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
export { G as GPT_IMAGE_2_6_DEFAULT_QUALITY, a as GPT_IMAGE_2_6_DEFAULT_RESOLUTION, b as GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL, c as GPT_IMAGE_2_6_GIF_BANDS, d as GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES, e as GPT_IMAGE_2_6_MAX_INPUT_IMAGES, f as GPT_IMAGE_2_6_METERED_QUALITY, g as GPT_IMAGE_2_6_QUALITIES, h as GPT_IMAGE_2_6_RESOLUTIONS, i as GPT_IMAGE_2_6_SVG_LEVELS, j as GPT_IMAGE_2_6_TIERED_I2I, k as GPT_IMAGE_2_6_TIERED_T2I, l as GptImage26GifBand, m as GptImage26PricedFormat, n as GptImage26SvgLevel, I as ImageFormatLevers, o as gptImage26EstimatedImages, p as gptImage26GifBand, q as gptImage26PricedFormat, r as gptImage26SentImages, s as imageFormatLeversOf, t as isGptImage26AutoRun, u as isGptImage26I2i, v as isGptImage26Tiered } from '../gpt-image-2-6-jIRQBRag.cjs';
|
|
2
|
-
import { y as TtsCapabilities, z as TtsSettingLever } from '../model-catalog-
|
|
3
|
-
export { I as IMAGE_GIF_FRAME_SIZE, a as IMAGE_OUTPUT_FORMAT_LABELS, b as IMAGE_SVG_LEVEL_LABELS, L as LabeledOption, M as MASKLESS_OUTPUT_FORMATS, c as MODEL_CATALOG, d as MODEL_INPUT_ADJUSTMENT_FIELDS, e as MODEL_KINDS, f as MODEL_MAKERS, g as MODEL_RECOMMENDATIONS, h as ModelCatalogEntry, i as ModelCatalogEntryFields,
|
|
2
|
+
import { y as TtsCapabilities, z as TtsSettingLever, j as ModelInputAdjustment } from '../model-catalog-Cf9fkEUp.cjs';
|
|
3
|
+
export { I as IMAGE_GIF_FRAME_SIZE, a as IMAGE_OUTPUT_FORMAT_LABELS, b as IMAGE_SVG_LEVEL_LABELS, L as LabeledOption, M as MASKLESS_OUTPUT_FORMATS, c as MODEL_CATALOG, d as MODEL_INPUT_ADJUSTMENT_FIELDS, e as MODEL_KINDS, f as MODEL_MAKERS, g as MODEL_RECOMMENDATIONS, h as ModelCatalogEntry, i as ModelCatalogEntryFields, k as ModelInputAdjustmentField, l as ModelInputContext, m as ModelKind, n as ModelMaker, o as ModelMakerId, p as ModelMenuOption, q as ModelMode, r as ModelRecommendation, s as ModelValidationIssue, N as NormalizedModelInput, t as NormalizedVideoRequest, P as PriceVariant, v as SPEECH_UNIT_PRICE_NOTE, x as SourceImageSize, T as TRANSPARENT_OUTPUT_FORMATS, V as ValidationField, A as aspectRatioOptionsByKind, B as autoAspectNeedsSourceImage, C as backgroundOptionsByKind, E as buildModelMenu, F as creditRangesAll, G as defaultResolutionFor, H as durationsByMode, J as fitAspectRatioToModel, K as getAspectRatioOptions, O as getCreditRange, Q as getDurationsForModel, R as getModel, U as getQualityOptions, W as getResolutionOptions, X as groupByFamily, Y as groupByKindAndFamily, Z as hasFeature, _ as isAutoAspectToken, $ as isModelMakerId, a0 as isVideoAutoAspectToken, a1 as listModels, a2 as maskEditMatchesSource, a3 as maskedEditResolution, a4 as modelIdsByKindMode, a5 as modelMakerOf, a6 as modelTakesSeed, a7 as modelsWithFeature, a8 as nearestCatalogAspectRatio, a9 as normalizeModelInput, aa as normalizeVideoRequestParams, ab as outputFormatOptionsByKind, ac as qualityOptionsByKind, ad as resolutionAtAspectRatio, ae as resolutionNearestSource, af as resolutionOptionsByKind, ag as resolutionsAtAspectRatio, ah as sourceImageSizeNeeded, ai as svgLevelOptionsByKind, aj as validateModelInput, ak as videoAutoAspectRunsAt } from '../model-catalog-Cf9fkEUp.cjs';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Seedance 2.5 Draft mode — the single source of truth for which models offer a
|
|
7
|
-
* draft, what a draft renders at, and how its 1080p finalize is priced.
|
|
8
|
-
*
|
|
9
|
-
* A DRAFT is an ordinary Seedance 2.5 run with the provider's draft flag set: it
|
|
10
|
-
* renders at 480p only and costs exactly what a normal 480p run of the same
|
|
11
|
-
* shape costs. The FINALIZE ("Seedance 2.5 HD (from draft)", a Video Upscale
|
|
12
|
-
* provider) re-renders that same take — same seed, prompt, references and
|
|
13
|
-
* timing — at 1080p, frame for frame, at the draft's own length. Nothing
|
|
14
|
-
* creative is re-sent: the finalize names the draft's provider task and nothing
|
|
15
|
-
* else.
|
|
16
|
-
*
|
|
17
|
-
* Every surface (generation routes, the workflow engine, MCP, the editor's
|
|
18
|
-
* toggle) gates on {@link isSeedanceDraftCapable}; never hand-list the model.
|
|
19
|
-
*/
|
|
20
5
|
/** Models that accept the draft flag. */
|
|
21
6
|
declare const SEEDANCE_DRAFT_MODELS: readonly ["seedance-2-5"];
|
|
22
7
|
type SeedanceDraftModel = typeof SEEDANCE_DRAFT_MODELS[number];
|
|
@@ -132,20 +117,77 @@ declare function isSeedream55(model: unknown): model is Seedream55Model;
|
|
|
132
117
|
*/
|
|
133
118
|
declare function seedream55Resolution(resolution: unknown): Seedream55Resolution;
|
|
134
119
|
|
|
120
|
+
/**
|
|
121
|
+
* FLUX 3 Klein: a text-to-image id and its edit sibling, priced by size alone
|
|
122
|
+
* (1K, 2K or 4K). An edit's reference images cost nothing extra, so the edit
|
|
123
|
+
* id has the same rows as the text-to-image id.
|
|
124
|
+
*
|
|
125
|
+
* Only the ids and levers live in this published package. The rates are
|
|
126
|
+
* `backend/src/ee/billing/flux-3-klein-pricing.ts`.
|
|
127
|
+
*
|
|
128
|
+
* A different model from FLUX 2 Klein (`flux-2-klein`, which runs elsewhere):
|
|
129
|
+
* neither id may join a set keyed on the FLUX 2 family (`isFlux2Model`).
|
|
130
|
+
*/
|
|
131
|
+
declare const FLUX_3_KLEIN_T2I = "flux-3-klein";
|
|
132
|
+
declare const FLUX_3_KLEIN_I2I = "flux-3-klein-i2i";
|
|
133
|
+
type Flux3KleinModel = typeof FLUX_3_KLEIN_T2I | typeof FLUX_3_KLEIN_I2I;
|
|
134
|
+
/** The sizes it renders, smallest first. */
|
|
135
|
+
declare const FLUX_3_KLEIN_RESOLUTIONS: readonly ["1K", "2K", "4K"];
|
|
136
|
+
type Flux3KleinResolution = (typeof FLUX_3_KLEIN_RESOLUTIONS)[number];
|
|
137
|
+
/**
|
|
138
|
+
* The size a run renders when it names none: the provider's own default, and
|
|
139
|
+
* the size an unset or unknown value is priced and sent at.
|
|
140
|
+
*/
|
|
141
|
+
declare const FLUX_3_KLEIN_DEFAULT_RESOLUTION: Flux3KleinResolution;
|
|
142
|
+
/** The most reference images one edit takes (`REF_IMAGE_MAX_LIMITS`). */
|
|
143
|
+
declare const FLUX_3_KLEIN_MAX_INPUT_IMAGES = 10;
|
|
144
|
+
declare function isFlux3Klein(model: unknown): model is Flux3KleinModel;
|
|
145
|
+
declare function isFlux3KleinI2i(model: unknown): model is typeof FLUX_3_KLEIN_I2I;
|
|
146
|
+
/**
|
|
147
|
+
* The size a FLUX 3 Klein run is priced and sent at: the one asked for when it
|
|
148
|
+
* is one of its sizes (any case), else the default. Unset is the default.
|
|
149
|
+
*/
|
|
150
|
+
declare function flux3KleinResolution(resolution: unknown): Flux3KleinResolution;
|
|
151
|
+
/**
|
|
152
|
+
* The price id of a FLUX 3 Klein run: `flux-3-klein:<size>`, or
|
|
153
|
+
* `flux-3-klein-i2i:<size>` for an edit. The bare ids are never built here.
|
|
154
|
+
*
|
|
155
|
+
* A size off its list (a stored node, the multi-model preview pricing one
|
|
156
|
+
* node's data against every model) or none is priced at the default, 1K, which
|
|
157
|
+
* is what the provider renders with none. A text-to-image id sent any image
|
|
158
|
+
* runs on the edit endpoint (the KIE provider swaps it), so it is priced on the
|
|
159
|
+
* edit id whenever `referenceImageCount` is above 0. Every caller passes the
|
|
160
|
+
* images the run sends (`priceReadsInputImages` in `input-image-pricing.ts`: a
|
|
161
|
+
* base image, references, wired images, an entity's source), so the id priced
|
|
162
|
+
* is the id run. Both ids cost the same at each size.
|
|
163
|
+
*/
|
|
164
|
+
declare function flux3KleinCreditId(provider: Flux3KleinModel, resolution: unknown, referenceImageCount: number | undefined): string;
|
|
165
|
+
|
|
135
166
|
/** True for a model whose price counts the input images a run sends. */
|
|
136
167
|
declare function isPricedPerInputImage(model: unknown): boolean;
|
|
137
168
|
/** True for the edit id of such a model: it always sends at least its source. */
|
|
138
169
|
declare function isPricedPerInputImageEdit(model: unknown): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* True for a model whose price id reads the input images a run sends: one
|
|
172
|
+
* priced per input image ({@link isPricedPerInputImage}), or FLUX 3 Klein, which
|
|
173
|
+
* runs on its edit id whenever an image goes (its text-to-image endpoint takes
|
|
174
|
+
* none) and is priced on that id, at the same price. Every place that prices a
|
|
175
|
+
* run counts the images through {@link pricedSentImages} and
|
|
176
|
+
* {@link pricedEstimatedImages} for such a model, so the id priced is the id
|
|
177
|
+
* the provider runs.
|
|
178
|
+
*/
|
|
179
|
+
declare function priceReadsInputImages(model: unknown): boolean;
|
|
139
180
|
/**
|
|
140
181
|
* The images a Generate Image run sends its provider: its references and, when
|
|
141
182
|
* it edits a base image, that image too (the worker puts it first, unless it is
|
|
142
|
-
* already one of the references).
|
|
143
|
-
*
|
|
183
|
+
* already one of the references). The base is counted only on a model whose
|
|
184
|
+
* price reads the images ({@link priceReadsInputImages}); any other model is
|
|
185
|
+
* priced, and held to its image limit, on its references alone, as before.
|
|
144
186
|
*/
|
|
145
187
|
declare function pricedSentImages(provider: string | undefined, references: readonly string[], baseImageUrl: unknown): number;
|
|
146
188
|
/**
|
|
147
|
-
* The input images a workflow estimate counts for one node on a model
|
|
148
|
-
*
|
|
189
|
+
* The input images a workflow estimate counts for one node on a model whose
|
|
190
|
+
* price reads them ({@link priceReadsInputImages}): every list on the node, its source or base image, what is
|
|
149
191
|
* wired in, a moodboard its direction names (at the most a moodboard holds),
|
|
150
192
|
* and an edit model's own source. An estimate may over-quote, never under.
|
|
151
193
|
*/
|
|
@@ -294,4 +336,49 @@ declare function defaultImageModelForNode(nodeType: string, aspectRatio?: string
|
|
|
294
336
|
declare const VIDEO_DURATION_AUTO = -1;
|
|
295
337
|
declare function isAutoVideoDuration(duration: unknown): boolean;
|
|
296
338
|
|
|
297
|
-
|
|
339
|
+
/**
|
|
340
|
+
* The Video Upscale node's target resolution, per provider, from the catalog.
|
|
341
|
+
*
|
|
342
|
+
* The node stores one `targetResolution` for every provider, and the providers
|
|
343
|
+
* take different sets: Topaz 720p / 1080p / 4K (a short side, its own list in
|
|
344
|
+
* `topaz-video.ts`), Nodaro Video Upscale 1080p / 2K / 4K (an output box), the
|
|
345
|
+
* VEO and Seedance HD upscales none. For a provider whose catalog entry
|
|
346
|
+
* declares its resolutions (`resolutions`, `defaultResolution`; today Nodaro
|
|
347
|
+
* Video Upscale), this is the one coercion every lane applies — a node written
|
|
348
|
+
* straight into workflow JSON, a request to the API and an MCP call never pass
|
|
349
|
+
* through the editor's menus: a value it does not take becomes its default. A
|
|
350
|
+
* provider whose entry declares none (Topaz included) is left alone: its run
|
|
351
|
+
* reads the field by its own rules.
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Every target resolution some Video Upscale provider takes — Nodaro Video
|
|
356
|
+
* Upscale's route schema and the MCP verb's enum. Which ones a provider takes:
|
|
357
|
+
* its catalog entry's `resolutions` where it declares them
|
|
358
|
+
* ({@link normalizeVideoUpscaleResolution}), else its own list (Topaz's).
|
|
359
|
+
*/
|
|
360
|
+
declare const VIDEO_UPSCALE_RESOLUTIONS: readonly ["720p", "1080p", "2k", "4k"];
|
|
361
|
+
type VideoUpscaleResolution = (typeof VIDEO_UPSCALE_RESOLUTIONS)[number];
|
|
362
|
+
/**
|
|
363
|
+
* Video Upscale's `provider` value as the catalog model it runs: its "topaz"
|
|
364
|
+
* is the catalog's `topaz-video`; every other value is its own id.
|
|
365
|
+
*/
|
|
366
|
+
declare function videoUpscaleModelOf(provider: string): string;
|
|
367
|
+
/** The resolutions a Video Upscale provider's catalog entry declares, in its order; empty when it declares none (Topaz keeps its own list). */
|
|
368
|
+
declare function videoUpscaleResolutionsFor(provider: string | undefined): readonly string[];
|
|
369
|
+
interface NormalizedVideoUpscaleResolution {
|
|
370
|
+
/** The value to store and send: the one asked for, its canonical spelling, or the provider's default. */
|
|
371
|
+
readonly targetResolution: string | undefined;
|
|
372
|
+
/** What changed, when anything did. */
|
|
373
|
+
readonly adjustment?: ModelInputAdjustment;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* `targetResolution` coerced to one `provider` takes. Unset stays unset (each
|
|
377
|
+
* run applies its own default). A value the provider does not list becomes the
|
|
378
|
+
* provider's `defaultResolution`, a spelling variant ("2K") its canonical form.
|
|
379
|
+
* A provider with no resolution setting gets the value back unchanged; a value
|
|
380
|
+
* that is not a string, or an empty one, reads as unset.
|
|
381
|
+
*/
|
|
382
|
+
declare function normalizeVideoUpscaleResolution(provider: string | undefined, targetResolution: unknown): NormalizedVideoUpscaleResolution;
|
|
383
|
+
|
|
384
|
+
export { FLUX2_RES_MP, FLUX_3_KLEIN_DEFAULT_RESOLUTION, FLUX_3_KLEIN_I2I, FLUX_3_KLEIN_MAX_INPUT_IMAGES, FLUX_3_KLEIN_RESOLUTIONS, FLUX_3_KLEIN_T2I, type Flux2Model, type Flux3KleinModel, type Flux3KleinResolution, IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, type ImageModelRole, MINIMAX_H3_IMAGE_DEFAULT_RESOLUTION, MINIMAX_H3_IMAGE_I2I, MINIMAX_H3_IMAGE_MAX_INPUT_IMAGES, MINIMAX_H3_IMAGE_RESOLUTIONS, MINIMAX_H3_IMAGE_T2I, type MinimaxH3ImageModel, type MinimaxH3ImageResolution, ModelInputAdjustment, type NormalizedVideoUpscaleResolution, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SEEDREAM_5_5_DEFAULT_RESOLUTION, SEEDREAM_5_5_I2I, SEEDREAM_5_5_MAX_INPUT_IMAGES, SEEDREAM_5_5_MIN_PROMPT_CHARS, SEEDREAM_5_5_RESOLUTIONS, SEEDREAM_5_5_T2I, type SafetyRetryPolicy, type SeedanceDraftModel, type Seedream55Model, type Seedream55Resolution, TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, TtsCapabilities, TtsSettingLever, VIDEO_DURATION_AUTO, VIDEO_UPSCALE_RESOLUTIONS, type VideoUpscaleResolution, canonicalTtsProvider, defaultImageModel, defaultImageModelForNode, flux3KleinCreditId, flux3KleinResolution, getTtsCapabilities, imageModelDrawsRatio, isAutoVideoDuration, isFlux2Model, isFlux3Klein, isFlux3KleinI2i, isMinimaxH3Image, isMinimaxH3ImageI2i, isPricedPerInputImage, isPricedPerInputImageEdit, isSeedanceDraftCapable, isSeedream55, isSeedream55I2i, minimaxH3ImageCreditId, normalizeVideoUpscaleResolution, priceReadsInputImages, pricedEstimatedImages, pricedSentImages, safetyRetryPolicy, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, seedream55Resolution, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps, videoUpscaleModelOf, videoUpscaleResolutionsFor };
|
|
@@ -1,22 +1,7 @@
|
|
|
1
1
|
export { G as GPT_IMAGE_2_6_DEFAULT_QUALITY, a as GPT_IMAGE_2_6_DEFAULT_RESOLUTION, b as GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL, c as GPT_IMAGE_2_6_GIF_BANDS, d as GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES, e as GPT_IMAGE_2_6_MAX_INPUT_IMAGES, f as GPT_IMAGE_2_6_METERED_QUALITY, g as GPT_IMAGE_2_6_QUALITIES, h as GPT_IMAGE_2_6_RESOLUTIONS, i as GPT_IMAGE_2_6_SVG_LEVELS, j as GPT_IMAGE_2_6_TIERED_I2I, k as GPT_IMAGE_2_6_TIERED_T2I, l as GptImage26GifBand, m as GptImage26PricedFormat, n as GptImage26SvgLevel, I as ImageFormatLevers, o as gptImage26EstimatedImages, p as gptImage26GifBand, q as gptImage26PricedFormat, r as gptImage26SentImages, s as imageFormatLeversOf, t as isGptImage26AutoRun, u as isGptImage26I2i, v as isGptImage26Tiered } from '../gpt-image-2-6-jIRQBRag.js';
|
|
2
|
-
import { y as TtsCapabilities, z as TtsSettingLever } from '../model-catalog-
|
|
3
|
-
export { I as IMAGE_GIF_FRAME_SIZE, a as IMAGE_OUTPUT_FORMAT_LABELS, b as IMAGE_SVG_LEVEL_LABELS, L as LabeledOption, M as MASKLESS_OUTPUT_FORMATS, c as MODEL_CATALOG, d as MODEL_INPUT_ADJUSTMENT_FIELDS, e as MODEL_KINDS, f as MODEL_MAKERS, g as MODEL_RECOMMENDATIONS, h as ModelCatalogEntry, i as ModelCatalogEntryFields,
|
|
2
|
+
import { y as TtsCapabilities, z as TtsSettingLever, j as ModelInputAdjustment } from '../model-catalog-Cf9fkEUp.js';
|
|
3
|
+
export { I as IMAGE_GIF_FRAME_SIZE, a as IMAGE_OUTPUT_FORMAT_LABELS, b as IMAGE_SVG_LEVEL_LABELS, L as LabeledOption, M as MASKLESS_OUTPUT_FORMATS, c as MODEL_CATALOG, d as MODEL_INPUT_ADJUSTMENT_FIELDS, e as MODEL_KINDS, f as MODEL_MAKERS, g as MODEL_RECOMMENDATIONS, h as ModelCatalogEntry, i as ModelCatalogEntryFields, k as ModelInputAdjustmentField, l as ModelInputContext, m as ModelKind, n as ModelMaker, o as ModelMakerId, p as ModelMenuOption, q as ModelMode, r as ModelRecommendation, s as ModelValidationIssue, N as NormalizedModelInput, t as NormalizedVideoRequest, P as PriceVariant, v as SPEECH_UNIT_PRICE_NOTE, x as SourceImageSize, T as TRANSPARENT_OUTPUT_FORMATS, V as ValidationField, A as aspectRatioOptionsByKind, B as autoAspectNeedsSourceImage, C as backgroundOptionsByKind, E as buildModelMenu, F as creditRangesAll, G as defaultResolutionFor, H as durationsByMode, J as fitAspectRatioToModel, K as getAspectRatioOptions, O as getCreditRange, Q as getDurationsForModel, R as getModel, U as getQualityOptions, W as getResolutionOptions, X as groupByFamily, Y as groupByKindAndFamily, Z as hasFeature, _ as isAutoAspectToken, $ as isModelMakerId, a0 as isVideoAutoAspectToken, a1 as listModels, a2 as maskEditMatchesSource, a3 as maskedEditResolution, a4 as modelIdsByKindMode, a5 as modelMakerOf, a6 as modelTakesSeed, a7 as modelsWithFeature, a8 as nearestCatalogAspectRatio, a9 as normalizeModelInput, aa as normalizeVideoRequestParams, ab as outputFormatOptionsByKind, ac as qualityOptionsByKind, ad as resolutionAtAspectRatio, ae as resolutionNearestSource, af as resolutionOptionsByKind, ag as resolutionsAtAspectRatio, ah as sourceImageSizeNeeded, ai as svgLevelOptionsByKind, aj as validateModelInput, ak as videoAutoAspectRunsAt } from '../model-catalog-Cf9fkEUp.js';
|
|
4
4
|
|
|
5
|
-
/**
|
|
6
|
-
* Seedance 2.5 Draft mode — the single source of truth for which models offer a
|
|
7
|
-
* draft, what a draft renders at, and how its 1080p finalize is priced.
|
|
8
|
-
*
|
|
9
|
-
* A DRAFT is an ordinary Seedance 2.5 run with the provider's draft flag set: it
|
|
10
|
-
* renders at 480p only and costs exactly what a normal 480p run of the same
|
|
11
|
-
* shape costs. The FINALIZE ("Seedance 2.5 HD (from draft)", a Video Upscale
|
|
12
|
-
* provider) re-renders that same take — same seed, prompt, references and
|
|
13
|
-
* timing — at 1080p, frame for frame, at the draft's own length. Nothing
|
|
14
|
-
* creative is re-sent: the finalize names the draft's provider task and nothing
|
|
15
|
-
* else.
|
|
16
|
-
*
|
|
17
|
-
* Every surface (generation routes, the workflow engine, MCP, the editor's
|
|
18
|
-
* toggle) gates on {@link isSeedanceDraftCapable}; never hand-list the model.
|
|
19
|
-
*/
|
|
20
5
|
/** Models that accept the draft flag. */
|
|
21
6
|
declare const SEEDANCE_DRAFT_MODELS: readonly ["seedance-2-5"];
|
|
22
7
|
type SeedanceDraftModel = typeof SEEDANCE_DRAFT_MODELS[number];
|
|
@@ -132,20 +117,77 @@ declare function isSeedream55(model: unknown): model is Seedream55Model;
|
|
|
132
117
|
*/
|
|
133
118
|
declare function seedream55Resolution(resolution: unknown): Seedream55Resolution;
|
|
134
119
|
|
|
120
|
+
/**
|
|
121
|
+
* FLUX 3 Klein: a text-to-image id and its edit sibling, priced by size alone
|
|
122
|
+
* (1K, 2K or 4K). An edit's reference images cost nothing extra, so the edit
|
|
123
|
+
* id has the same rows as the text-to-image id.
|
|
124
|
+
*
|
|
125
|
+
* Only the ids and levers live in this published package. The rates are
|
|
126
|
+
* `backend/src/ee/billing/flux-3-klein-pricing.ts`.
|
|
127
|
+
*
|
|
128
|
+
* A different model from FLUX 2 Klein (`flux-2-klein`, which runs elsewhere):
|
|
129
|
+
* neither id may join a set keyed on the FLUX 2 family (`isFlux2Model`).
|
|
130
|
+
*/
|
|
131
|
+
declare const FLUX_3_KLEIN_T2I = "flux-3-klein";
|
|
132
|
+
declare const FLUX_3_KLEIN_I2I = "flux-3-klein-i2i";
|
|
133
|
+
type Flux3KleinModel = typeof FLUX_3_KLEIN_T2I | typeof FLUX_3_KLEIN_I2I;
|
|
134
|
+
/** The sizes it renders, smallest first. */
|
|
135
|
+
declare const FLUX_3_KLEIN_RESOLUTIONS: readonly ["1K", "2K", "4K"];
|
|
136
|
+
type Flux3KleinResolution = (typeof FLUX_3_KLEIN_RESOLUTIONS)[number];
|
|
137
|
+
/**
|
|
138
|
+
* The size a run renders when it names none: the provider's own default, and
|
|
139
|
+
* the size an unset or unknown value is priced and sent at.
|
|
140
|
+
*/
|
|
141
|
+
declare const FLUX_3_KLEIN_DEFAULT_RESOLUTION: Flux3KleinResolution;
|
|
142
|
+
/** The most reference images one edit takes (`REF_IMAGE_MAX_LIMITS`). */
|
|
143
|
+
declare const FLUX_3_KLEIN_MAX_INPUT_IMAGES = 10;
|
|
144
|
+
declare function isFlux3Klein(model: unknown): model is Flux3KleinModel;
|
|
145
|
+
declare function isFlux3KleinI2i(model: unknown): model is typeof FLUX_3_KLEIN_I2I;
|
|
146
|
+
/**
|
|
147
|
+
* The size a FLUX 3 Klein run is priced and sent at: the one asked for when it
|
|
148
|
+
* is one of its sizes (any case), else the default. Unset is the default.
|
|
149
|
+
*/
|
|
150
|
+
declare function flux3KleinResolution(resolution: unknown): Flux3KleinResolution;
|
|
151
|
+
/**
|
|
152
|
+
* The price id of a FLUX 3 Klein run: `flux-3-klein:<size>`, or
|
|
153
|
+
* `flux-3-klein-i2i:<size>` for an edit. The bare ids are never built here.
|
|
154
|
+
*
|
|
155
|
+
* A size off its list (a stored node, the multi-model preview pricing one
|
|
156
|
+
* node's data against every model) or none is priced at the default, 1K, which
|
|
157
|
+
* is what the provider renders with none. A text-to-image id sent any image
|
|
158
|
+
* runs on the edit endpoint (the KIE provider swaps it), so it is priced on the
|
|
159
|
+
* edit id whenever `referenceImageCount` is above 0. Every caller passes the
|
|
160
|
+
* images the run sends (`priceReadsInputImages` in `input-image-pricing.ts`: a
|
|
161
|
+
* base image, references, wired images, an entity's source), so the id priced
|
|
162
|
+
* is the id run. Both ids cost the same at each size.
|
|
163
|
+
*/
|
|
164
|
+
declare function flux3KleinCreditId(provider: Flux3KleinModel, resolution: unknown, referenceImageCount: number | undefined): string;
|
|
165
|
+
|
|
135
166
|
/** True for a model whose price counts the input images a run sends. */
|
|
136
167
|
declare function isPricedPerInputImage(model: unknown): boolean;
|
|
137
168
|
/** True for the edit id of such a model: it always sends at least its source. */
|
|
138
169
|
declare function isPricedPerInputImageEdit(model: unknown): boolean;
|
|
170
|
+
/**
|
|
171
|
+
* True for a model whose price id reads the input images a run sends: one
|
|
172
|
+
* priced per input image ({@link isPricedPerInputImage}), or FLUX 3 Klein, which
|
|
173
|
+
* runs on its edit id whenever an image goes (its text-to-image endpoint takes
|
|
174
|
+
* none) and is priced on that id, at the same price. Every place that prices a
|
|
175
|
+
* run counts the images through {@link pricedSentImages} and
|
|
176
|
+
* {@link pricedEstimatedImages} for such a model, so the id priced is the id
|
|
177
|
+
* the provider runs.
|
|
178
|
+
*/
|
|
179
|
+
declare function priceReadsInputImages(model: unknown): boolean;
|
|
139
180
|
/**
|
|
140
181
|
* The images a Generate Image run sends its provider: its references and, when
|
|
141
182
|
* it edits a base image, that image too (the worker puts it first, unless it is
|
|
142
|
-
* already one of the references).
|
|
143
|
-
*
|
|
183
|
+
* already one of the references). The base is counted only on a model whose
|
|
184
|
+
* price reads the images ({@link priceReadsInputImages}); any other model is
|
|
185
|
+
* priced, and held to its image limit, on its references alone, as before.
|
|
144
186
|
*/
|
|
145
187
|
declare function pricedSentImages(provider: string | undefined, references: readonly string[], baseImageUrl: unknown): number;
|
|
146
188
|
/**
|
|
147
|
-
* The input images a workflow estimate counts for one node on a model
|
|
148
|
-
*
|
|
189
|
+
* The input images a workflow estimate counts for one node on a model whose
|
|
190
|
+
* price reads them ({@link priceReadsInputImages}): every list on the node, its source or base image, what is
|
|
149
191
|
* wired in, a moodboard its direction names (at the most a moodboard holds),
|
|
150
192
|
* and an edit model's own source. An estimate may over-quote, never under.
|
|
151
193
|
*/
|
|
@@ -294,4 +336,49 @@ declare function defaultImageModelForNode(nodeType: string, aspectRatio?: string
|
|
|
294
336
|
declare const VIDEO_DURATION_AUTO = -1;
|
|
295
337
|
declare function isAutoVideoDuration(duration: unknown): boolean;
|
|
296
338
|
|
|
297
|
-
|
|
339
|
+
/**
|
|
340
|
+
* The Video Upscale node's target resolution, per provider, from the catalog.
|
|
341
|
+
*
|
|
342
|
+
* The node stores one `targetResolution` for every provider, and the providers
|
|
343
|
+
* take different sets: Topaz 720p / 1080p / 4K (a short side, its own list in
|
|
344
|
+
* `topaz-video.ts`), Nodaro Video Upscale 1080p / 2K / 4K (an output box), the
|
|
345
|
+
* VEO and Seedance HD upscales none. For a provider whose catalog entry
|
|
346
|
+
* declares its resolutions (`resolutions`, `defaultResolution`; today Nodaro
|
|
347
|
+
* Video Upscale), this is the one coercion every lane applies — a node written
|
|
348
|
+
* straight into workflow JSON, a request to the API and an MCP call never pass
|
|
349
|
+
* through the editor's menus: a value it does not take becomes its default. A
|
|
350
|
+
* provider whose entry declares none (Topaz included) is left alone: its run
|
|
351
|
+
* reads the field by its own rules.
|
|
352
|
+
*/
|
|
353
|
+
|
|
354
|
+
/**
|
|
355
|
+
* Every target resolution some Video Upscale provider takes — Nodaro Video
|
|
356
|
+
* Upscale's route schema and the MCP verb's enum. Which ones a provider takes:
|
|
357
|
+
* its catalog entry's `resolutions` where it declares them
|
|
358
|
+
* ({@link normalizeVideoUpscaleResolution}), else its own list (Topaz's).
|
|
359
|
+
*/
|
|
360
|
+
declare const VIDEO_UPSCALE_RESOLUTIONS: readonly ["720p", "1080p", "2k", "4k"];
|
|
361
|
+
type VideoUpscaleResolution = (typeof VIDEO_UPSCALE_RESOLUTIONS)[number];
|
|
362
|
+
/**
|
|
363
|
+
* Video Upscale's `provider` value as the catalog model it runs: its "topaz"
|
|
364
|
+
* is the catalog's `topaz-video`; every other value is its own id.
|
|
365
|
+
*/
|
|
366
|
+
declare function videoUpscaleModelOf(provider: string): string;
|
|
367
|
+
/** The resolutions a Video Upscale provider's catalog entry declares, in its order; empty when it declares none (Topaz keeps its own list). */
|
|
368
|
+
declare function videoUpscaleResolutionsFor(provider: string | undefined): readonly string[];
|
|
369
|
+
interface NormalizedVideoUpscaleResolution {
|
|
370
|
+
/** The value to store and send: the one asked for, its canonical spelling, or the provider's default. */
|
|
371
|
+
readonly targetResolution: string | undefined;
|
|
372
|
+
/** What changed, when anything did. */
|
|
373
|
+
readonly adjustment?: ModelInputAdjustment;
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* `targetResolution` coerced to one `provider` takes. Unset stays unset (each
|
|
377
|
+
* run applies its own default). A value the provider does not list becomes the
|
|
378
|
+
* provider's `defaultResolution`, a spelling variant ("2K") its canonical form.
|
|
379
|
+
* A provider with no resolution setting gets the value back unchanged; a value
|
|
380
|
+
* that is not a string, or an empty one, reads as unset.
|
|
381
|
+
*/
|
|
382
|
+
declare function normalizeVideoUpscaleResolution(provider: string | undefined, targetResolution: unknown): NormalizedVideoUpscaleResolution;
|
|
383
|
+
|
|
384
|
+
export { FLUX2_RES_MP, FLUX_3_KLEIN_DEFAULT_RESOLUTION, FLUX_3_KLEIN_I2I, FLUX_3_KLEIN_MAX_INPUT_IMAGES, FLUX_3_KLEIN_RESOLUTIONS, FLUX_3_KLEIN_T2I, type Flux2Model, type Flux3KleinModel, type Flux3KleinResolution, IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, type ImageModelRole, MINIMAX_H3_IMAGE_DEFAULT_RESOLUTION, MINIMAX_H3_IMAGE_I2I, MINIMAX_H3_IMAGE_MAX_INPUT_IMAGES, MINIMAX_H3_IMAGE_RESOLUTIONS, MINIMAX_H3_IMAGE_T2I, type MinimaxH3ImageModel, type MinimaxH3ImageResolution, ModelInputAdjustment, type NormalizedVideoUpscaleResolution, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SEEDREAM_5_5_DEFAULT_RESOLUTION, SEEDREAM_5_5_I2I, SEEDREAM_5_5_MAX_INPUT_IMAGES, SEEDREAM_5_5_MIN_PROMPT_CHARS, SEEDREAM_5_5_RESOLUTIONS, SEEDREAM_5_5_T2I, type SafetyRetryPolicy, type SeedanceDraftModel, type Seedream55Model, type Seedream55Resolution, TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, TtsCapabilities, TtsSettingLever, VIDEO_DURATION_AUTO, VIDEO_UPSCALE_RESOLUTIONS, type VideoUpscaleResolution, canonicalTtsProvider, defaultImageModel, defaultImageModelForNode, flux3KleinCreditId, flux3KleinResolution, getTtsCapabilities, imageModelDrawsRatio, isAutoVideoDuration, isFlux2Model, isFlux3Klein, isFlux3KleinI2i, isMinimaxH3Image, isMinimaxH3ImageI2i, isPricedPerInputImage, isPricedPerInputImageEdit, isSeedanceDraftCapable, isSeedream55, isSeedream55I2i, minimaxH3ImageCreditId, normalizeVideoUpscaleResolution, priceReadsInputImages, pricedEstimatedImages, pricedSentImages, safetyRetryPolicy, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, seedream55Resolution, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps, videoUpscaleModelOf, videoUpscaleResolutionsFor };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { isPricedPerInputImage, isPricedPerInputImageEdit, pricedEstimatedImages, pricedSentImages, safetyRetryPolicy } from '../chunk-
|
|
2
|
-
export { IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, defaultImageModel, defaultImageModelForNode, imageModelDrawsRatio } from '../chunk-
|
|
3
|
-
export { TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, canonicalTtsProvider, getTtsCapabilities, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps } from '../chunk-
|
|
1
|
+
export { isPricedPerInputImage, isPricedPerInputImageEdit, priceReadsInputImages, pricedEstimatedImages, pricedSentImages, safetyRetryPolicy } from '../chunk-3KTWYYCN.js';
|
|
2
|
+
export { IMAGE_MODEL_RATIO_FALLBACKS, IMAGE_MODEL_ROLE_DEFAULTS, VIDEO_UPSCALE_RESOLUTIONS, defaultImageModel, defaultImageModelForNode, imageModelDrawsRatio, normalizeVideoUpscaleResolution, videoUpscaleModelOf, videoUpscaleResolutionsFor } from '../chunk-TTGZ2L3O.js';
|
|
3
|
+
export { TTS_FALLBACK_PROVIDER, TTS_PROVIDER_ALIASES, canonicalTtsProvider, getTtsCapabilities, ttsHasLever, ttsLanguageCodes, ttsSupportsAudioTags, ttsSupportsSsmlBreaks, ttsSupportsStitching, ttsSupportsTimestamps } from '../chunk-S3UGLZSF.js';
|
|
4
4
|
export { GPT_IMAGE_2_6_DEFAULT_QUALITY, GPT_IMAGE_2_6_DEFAULT_RESOLUTION, GPT_IMAGE_2_6_DEFAULT_SVG_LEVEL, GPT_IMAGE_2_6_GIF_BANDS, GPT_IMAGE_2_6_GIF_DEFAULT_FRAMES, GPT_IMAGE_2_6_MAX_INPUT_IMAGES, GPT_IMAGE_2_6_METERED_QUALITY, GPT_IMAGE_2_6_QUALITIES, GPT_IMAGE_2_6_RESOLUTIONS, GPT_IMAGE_2_6_SVG_LEVELS, GPT_IMAGE_2_6_TIERED_I2I, GPT_IMAGE_2_6_TIERED_T2I, gptImage26EstimatedImages, gptImage26GifBand, gptImage26PricedFormat, gptImage26SentImages, imageFormatLeversOf, isGptImage26AutoRun, isGptImage26I2i, isGptImage26Tiered } from '../chunk-RGNHHIMN.js';
|
|
5
|
-
export { FLUX2_RES_MP, IMAGE_GIF_FRAME_SIZE, IMAGE_OUTPUT_FORMAT_LABELS, IMAGE_SVG_LEVEL_LABELS, MASKLESS_OUTPUT_FORMATS, MINIMAX_H3_IMAGE_DEFAULT_RESOLUTION, MINIMAX_H3_IMAGE_I2I, MINIMAX_H3_IMAGE_MAX_INPUT_IMAGES, MINIMAX_H3_IMAGE_RESOLUTIONS, MINIMAX_H3_IMAGE_T2I, MODEL_CATALOG, MODEL_INPUT_ADJUSTMENT_FIELDS, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SEEDREAM_5_5_DEFAULT_RESOLUTION, SEEDREAM_5_5_I2I, SEEDREAM_5_5_MAX_INPUT_IMAGES, SEEDREAM_5_5_MIN_PROMPT_CHARS, SEEDREAM_5_5_RESOLUTIONS, SEEDREAM_5_5_T2I, SPEECH_UNIT_PRICE_NOTE, TRANSPARENT_OUTPUT_FORMATS, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, backgroundOptionsByKind, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isMinimaxH3Image, isMinimaxH3ImageI2i, isModelMakerId, isSeedanceDraftCapable, isSeedream55, isSeedream55I2i, isVideoAutoAspectToken, listModels, maskEditMatchesSource, maskedEditResolution, minimaxH3ImageCreditId, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, outputFormatOptionsByKind, qualityOptionsByKind, resolutionAtAspectRatio, resolutionNearestSource, resolutionOptionsByKind, resolutionsAtAspectRatio, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, seedream55Resolution, sourceImageSizeNeeded, svgLevelOptionsByKind, validateModelInput, videoAutoAspectRunsAt } from '../chunk-
|
|
5
|
+
export { FLUX2_RES_MP, FLUX_3_KLEIN_DEFAULT_RESOLUTION, FLUX_3_KLEIN_I2I, FLUX_3_KLEIN_MAX_INPUT_IMAGES, FLUX_3_KLEIN_RESOLUTIONS, FLUX_3_KLEIN_T2I, IMAGE_GIF_FRAME_SIZE, IMAGE_OUTPUT_FORMAT_LABELS, IMAGE_SVG_LEVEL_LABELS, MASKLESS_OUTPUT_FORMATS, MINIMAX_H3_IMAGE_DEFAULT_RESOLUTION, MINIMAX_H3_IMAGE_I2I, MINIMAX_H3_IMAGE_MAX_INPUT_IMAGES, MINIMAX_H3_IMAGE_RESOLUTIONS, MINIMAX_H3_IMAGE_T2I, MODEL_CATALOG, MODEL_INPUT_ADJUSTMENT_FIELDS, MODEL_KINDS, MODEL_MAKERS, MODEL_RECOMMENDATIONS, SEEDANCE_DRAFT_FINALIZE_MAX_SEC, SEEDANCE_DRAFT_FINALIZE_MIN_SEC, SEEDANCE_DRAFT_FINALIZE_PROVIDER, SEEDANCE_DRAFT_FINALIZE_RESOLUTION, SEEDANCE_DRAFT_MODELS, SEEDANCE_DRAFT_RESOLUTION, SEEDREAM_5_5_DEFAULT_RESOLUTION, SEEDREAM_5_5_I2I, SEEDREAM_5_5_MAX_INPUT_IMAGES, SEEDREAM_5_5_MIN_PROMPT_CHARS, SEEDREAM_5_5_RESOLUTIONS, SEEDREAM_5_5_T2I, SPEECH_UNIT_PRICE_NOTE, TRANSPARENT_OUTPUT_FORMATS, VIDEO_DURATION_AUTO, aspectRatioOptionsByKind, autoAspectNeedsSourceImage, backgroundOptionsByKind, buildModelMenu, creditRangesAll, defaultResolutionFor, durationsByMode, fitAspectRatioToModel, flux3KleinCreditId, flux3KleinResolution, getAspectRatioOptions, getCreditRange, getDurationsForModel, getModel, getQualityOptions, getResolutionOptions, groupByFamily, groupByKindAndFamily, hasFeature, isAutoAspectToken, isAutoVideoDuration, isFlux2Model, isFlux3Klein, isFlux3KleinI2i, isMinimaxH3Image, isMinimaxH3ImageI2i, isModelMakerId, isSeedanceDraftCapable, isSeedream55, isSeedream55I2i, isVideoAutoAspectToken, listModels, maskEditMatchesSource, maskedEditResolution, minimaxH3ImageCreditId, modelIdsByKindMode, modelMakerOf, modelTakesSeed, modelsWithFeature, nearestCatalogAspectRatio, normalizeModelInput, normalizeVideoRequestParams, outputFormatOptionsByKind, qualityOptionsByKind, resolutionAtAspectRatio, resolutionNearestSource, resolutionOptionsByKind, resolutionsAtAspectRatio, seedanceDraftFinalizeBillableSec, seedanceDraftFinalizeCreditId, seedream55Resolution, sourceImageSizeNeeded, svgLevelOptionsByKind, validateModelInput, videoAutoAspectRunsAt } from '../chunk-DZ4IOP3Q.js';
|
|
6
6
|
//# sourceMappingURL=model-catalog.js.map
|
|
7
7
|
//# sourceMappingURL=model-catalog.js.map
|