@nodaro/shared 3.63.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.
Files changed (209) hide show
  1. package/dist/{chunk-AE3AAJ4O.js → chunk-36VWLB4J.js} +3 -3
  2. package/dist/{chunk-AE3AAJ4O.js.map → chunk-36VWLB4J.js.map} +1 -1
  3. package/dist/{chunk-HWQ2SYNA.js → chunk-3AYM47GW.js} +5 -5
  4. package/dist/{chunk-HWQ2SYNA.js.map → chunk-3AYM47GW.js.map} +1 -1
  5. package/dist/{chunk-CZ5IQB3L.js → chunk-3KTWYYCN.js} +8 -5
  6. package/dist/chunk-3KTWYYCN.js.map +1 -0
  7. package/dist/{chunk-4MMZD63H.js → chunk-4IUE2JB7.js} +3 -3
  8. package/dist/{chunk-4MMZD63H.js.map → chunk-4IUE2JB7.js.map} +1 -1
  9. package/dist/{chunk-M5OCFGHF.cjs → chunk-5OBTGNUQ.cjs} +296 -25
  10. package/dist/chunk-5OBTGNUQ.cjs.map +1 -0
  11. package/dist/{chunk-ZPE2ZTJ4.cjs → chunk-67CMMTLN.cjs} +4 -4
  12. package/dist/{chunk-ZPE2ZTJ4.cjs.map → chunk-67CMMTLN.cjs.map} +1 -1
  13. package/dist/{chunk-WRSWH7US.cjs → chunk-6BRWPJPP.cjs} +17 -2
  14. package/dist/chunk-6BRWPJPP.cjs.map +1 -0
  15. package/dist/{chunk-HBXF6RUU.js → chunk-6YIV37V7.js} +4 -4
  16. package/dist/{chunk-HBXF6RUU.js.map → chunk-6YIV37V7.js.map} +1 -1
  17. package/dist/{chunk-F6WGGYQW.cjs → chunk-7AJGUI7L.cjs} +37 -15
  18. package/dist/chunk-7AJGUI7L.cjs.map +1 -0
  19. package/dist/{chunk-KCZHQH2O.js → chunk-7KQ6W5DS.js} +4 -4
  20. package/dist/{chunk-KCZHQH2O.js.map → chunk-7KQ6W5DS.js.map} +1 -1
  21. package/dist/{chunk-TM5JYSJF.cjs → chunk-ACZZHHFZ.cjs} +72 -33
  22. package/dist/chunk-ACZZHHFZ.cjs.map +1 -0
  23. package/dist/{chunk-Y35JQPT6.cjs → chunk-AZNZ5WNZ.cjs} +42 -42
  24. package/dist/{chunk-Y35JQPT6.cjs.map → chunk-AZNZ5WNZ.cjs.map} +1 -1
  25. package/dist/{chunk-HSHCCBIV.js → chunk-BQYCZLMF.js} +16 -3
  26. package/dist/chunk-BQYCZLMF.js.map +1 -0
  27. package/dist/{chunk-GMBDLNLD.cjs → chunk-CHS2SIP6.cjs} +183 -60
  28. package/dist/chunk-CHS2SIP6.cjs.map +1 -0
  29. package/dist/{chunk-77WU3V3J.cjs → chunk-CHTZZRAL.cjs} +6 -6
  30. package/dist/{chunk-77WU3V3J.cjs.map → chunk-CHTZZRAL.cjs.map} +1 -1
  31. package/dist/{chunk-WZVIBAKN.cjs → chunk-D4KWNDPH.cjs} +12 -12
  32. package/dist/{chunk-WZVIBAKN.cjs.map → chunk-D4KWNDPH.cjs.map} +1 -1
  33. package/dist/{chunk-PSKZKLDG.js → chunk-DZ4IOP3Q.js} +288 -26
  34. package/dist/chunk-DZ4IOP3Q.js.map +1 -0
  35. package/dist/{chunk-XGVJGNZW.cjs → chunk-EXEVT6D2.cjs} +15 -5
  36. package/dist/chunk-EXEVT6D2.cjs.map +1 -0
  37. package/dist/{chunk-X5BAFW3Q.cjs → chunk-FHGRKQVZ.cjs} +8 -8
  38. package/dist/{chunk-X5BAFW3Q.cjs.map → chunk-FHGRKQVZ.cjs.map} +1 -1
  39. package/dist/{chunk-GSKLPI3J.cjs → chunk-GTWUS6MQ.cjs} +118 -61
  40. package/dist/chunk-GTWUS6MQ.cjs.map +1 -0
  41. package/dist/{chunk-Q6IES3U2.js → chunk-H5KHWTAE.js} +5 -2
  42. package/dist/chunk-H5KHWTAE.js.map +1 -0
  43. package/dist/{chunk-V5EEQR2U.cjs → chunk-HDPJNNMF.cjs} +21 -21
  44. package/dist/{chunk-V5EEQR2U.cjs.map → chunk-HDPJNNMF.cjs.map} +1 -1
  45. package/dist/{chunk-6M563QE6.js → chunk-IYSOVS7O.js} +55 -23
  46. package/dist/chunk-IYSOVS7O.js.map +1 -0
  47. package/dist/{chunk-XGGZWA4A.cjs → chunk-J6B7J73J.cjs} +52 -49
  48. package/dist/chunk-J6B7J73J.cjs.map +1 -0
  49. package/dist/{chunk-MD4XHED4.js → chunk-KB2SQAR3.js} +3 -3
  50. package/dist/{chunk-MD4XHED4.js.map → chunk-KB2SQAR3.js.map} +1 -1
  51. package/dist/{chunk-BLJUCPMV.cjs → chunk-KSHAAPQF.cjs} +5 -2
  52. package/dist/chunk-KSHAAPQF.cjs.map +1 -0
  53. package/dist/{chunk-6TGB7ECA.cjs → chunk-O4RPXBDZ.cjs} +12 -8
  54. package/dist/chunk-O4RPXBDZ.cjs.map +1 -0
  55. package/dist/{chunk-YUER7TJG.js → chunk-OBOOHG3N.js} +13 -4
  56. package/dist/chunk-OBOOHG3N.js.map +1 -0
  57. package/dist/{chunk-6BZC2ZHC.cjs → chunk-OOZW2MM6.cjs} +9 -9
  58. package/dist/{chunk-6BZC2ZHC.cjs.map → chunk-OOZW2MM6.cjs.map} +1 -1
  59. package/dist/{chunk-A2PX5IRC.cjs → chunk-PERUFUVH.cjs} +13 -13
  60. package/dist/{chunk-A2PX5IRC.cjs.map → chunk-PERUFUVH.cjs.map} +1 -1
  61. package/dist/{chunk-3K24DWOH.js → chunk-PJJAZQVZ.js} +3 -3
  62. package/dist/{chunk-3K24DWOH.js.map → chunk-PJJAZQVZ.js.map} +1 -1
  63. package/dist/{chunk-EPXGG27L.js → chunk-Q2Y4JHF7.js} +5 -5
  64. package/dist/{chunk-EPXGG27L.js.map → chunk-Q2Y4JHF7.js.map} +1 -1
  65. package/dist/{chunk-KMGCHV6O.js → chunk-QYU7J5EQ.js} +37 -15
  66. package/dist/chunk-QYU7J5EQ.js.map +1 -0
  67. package/dist/{chunk-IY3Y462W.js → chunk-S3UGLZSF.js} +3 -3
  68. package/dist/{chunk-IY3Y462W.js.map → chunk-S3UGLZSF.js.map} +1 -1
  69. package/dist/{chunk-34QLPTSA.js → chunk-SHH2T4CR.js} +3 -3
  70. package/dist/{chunk-34QLPTSA.js.map → chunk-SHH2T4CR.js.map} +1 -1
  71. package/dist/{chunk-L2TVY6XN.cjs → chunk-SPAHI7DY.cjs} +4 -4
  72. package/dist/{chunk-L2TVY6XN.cjs.map → chunk-SPAHI7DY.cjs.map} +1 -1
  73. package/dist/{chunk-YX6TFX7H.js → chunk-SXHHLZ22.js} +66 -11
  74. package/dist/chunk-SXHHLZ22.js.map +1 -0
  75. package/dist/{chunk-LMAQUR55.cjs → chunk-T2OVDF2M.cjs} +6 -6
  76. package/dist/{chunk-LMAQUR55.cjs.map → chunk-T2OVDF2M.cjs.map} +1 -1
  77. package/dist/{chunk-2QKF7M2Z.js → chunk-TAPBDT47.js} +3 -3
  78. package/dist/{chunk-2QKF7M2Z.js.map → chunk-TAPBDT47.js.map} +1 -1
  79. package/dist/{chunk-BMJVKYVB.js → chunk-TPQJKS7D.js} +109 -7
  80. package/dist/chunk-TPQJKS7D.js.map +1 -0
  81. package/dist/{chunk-63H4C56Q.cjs → chunk-TQW3R44P.cjs} +8 -8
  82. package/dist/{chunk-63H4C56Q.cjs.map → chunk-TQW3R44P.cjs.map} +1 -1
  83. package/dist/{chunk-4DVWXEB6.js → chunk-TTGZ2L3O.js} +3 -3
  84. package/dist/{chunk-4DVWXEB6.js.map → chunk-TTGZ2L3O.js.map} +1 -1
  85. package/dist/{chunk-XBTYGQ6Z.js → chunk-VPTA4Z7G.js} +8 -5
  86. package/dist/chunk-VPTA4Z7G.js.map +1 -0
  87. package/dist/{chunk-6XUG4L7X.cjs → chunk-VZ6TE23U.cjs} +6 -6
  88. package/dist/{chunk-6XUG4L7X.cjs.map → chunk-VZ6TE23U.cjs.map} +1 -1
  89. package/dist/{chunk-LH72PQO2.cjs → chunk-W6VJAUGM.cjs} +114 -45
  90. package/dist/chunk-W6VJAUGM.cjs.map +1 -0
  91. package/dist/{chunk-OV3JTKBY.js → chunk-W7KHHNZR.js} +74 -17
  92. package/dist/chunk-W7KHHNZR.js.map +1 -0
  93. package/dist/{chunk-2PU3AGGS.cjs → chunk-YQV53HRR.cjs} +7 -7
  94. package/dist/{chunk-2PU3AGGS.cjs.map → chunk-YQV53HRR.cjs.map} +1 -1
  95. package/dist/{chunk-FXGNRYQQ.js → chunk-ZI3QDUHO.js} +3 -3
  96. package/dist/{chunk-FXGNRYQQ.js.map → chunk-ZI3QDUHO.js.map} +1 -1
  97. package/dist/entries/apps.cjs +43 -42
  98. package/dist/entries/apps.js +8 -7
  99. package/dist/entries/captions.cjs +38 -30
  100. package/dist/entries/captions.d.cts +47 -1
  101. package/dist/entries/captions.d.ts +47 -1
  102. package/dist/entries/captions.js +1 -1
  103. package/dist/entries/credits.cjs +303 -191
  104. package/dist/entries/credits.d.cts +219 -15
  105. package/dist/entries/credits.d.ts +219 -15
  106. package/dist/entries/credits.js +11 -11
  107. package/dist/entries/llm-models.cjs +62 -62
  108. package/dist/entries/llm-models.d.cts +29 -7
  109. package/dist/entries/llm-models.d.ts +29 -7
  110. package/dist/entries/llm-models.js +2 -2
  111. package/dist/entries/model-catalog.cjs +149 -109
  112. package/dist/entries/model-catalog.d.cts +64 -7
  113. package/dist/entries/model-catalog.d.ts +64 -7
  114. package/dist/entries/model-catalog.js +4 -4
  115. package/dist/entries/models.cjs +394 -346
  116. package/dist/entries/models.d.cts +4 -4
  117. package/dist/entries/models.d.ts +4 -4
  118. package/dist/entries/models.js +5 -5
  119. package/dist/entries/nodes.cjs +220 -211
  120. package/dist/entries/nodes.d.cts +46 -3
  121. package/dist/entries/nodes.d.ts +46 -3
  122. package/dist/entries/nodes.js +10 -9
  123. package/dist/entries/pipeline.cjs +156 -152
  124. package/dist/entries/pipeline.d.cts +13 -3
  125. package/dist/entries/pipeline.d.ts +13 -3
  126. package/dist/entries/pipeline.js +3 -3
  127. package/dist/entries/social.cjs +177 -177
  128. package/dist/entries/social.js +2 -2
  129. package/dist/entries/ugc.cjs +71 -71
  130. package/dist/entries/ugc.js +4 -4
  131. package/dist/entries/video.cjs +145 -145
  132. package/dist/entries/video.js +6 -6
  133. package/dist/entries/workflow.cjs +150 -150
  134. package/dist/entries/workflow.d.cts +1 -1
  135. package/dist/entries/workflow.d.ts +1 -1
  136. package/dist/entries/workflow.js +2 -2
  137. package/dist/index.cjs +1879 -1659
  138. package/dist/index.d.cts +7 -7
  139. package/dist/index.d.ts +7 -7
  140. package/dist/index.js +25 -25
  141. package/dist/{model-catalog-C_Eo35tL.d.cts → model-catalog-Cf9fkEUp.d.cts} +15 -2
  142. package/dist/{model-catalog-C_Eo35tL.d.ts → model-catalog-Cf9fkEUp.d.ts} +15 -2
  143. package/dist/{model-constants-DWcxOmaY.d.cts → model-constants-BxjiWVQ9.d.ts} +89 -19
  144. package/dist/{model-constants-Bg4ccSQb.d.ts → model-constants-C_Nyft_i.d.cts} +89 -19
  145. package/package.json +1 -1
  146. package/src/__tests__/add-captions-nemotron-pricing.test.ts +111 -0
  147. package/src/__tests__/extend-providers.test.ts +266 -26
  148. package/src/__tests__/fixtures/mask-composite-quote-parity.json +1 -1
  149. package/src/__tests__/fixtures/measured-input-quote-parity.json +1435 -0
  150. package/src/__tests__/fixtures/planned-length-quote-parity.json +1866 -0
  151. package/src/__tests__/fixtures/video-utility-quote-parity.json +2343 -0
  152. package/src/__tests__/flux-3-klein.test.ts +203 -0
  153. package/src/__tests__/gpt-image-2-6-formats.test.ts +3 -1
  154. package/src/__tests__/llm-models.test.ts +7 -9
  155. package/src/__tests__/llm-price-key.test.ts +12 -0
  156. package/src/__tests__/model-makers.test.ts +3 -0
  157. package/src/__tests__/node-runtime-keys.test.ts +7 -0
  158. package/src/__tests__/normalize-node-params.test.ts +147 -1
  159. package/src/__tests__/retired-lip-sync-providers.test.ts +43 -0
  160. package/src/__tests__/seedance-extend-source-credit-id.test.ts +89 -0
  161. package/src/__tests__/sequence-execution.test.ts +22 -1
  162. package/src/__tests__/suno-credit-type.test.ts +21 -2
  163. package/src/__tests__/transcribe-capabilities.test.ts +4 -2
  164. package/src/__tests__/video-analysis-catalog-sync.test.ts +4 -2
  165. package/src/__tests__/video-analysis-pricing.test.ts +10 -9
  166. package/src/caption-styles.ts +62 -0
  167. package/src/credit-estimators/add-captions-nemotron.ts +73 -0
  168. package/src/credit-estimators/index.ts +10 -0
  169. package/src/credit-identifiers.ts +249 -13
  170. package/src/entries/captions.ts +2 -0
  171. package/src/entries/credits.ts +25 -1
  172. package/src/entries/model-catalog.ts +13 -0
  173. package/src/entries/models.ts +15 -0
  174. package/src/entries/nodes.ts +2 -0
  175. package/src/entries/pipeline.ts +1 -1
  176. package/src/flux-3-klein.ts +69 -0
  177. package/src/input-image-pricing.ts +23 -6
  178. package/src/llm-models.ts +60 -16
  179. package/src/model-catalog.ts +280 -25
  180. package/src/model-constants.ts +146 -17
  181. package/src/node-default-mappings.ts +3 -0
  182. package/src/node-runtime-keys.ts +3 -0
  183. package/src/normalize-node-params.ts +123 -2
  184. package/src/seedance-extend-rate.ts +116 -0
  185. package/src/sequence-execution.ts +24 -0
  186. package/src/transcribe-preflight.ts +23 -0
  187. package/src/video-analysis-pricing.ts +28 -15
  188. package/dist/chunk-6M563QE6.js.map +0 -1
  189. package/dist/chunk-6TGB7ECA.cjs.map +0 -1
  190. package/dist/chunk-BLJUCPMV.cjs.map +0 -1
  191. package/dist/chunk-BMJVKYVB.js.map +0 -1
  192. package/dist/chunk-CZ5IQB3L.js.map +0 -1
  193. package/dist/chunk-F6WGGYQW.cjs.map +0 -1
  194. package/dist/chunk-GMBDLNLD.cjs.map +0 -1
  195. package/dist/chunk-GSKLPI3J.cjs.map +0 -1
  196. package/dist/chunk-HSHCCBIV.js.map +0 -1
  197. package/dist/chunk-KMGCHV6O.js.map +0 -1
  198. package/dist/chunk-LH72PQO2.cjs.map +0 -1
  199. package/dist/chunk-M5OCFGHF.cjs.map +0 -1
  200. package/dist/chunk-OV3JTKBY.js.map +0 -1
  201. package/dist/chunk-PSKZKLDG.js.map +0 -1
  202. package/dist/chunk-Q6IES3U2.js.map +0 -1
  203. package/dist/chunk-TM5JYSJF.cjs.map +0 -1
  204. package/dist/chunk-WRSWH7US.cjs.map +0 -1
  205. package/dist/chunk-XBTYGQ6Z.js.map +0 -1
  206. package/dist/chunk-XGGZWA4A.cjs.map +0 -1
  207. package/dist/chunk-XGVJGNZW.cjs.map +0 -1
  208. package/dist/chunk-YUER7TJG.js.map +0 -1
  209. package/dist/chunk-YX6TFX7H.js.map +0 -1
