@nodaro/shared 3.68.0 → 3.70.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-5IZHECUP.js → chunk-2VOXSVIE.js} +3 -3
- package/dist/{chunk-5IZHECUP.js.map → chunk-2VOXSVIE.js.map} +1 -1
- package/dist/{chunk-OXBU5AGH.js → chunk-42ICEVUN.js} +3 -3
- package/dist/{chunk-OXBU5AGH.js.map → chunk-42ICEVUN.js.map} +1 -1
- package/dist/{chunk-EFYWV2V5.cjs → chunk-4U7QAUV3.cjs} +73 -73
- package/dist/{chunk-EFYWV2V5.cjs.map → chunk-4U7QAUV3.cjs.map} +1 -1
- package/dist/{chunk-OFQ6CU6S.js → chunk-52JNQG4K.js} +3 -3
- package/dist/{chunk-OFQ6CU6S.js.map → chunk-52JNQG4K.js.map} +1 -1
- package/dist/{chunk-PERUFUVH.cjs → chunk-5B337MCI.cjs} +15 -15
- package/dist/{chunk-PERUFUVH.cjs.map → chunk-5B337MCI.cjs.map} +1 -1
- package/dist/{chunk-66QSUUB4.cjs → chunk-5DRSENY3.cjs} +24 -24
- package/dist/{chunk-66QSUUB4.cjs.map → chunk-5DRSENY3.cjs.map} +1 -1
- package/dist/{chunk-3YWZ5SOZ.js → chunk-BIQ7COJP.js} +5 -5
- package/dist/{chunk-3YWZ5SOZ.js.map → chunk-BIQ7COJP.js.map} +1 -1
- package/dist/{chunk-4XR66IWF.cjs → chunk-BLGZW3UF.cjs} +64 -23
- package/dist/chunk-BLGZW3UF.cjs.map +1 -0
- package/dist/{chunk-KSHAAPQF.cjs → chunk-BOCHNFDU.cjs} +4 -4
- package/dist/chunk-BOCHNFDU.cjs.map +1 -0
- package/dist/{chunk-Z77M7Q2R.js → chunk-C2UHX7OF.js} +3 -3
- package/dist/{chunk-Z77M7Q2R.js.map → chunk-C2UHX7OF.js.map} +1 -1
- package/dist/{chunk-Q2LEJXLZ.cjs → chunk-C32IL6RD.cjs} +2 -2
- package/dist/{chunk-Q2LEJXLZ.cjs.map → chunk-C32IL6RD.cjs.map} +1 -1
- package/dist/{chunk-5NVGKXJV.cjs → chunk-CV2BEK52.cjs} +111 -3
- package/dist/chunk-CV2BEK52.cjs.map +1 -0
- package/dist/{chunk-G2G7XGFU.cjs → chunk-DOY47F7S.cjs} +7 -7
- package/dist/{chunk-G2G7XGFU.cjs.map → chunk-DOY47F7S.cjs.map} +1 -1
- package/dist/{chunk-5GG4CG4Y.js → chunk-EWNDK4FV.js} +3 -3
- package/dist/{chunk-5GG4CG4Y.js.map → chunk-EWNDK4FV.js.map} +1 -1
- package/dist/{chunk-T4GIHHXY.cjs → chunk-FMQ43SJP.cjs} +6 -6
- package/dist/{chunk-T4GIHHXY.cjs.map → chunk-FMQ43SJP.cjs.map} +1 -1
- package/dist/{chunk-IWUW3YPM.cjs → chunk-FWPGRC4X.cjs} +5 -5
- package/dist/{chunk-IWUW3YPM.cjs.map → chunk-FWPGRC4X.cjs.map} +1 -1
- package/dist/{chunk-37ZSFS6A.cjs → chunk-GC77W57T.cjs} +18 -18
- package/dist/{chunk-37ZSFS6A.cjs.map → chunk-GC77W57T.cjs.map} +1 -1
- package/dist/{chunk-BNR5FKL5.js → chunk-H2E4QXEZ.js} +3 -3
- package/dist/{chunk-BNR5FKL5.js.map → chunk-H2E4QXEZ.js.map} +1 -1
- package/dist/{chunk-GF7ZA26H.js → chunk-HA2PVTER.js} +5 -5
- package/dist/{chunk-GF7ZA26H.js.map → chunk-HA2PVTER.js.map} +1 -1
- package/dist/{chunk-M5QY464F.cjs → chunk-HBRDKHIW.cjs} +21 -21
- package/dist/{chunk-M5QY464F.cjs.map → chunk-HBRDKHIW.cjs.map} +1 -1
- package/dist/{chunk-E62W5I6A.cjs → chunk-HWBLZSM3.cjs} +109 -7
- package/dist/chunk-HWBLZSM3.cjs.map +1 -0
- package/dist/{chunk-5LWYX4GV.js → chunk-IKN54UGB.js} +3 -3
- package/dist/{chunk-5LWYX4GV.js.map → chunk-IKN54UGB.js.map} +1 -1
- package/dist/{chunk-UVUHVY7F.js → chunk-JCYTTTM2.js} +2 -2
- package/dist/{chunk-UVUHVY7F.js.map → chunk-JCYTTTM2.js.map} +1 -1
- package/dist/{chunk-PJAJCFLP.cjs → chunk-JEUZNHLL.cjs} +168 -44
- package/dist/chunk-JEUZNHLL.cjs.map +1 -0
- package/dist/{chunk-TAPBDT47.js → chunk-JVYDKXGY.js} +4 -4
- package/dist/{chunk-TAPBDT47.js.map → chunk-JVYDKXGY.js.map} +1 -1
- package/dist/{chunk-V6OXSXIX.js → chunk-K3YGI5IW.js} +107 -4
- package/dist/chunk-K3YGI5IW.js.map +1 -0
- package/dist/{chunk-SCDE676D.js → chunk-KKFFQUMM.js} +65 -23
- package/dist/chunk-KKFFQUMM.js.map +1 -0
- package/dist/{chunk-BHL7TAQO.js → chunk-LTBM2KMY.js} +43 -10
- package/dist/chunk-LTBM2KMY.js.map +1 -0
- package/dist/{chunk-BMDOPJBP.cjs → chunk-MZ772ZXA.cjs} +17 -17
- package/dist/{chunk-BMDOPJBP.cjs.map → chunk-MZ772ZXA.cjs.map} +1 -1
- package/dist/{chunk-SW5ZD7BO.js → chunk-NS34PZ2S.js} +3 -3
- package/dist/{chunk-SW5ZD7BO.js.map → chunk-NS34PZ2S.js.map} +1 -1
- package/dist/{chunk-6Q4BS6AR.js → chunk-NT3ZFUNJ.js} +31 -3
- package/dist/chunk-NT3ZFUNJ.js.map +1 -0
- package/dist/{chunk-VBP4DH37.js → chunk-O53P2D4V.js} +130 -15
- package/dist/chunk-O53P2D4V.js.map +1 -0
- package/dist/{chunk-AT53ZQUC.js → chunk-OW5AXH2Y.js} +51 -7
- package/dist/chunk-OW5AXH2Y.js.map +1 -0
- package/dist/{chunk-F6XIH3TZ.cjs → chunk-OZHE77T3.cjs} +9 -9
- package/dist/{chunk-F6XIH3TZ.cjs.map → chunk-OZHE77T3.cjs.map} +1 -1
- package/dist/{chunk-5J2LIQYU.js → chunk-PKWRAMVB.js} +6 -6
- package/dist/{chunk-5J2LIQYU.js.map → chunk-PKWRAMVB.js.map} +1 -1
- package/dist/{chunk-BCY3A62O.cjs → chunk-POZBRZUM.cjs} +75 -60
- package/dist/chunk-POZBRZUM.cjs.map +1 -0
- package/dist/{chunk-X2YHKP4D.cjs → chunk-PWIKUOLB.cjs} +8 -8
- package/dist/{chunk-X2YHKP4D.cjs.map → chunk-PWIKUOLB.cjs.map} +1 -1
- package/dist/{chunk-OXTF4Y3P.cjs → chunk-PYYYBINP.cjs} +6 -6
- package/dist/{chunk-OXTF4Y3P.cjs.map → chunk-PYYYBINP.cjs.map} +1 -1
- package/dist/{chunk-WZG6GZIL.cjs → chunk-QCGSL4CJ.cjs} +4 -4
- package/dist/{chunk-WZG6GZIL.cjs.map → chunk-QCGSL4CJ.cjs.map} +1 -1
- package/dist/{chunk-XEPKONJC.js → chunk-QCVQVKCI.js} +3 -3
- package/dist/{chunk-XEPKONJC.js.map → chunk-QCVQVKCI.js.map} +1 -1
- package/dist/{chunk-3L7GMQ4M.cjs → chunk-QCZYYAPZ.cjs} +54 -49
- package/dist/chunk-QCZYYAPZ.cjs.map +1 -0
- package/dist/{chunk-GNLA5NTT.cjs → chunk-QV32JI4L.cjs} +4 -4
- package/dist/{chunk-GNLA5NTT.cjs.map → chunk-QV32JI4L.cjs.map} +1 -1
- package/dist/{chunk-3QJ3UR5Z.js → chunk-QVAUBB2T.js} +11 -11
- package/dist/{chunk-3QJ3UR5Z.js.map → chunk-QVAUBB2T.js.map} +1 -1
- package/dist/{chunk-MVXZP6VB.js → chunk-R22UHRR6.js} +109 -7
- package/dist/chunk-R22UHRR6.js.map +1 -0
- package/dist/{chunk-KL6GAYTT.js → chunk-S6DXSQCV.js} +5 -3
- package/dist/chunk-S6DXSQCV.js.map +1 -0
- package/dist/{chunk-V24EPI5N.cjs → chunk-U4DIGIC3.cjs} +5 -3
- package/dist/chunk-U4DIGIC3.cjs.map +1 -0
- package/dist/{chunk-H5KHWTAE.js → chunk-UY6QZX7H.js} +4 -4
- package/dist/chunk-UY6QZX7H.js.map +1 -0
- package/dist/{chunk-XNJDAW3M.js → chunk-V6TC2NDG.js} +31 -17
- package/dist/chunk-V6TC2NDG.js.map +1 -0
- package/dist/{chunk-DBD4BCGH.cjs → chunk-VDFQKLDG.cjs} +33 -2
- package/dist/chunk-VDFQKLDG.cjs.map +1 -0
- package/dist/{chunk-PGDR7CO3.cjs → chunk-WHV7MDNC.cjs} +70 -11
- package/dist/chunk-WHV7MDNC.cjs.map +1 -0
- package/dist/{chunk-HTDKEYMY.cjs → chunk-XBHDXURR.cjs} +139 -91
- package/dist/chunk-XBHDXURR.cjs.map +1 -0
- package/dist/{chunk-PAUWEWTY.js → chunk-YLDY23N2.js} +12 -7
- package/dist/chunk-YLDY23N2.js.map +1 -0
- package/dist/entries/apps.cjs +43 -43
- package/dist/entries/apps.js +8 -8
- package/dist/entries/credits.cjs +282 -226
- package/dist/entries/credits.d.cts +167 -66
- package/dist/entries/credits.d.ts +167 -66
- package/dist/entries/credits.js +11 -11
- package/dist/entries/llm-models.cjs +88 -68
- package/dist/entries/llm-models.d.cts +73 -6
- package/dist/entries/llm-models.d.ts +73 -6
- package/dist/entries/llm-models.js +2 -2
- package/dist/entries/media.cjs +87 -87
- package/dist/entries/media.js +1 -1
- package/dist/entries/model-catalog.cjs +133 -133
- package/dist/entries/model-catalog.js +4 -4
- package/dist/entries/models.cjs +458 -406
- package/dist/entries/models.d.cts +64 -29
- package/dist/entries/models.d.ts +64 -29
- package/dist/entries/models.js +7 -7
- package/dist/entries/nodes.cjs +215 -215
- package/dist/entries/nodes.js +11 -11
- package/dist/entries/pipeline.cjs +153 -153
- package/dist/entries/pipeline.d.cts +1 -1
- package/dist/entries/pipeline.d.ts +1 -1
- package/dist/entries/pipeline.js +3 -3
- package/dist/entries/social.cjs +237 -177
- package/dist/entries/social.d.cts +183 -6
- package/dist/entries/social.d.ts +183 -6
- package/dist/entries/social.js +2 -2
- package/dist/entries/ugc.cjs +71 -71
- package/dist/entries/ugc.js +4 -4
- package/dist/entries/video.cjs +153 -153
- package/dist/entries/video.d.cts +2 -1
- package/dist/entries/video.d.ts +2 -1
- package/dist/entries/video.js +7 -7
- package/dist/entries/workflow.cjs +152 -152
- package/dist/entries/workflow.js +4 -4
- package/dist/index.cjs +2034 -1846
- package/dist/index.d.cts +5 -5
- package/dist/index.d.ts +5 -5
- package/dist/index.js +26 -26
- package/dist/{model-constants-DZ3tPGFO.d.ts → model-constants-B5DNHIP8.d.ts} +156 -12
- package/dist/{model-constants-BstsUup6.d.cts → model-constants-CQr_d3Kw.d.cts} +156 -12
- package/package.json +1 -1
- package/src/__tests__/cast-swap-limits.test.ts +54 -20
- package/src/__tests__/competitors.test.ts +64 -0
- package/src/__tests__/extend-providers.test.ts +43 -6
- package/src/__tests__/fixtures/measured-input-quote-parity.json +537 -1
- package/src/__tests__/fixtures/planned-length-quote-parity.json +46 -1
- package/src/__tests__/fixtures/probed-node-quote-parity.json +132 -0
- package/src/__tests__/fixtures/video-utility-quote-parity.json +112 -1
- package/src/__tests__/gemini-omni-extend.test.ts +110 -0
- package/src/__tests__/gvp-supported-providers.test.ts +3 -0
- package/src/__tests__/lip-sync-pricing.test.ts +29 -2
- package/src/__tests__/llm-models.test.ts +163 -6
- package/src/__tests__/llm-price-key.test.ts +2 -0
- package/src/__tests__/seedance-2-5-flash-catalog.test.ts +194 -0
- package/src/__tests__/suno-separate.test.ts +32 -0
- package/src/__tests__/video-character-refs.test.ts +48 -0
- package/src/cast-swap-limits.ts +43 -25
- package/src/competitors.ts +80 -8
- package/src/credit-identifiers.ts +51 -32
- package/src/entries/credits.ts +19 -0
- package/src/entries/llm-models.ts +6 -0
- package/src/entries/models.ts +15 -0
- package/src/entries/social.ts +33 -0
- package/src/gemini-omni-extend-quote.ts +76 -0
- package/src/generated/unit-contracts.ts +1 -0
- package/src/lip-sync-pricing.ts +26 -1
- package/src/llm-models.ts +176 -5
- package/src/model-catalog.ts +107 -5
- package/src/model-constants.ts +274 -11
- package/src/node-default-mappings.ts +2 -0
- package/src/node-runtime-keys.ts +2 -2
- package/src/seedance-extend-rate.ts +83 -20
- package/src/seedance-lip-sync.ts +68 -0
- package/src/suno-separate.ts +51 -0
- package/src/topics.ts +162 -0
- package/src/video-character-refs.ts +26 -6
- package/src/video-face-mesh.ts +1 -1
- package/dist/chunk-3L7GMQ4M.cjs.map +0 -1
- package/dist/chunk-4XR66IWF.cjs.map +0 -1
- package/dist/chunk-5NVGKXJV.cjs.map +0 -1
- package/dist/chunk-6Q4BS6AR.js.map +0 -1
- package/dist/chunk-AT53ZQUC.js.map +0 -1
- package/dist/chunk-BCY3A62O.cjs.map +0 -1
- package/dist/chunk-BHL7TAQO.js.map +0 -1
- package/dist/chunk-DBD4BCGH.cjs.map +0 -1
- package/dist/chunk-E62W5I6A.cjs.map +0 -1
- package/dist/chunk-H5KHWTAE.js.map +0 -1
- package/dist/chunk-HTDKEYMY.cjs.map +0 -1
- package/dist/chunk-KL6GAYTT.js.map +0 -1
- package/dist/chunk-KSHAAPQF.cjs.map +0 -1
- package/dist/chunk-MVXZP6VB.js.map +0 -1
- package/dist/chunk-PAUWEWTY.js.map +0 -1
- package/dist/chunk-PGDR7CO3.cjs.map +0 -1
- package/dist/chunk-PJAJCFLP.cjs.map +0 -1
- package/dist/chunk-SCDE676D.js.map +0 -1
- package/dist/chunk-V24EPI5N.cjs.map +0 -1
- package/dist/chunk-V6OXSXIX.js.map +0 -1
- package/dist/chunk-VBP4DH37.js.map +0 -1
- package/dist/chunk-XNJDAW3M.js.map +0 -1
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The price of ONE Gemini Omni Flash 1.2 Extend run (`gemini-omni-flash-1-2-extend`),
|
|
3
|
+
* as ONE id (decided 2026-11-17) — part of the public credit-id contract.
|
|
4
|
+
*
|
|
5
|
+
* Such a run is charged per second of video it sends and adds, on two rows
|
|
6
|
+
* the server reads, the total rounded up once: no single row × units can name
|
|
7
|
+
* it. `geminiOmniExtendQuoteCreditId` names the whole run instead:
|
|
8
|
+
*
|
|
9
|
+
* `gemini-omni-flash-1-2-extend:<resolution>:sent-<S>s:added-<A>s`
|
|
10
|
+
*
|
|
11
|
+
* - `<resolution>`: the one the run renders at and is priced by (360p / 720p /
|
|
12
|
+
* 1080p / 4k; any other is 720p, as the run reads it);
|
|
13
|
+
* - `<S>`: the seconds of the source sent — its last 10 seconds, or all of a
|
|
14
|
+
* shorter source, read by the platform's container-overhang rule (8.04 s is
|
|
15
|
+
* 8 s, 8.3 s is 8.3 s); with no known source, the whole 10 s window, the
|
|
16
|
+
* most a run sends;
|
|
17
|
+
* - `<A>`: the whole seconds added, held in the engine's 3–10 s window (8
|
|
18
|
+
* when none is asked).
|
|
19
|
+
*
|
|
20
|
+
* `GET /v1/credits/model-cost` and `POST /v1/credits/model-costs` answer it
|
|
21
|
+
* with exactly what such a run is charged; an id the server does not price (a
|
|
22
|
+
* resolution, a length or a source it refuses) lands in `missing`. Numbers are
|
|
23
|
+
* written exactly as JavaScript prints them.
|
|
24
|
+
*/
|
|
25
|
+
import { MODEL_CATALOG } from "./model-catalog.js"
|
|
26
|
+
import { seedanceExtendAddedSec, seedanceExtendSentSec } from "./seedance-extend-rate.js"
|
|
27
|
+
|
|
28
|
+
const PROVIDER = "gemini-omni-flash-1-2-extend"
|
|
29
|
+
const DEFAULT_RESOLUTION = "720p"
|
|
30
|
+
const PREFIX = `${PROVIDER}:`
|
|
31
|
+
const NUMBER = String.raw`\d{1,7}(?:\.\d{1,20})?`
|
|
32
|
+
const QUOTE_ID = new RegExp(`^${PROVIDER}:([0-9a-z]+):sent-(${NUMBER})s:added-(\\d{1,3})s$`)
|
|
33
|
+
|
|
34
|
+
/** A `gemini-omni-flash-1-2-extend:<res>:sent-<S>s:added-<A>s` id, read back. */
|
|
35
|
+
export interface GeminiOmniExtendQuoteCreditIdParts {
|
|
36
|
+
/** The resolution the run renders at. */
|
|
37
|
+
readonly resolution: string
|
|
38
|
+
/** The seconds of the source sent. */
|
|
39
|
+
readonly sentSec: number
|
|
40
|
+
/** The whole seconds added. */
|
|
41
|
+
readonly addedSec: number
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* The id of the whole price of one Gemini Omni Flash 1.2 Extend run that adds
|
|
46
|
+
* `duration` seconds at `resolution` to a source whose picture lasts
|
|
47
|
+
* `sourcePictureSec` (undefined, or not a positive number: not known — the
|
|
48
|
+
* whole 10 s window, the most a run of that length costs).
|
|
49
|
+
*/
|
|
50
|
+
export function geminiOmniExtendQuoteCreditId(args: {
|
|
51
|
+
readonly sourcePictureSec?: number | null
|
|
52
|
+
readonly duration?: number | string
|
|
53
|
+
readonly resolution?: unknown
|
|
54
|
+
}): string {
|
|
55
|
+
const resolution = typeof args.resolution === "string" && MODEL_CATALOG[PROVIDER]?.resolutions?.includes(args.resolution)
|
|
56
|
+
? args.resolution
|
|
57
|
+
: DEFAULT_RESOLUTION
|
|
58
|
+
const sent = seedanceExtendSentSec(args.sourcePictureSec)
|
|
59
|
+
const added = seedanceExtendAddedSec(PROVIDER, args.duration)
|
|
60
|
+
return `${PREFIX}${resolution}:sent-${String(sent)}s:added-${String(added)}s`
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* The parts of such an id by its shape alone, or undefined. Which
|
|
65
|
+
* resolutions, lengths and sources the server prices is the server's to say:
|
|
66
|
+
* an id it does not price lands in `missing`.
|
|
67
|
+
*/
|
|
68
|
+
export function parseGeminiOmniExtendQuoteCreditId(id: string): GeminiOmniExtendQuoteCreditIdParts | undefined {
|
|
69
|
+
if (typeof id !== "string" || !id.startsWith(PREFIX)) return undefined
|
|
70
|
+
const m = QUOTE_ID.exec(id)
|
|
71
|
+
if (!m) return undefined
|
|
72
|
+
const sentSec = Number(m[2])
|
|
73
|
+
const addedSec = Number(m[3])
|
|
74
|
+
if (!Number.isFinite(sentSec) || sentSec <= 0 || !Number.isInteger(addedSec) || addedSec <= 0) return undefined
|
|
75
|
+
return { resolution: m[1]!, sentSec, addedSec }
|
|
76
|
+
}
|
|
@@ -14,6 +14,7 @@ export const UNIT_CONTRACTS: ReadonlyArray<readonly [type: string, producer: "au
|
|
|
14
14
|
["remove-audio", "video"], // unit:remove-audio
|
|
15
15
|
["gif-to-video", "video"], // unit:gif-to-video
|
|
16
16
|
["split-into-layers", "image"], // unit:split-into-layers
|
|
17
|
+
["suno-speech", "audio"], // unit:suno-speech
|
|
17
18
|
]
|
|
18
19
|
|
|
19
20
|
// The use-case node units (execution.kind "use-case"), in position order — each a route POST /v1/<type> (+ /estimate, /continue).
|
package/src/lip-sync-pricing.ts
CHANGED
|
@@ -128,7 +128,10 @@ export const LIP_SYNC_MAX_AUDIO_SECONDS: Record<string, number> = {
|
|
|
128
128
|
"sync-lipsync-v3": 300,
|
|
129
129
|
// Volcengine (KIE) — video-to-video dubbing, per-second, 5-min ceiling.
|
|
130
130
|
"volcengine-lipsync": 300,
|
|
131
|
-
//
|
|
131
|
+
// LatentSync — its output is as long as its audio, and its run time grows
|
|
132
|
+
// with that length. 5-min ceiling: longer audio is priced at it and cut to it.
|
|
133
|
+
"latentsync": 300,
|
|
134
|
+
// The per-second-rate models: their own maximum (longer audio is refused; up to the 0.05 s its hold forgives past it, held at the maximum and cut to it).
|
|
132
135
|
...Object.fromEntries(Object.entries(LIP_SYNC_AUDIO_RATES).map(([provider, rate]) => [provider, rate.maxSeconds])),
|
|
133
136
|
}
|
|
134
137
|
|
|
@@ -165,12 +168,34 @@ const PER_SECOND_LIP_SYNC_PROVIDERS = new Set([
|
|
|
165
168
|
"sync-lipsync-v3",
|
|
166
169
|
// Volcengine (KIE) — video-to-video dubbing, billed per output second.
|
|
167
170
|
"volcengine-lipsync",
|
|
171
|
+
// LatentSync — held by the bucket of its audio's length and charged what the
|
|
172
|
+
// run used (LIP_SYNC_CHARGED_AT_RUN_COST below).
|
|
173
|
+
"latentsync",
|
|
168
174
|
])
|
|
169
175
|
|
|
170
176
|
export function isPerSecondLipSyncProvider(provider: string): boolean {
|
|
171
177
|
return PER_SECOND_LIP_SYNC_PROVIDERS.has(provider)
|
|
172
178
|
}
|
|
173
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Bucketed lip-sync models whose bucket row is a HOLD, not the charge (decided
|
|
182
|
+
* 2026-11-18): the run is charged what it used once it ends. Less than the
|
|
183
|
+
* hold releases the rest; more is collected from the payer's balance. The
|
|
184
|
+
* work such a model does grows with its audio's length AND with settings the
|
|
185
|
+
* bucket cannot see (LatentSync's inference steps, the size of its video), so
|
|
186
|
+
* one fixed row per bucket would be wrong for most runs. Every other bucketed
|
|
187
|
+
* model is charged its bucket row as it is.
|
|
188
|
+
*
|
|
189
|
+
* A member MUST be a bucketed model (`isPerSecondLipSyncProvider`): the hold is
|
|
190
|
+
* its bucket row. `lip-sync-pricing.test.ts` holds that.
|
|
191
|
+
*/
|
|
192
|
+
export const LIP_SYNC_CHARGED_AT_RUN_COST: ReadonlySet<string> = new Set(["latentsync"])
|
|
193
|
+
|
|
194
|
+
/** Is this lip-sync model charged what its run used, with its bucket row as the hold? */
|
|
195
|
+
export function isLipSyncChargedAtRunCost(provider: unknown): boolean {
|
|
196
|
+
return typeof provider === "string" && LIP_SYNC_CHARGED_AT_RUN_COST.has(provider)
|
|
197
|
+
}
|
|
198
|
+
|
|
174
199
|
/**
|
|
175
200
|
* Build the credit identifier for a lip-sync request.
|
|
176
201
|
*
|
package/src/llm-models.ts
CHANGED
|
@@ -15,6 +15,14 @@
|
|
|
15
15
|
|
|
16
16
|
export type LlmTier = "economy" | "standard" | "premium"
|
|
17
17
|
export type KieApiFormat = "chat-completions" | "messages" | "responses"
|
|
18
|
+
|
|
19
|
+
/** How a document is sent to a model, per lane (see `LlmModelDef.fileWire`). */
|
|
20
|
+
export interface LlmFileWire {
|
|
21
|
+
/** The shape on the aggregator's lane: `input-file` (responses dialect) or `image-url` (chat-completions dialect). */
|
|
22
|
+
kie: "input-file" | "image-url"
|
|
23
|
+
/** The shape on the vendor's own API, for a model that has one. */
|
|
24
|
+
direct?: "inline-data"
|
|
25
|
+
}
|
|
18
26
|
export type LlmVendor = "anthropic" | "deepseek" | "google" | "moonshot" | "openai" | "xai"
|
|
19
27
|
|
|
20
28
|
export const LLM_REASONING_EFFORTS = ["none", "low", "medium", "high", "xhigh", "max"] as const
|
|
@@ -118,6 +126,30 @@ export interface LlmModelDef {
|
|
|
118
126
|
* and `kieSlugOrModel` (`gemini-3.1-pro` → `gemini-3.1-pro-preview`).
|
|
119
127
|
*/
|
|
120
128
|
directGeminiModel?: string
|
|
129
|
+
/**
|
|
130
|
+
* How a document (PDF) is sent to this model on each lane that can serve it
|
|
131
|
+
* (decided 2026-11-17). Declared by exactly the models whose modality caps
|
|
132
|
+
* say `file` ({@link llmAcceptsFiles}); a lane's builder sends a document
|
|
133
|
+
* only in the shape named here and refuses one on a model that names none,
|
|
134
|
+
* so a file is never dropped on the way.
|
|
135
|
+
*
|
|
136
|
+
* `kie`:
|
|
137
|
+
* - `"input-file"`: an inline `input_file` part on the responses dialect.
|
|
138
|
+
* - `"image-url"`: an `image_url` part on the chat-completions dialect,
|
|
139
|
+
* holding a `data:application/pdf;base64,…` URL or an https link whose
|
|
140
|
+
* path ends in `.pdf`. That dialect silently drops the `file` and
|
|
141
|
+
* `input_file` shapes (a billed answer about no file), so this is the one
|
|
142
|
+
* shape sent there.
|
|
143
|
+
*
|
|
144
|
+
* `direct`: `"inline-data"`, an `application/pdf` inline part on the vendor's
|
|
145
|
+
* own API. Set on every file model that declares a direct lane, and on no
|
|
146
|
+
* other.
|
|
147
|
+
*
|
|
148
|
+
* Never derived from the dialect: a model gets a shape only by its own
|
|
149
|
+
* probe, recorded with its date on the entry, and
|
|
150
|
+
* `llm-models.test.ts` lists every declaration by model.
|
|
151
|
+
*/
|
|
152
|
+
fileWire?: LlmFileWire
|
|
121
153
|
/**
|
|
122
154
|
* Try the direct-vendor lane FIRST for this model, with KIE as the failure
|
|
123
155
|
* fallback. Absent (while `directGeminiModel` is set) = KIE first, direct
|
|
@@ -182,6 +214,15 @@ export interface LlmModelDef {
|
|
|
182
214
|
* the concrete things Advanced mode buys.
|
|
183
215
|
*/
|
|
184
216
|
directReasoningEfforts?: readonly LlmReasoningEffort[]
|
|
217
|
+
/**
|
|
218
|
+
* true = Google's own API takes `thinkingLevel: XHIGH` on this model, so an
|
|
219
|
+
* `xhigh` (or `max`) effort on the direct lane is sent as XHIGH. Absent =
|
|
220
|
+
* both collapse onto HIGH there, the level every other Gemini tops out at.
|
|
221
|
+
* Declared per model from a probe, never derived from a model name. Only
|
|
222
|
+
* meaningful with `directGeminiModel` and an `xhigh` level on the direct
|
|
223
|
+
* ladder (registry test).
|
|
224
|
+
*/
|
|
225
|
+
directXhighThinking?: true
|
|
185
226
|
/** false = model rejects `temperature` (Claude 5-era, GPT-5.6). Absent = accepts. */
|
|
186
227
|
supportsTemperature?: false
|
|
187
228
|
/**
|
|
@@ -679,6 +720,76 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
679
720
|
// tokens. No `reasoningOutputFloor`: both lanes take the default 32768.
|
|
680
721
|
thinkingDefaultOn: true,
|
|
681
722
|
},
|
|
723
|
+
{
|
|
724
|
+
id: "gemini-4-hydrogen",
|
|
725
|
+
displayName: "Gemini 4 Hydrogen",
|
|
726
|
+
series: "Gemini",
|
|
727
|
+
desc: "Fast multimodal Gemini 4, four thinking levels, 1M context",
|
|
728
|
+
tier: "premium",
|
|
729
|
+
kieFormat: "chat-completions",
|
|
730
|
+
// KIE serves it on the OpenAI-compatible dialect under this slug, the
|
|
731
|
+
// same shape as Carbon's. Its lane passed its probe (2026-11-16, 29 calls):
|
|
732
|
+
// every call answered, images read, streams ended cleanly with a final
|
|
733
|
+
// usage chunk (no reasoning deltas), no empty 200, no in-band error, no
|
|
734
|
+
// negative counts, no code fences or code-execution leaks. KIE flags it
|
|
735
|
+
// "Chat only", like Carbon: it may not back a tool-loop feature (none
|
|
736
|
+
// does today). Latency: median 7 s, but 4 of 29 trivial calls took
|
|
737
|
+
// 31–78 s — inside the KIE lane's default timeout, which no model
|
|
738
|
+
// overrides.
|
|
739
|
+
kieSlugOrModel: "gemini-4-hydrogen-openai",
|
|
740
|
+
vendor: "google",
|
|
741
|
+
// NO trusted `structuredOutputMode` (decided 2026-11-16), as Carbon: KIE
|
|
742
|
+
// did NOT enforce a `response_format` json_schema — 3 of 3 probe calls
|
|
743
|
+
// came back as valid JSON with prose in the enum field. So it is not a
|
|
744
|
+
// STRUCTURED_VISION_MODELS member, and every answer is parsed, validated
|
|
745
|
+
// and re-asked by `llmCompleteStructured`. The schema still goes on the
|
|
746
|
+
// wire as a hint: `response_format` on KIE, `responseJsonSchema` on the
|
|
747
|
+
// direct Google lane, which enforced it (enum honoured) in the probe.
|
|
748
|
+
structuredOutputHint: "kie-response-format",
|
|
749
|
+
supportsImages: true,
|
|
750
|
+
// The registry's usual 16384, as Carbon. Every call is floored to the
|
|
751
|
+
// default 32768 (`thinkingDefaultOn`, below): KIE accepted max_tokens
|
|
752
|
+
// 32768 and 65536, and Google lists an output cap of 65,536 (models.list)
|
|
753
|
+
// and accepted maxOutputTokens 65536.
|
|
754
|
+
maxOutputTokens: 16384,
|
|
755
|
+
// KIE first, Google as the reliability fallback (and Advanced mode) — no
|
|
756
|
+
// `preferDirect`, no `directOnly`, as Carbon. Google serves
|
|
757
|
+
// `models/gemini-4-hydrogen` (models.list, 2026-11-16: input 1,048,576,
|
|
758
|
+
// output 65,536).
|
|
759
|
+
directGeminiModel: "gemini-4-hydrogen",
|
|
760
|
+
// Reads PDF files (decided 2026-11-17). Measured on KIE 2026-11-17: a PDF
|
|
761
|
+
// is read only as an `image_url` part (a `data:application/pdf` URL, or an
|
|
762
|
+
// https link ending in `.pdf`); the `file` and `input_file` shapes are
|
|
763
|
+
// dropped, billed. Read correctly at 1, 5, 14 and 15 pages (facts from
|
|
764
|
+
// pages 2, 8 and 11), up to 2.2 MB by link and 1.36 million characters
|
|
765
|
+
// inline; 1,280 to 2,670 prompt tokens a page. Google's own API reads an
|
|
766
|
+
// inline `application/pdf` part (probed 2026-11-17, thinking LOW): the
|
|
767
|
+
// same three documents answered correctly with almost the same counts —
|
|
768
|
+
// 5 pages 13,332 prompt tokens (KIE 13,357), 14 pages 28,048 (28,068),
|
|
769
|
+
// 15 pages and 2.2 MB 19,207 (19,220) — 520 image tokens a page plus the
|
|
770
|
+
// page's text. Not measured on either lane: a blank or scanned page, more
|
|
771
|
+
// than 15 pages, more than 2.2 MB, several files in one call.
|
|
772
|
+
fileWire: { kie: "image-url", direct: "inline-data" },
|
|
773
|
+
// KIE accepted reasoning_effort low / medium / high / xhigh (xhigh reasons
|
|
774
|
+
// clearly deeper); Google 400s thinkingLevel MINIMAL on this model ("not
|
|
775
|
+
// supported") and answers LOW / MEDIUM / HIGH / XHIGH (probed 2026-11-16).
|
|
776
|
+
// So no `none` (it maps to MINIMAL in the direct client) and no
|
|
777
|
+
// `directReasoningEfforts`: one ladder on both lanes. KIE also accepted
|
|
778
|
+
// the off-enum `none`, `minimal` and `max` and still reasoned, so the
|
|
779
|
+
// clamp here is what keeps a request on the ladder: `none` runs at Auto,
|
|
780
|
+
// `max` at xhigh.
|
|
781
|
+
reasoningEfforts: ["low", "medium", "high", "xhigh"],
|
|
782
|
+
// Google takes thinkingLevel XHIGH on this model, so an xhigh effort on
|
|
783
|
+
// the direct lane is sent as XHIGH rather than collapsing to HIGH.
|
|
784
|
+
directXhighThinking: true,
|
|
785
|
+
// Reasons with no thinking param sent on both lanes (KIE reported
|
|
786
|
+
// reasoning tokens on every no-effort call; Google's no-level call
|
|
787
|
+
// thought). Unlike Carbon, KIE's `completion_tokens` INCLUDES the
|
|
788
|
+
// reasoning (`completion_tokens_details.reasoning_tokens` is a part of it;
|
|
789
|
+
// total = prompt + completion), so the reported output count is billed as
|
|
790
|
+
// it stands. No `reasoningOutputFloor`: both lanes take the default 32768.
|
|
791
|
+
thinkingDefaultOn: true,
|
|
792
|
+
},
|
|
682
793
|
{
|
|
683
794
|
id: "claude-opus-4.7",
|
|
684
795
|
displayName: "Claude Opus 4.7",
|
|
@@ -946,6 +1057,8 @@ export const LLM_MODELS: readonly LlmModelDef[] = [
|
|
|
946
1057
|
// `effortPriced`. The charge follows what KIE states or reports.
|
|
947
1058
|
kieSlugOrModel: "gpt-6-1-terra",
|
|
948
1059
|
vendor: "openai",
|
|
1060
|
+
// A PDF goes inline as an `input_file` part (probed 2026-11-13).
|
|
1061
|
+
fileWire: { kie: "input-file" },
|
|
949
1062
|
structuredOutputMode: "responses-json-schema",
|
|
950
1063
|
supportsImages: true,
|
|
951
1064
|
maxOutputTokens: 16384,
|
|
@@ -1568,9 +1681,10 @@ export function defaultReasoningEffort(feature: string, modelId?: string): LlmRe
|
|
|
1568
1681
|
* input requires a separate audio-capable model we don't route to today.
|
|
1569
1682
|
*
|
|
1570
1683
|
* `file` (decided 2026-11-13): the model reads documents (PDF) sent with the
|
|
1571
|
-
* call. Declared on
|
|
1572
|
-
* derived for any other: absent means
|
|
1573
|
-
* {@link llmAcceptsFiles}.
|
|
1684
|
+
* call. Declared on each model that does — GPT-6.1 Terra, and Gemini 4
|
|
1685
|
+
* Hydrogen from 2026-11-17 — and never derived for any other: absent means
|
|
1686
|
+
* no. Read it through {@link llmAcceptsFiles}. A model that declares it also
|
|
1687
|
+
* declares how a file is sent to it (`fileWire` on its registry entry).
|
|
1574
1688
|
*/
|
|
1575
1689
|
export const LLM_MODALITY_CAPS: Record<string, LlmModalityCaps> = {
|
|
1576
1690
|
// Keeps full caps after KIE dropped its channel (2026-11-13): it stays a
|
|
@@ -1606,6 +1720,24 @@ export const LLM_MODALITY_CAPS: Record<string, LlmModalityCaps> = {
|
|
|
1606
1720
|
// choose it (modelReadsClip) — both intended. It was image-only from
|
|
1607
1721
|
// 2026-11-12 until this enrolment was decided.
|
|
1608
1722
|
"gemini-4-carbon": { image: true, video: true, audio: true },
|
|
1723
|
+
// gemini-4-hydrogen takes video + audio ON THE LLM NODES ONLY (decided
|
|
1724
|
+
// 2026-11-16; probed 2026-11-17): it is listed in LLM_NODE_ONLY_MEDIA_MODELS
|
|
1725
|
+
// (below), so these caps do NOT enrol it in VIDEO_ANALYSIS_LLM_MODELS or let
|
|
1726
|
+
// a trend's clip-reading LLM step choose it. Its KIE lane reads both through
|
|
1727
|
+
// the `image_url` part the chat-completions builder already sends (an https
|
|
1728
|
+
// URL or a `data:` URL; an `input_audio` part is dropped by KIE, billed, so
|
|
1729
|
+
// it is never sent): a 52 s 480p clip by URL read correctly 3 of 3, its
|
|
1730
|
+
// sound heard, ≈105 prompt tokens a second (≈74 of frames, ≈32 of sound);
|
|
1731
|
+
// an mp3 by URL or data URL transcribed 3 of 3, ≈32 tokens a second. KIE
|
|
1732
|
+
// takes a linked file up to 74 MB and picks its type from the link's
|
|
1733
|
+
// extension (an extensionless link is refused). Longer clips and long
|
|
1734
|
+
// audio were not probed. Google's own API (where a media call is pinned
|
|
1735
|
+
// when this install has a Gemini key, as Carbon's) lists video and audio
|
|
1736
|
+
// input for it; not probed with media.
|
|
1737
|
+
// It also reads documents (PDF, decided 2026-11-17; `fileWire` on its
|
|
1738
|
+
// registry entry says how each lane is sent one). The `file` cap is read only
|
|
1739
|
+
// by the LLM nodes (`llmAcceptsFiles`), so it enrols the model in nothing else.
|
|
1740
|
+
"gemini-4-hydrogen": { image: true, video: true, audio: true, file: true },
|
|
1609
1741
|
"claude-haiku-4.5": { image: true, video: false, audio: false },
|
|
1610
1742
|
"claude-haiku-5.5": { image: true, video: false, audio: false },
|
|
1611
1743
|
"claude-sonnet-4.6": { image: true, video: false, audio: false },
|
|
@@ -1639,6 +1771,35 @@ export const LLM_MODALITY_CAPS: Record<string, LlmModalityCaps> = {
|
|
|
1639
1771
|
"deepseek-v4.1-flash": { image: true, video: false, audio: false },
|
|
1640
1772
|
}
|
|
1641
1773
|
|
|
1774
|
+
/**
|
|
1775
|
+
* Models whose video and audio caps are for the LLM nodes ONLY (LLM Chat, the
|
|
1776
|
+
* MCP `generate_text` tool and their API routes) and never enrol them in
|
|
1777
|
+
* another product that derives "the models that read video" from
|
|
1778
|
+
* {@link LLM_MODALITY_CAPS}: Video Analysis ({@link VIDEO_ANALYSIS_LLM_MODELS})
|
|
1779
|
+
* and a trend's clip-reading LLM step. Gemini 4 Hydrogen (decided 2026-11-16).
|
|
1780
|
+
*/
|
|
1781
|
+
export const LLM_NODE_ONLY_MEDIA_MODELS: readonly string[] = ["gemini-4-hydrogen"]
|
|
1782
|
+
|
|
1783
|
+
/** Whether `modelId` reads video/audio on the LLM nodes only ({@link LLM_NODE_ONLY_MEDIA_MODELS}). */
|
|
1784
|
+
export function readsMediaOnLlmNodesOnly(modelId: string | undefined): boolean {
|
|
1785
|
+
return Boolean(modelId && LLM_NODE_ONLY_MEDIA_MODELS.includes(modelId))
|
|
1786
|
+
}
|
|
1787
|
+
|
|
1788
|
+
/**
|
|
1789
|
+
* Whether `modelId` reads VIDEO for a product other than the LLM nodes (Video
|
|
1790
|
+
* Analysis, a trend's clip step, anything new): its `video` cap, less
|
|
1791
|
+
* {@link LLM_NODE_ONLY_MEDIA_MODELS}. Every such product reads the cap through
|
|
1792
|
+
* this, never `.video` directly (`tools/__tests__/llm-media-caps-guard.test.mjs`).
|
|
1793
|
+
*/
|
|
1794
|
+
export function readsVideoOutsideLlmNodes(modelId: string | undefined): boolean {
|
|
1795
|
+
return getLlmModalityCaps(modelId).video && !readsMediaOnLlmNodesOnly(modelId)
|
|
1796
|
+
}
|
|
1797
|
+
|
|
1798
|
+
/** The audio twin of {@link readsVideoOutsideLlmNodes}. */
|
|
1799
|
+
export function readsAudioOutsideLlmNodes(modelId: string | undefined): boolean {
|
|
1800
|
+
return getLlmModalityCaps(modelId).audio && !readsMediaOnLlmNodesOnly(modelId)
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1642
1803
|
/** Capability lookup with safe default — unknown models get image-only. */
|
|
1643
1804
|
export function getLlmModalityCaps(modelId: string | undefined): LlmModalityCaps {
|
|
1644
1805
|
if (!modelId) return { image: true, video: false, audio: false }
|
|
@@ -1659,6 +1820,11 @@ export function llmAcceptsFiles(modelId: string | undefined): boolean {
|
|
|
1659
1820
|
return Boolean(modelId && LLM_MODALITY_CAPS[modelId]?.file)
|
|
1660
1821
|
}
|
|
1661
1822
|
|
|
1823
|
+
/** How `modelId` is sent a document on each lane (`fileWire` on its registry entry); `undefined` for a model that reads none. */
|
|
1824
|
+
export function llmFileWire(modelId: string | undefined): LlmFileWire | undefined {
|
|
1825
|
+
return llmAcceptsFiles(modelId) ? LLM_MODELS.find((m) => m.id === modelId)?.fileWire : undefined
|
|
1826
|
+
}
|
|
1827
|
+
|
|
1662
1828
|
/** The models that read documents, in registry order — what a refusal names. */
|
|
1663
1829
|
export const LLM_FILE_MODELS: readonly LlmModelDef[] = LLM_MODELS.filter((m) => llmAcceptsFiles(m.id))
|
|
1664
1830
|
|
|
@@ -2030,9 +2196,14 @@ export function resolveLlmCreditId(feature: string, body: unknown): string {
|
|
|
2030
2196
|
)
|
|
2031
2197
|
}
|
|
2032
2198
|
|
|
2033
|
-
/**
|
|
2199
|
+
/**
|
|
2200
|
+
* Models capable of video-analysis: capability-derived, never hand-listed
|
|
2201
|
+
* (route-enum-sync convention) — less the models that read media on the LLM
|
|
2202
|
+
* nodes only ({@link LLM_NODE_ONLY_MEDIA_MODELS}), which no Video Analysis
|
|
2203
|
+
* tier, price or stored `llmModel` passthrough reaches.
|
|
2204
|
+
*/
|
|
2034
2205
|
export const VIDEO_ANALYSIS_LLM_MODELS: string[] = LLM_MODELS
|
|
2035
|
-
.filter((m) =>
|
|
2206
|
+
.filter((m) => readsVideoOutsideLlmNodes(m.id) && readsAudioOutsideLlmNodes(m.id))
|
|
2036
2207
|
.map((m) => m.id)
|
|
2037
2208
|
|
|
2038
2209
|
/**
|
package/src/model-catalog.ts
CHANGED
|
@@ -3040,6 +3040,42 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
3040
3040
|
{ identifier: "seedance-2-5:30s:1080p", credits: 11850, note: "30s 1080p (max)" },
|
|
3041
3041
|
],
|
|
3042
3042
|
},
|
|
3043
|
+
// Seedance 2.5 Flash — the fast tier of Seedance 2.5, listed beside it (no
|
|
3044
|
+
// default, preset or role moves to it). Its own facts, never the sibling's:
|
|
3045
|
+
// 480p/720p only (no 1080p), 10 images / 5 videos / 5 audio references
|
|
3046
|
+
// (SEEDANCE_2_5_FLASH_REF_LIMITS), WAV/MP3 reference audio only, a prompt plus
|
|
3047
|
+
// reference audio alone is a valid request, and no draft mode or HD finalize.
|
|
3048
|
+
"seedance-2-5-flash": {
|
|
3049
|
+
id: "seedance-2-5-flash",
|
|
3050
|
+
kind: "video",
|
|
3051
|
+
// `v2v`: it edits a clip by instruction through the same Seedance reference
|
|
3052
|
+
// lane as Seedance 2.5 (SEEDANCE_VIDEO_EDIT_PROVIDERS).
|
|
3053
|
+
modes: ["i2v", "t2v", "v2v"] as const,
|
|
3054
|
+
family: "Bytedance",
|
|
3055
|
+
maker: "bytedance",
|
|
3056
|
+
label: "Seedance 2.5 Flash",
|
|
3057
|
+
series: "Seedance",
|
|
3058
|
+
description: "Seedance 2.5 Flash — the faster, lower-cost tier of Seedance 2.5: 4–30s with native sound at 480p or 720p, from text, a first frame or first and last frames, up to 10 image / 5 video / 5 audio references (audio alone works too), and video edits by instruction.",
|
|
3059
|
+
useCases: ["fast", "narrative", "long-form"],
|
|
3060
|
+
features: ["end-frame", "audio", "reference-image", "video-reference", "reference-to-video"],
|
|
3061
|
+
aspectRatios: VIDEO_RATIOS_SEEDANCE_2,
|
|
3062
|
+
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],
|
|
3063
|
+
defaultDuration: 8,
|
|
3064
|
+
autoDuration: true,
|
|
3065
|
+
referenceTaskTypes: ["reference", "edit", "extend"],
|
|
3066
|
+
resolutions: ["480p", "720p"],
|
|
3067
|
+
// No seed in KIE's schema for Flash either — the provider config omits it.
|
|
3068
|
+
noSeed: true,
|
|
3069
|
+
pricing: [
|
|
3070
|
+
{ identifier: "seedance-2-5-flash", credits: 820, note: "default 8s 720p — see :Ns:res variants for exact" },
|
|
3071
|
+
{ identifier: "seedance-2-5-flash:8s:480p", credits: 370, note: "8s 480p" },
|
|
3072
|
+
{ identifier: "seedance-2-5-flash:8s:720p", credits: 820, note: "8s 720p" },
|
|
3073
|
+
{ identifier: "seedance-2-5-flash:8s:480p-ref", credits: 230, note: "8s 480p with reference video" },
|
|
3074
|
+
{ identifier: "seedance-2-5-flash:8s:720p-ref", credits: 510, note: "8s 720p with reference video" },
|
|
3075
|
+
{ identifier: "seedance-2-5-flash:30s:480p", credits: 1390, note: "30s 480p (max)" },
|
|
3076
|
+
{ identifier: "seedance-2-5-flash:30s:720p", credits: 3080, note: "30s 720p (max)" },
|
|
3077
|
+
],
|
|
3078
|
+
},
|
|
3043
3079
|
|
|
3044
3080
|
// ── Wan ──
|
|
3045
3081
|
// Wan 3.0 (standard + Prime) — a NEW generation, not a tier of the 2.x ladder.
|
|
@@ -3652,6 +3688,33 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
3652
3688
|
{ identifier: "seedance-2-5-extend:1080p:per-2s:9u", credits: 4275, note: "8s added at 1080p to a source of 10s or more" },
|
|
3653
3689
|
],
|
|
3654
3690
|
},
|
|
3691
|
+
// Seedance 2.5 Flash extends ANY video the way Seedance 2.5 does (the
|
|
3692
|
+
// source's last 10 s declared as an extension, no start image), generated
|
|
3693
|
+
// on Seedance 2.5 Flash: its own entry, so a deployment can withhold or
|
|
3694
|
+
// release it apart from Flash generation, at Flash's own 480p / 720p and
|
|
3695
|
+
// 4–30 s. Charged per second of video sent and added, at its resolution's
|
|
3696
|
+
// row, the price of two seconds (decided 2026-11-16).
|
|
3697
|
+
"seedance-2-5-flash-extend": {
|
|
3698
|
+
id: "seedance-2-5-flash-extend",
|
|
3699
|
+
kind: "video",
|
|
3700
|
+
modes: ["extend"] as const,
|
|
3701
|
+
family: "Bytedance",
|
|
3702
|
+
maker: "bytedance",
|
|
3703
|
+
label: "Seedance 2.5 Flash Extend",
|
|
3704
|
+
series: "Seedance",
|
|
3705
|
+
description: "Extend ANY video with Seedance 2.5 Flash, the faster and lower-cost tier: a 4–30s continuation (audio included) of the source's last 10 seconds at 480p or 720p, 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.",
|
|
3706
|
+
useCases: ["extend", "fast"],
|
|
3707
|
+
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],
|
|
3708
|
+
defaultDuration: 8,
|
|
3709
|
+
resolutions: ["480p", "720p"],
|
|
3710
|
+
pricing: [
|
|
3711
|
+
// The default run (8 s added to a source of 10 s or more: 18 s sent and
|
|
3712
|
+
// added, 9 units of the two-second row) at each resolution. A run is
|
|
3713
|
+
// charged its own seconds: `seedance-2-5-flash-extend:<res>:per-2s` × (sent + added) ÷ 2.
|
|
3714
|
+
{ identifier: "seedance-2-5-flash-extend:720p:per-2s:9u", credits: 1152, note: "default run: 8s added at 720p to a source of 10s or more — priced per second sent and added" },
|
|
3715
|
+
{ identifier: "seedance-2-5-flash-extend:480p:per-2s:9u", credits: 522, note: "8s added at 480p to a source of 10s or more" },
|
|
3716
|
+
],
|
|
3717
|
+
},
|
|
3655
3718
|
"seedance-2-0-extend": {
|
|
3656
3719
|
id: "seedance-2-0-extend",
|
|
3657
3720
|
kind: "video",
|
|
@@ -3694,6 +3757,38 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
3694
3757
|
{ identifier: "kling-4-extend:5s:1080p", credits: 638, note: "5s 1080p" },
|
|
3695
3758
|
],
|
|
3696
3759
|
},
|
|
3760
|
+
// Gemini Omni Flash 1.2 extends ANY 16:9 or 9:16 video from its tail
|
|
3761
|
+
// (decided 2026-11-17): the source's last 10 s go to fal's extend, which
|
|
3762
|
+
// returns them with the new seconds joined on; the run keeps the user's own
|
|
3763
|
+
// source and joins only the new seconds to it. Its own entry, so a
|
|
3764
|
+
// deployment can withhold it apart from Gemini Omni Flash 1.2 generation.
|
|
3765
|
+
// Charged per second sent and added on its own rows; each figure below is
|
|
3766
|
+
// a whole run's quote id (the whole 10 s window sent).
|
|
3767
|
+
"gemini-omni-flash-1-2-extend": {
|
|
3768
|
+
id: "gemini-omni-flash-1-2-extend",
|
|
3769
|
+
kind: "video",
|
|
3770
|
+
modes: ["extend"] as const,
|
|
3771
|
+
family: "Google",
|
|
3772
|
+
maker: "google",
|
|
3773
|
+
label: "Gemini Omni Flash 1.2 Extend",
|
|
3774
|
+
series: "Gemini",
|
|
3775
|
+
description: "Extend ANY 16:9 or 9:16 video with Gemini Omni Flash 1.2: a 3–10s continuation with sound, from 360p to 4K, 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.",
|
|
3776
|
+
useCases: ["extend", "fast"],
|
|
3777
|
+
durations: [3, 4, 5, 6, 7, 8, 9, 10],
|
|
3778
|
+
defaultDuration: 8,
|
|
3779
|
+
resolutions: ["360p", "720p", "1080p", "4k"],
|
|
3780
|
+
pricing: [
|
|
3781
|
+
// Whole-run quotes (`geminiOmniExtendQuoteCreditId`) of runs that send
|
|
3782
|
+
// the whole 10 s window. A run is charged its own seconds: its sent row
|
|
3783
|
+
// per second sent plus its resolution's row per second added, the total
|
|
3784
|
+
// rounded up to the next 10.
|
|
3785
|
+
{ identifier: "gemini-omni-flash-1-2-extend:720p:sent-10s:added-8s", credits: 390, note: "default run: 8s added at 720p to a source of 10s or more — priced per second sent and added" },
|
|
3786
|
+
{ identifier: "gemini-omni-flash-1-2-extend:360p:sent-10s:added-3s", credits: 100, note: "3s added at 360p to a source of 10s or more (min)" },
|
|
3787
|
+
{ identifier: "gemini-omni-flash-1-2-extend:1080p:sent-10s:added-8s", credits: 560, note: "8s added at 1080p to a source of 10s or more" },
|
|
3788
|
+
{ identifier: "gemini-omni-flash-1-2-extend:4k:sent-10s:added-8s", credits: 1050, note: "8s added at 4K to a source of 10s or more" },
|
|
3789
|
+
{ identifier: "gemini-omni-flash-1-2-extend:4k:sent-10s:added-10s", credits: 1300, note: "10s added at 4K to a source of 10s or more (max)" },
|
|
3790
|
+
],
|
|
3791
|
+
},
|
|
3697
3792
|
// PixVerse V6 extends ANY video natively (no tail recipe): the whole source
|
|
3698
3793
|
// goes to its extend, which returns it with the new seconds joined on; the
|
|
3699
3794
|
// run keeps the user's own source and joins only the new seconds to it. Its
|
|
@@ -4059,9 +4154,10 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
4059
4154
|
},
|
|
4060
4155
|
// LatentSync, HeyGen Lipsync Precision and Lipsync 2 Pro run on Replicate
|
|
4061
4156
|
// (providers/replicate/lip-sync.ts). Listed so a deployment's model
|
|
4062
|
-
// restriction can name them (decided 2026-11-12)
|
|
4063
|
-
//
|
|
4064
|
-
//
|
|
4157
|
+
// restriction can name them (decided 2026-11-12). They take no size: the
|
|
4158
|
+
// result keeps the size of the video they are given. LatentSync holds the
|
|
4159
|
+
// bucket of its audio's length and is charged what the run used
|
|
4160
|
+
// (`isLipSyncChargedAtRunCost`, decided 2026-11-18).
|
|
4065
4161
|
"latentsync": {
|
|
4066
4162
|
id: "latentsync",
|
|
4067
4163
|
kind: "video",
|
|
@@ -4070,9 +4166,15 @@ const VIDEO_MODELS: Record<string, ModelCatalogEntry> = {
|
|
|
4070
4166
|
maker: "bytedance",
|
|
4071
4167
|
label: "LatentSync",
|
|
4072
4168
|
series: "LatentSync",
|
|
4073
|
-
description: "Diffusion lip sync on an existing video — strong on singing and expressive vocals. Video input.",
|
|
4169
|
+
description: "Diffusion lip sync on an existing video — strong on singing and expressive vocals. Video input, charged by what the run uses.",
|
|
4074
4170
|
useCases: ["lip-sync", "dubbing", "video-to-video"],
|
|
4075
|
-
pricing: [
|
|
4171
|
+
pricing: [
|
|
4172
|
+
{ identifier: "latentsync:15s", credits: 100, note: "hold — the run is charged what it used" },
|
|
4173
|
+
{ identifier: "latentsync:30s", credits: 160, note: "hold" },
|
|
4174
|
+
{ identifier: "latentsync:60s", credits: 280, note: "hold" },
|
|
4175
|
+
{ identifier: "latentsync:120s", credits: 520, note: "hold" },
|
|
4176
|
+
{ identifier: "latentsync:300s", credits: 1240, note: "hold, 5-min ceiling" },
|
|
4177
|
+
],
|
|
4076
4178
|
},
|
|
4077
4179
|
"heygen-lipsync-precision": {
|
|
4078
4180
|
id: "heygen-lipsync-precision",
|