@@ -34,6 +34,7 @@ import { MINIMAX_H3_IMAGE_DEFAULT_RESOLUTION, MINIMAX_H3_IMAGE_RESOLUTIONS } fro
34
34
  import { isAutoVideoDuration } from "./video-duration-auto.js"
35
35
  import type { DeclaredSeedanceTaskType } from "./seedance-task-type.js"
36
36
  import { SEEDREAM_5_5_DEFAULT_RESOLUTION, SEEDREAM_5_5_RESOLUTIONS } from "./seedream-5-5.js"
37
+ import { FLUX_3_KLEIN_RESOLUTIONS } from "./flux-3-klein.js"
37
38
 
38
39
  export type ModelKind = "image" | "video" | "audio"
39
40
 
@@ -77,7 +78,14 @@ export type ModelMode =
77
78
  | "video-audit"
78
79
 
79
80
  export interface PriceVariant {
80
- /** Composite identifier as it appears in `STATIC_CREDIT_COSTS`. */
81
+ /**
82
+ * Composite identifier as it appears in `STATIC_CREDIT_COSTS` — or, for a
83
+ * model a run is charged a multiple of a rate for, the whole-run quote id of
84
+ * one run (`<rateId>:<units>u`, `unitQuoteCreditId`): its rate's row × the
85
+ * units, rounded up once, as the price table and `GET
86
+ * /v1/credits/model-cost` price it (Seedance 2.5 Extend lists its default
87
+ * run this way). `credits` is then that run's list price.
88
+ */
81
89
  identifier: string
82
90
  /** The catalog's list price in credits. `GET /v1/models` and the MCP
83
91
  * `list_models` tool serve the price a run is charged on the instance,
@@ -173,6 +181,7 @@ export const MODEL_MAKERS = {
173
181
  bytedance: { name: "ByteDance" },
174
182
  elevenlabs: { name: "ElevenLabs" },
175
183
  google: { name: "Google" },
184
+ heygen: { name: "HeyGen" },
176
185
  ideogram: { name: "Ideogram" },
177
186
  kuaishou: { name: "Kuaishou" },
178
187
  lightricks: { name: "Lightricks" },
@@ -339,7 +348,10 @@ export interface ModelCatalogEntryFields {
339
348
  * marked required, with a closed list (Seedream 5.5: text to image requires
340
349
  * one of its eight ratios and has no "auto"; its edit takes "auto" and the
341
350
  * same eight; docs.kie.ai/market/seedream/5-5-text-to-image.md and
342
- * 5-5-image-to-image.md). The lanes that pass a stored ratio straight on (a
351
+ * 5-5-image-to-image.md). FLUX 3 Klein's schemas give the same evidence: a
352
+ * closed list of nine ratios on text to image, with no "auto", and the same
353
+ * nine plus "auto" on the edit (docs.kie.ai/market/flux3/klein-text-to-image.md
354
+ * and klein-edit-image.md). The lanes that pass a stored ratio straight on (a
343
355
  * Scene, a surround continuation) move a ratio such a model does not list to
344
356
  * the nearest one it does, checked against the model the request reaches
345
357
  * (`aspectRatioForStrictModel` in the backend), and send every other model's
@@ -711,6 +723,14 @@ const SEEDREAM_5_5_I2I_RATIOS = ["auto", ...SEEDREAM_RATIOS] as const
711
723
  // moves it to auto with JPEG), and PNG (its default) or JPEG.
712
724
  const SEEDREAM_5_5_BACKGROUNDS = ["auto", "opaque", "transparent"] as const
713
725
  const SEEDREAM_5_5_FORMATS = ["png", "jpeg"] as const
726
+ // FLUX 3 Klein (docs.kie.ai/market/flux3/klein-text-to-image + klein-edit-image):
727
+ // both endpoints list the same nine ratios, 1:1 first (the text-to-image
728
+ // default). The edit adds "auto", its own default (the first image's shape),
729
+ // listed LAST so a fallback that takes the first ratio lands on 1:1.
730
+ const FLUX_3_KLEIN_RATIOS = ["1:1", "4:3", "3:4", "3:2", "2:3", "16:9", "9:16", "21:9", "9:21"] as const
731
+ const FLUX_3_KLEIN_I2I_RATIOS = [...FLUX_3_KLEIN_RATIOS, "auto"] as const
732
+ // Its files: PNG (its default) or JPEG, the same price (decided 2026-11-12).
733
+ const FLUX_3_KLEIN_FORMATS = ["png", "jpeg"] as const
714
734
  const Z_IMAGE_RATIOS = ["1:1", "16:9", "9:16", "4:3", "3:4"] as const
715
735
 
716
736
  const VIDEO_RATIOS_HV = ["16:9", "9:16"] as const
@@ -963,6 +983,63 @@ const IMAGE_MODELS: Record<string, ModelCatalogEntry> = {
963
983
  aspectRatios: KONTEXT_RATIOS,
964
984
  pricing: [{ identifier: "flux-kontext-max", credits: 25 }],
965
985
  },
986
+ // ── FLUX 3 Klein ──
987
+ // The light model of Black Forest Labs' FLUX 3 (KIE `flux-3/klein-text-to-image`
988
+ // and `flux-3/klein-edit-image`). A different model from FLUX 2 Klein
989
+ // (`flux-2-klein`, below). A prompt runs the text-to-image id; with reference
990
+ // images the run moves to the edit id (`T2I_TO_I2I_VARIANT`). Priced by size
991
+ // alone, the same on both ids: reference images cost nothing
992
+ // (`flux3KleinCreditId`). Both schemas list a closed set of ratios and text to
993
+ // image has no "auto", so both entries declare `strictAspectRatios`. PNG (the
994
+ // default) or JPEG, as its siblings write (decided 2026-11-12); KIE's WebP is
995
+ // not offered. KIE's prompt enhancement is left on (never sent), and its
996
+ // custom width/height and several pictures per request are not offered.
997
+ // See: docs.kie.ai/market/flux3/klein-text-to-image.md
998
+ // docs.kie.ai/market/flux3/klein-edit-image.md
999
+ "flux-3-klein": {
1000
+ id: "flux-3-klein",
1001
+ kind: "image",
1002
+ modes: ["t2i"] as const,
1003
+ family: "Black Forest Labs",
1004
+ maker: "black-forest-labs",
1005
+ label: "FLUX 3 Klein",
1006
+ series: "Flux",
1007
+ description: "FLUX 3 Klein - the light model of FLUX 3: fast and low cost, at 1K by default, 2K or 4K, in nine shapes, PNG or JPEG. Add images and it edits from up to 10 references, at the same price.",
1008
+ useCases: ["fast", "drafts", "iteration", "realistic"],
1009
+ features: ["reference-image"],
1010
+ aspectRatios: FLUX_3_KLEIN_RATIOS,
1011
+ strictAspectRatios: true,
1012
+ resolutions: FLUX_3_KLEIN_RESOLUTIONS,
1013
+ outputFormats: FLUX_3_KLEIN_FORMATS,
1014
+ pricing: [
1015
+ { identifier: "flux-3-klein", credits: 4, note: "1K default" },
1016
+ { identifier: "flux-3-klein:1K", credits: 4, note: "1K" },
1017
+ { identifier: "flux-3-klein:2K", credits: 7, note: "2K" },
1018
+ { identifier: "flux-3-klein:4K", credits: 17, note: "4K" },
1019
+ ],
1020
+ },
1021
+ "flux-3-klein-i2i": {
1022
+ id: "flux-3-klein-i2i",
1023
+ kind: "image",
1024
+ modes: ["i2i"] as const,
1025
+ family: "Black Forest Labs",
1026
+ maker: "black-forest-labs",
1027
+ label: "FLUX 3 Klein (I2I)",
1028
+ series: "Flux",
1029
+ description: "FLUX 3 Klein edits - fast, low-cost changes from 1 to 10 reference images, which cost nothing extra. 1K by default, 2K or 4K, PNG or JPEG; auto keeps the first image's shape.",
1030
+ useCases: ["edit", "iteration", "multi-reference", "fast"],
1031
+ features: ["reference-image"],
1032
+ aspectRatios: FLUX_3_KLEIN_I2I_RATIOS,
1033
+ strictAspectRatios: true,
1034
+ resolutions: FLUX_3_KLEIN_RESOLUTIONS,
1035
+ outputFormats: FLUX_3_KLEIN_FORMATS,
1036
+ pricing: [
1037
+ { identifier: "flux-3-klein-i2i", credits: 4, note: "1K default" },
1038
+ { identifier: "flux-3-klein-i2i:1K", credits: 4, note: "1K" },
1039
+ { identifier: "flux-3-klein-i2i:2K", credits: 7, note: "2K" },
1040
+ { identifier: "flux-3-klein-i2i:4K", credits: 17, note: "4K" },
1041
+ ],
1042
+ },
966
1043
  // ── Replicate "Open" (uncensored) — run direct via Replicate, not KIE ──
967
1044
  "flux-2-klein": {
968
1045
  id: "flux-2-klein",
@@ -3428,8 +3505,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3428
3505
  useCases: ["extend"],
3429
3506
  pricing: [{ identifier: "runway-extend", credits: 320 }],
3430
3507
  },
3431
- // Seedance extends ANY video, one provider per model. Each is priced on its
3432
- // own rows (`tailExtendCreditId`), one per second added and resolution.
3508
+ // Seedance extends ANY video, one provider per model. Seedance 2.5 is charged
3509
+ // per second of video sent (the source's last 10 s, all of a shorter one)
3510
+ // and added, at its resolution's row, the price of two seconds (decided
3511
+ // 2026-11-12). Seedance 2.0 is priced on its own rows
3512
+ // (`tailExtendCreditId`), one per second added and resolution.
3433
3513
  // The earlier single id `seedance-2-extend` is retired and runs as Seedance 2.5.
3434
3514
  "seedance-2-5-extend": {
3435
3515
  id: "seedance-2-5-extend",
@@ -3439,15 +3519,18 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3439
3519
  maker: "bytedance",
3440
3520
  label: "Seedance 2.5 Extend",
3441
3521
  series: "Seedance",
3442
- description: "Extend ANY video with Seedance 2.5: 4–30s continuation (audio included), stitched into one seamless clip.",
3522
+ description: "Extend ANY video with Seedance 2.5: a 4–30s continuation (audio included) of the source's last 10 seconds, joined onto it. Charged per second of video sent and added; the figure is the default run, 8s added at 720p to a source of 10s or more.",
3443
3523
  useCases: ["extend"],
3444
3524
  durations: [4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30],
3445
3525
  defaultDuration: 8,
3446
3526
  resolutions: ["480p", "720p", "1080p"],
3447
3527
  pricing: [
3448
- { identifier: "seedance-2-5-extend:8s:720p", credits: 950, note: "default 8s 720p — see :Ns:res variants for exact" },
3449
- { identifier: "seedance-2-5-extend:8s:480p", credits: 425, note: "8s 480p" },
3450
- { identifier: "seedance-2-5-extend:8s:1080p", credits: 2375, note: "8s 1080p" },
3528
+ // The default run (8 s added to a source of 10 s or more: 18 s sent and
3529
+ // added, 9 units of the two-second row) at each resolution. A run is
3530
+ // charged its own seconds: `seedance-2-5-extend:<res>:per-2s` × (sent + added) ÷ 2.
3531
+ { identifier: "seedance-2-5-extend:720p:per-2s:9u", credits: 1710, note: "default run: 8s added at 720p to a source of 10s or more — priced per second sent and added" },
3532
+ { identifier: "seedance-2-5-extend:480p:per-2s:9u", credits: 765, note: "8s added at 480p to a source of 10s or more" },
3533
+ { identifier: "seedance-2-5-extend:1080p:per-2s:9u", credits: 4275, note: "8s added at 1080p to a source of 10s or more" },
3451
3534
  ],
3452
3535
  },
3453
3536
  "seedance-2-0-extend": {
@@ -3492,6 +3575,63 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3492
3575
  { identifier: "kling-4-extend:5s:1080p", credits: 638, note: "5s 1080p" },
3493
3576
  ],
3494
3577
  },
3578
+ // PixVerse V6 extends ANY video natively (no tail recipe): the whole source
3579
+ // goes to its extend, which returns it with the new seconds joined on; the
3580
+ // run keeps the user's own source and joins only the new seconds to it. Its
3581
+ // own entry, so a deployment can withhold it apart from PixVerse V6 Max, and
3582
+ // its own rows (`pixverseExtendCreditId`): one per second added and quality,
3583
+ // `:audio` with sound (on unless turned off). `resolutions` is ascending
3584
+ // (repo convention); the default quality (720p) is the extend's own, as on
3585
+ // the other extend entries (`pixverseExtendQuality`), never declared here.
3586
+ "pixverse-v6-extend": {
3587
+ id: "pixverse-v6-extend",
3588
+ kind: "video",
3589
+ modes: ["extend"] as const,
3590
+ family: "PixVerse",
3591
+ maker: "pixverse",
3592
+ label: "PixVerse V6 Extend",
3593
+ series: "PixVerse",
3594
+ description: "Extend ANY video with PixVerse V6: 1–15s continuation at 360p to 1080p, with optional sound, joined onto your original clip.",
3595
+ useCases: ["extend"],
3596
+ durations: [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15],
3597
+ defaultDuration: 5,
3598
+ resolutions: ["360p", "540p", "720p", "1080p"],
3599
+ pricing: [
3600
+ { identifier: "pixverse-v6-extend:5s:720p:audio", credits: 120, note: "default 5s 720p with sound — see :Ns:quality and :Ns:quality:audio variants for exact" },
3601
+ { identifier: "pixverse-v6-extend:5s:720p", credits: 90, note: "5s 720p, no sound" },
3602
+ { identifier: "pixverse-v6-extend:5s:540p:audio", credits: 90, note: "5s 540p with sound" },
3603
+ { identifier: "pixverse-v6-extend:1s:360p", credits: 10, note: "1s 360p, no sound (min)" },
3604
+ { identifier: "pixverse-v6-extend:15s:1080p:audio", credits: 690, note: "15s 1080p with sound (max)" },
3605
+ ],
3606
+ },
3607
+ // Grok extends only its OWN clips: a completed Grok Imagine text-to-video
3608
+ // or image-to-video run of the same user, named by its task (KIE takes no
3609
+ // clip URL and no other model's task). It adds 6 or 10 s and returns the
3610
+ // source with them joined on, delivered as it is. Billed at the SOURCE's
3611
+ // resolution, which is never a lever — so no `resolutions` here: the run is
3612
+ // priced on the row the source check answers (`grokExtendCreditId`), and a
3613
+ // run whose source is not known yet is quoted at the dearer 720p row, the
3614
+ // row this entry leads with. Its own entry, so a deployment can withhold it
3615
+ // apart from Grok Imagine.
3616
+ "grok-extend": {
3617
+ id: "grok-extend",
3618
+ kind: "video",
3619
+ modes: ["extend"] as const,
3620
+ family: "xAI",
3621
+ maker: "xai",
3622
+ label: "Grok Imagine Extend",
3623
+ series: "Grok",
3624
+ description: "Extend a Grok Imagine video you made here (from text or an image) by 6 or 10 seconds, at the video's own resolution (480p or 720p).",
3625
+ useCases: ["extend"],
3626
+ durations: [6, 10],
3627
+ defaultDuration: 6,
3628
+ pricing: [
3629
+ { identifier: "grok-extend:6s:720p", credits: 70, note: "6s from a 720p source (the quote while the source is not known)" },
3630
+ { identifier: "grok-extend:6s:480p", credits: 40, note: "6s from a 480p source" },
3631
+ { identifier: "grok-extend:10s:480p", credits: 60, note: "10s from a 480p source" },
3632
+ { identifier: "grok-extend:10s:720p", credits: 120, note: "10s from a 720p source" },
3633
+ ],
3634
+ },
3495
3635
  "veo-1080p": {
3496
3636
  id: "veo-1080p",
3497
3637
  kind: "video",
@@ -3798,6 +3938,61 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3798
3938
  { identifier: "volcengine-lipsync:300s", credits: 6000, note: "5-min ceiling" },
3799
3939
  ],
3800
3940
  },
3941
+ // LatentSync, HeyGen Lipsync Precision and Lipsync 2 Pro run on Replicate
3942
+ // (providers/replicate/lip-sync.ts). Listed so a deployment's model
3943
+ // restriction can name them (decided 2026-11-12); what they are sent and
3944
+ // charged did not change. They take no size: the result keeps the size of the
3945
+ // video they are given.
3946
+ "latentsync": {
3947
+ id: "latentsync",
3948
+ kind: "video",
3949
+ modes: ["lip-sync"] as const,
3950
+ family: "LatentSync",
3951
+ maker: "bytedance",
3952
+ label: "LatentSync",
3953
+ series: "LatentSync",
3954
+ description: "Diffusion lip sync on an existing video — strong on singing and expressive vocals. Video input.",
3955
+ useCases: ["lip-sync", "dubbing", "video-to-video"],
3956
+ pricing: [{ identifier: "latentsync", credits: 7 }],
3957
+ },
3958
+ "heygen-lipsync-precision": {
3959
+ id: "heygen-lipsync-precision",
3960
+ kind: "video",
3961
+ modes: ["lip-sync"] as const,
3962
+ family: "HeyGen",
3963
+ maker: "heygen",
3964
+ label: "HeyGen Lipsync Precision",
3965
+ series: "HeyGen",
3966
+ description: "Dub existing footage with precise lip sync to a new audio track. Video input, billed per second.",
3967
+ useCases: ["lip-sync", "dubbing", "video-to-video"],
3968
+ pricing: [
3969
+ { identifier: "heygen-lipsync-precision", credits: 10010, note: "5-min ceiling (no duration given)" },
3970
+ { identifier: "heygen-lipsync-precision:15s", credits: 510 },
3971
+ { identifier: "heygen-lipsync-precision:30s", credits: 1010 },
3972
+ { identifier: "heygen-lipsync-precision:60s", credits: 2010 },
3973
+ { identifier: "heygen-lipsync-precision:120s", credits: 4010 },
3974
+ { identifier: "heygen-lipsync-precision:300s", credits: 10010, note: "5-min ceiling" },
3975
+ ],
3976
+ },
3977
+ "lipsync-2-pro": {
3978
+ id: "lipsync-2-pro",
3979
+ kind: "video",
3980
+ modes: ["lip-sync"] as const,
3981
+ family: "Sync",
3982
+ maker: "sync-labs",
3983
+ label: "Lipsync 2 Pro",
3984
+ series: "Sync",
3985
+ description: "Studio-grade lip sync on existing footage, re-synced to a new audio track. Video input, billed per second.",
3986
+ useCases: ["lip-sync", "dubbing", "video-to-video", "premium"],
3987
+ pricing: [
3988
+ { identifier: "lipsync-2-pro", credits: 12490, note: "5-min ceiling (no duration given)" },
3989
+ { identifier: "lipsync-2-pro:15s", credits: 630 },
3990
+ { identifier: "lipsync-2-pro:30s", credits: 1250 },
3991
+ { identifier: "lipsync-2-pro:60s", credits: 2500 },
3992
+ { identifier: "lipsync-2-pro:120s", credits: 5000 },
3993
+ { identifier: "lipsync-2-pro:300s", credits: 12490, note: "5-min ceiling" },
3994
+ ],
3995
+ },
3801
3996
  // ── Video Depth ── (video-depth node; priced by the input clip's length via
3802
3997
  // videoDepthCreditId in video-depth.ts — `<provider>:<n>s`, one row per whole
3803
3998
  // second of the clip (`pricedClipSeconds`), representative rows below: `:1s` …
@@ -3843,8 +4038,8 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3843
4038
  // structural credit formula lives in video-analysis-pricing.ts. Composite id
3844
4039
  // shape `video-analysis:<model>:<bucket>s` mirrors volcengine-lipsync: bare
3845
4040
  // row = per-model namespace root at the 10-min ceiling, plus one row per bucket.)
3846
- "gemini-3-flash-video-analysis": {
3847
- id: "gemini-3-flash-video-analysis",
4041
+ "gemini-3.8-flash-video-analysis": {
4042
+ id: "gemini-3.8-flash-video-analysis",
3848
4043
  kind: "video",
3849
4044
  modes: ["video-analysis"] as const,
3850
4045
  family: "Nodaro",
@@ -3853,6 +4048,24 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3853
4048
  series: "Video Analysis",
3854
4049
  description: "Analyze a video into a structured shot list (scenes, camera, audio) — fast, economy tier. Billed per duration bucket.",
3855
4050
  useCases: ["video-analysis", "shot-list", "fast"],
4051
+ pricing: [
4052
+ { identifier: "video-analysis:gemini-3.8-flash", credits: 880, note: "10-min ceiling (no duration given)" },
4053
+ { identifier: "video-analysis:gemini-3.8-flash:60s", credits: 186 },
4054
+ { identifier: "video-analysis:gemini-3.8-flash:180s", credits: 193 },
4055
+ { identifier: "video-analysis:gemini-3.8-flash:360s", credits: 534 },
4056
+ { identifier: "video-analysis:gemini-3.8-flash:600s", credits: 880, note: "10-min ceiling" },
4057
+ ],
4058
+ },
4059
+ "gemini-3-flash-video-analysis": {
4060
+ id: "gemini-3-flash-video-analysis",
4061
+ kind: "video",
4062
+ modes: ["video-analysis"] as const,
4063
+ family: "Nodaro",
4064
+ maker: "nodaro",
4065
+ label: "Video Analysis (Fast — previous)",
4066
+ series: "Video Analysis",
4067
+ description: "Previous fast-tier analysis model (backed the fast tier until 2026-11-13). Kept so stored raw-model configs keep running and keep pricing under their own identifier; their runs are served by the current fast model.",
4068
+ useCases: ["video-analysis", "shot-list", "fast"],
3856
4069
  pricing: [
3857
4070
  { identifier: "video-analysis:gemini-3-flash", credits: 848, note: "10-min ceiling (no duration given)" },
3858
4071
  { identifier: "video-analysis:gemini-3-flash:60s", credits: 181 },
@@ -3911,11 +4124,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3911
4124
  description: "Our most advanced analysis tier — multiple analysis engines combined into one result for maximum completeness and accuracy. Billed per duration bucket.",
3912
4125
  useCases: ["video-analysis", "shot-list", "premium", "most-complete"],
3913
4126
  pricing: [
3914
- { identifier: "video-analysis:mixed", credits: 1177, note: "10-min ceiling (no duration given)" },
3915
- { identifier: "video-analysis:mixed:60s", credits: 270 },
3916
- { identifier: "video-analysis:mixed:180s", credits: 291 },
3917
- { identifier: "video-analysis:mixed:360s", credits: 729 },
3918
- { identifier: "video-analysis:mixed:600s", credits: 1177, note: "10-min ceiling" },
4127
+ { identifier: "video-analysis:mixed", credits: 1209, note: "10-min ceiling (no duration given)" },
4128
+ { identifier: "video-analysis:mixed:60s", credits: 275 },
4129
+ { identifier: "video-analysis:mixed:180s", credits: 298 },
4130
+ { identifier: "video-analysis:mixed:360s", credits: 748 },
4131
+ { identifier: "video-analysis:mixed:600s", credits: 1209, note: "10-min ceiling" },
3919
4132
  ],
3920
4133
  },
3921
4134
  // SMART — the accuracy tier. Since the 2026-08-03 hybrid re-plan it is a
@@ -3934,11 +4147,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3934
4147
  description: "Highest-accuracy analysis — a hybrid pass that blends a native skeleton read with several donor analysis rolls, then always refines the merged result to find shot boundaries and identify the cast by appearance. Best choice when the shot list will drive regeneration. Billed per duration bucket.",
3935
4148
  useCases: ["video-analysis", "shot-list", "premium", "most-accurate"],
3936
4149
  pricing: [
3937
- { identifier: "video-analysis:smart", credits: 2076, note: "10-min ceiling (no duration given)" },
3938
- { identifier: "video-analysis:smart:60s", credits: 413 },
3939
- { identifier: "video-analysis:smart:180s", credits: 503 },
3940
- { identifier: "video-analysis:smart:360s", credits: 1267 },
3941
- { identifier: "video-analysis:smart:600s", credits: 2076, note: "10-min ceiling" },
4150
+ { identifier: "video-analysis:smart", credits: 2097, note: "10-min ceiling (no duration given)" },
4151
+ { identifier: "video-analysis:smart:60s", credits: 416 },
4152
+ { identifier: "video-analysis:smart:180s", credits: 508 },
4153
+ { identifier: "video-analysis:smart:360s", credits: 1280 },
4154
+ { identifier: "video-analysis:smart:600s", credits: 2097, note: "10-min ceiling" },
3942
4155
  ],
3943
4156
  },
3944
4157
  // ── AI Audit (`video-audit`) ── a SEPARATE node from video-analysis (own
@@ -3983,11 +4196,11 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
3983
4196
  description: "Same video-verified audit as AI Audit, but auto-runs a fast analysis first when none is wired in, then applies corrections under guards and returns a disclosed report. Billed per duration bucket.",
3984
4197
  useCases: ["video-audit", "qa", "shot-list", "verification", "auto-analysis"],
3985
4198
  pricing: [
3986
- { identifier: "video-audit:auto", credits: 1921, note: "10-min ceiling (no duration given)" },
3987
- { identifier: "video-audit:auto:60s", credits: 396 },
3988
- { identifier: "video-audit:auto:180s", credits: 475 },
3989
- { identifier: "video-audit:auto:360s", credits: 1178 },
3990
- { identifier: "video-audit:auto:600s", credits: 1921, note: "10-min ceiling" },
4199
+ { identifier: "video-audit:auto", credits: 1953, note: "10-min ceiling (no duration given)" },
4200
+ { identifier: "video-audit:auto:60s", credits: 401 },
4201
+ { identifier: "video-audit:auto:180s", credits: 483 },
4202
+ { identifier: "video-audit:auto:360s", credits: 1197 },
4203
+ { identifier: "video-audit:auto:600s", credits: 1953, note: "10-min ceiling" },
3991
4204
  ],
3992
4205
  },
3993
4206
  }
@@ -4415,6 +4628,48 @@ const AUDIO_MODELS: Record<string, ModelCatalogEntry> = {
4415
4628
  useCases: ["music", "song", "vocals"],
4416
4629
  pricing: [{ identifier: "suno", credits: 30, note: "per generation" }],
4417
4630
  },
4631
+ // Suno v4.5, v4.5 All and v4.5+ (decided 2026-11-12): listed so a
4632
+ // deployment's model restriction can name them, each with a price row of its
4633
+ // own (SUNO_VERSION_CREDIT_KEYS) at the price those runs were charged before.
4634
+ "suno-v4_5": {
4635
+ id: "suno-v4_5",
4636
+ kind: "audio",
4637
+ modes: ["music"] as const,
4638
+ family: "Suno",
4639
+ maker: "suno",
4640
+ label: "Suno v4.5",
4641
+ series: "Suno",
4642
+ dataValue: "V4_5",
4643
+ description: "Suno v4.5 — improved quality and coherence over v4.",
4644
+ useCases: ["music", "song", "vocals"],
4645
+ pricing: [{ identifier: "suno-v4_5", credits: 30, note: "per generation" }],
4646
+ },
4647
+ "suno-v4_5all": {
4648
+ id: "suno-v4_5all",
4649
+ kind: "audio",
4650
+ modes: ["music"] as const,
4651
+ family: "Suno",
4652
+ maker: "suno",
4653
+ label: "Suno v4.5 All",
4654
+ series: "Suno",
4655
+ dataValue: "V4_5ALL",
4656
+ description: "Suno v4.5 All — full instrument and vocal generation.",
4657
+ useCases: ["music", "song", "vocals"],
4658
+ pricing: [{ identifier: "suno-v4_5all", credits: 30, note: "per generation" }],
4659
+ },
4660
+ "suno-v4_5plus": {
4661
+ id: "suno-v4_5plus",
4662
+ kind: "audio",
4663
+ modes: ["music"] as const,
4664
+ family: "Suno",
4665
+ maker: "suno",
4666
+ label: "Suno v4.5 Plus",
4667
+ series: "Suno",
4668
+ dataValue: "V4_5PLUS",
4669
+ description: "Suno v4.5 Plus — richer production than v4.5.",
4670
+ useCases: ["music", "song", "vocals"],
4671
+ pricing: [{ identifier: "suno-v4_5plus", credits: 30, note: "per generation" }],
4672
+ },
4418
4673
  "suno-v5": {
4419
4674
  id: "suno-v5",
4420
4675
  kind: "audio",