@shop-os/modelkit 0.25.0 → 0.26.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/CHANGELOG.md +27 -0
- package/dist/catalog.cjs +176 -20
- package/dist/catalog.cjs.map +1 -1
- package/dist/catalog.d.cts +48 -1
- package/dist/catalog.d.ts +48 -1
- package/dist/catalog.js +176 -20
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +670 -227
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +48 -1
- package/dist/index.d.ts +48 -1
- package/dist/index.js +669 -227
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,33 @@ header in the release PR.
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.26.0] - Unreleased
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
- ElevenLabs direct music and sound effects (`generateAudio` on the `elevenlabs` adapter, our own
|
|
16
|
+
key and account): `elevenlabs-music-direct` (`music_v2_5`, 3 s to 5 min, `instrumental`) and
|
|
17
|
+
`elevenlabs-sound-effects-direct` (`eleven_text_to_sound_v3`, 0.5 to 30 s or ElevenLabs' auto
|
|
18
|
+
length when none is asked, `loop`). Both are metered per second on the returned MP3's length
|
|
19
|
+
(`mp3Seconds`), since neither endpoint reports one. Exposed on `cowork` only.
|
|
20
|
+
- `AudioRequest.loop` and the `loop` supported option. An older kit drops a row that lists it.
|
|
21
|
+
- Gemini direct speech and voice replication on the `google-genai` adapter (`generateSpeech`,
|
|
22
|
+
`createVoice`, `deleteVoice`): `gemini-3.8-flash-tts-direct` (prebuilt voices or a replicated
|
|
23
|
+
voice, `customVoices`) and `gemini-voice-clone` (one 10 to 30 s recording plus
|
|
24
|
+
`VoiceCloneRequest.consent`, the speaker reading Google's consent sentence). The sentences per
|
|
25
|
+
locale are `GEMINI_VOICE_CONSENT`. Exposed on `cowork` only.
|
|
26
|
+
|
|
27
|
+
### Not verified live
|
|
28
|
+
- `gemini-voice-clone` end to end: Google refuses synthetic audio, so the create call was only
|
|
29
|
+
checked up to that refusal (400 `FINISH_REASON_INPUT_VR_TAKEDOWN`). Whether it takes a format
|
|
30
|
+
other than WAV is unknown; send WAV.
|
|
31
|
+
|
|
32
|
+
## [0.25.1] - Unreleased
|
|
33
|
+
|
|
34
|
+
### Changed
|
|
35
|
+
- `kling-image-4.0` lists `8K` (ENG-4137): $0.157 per image. Publish only after every consumer
|
|
36
|
+
runs 0.25.0, since an older kit drops a row whose sizes it cannot parse; pro-backend's boot seed
|
|
37
|
+
then adds 8K to the live row.
|
|
38
|
+
|
|
12
39
|
## [0.25.0] - Unreleased
|
|
13
40
|
|
|
14
41
|
### Added
|
package/dist/catalog.cjs
CHANGED
|
@@ -27,6 +27,7 @@ __export(catalog_entry_exports, {
|
|
|
27
27
|
CatalogModelSchemaBase: () => CatalogModelSchemaBase,
|
|
28
28
|
CatalogSchema: () => CatalogSchema,
|
|
29
29
|
ExposureSchema: () => ExposureSchema,
|
|
30
|
+
GEMINI_VOICE_CONSENT: () => GEMINI_VOICE_CONSENT,
|
|
30
31
|
IMAGE_MODELS: () => IMAGE_MODELS,
|
|
31
32
|
INPUT_BILLINGS: () => INPUT_BILLINGS,
|
|
32
33
|
MEDIA_METHODS: () => MEDIA_METHODS,
|
|
@@ -446,7 +447,7 @@ var FAL_IMAGE_MODELS = [
|
|
|
446
447
|
{
|
|
447
448
|
// kling/v4/text-to-image; references switch to kling/v4/image-to-image (up to 10,
|
|
448
449
|
// "@Image1".."@Image10"). Per output image: $0.063 at 2K, $0.094 at 4K (Kling price page,
|
|
449
|
-
// 2026-11-17); each reference adds $0.003, which we absorb.
|
|
450
|
+
// 2026-11-17), $0.157 at 8K; each reference adds $0.003, which we absorb.
|
|
450
451
|
id: "kling-image-4.0",
|
|
451
452
|
aliases: [],
|
|
452
453
|
label: "Kling Image 4.0",
|
|
@@ -457,7 +458,7 @@ var FAL_IMAGE_MODELS = [
|
|
|
457
458
|
exposure: EXPOSURE,
|
|
458
459
|
constraints: {
|
|
459
460
|
aspectRatios: [...KLING_RATIOS, "adaptive"],
|
|
460
|
-
sizes: ["2K", "4K"],
|
|
461
|
+
sizes: ["2K", "4K", "8K"],
|
|
461
462
|
references: { images: 10 },
|
|
462
463
|
supports: ["count"],
|
|
463
464
|
prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
|
|
@@ -467,7 +468,7 @@ var FAL_IMAGE_MODELS = [
|
|
|
467
468
|
pricingKind: "image_size",
|
|
468
469
|
display: {
|
|
469
470
|
provider: "kuaishou",
|
|
470
|
-
description: "Kling Image 4.0 for photoreal text-to-image, long in-image text and multi-reference editing; takes a prompt and up to 10 reference images and outputs 2K or
|
|
471
|
+
description: "Kling Image 4.0 for photoreal text-to-image, long in-image text and multi-reference editing; takes a prompt and up to 10 reference images and outputs 2K, 4K or 8K.",
|
|
471
472
|
logo: `${LOBE}/kling-color.png`
|
|
472
473
|
}
|
|
473
474
|
},
|
|
@@ -2481,6 +2482,94 @@ var GEMINI_TTS_VOICES = [
|
|
|
2481
2482
|
{ id: "Zubenelgenubi", name: "Zubenelgenubi" }
|
|
2482
2483
|
];
|
|
2483
2484
|
|
|
2485
|
+
// src/catalog/speech-gemini-direct.ts
|
|
2486
|
+
var GOOGLE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
2487
|
+
var GEMINI_VOICE_CONSENT = {
|
|
2488
|
+
"ar-XA": "\u0623\u0646\u0627 \u0645\u0627\u0644\u0643 \u0647\u0630\u0627 \u0627\u0644\u0635\u0648\u062A \u0648\u0623\u0648\u0627\u0641\u0642 \u0639\u0644\u0649 \u0623\u0646 \u062A\u0633\u062A\u062E\u062F\u0645 Google \u0647\u0630\u0627 \u0627\u0644\u0635\u0648\u062A \u0644\u0625\u0646\u0634\u0627\u0621 \u0646\u0645\u0648\u0630\u062C \u0635\u0648\u062A\u064A \u0627\u0635\u0637\u0646\u0627\u0639\u064A.",
|
|
2489
|
+
"bn-IN": "\u0986\u09AE\u09BF \u098F\u0987 \u09AD\u09AF\u09BC\u09C7\u09B8\u09C7\u09B0 \u09AE\u09BE\u09B2\u09BF\u0995 \u098F\u09AC\u0982 \u0986\u09AE\u09BF \u098F\u0995\u099F\u09BF \u09B8\u09BF\u09A8\u09CD\u09A5\u09C7\u099F\u09BF\u0995 \u09AD\u09AF\u09BC\u09C7\u09B8 \u09AE\u09A1\u09C7\u09B2 \u09A4\u09C8\u09B0\u09BF \u0995\u09B0\u09A4\u09C7 \u098F\u0987 \u09AD\u09AF\u09BC\u09C7\u09B8 \u09AC\u09CD\u09AF\u09AC\u09B9\u09BE\u09B0 \u0995\u09B0\u09C7 Google-\u098F\u09B0 \u09B8\u09BE\u09A5\u09C7 \u09B8\u09AE\u09CD\u09AE\u09A4\u09BF \u09A6\u09BF\u099A\u09CD\u099B\u09BF\u0964",
|
|
2490
|
+
"de-DE": "Ich bin der Eigent\xFCmer dieser Stimme und bin damit einverstanden, dass Google diese Stimme zur Erstellung eines synthetischen Stimmmodells verwendet.",
|
|
2491
|
+
"en-AU": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2492
|
+
"en-GB": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2493
|
+
"en-IN": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2494
|
+
"en-US": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2495
|
+
"es-ES": "Soy el propietario de esta voz y doy mi consentimiento para que Google la utilice para crear un modelo de voz sint\xE9tica.",
|
|
2496
|
+
"es-US": "Soy el propietario de esta voz y doy mi consentimiento para que Google la utilice para crear un modelo de voz sint\xE9tica.",
|
|
2497
|
+
"fr-CA": "Je suis le propri\xE9taire de cette voix et j'autorise Google \xE0 utiliser cette voix pour cr\xE9er un mod\xE8le de voix synth\xE9tique.",
|
|
2498
|
+
"fr-FR": "Je suis le propri\xE9taire de cette voix et j'autorise Google \xE0 utiliser cette voix pour cr\xE9er un mod\xE8le de voix synth\xE9tique.",
|
|
2499
|
+
"gu-IN": "\u0AB9\u0AC1\u0A82 \u0A86 \u0AB5\u0ACB\u0A88\u0AB8\u0AA8\u0ACB \u0AAE\u0ABE\u0AB2\u0ABF\u0A95 \u0A9B\u0AC1\u0A82 \u0A85\u0AA8\u0AC7 \u0AB8\u0ABF\u0AA8\u0ACD\u0AA5\u0AC7\u0A9F\u0ABF\u0A95 \u0AB5\u0ACB\u0A88\u0AB8 \u0AAE\u0ACB\u0AA1\u0AB2 \u0AAC\u0AA8\u0ABE\u0AB5\u0AB5\u0ABE \u0AAE\u0ABE\u0A9F\u0AC7 \u0A86 \u0AB5\u0ACB\u0A88\u0AB8\u0AA8\u0ACB \u0A89\u0AAA\u0AAF\u0ACB\u0A97 \u0A95\u0AB0\u0AC0\u0AA8\u0AC7 google \u0AA8\u0AC7 \u0AB9\u0AC1\u0A82 \u0AB8\u0A82\u0AAE\u0AA4\u0ABF \u0A86\u0AAA\u0AC1\u0A82 \u0A9B\u0AC1\u0A82",
|
|
2500
|
+
"hi-IN": "\u092E\u0948\u0902 \u0907\u0938 \u0906\u0935\u093E\u091C \u0915\u093E \u092E\u093E\u0932\u093F\u0915 \u0939\u0942\u0902 \u0914\u0930 \u092E\u0948\u0902 \u0938\u093F\u0902\u0925\u0947\u091F\u093F\u0915 \u0906\u0935\u093E\u091C \u092E\u0949\u0921\u0932 \u092C\u0928\u093E\u0928\u0947 \u0915\u0947 \u0932\u093F\u090F Google \u0915\u094B \u0907\u0938 \u0906\u0935\u093E\u091C \u0915\u093E \u0909\u092A\u092F\u094B\u0917 \u0915\u0930\u0928\u0947 \u0915\u0940 \u0938\u0939\u092E\u0924\u093F \u0926\u0947\u0924\u093E \u0939\u0942\u0902",
|
|
2501
|
+
"id-ID": "Saya pemilik suara ini dan saya menyetujui Google menggunakan suara ini untuk membuat model suara sintetis.",
|
|
2502
|
+
"it-IT": "Sono il proprietario di questa voce e acconsento che Google la utilizzi per creare un modello di voce sintetica.",
|
|
2503
|
+
"ja-JP": "\u79C1\u306F\u3053\u306E\u97F3\u58F0\u306E\u6240\u6709\u8005\u3067\u3042\u308A\u3001Google\u304C\u3053\u306E\u97F3\u58F0\u3092\u4F7F\u7528\u3057\u3066\u97F3\u58F0\u5408\u6210\u30E2\u30C7\u30EB\u3092\u4F5C\u6210\u3059\u308B\u3053\u3068\u3092\u627F\u8A8D\u3057\u307E\u3059\u3002",
|
|
2504
|
+
"kn-IN": "\u0CA8\u0CBE\u0CA8\u0CC1 \u0C88 \u0CA7\u0CCD\u0CB5\u0CA8\u0CBF\u0CAF \u0CAE\u0CBE\u0CB2\u0CBF\u0C95 \u0CAE\u0CA4\u0CCD\u0CA4\u0CC1 \u0CB8\u0C82\u0CB6\u0CCD\u0CB2\u0CC7\u0CB7\u0CBF\u0CA4 \u0CA7\u0CCD\u0CB5\u0CA8\u0CBF \u0CAE\u0CBE\u0CA6\u0CB0\u0CBF\u0CAF\u0CA8\u0CCD\u0CA8\u0CC1 \u0CB0\u0C9A\u0CBF\u0CB8\u0CB2\u0CC1 \u0C88 \u0CA7\u0CCD\u0CB5\u0CA8\u0CBF\u0CAF\u0CA8\u0CCD\u0CA8\u0CC1 \u0CAC\u0CB3\u0CB8\u0CBF\u0C95\u0CCA\u0C82\u0CA1\u0CC1\u0C97\u0CC2\u0C97\u0CB2\u0CCD \u0C97\u0CC6 \u0CA8\u0CBE\u0CA8\u0CC1 \u0CB8\u0CAE\u0CCD\u0CAE\u0CA4\u0CBF\u0CB8\u0CC1\u0CA4\u0CCD\u0CA4\u0CC7\u0CA8\u0CC6.",
|
|
2505
|
+
"ko-KR": "\uB098\uB294 \uC774 \uC74C\uC131\uC758 \uC18C\uC720\uC790\uC774\uBA70 \uAD6C\uAE00\uC774 \uC774 \uC74C\uC131\uC744 \uC0AC\uC6A9\uD558\uC5EC \uC74C\uC131 \uD569\uC131 \uBAA8\uB378\uC744 \uC0DD\uC131\uD560 \uAC83\uC744 \uD5C8\uC6A9\uD569\uB2C8\uB2E4.",
|
|
2506
|
+
"ml-IN": "\u0D08 \u0D36\u0D2C\u0D4D\u0D26\u0D24\u0D4D\u0D24\u0D3F\u0D28\u0D4D\u0D31\u0D46 \u0D09\u0D1F\u0D2E \u0D1E\u0D3E\u0D28\u0D3E\u0D23\u0D4D, \u0D12\u0D30\u0D41 \u0D38\u0D3F\u0D28\u0D4D\u0D24\u0D31\u0D4D\u0D31\u0D3F\u0D15\u0D4D \u0D35\u0D4B\u0D2F\u0D4D\u0D38\u0D4D \u0D2E\u0D4B\u0D21\u0D7D \u0D38\u0D43\u0D37\u0D4D\u0D1F\u0D3F\u0D15\u0D4D\u0D15\u0D3E\u0D7B \u0D08 \u0D36\u0D2C\u0D4D\u0D26\u0D02 \u0D09\u0D2A\u0D2F\u0D4B\u0D17\u0D3F\u0D15\u0D4D\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D24\u0D3F\u0D28\u0D4D \u0D1E\u0D3E\u0D7B Google-\u0D28\u0D4D \u0D38\u0D2E\u0D4D\u0D2E\u0D24\u0D02 \u0D28\u0D7D\u0D15\u0D41\u0D28\u0D4D\u0D28\u0D41.",
|
|
2507
|
+
"mr-IN": "\u092E\u0940 \u092F\u093E \u0906\u0935\u093E\u091C\u093E\u091A\u093E \u092E\u093E\u0932\u0915 \u0906\u0939\u0947 \u0906\u0923\u093F \u0938\u093F\u0902\u0925\u0947\u091F\u093F\u0915 \u0935\u094D\u0939\u0949\u0907\u0938 \u092E\u0949\u0921\u0947\u0932 \u0924\u092F\u093E\u0930 \u0915\u0930\u0923\u094D\u092F\u093E\u0938\u093E\u0920\u0940 \u0939\u093E \u0906\u0935\u093E\u091C \u0935\u093E\u092A\u0930\u0923\u094D\u092F\u093E\u0938\u093E\u0920\u0940 \u092E\u0940 Google \u0932\u093E \u0938\u0902\u092E\u0924\u0940 \u0926\u0947\u0924\u094B",
|
|
2508
|
+
"nl-NL": "Ik ben de eigenaar van deze stem en ik geef Google toestemming om deze stem te gebruiken om een synthetisch stemmodel te maken.",
|
|
2509
|
+
"pl-PL": "Jestem w\u0142a\u015Bcicielem tego g\u0142osu i wyra\u017Cam zgod\u0119 na wykorzystanie go przez Google w celu utworzenia syntetycznego modelu g\u0142osu.",
|
|
2510
|
+
"pt-BR": "Eu sou o propriet\xE1rio desta voz e autorizo o Google a us\xE1-la para criar um modelo de voz sint\xE9tica.",
|
|
2511
|
+
"ru-RU": "\u042F \u044F\u0432\u043B\u044F\u044E\u0441\u044C \u0432\u043B\u0430\u0434\u0435\u043B\u044C\u0446\u0435\u043C \u044D\u0442\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u0430 \u0438 \u0434\u0430\u044E \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435 Google \u043D\u0430 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u0435 \u044D\u0442\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u0430 \u0434\u043B\u044F \u0441\u043E\u0437\u0434\u0430\u043D\u0438\u044F \u043C\u043E\u0434\u0435\u043B\u0438 \u0441\u0438\u043D\u0442\u0435\u0442\u0438\u0447\u0435\u0441\u043A\u043E\u0433\u043E \u0433\u043E\u043B\u043E\u0441\u0430.",
|
|
2512
|
+
"ta-IN": "\u0BA8\u0BBE\u0BA9\u0BCD \u0B87\u0BA8\u0BCD\u0BA4 \u0B95\u0BC1\u0BB0\u0BB2\u0BBF\u0BA9\u0BCD \u0B89\u0BB0\u0BBF\u0BAE\u0BC8\u0BAF\u0BBE\u0BB3\u0BB0\u0BCD \u0BAE\u0BB1\u0BCD\u0BB1\u0BC1\u0BAE\u0BCD \u0B9A\u0BC6\u0BAF\u0BB1\u0BCD\u0B95\u0BC8 \u0B95\u0BC1\u0BB0\u0BB2\u0BCD \u0BAE\u0BBE\u0BA4\u0BBF\u0BB0\u0BBF\u0BAF\u0BC8 \u0B89\u0BB0\u0BC1\u0BB5\u0BBE\u0B95\u0BCD\u0B95 \u0B87\u0BA8\u0BCD\u0BA4 \u0B95\u0BC1\u0BB0\u0BB2\u0BC8 \u0BAA\u0BAF\u0BA9\u0BCD\u0BAA\u0B9F\u0BC1\u0BA4\u0BCD\u0BA4 \u0B95\u0BC1\u0B95\u0BB2\u0BCD\u0B95\u0BCD\u0B95\u0BC1 \u0BA8\u0BBE\u0BA9\u0BCD \u0B92\u0BAA\u0BCD\u0BAA\u0BC1\u0B95\u0BCD\u0B95\u0BCA\u0BB3\u0BCD\u0B95\u0BBF\u0BB1\u0BC7\u0BA9\u0BCD.",
|
|
2513
|
+
"te-IN": "\u0C28\u0C47\u0C28\u0C41 \u0C08 \u0C35\u0C3E\u0C2F\u0C3F\u0C38\u0C4D \u0C2F\u0C1C\u0C2E\u0C3E\u0C28\u0C3F\u0C28\u0C3F \u0C2E\u0C30\u0C3F\u0C2F\u0C41 \u0C38\u0C3F\u0C02\u0C24\u0C1F\u0C3F\u0C15\u0C4D \u0C35\u0C3E\u0C2F\u0C3F\u0C38\u0C4D \u0C2E\u0C4B\u0C21\u0C32\u0C4D \u0C28\u0C3F \u0C30\u0C42\u0C2A\u0C4A\u0C02\u0C26\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F \u0C08 \u0C35\u0C3E\u0C2F\u0C3F\u0C38\u0C4D \u0C28\u0C3F \u0C09\u0C2A\u0C2F\u0C4B\u0C17\u0C3F\u0C02\u0C1A\u0C21\u0C3E\u0C28\u0C3F\u0C15\u0C3F google\u0C15\u0C3F \u0C28\u0C47\u0C28\u0C41 \u0C38\u0C2E\u0C4D\u0C2E\u0C24\u0C3F\u0C38\u0C4D\u0C24\u0C41\u0C28\u0C4D\u0C28\u0C3E\u0C28\u0C41.",
|
|
2514
|
+
"th-TH": "\u0E09\u0E31\u0E19\u0E40\u0E1B\u0E47\u0E19\u0E40\u0E08\u0E49\u0E32\u0E02\u0E2D\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E19\u0E35\u0E49 \u0E41\u0E25\u0E30\u0E09\u0E31\u0E19\u0E22\u0E34\u0E19\u0E22\u0E2D\u0E21\u0E43\u0E2B\u0E49 Google \u0E43\u0E0A\u0E49\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E19\u0E35\u0E49\u0E40\u0E1E\u0E37\u0E48\u0E2D\u0E2A\u0E23\u0E49\u0E32\u0E07\u0E41\u0E1A\u0E1A\u0E08\u0E33\u0E25\u0E2D\u0E07\u0E40\u0E2A\u0E35\u0E22\u0E07\u0E2A\u0E31\u0E07\u0E40\u0E04\u0E23\u0E32\u0E30\u0E2B\u0E4C",
|
|
2515
|
+
"tr-TR": "Bu sesin sahibi benim ve Google'\u0131n bu sesi kullanarak sentetik bir ses modeli olu\u015Fturmas\u0131na izin veriyorum.",
|
|
2516
|
+
"vi-VN": "T\xF4i l\xE0 ch\u1EE7 s\u1EDF h\u1EEFu gi\u1ECDng n\xF3i n\xE0y v\xE0 t\xF4i \u0111\u1ED3ng \xFD cho Google s\u1EED d\u1EE5ng gi\u1ECDng n\xF3i n\xE0y \u0111\u1EC3 t\u1EA1o m\xF4 h\xECnh gi\u1ECDng n\xF3i t\u1ED5ng h\u1EE3p.",
|
|
2517
|
+
"zh-CN": "\u6211\u662F\u6B64\u58F0\u97F3\u7684\u62E5\u6709\u8005\u5E76\u6388\u6743\u8C37\u6B4C\u4F7F\u7528\u6B64\u58F0\u97F3\u521B\u5EFA\u8BED\u97F3\u5408\u6210\u6A21\u578B"
|
|
2518
|
+
};
|
|
2519
|
+
var GEMINI_DIRECT_MODELS = [
|
|
2520
|
+
{
|
|
2521
|
+
id: "gemini-3.8-flash-tts-direct",
|
|
2522
|
+
aliases: [],
|
|
2523
|
+
label: "Gemini 3.8 Flash TTS",
|
|
2524
|
+
type: "speech",
|
|
2525
|
+
adapter: "google-genai",
|
|
2526
|
+
providerModelId: "gemini-3.8-flash-tts",
|
|
2527
|
+
lifecycle: "active",
|
|
2528
|
+
exposure: ["cowork"],
|
|
2529
|
+
constraints: {
|
|
2530
|
+
voices: GEMINI_TTS_VOICES,
|
|
2531
|
+
// Returns a 24 kHz mono WAV; the language is detected from the script.
|
|
2532
|
+
supports: ["style"],
|
|
2533
|
+
// Google's docs state no script limit; fal gives 8,192 input tokens for this model
|
|
2534
|
+
// (a token is at least one character), so the same cap is kept here.
|
|
2535
|
+
prompt: { referenceSyntax: "numbered", maxChars: 8192 }
|
|
2536
|
+
},
|
|
2537
|
+
defaults: { voice: "Kore" },
|
|
2538
|
+
usage: { unit: "images" },
|
|
2539
|
+
pricingKind: "flat",
|
|
2540
|
+
display: {
|
|
2541
|
+
provider: "google",
|
|
2542
|
+
logo: GOOGLE_LOGO,
|
|
2543
|
+
description: "Google Gemini 3.8 Flash text to speech in 30 prebuilt voices or your own replicated voice, with separate style instructions."
|
|
2544
|
+
},
|
|
2545
|
+
capabilities: { customVoices: true }
|
|
2546
|
+
},
|
|
2547
|
+
{
|
|
2548
|
+
id: "gemini-voice-clone",
|
|
2549
|
+
aliases: [],
|
|
2550
|
+
label: "Gemini Voice Replication",
|
|
2551
|
+
type: "voice-clone",
|
|
2552
|
+
adapter: "google-genai",
|
|
2553
|
+
providerModelId: "gemini-3.8-flash-tts",
|
|
2554
|
+
lifecycle: "active",
|
|
2555
|
+
exposure: ["cowork"],
|
|
2556
|
+
constraints: {
|
|
2557
|
+
// One 10-30 s recording, plus the consent recording. Google's samples are WAV.
|
|
2558
|
+
references: { audios: 1, audioFormats: ["wav"], audioSeconds: { min: 10, max: 30 } },
|
|
2559
|
+
supports: []
|
|
2560
|
+
},
|
|
2561
|
+
defaults: {},
|
|
2562
|
+
usage: { unit: "requests" },
|
|
2563
|
+
pricingKind: "flat",
|
|
2564
|
+
display: {
|
|
2565
|
+
provider: "google",
|
|
2566
|
+
logo: GOOGLE_LOGO,
|
|
2567
|
+
description: "Replicate a private, reusable voice from one 10 to 30 second recording and a spoken consent line, then speak with it on Gemini 3.8 Flash TTS."
|
|
2568
|
+
},
|
|
2569
|
+
capabilities: {}
|
|
2570
|
+
}
|
|
2571
|
+
];
|
|
2572
|
+
|
|
2484
2573
|
// src/catalog/voices-minimax.ts
|
|
2485
2574
|
var MINIMAX_VOICES = [
|
|
2486
2575
|
{ id: "Wise_Woman", name: "Wise Woman" },
|
|
@@ -3981,7 +4070,7 @@ var MINIMAX_VOICES = [
|
|
|
3981
4070
|
|
|
3982
4071
|
// src/catalog/media-nodes.ts
|
|
3983
4072
|
var ELEVENLABS_LOGO2 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/elevenlabs.png";
|
|
3984
|
-
var
|
|
4073
|
+
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
3985
4074
|
var MINIMAX_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png";
|
|
3986
4075
|
var SYNC_LOGO = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/sync.png";
|
|
3987
4076
|
var PER_CALL3 = { unit: "images" };
|
|
@@ -4031,7 +4120,7 @@ function geminiTts(id, label, description) {
|
|
|
4031
4120
|
defaults: { voice: "Kore" },
|
|
4032
4121
|
usage: PER_CALL3,
|
|
4033
4122
|
pricingKind: "flat",
|
|
4034
|
-
display: { provider: "google", logo:
|
|
4123
|
+
display: { provider: "google", logo: GOOGLE_LOGO2, description },
|
|
4035
4124
|
capabilities: {}
|
|
4036
4125
|
};
|
|
4037
4126
|
}
|
|
@@ -4277,7 +4366,8 @@ var MEDIA_NODE_MODELS = [
|
|
|
4277
4366
|
},
|
|
4278
4367
|
SAM_3_IMAGE,
|
|
4279
4368
|
...FISH_MODELS,
|
|
4280
|
-
...ELEVENLABS_DIRECT_MODELS
|
|
4369
|
+
...ELEVENLABS_DIRECT_MODELS,
|
|
4370
|
+
...GEMINI_DIRECT_MODELS
|
|
4281
4371
|
];
|
|
4282
4372
|
|
|
4283
4373
|
// src/catalog/model3d.ts
|
|
@@ -4471,9 +4561,67 @@ var MODEL3D_MODELS = [
|
|
|
4471
4561
|
)
|
|
4472
4562
|
];
|
|
4473
4563
|
|
|
4474
|
-
// src/catalog/
|
|
4475
|
-
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
4564
|
+
// src/catalog/audio-elevenlabs-direct.ts
|
|
4476
4565
|
var ELEVENLABS_LOGO3 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/elevenlabs.png";
|
|
4566
|
+
var ELEVENLABS_DIRECT_AUDIO_MODELS = [
|
|
4567
|
+
{
|
|
4568
|
+
id: "elevenlabs-music-direct",
|
|
4569
|
+
aliases: [],
|
|
4570
|
+
label: "Eleven Music",
|
|
4571
|
+
type: "audio",
|
|
4572
|
+
adapter: "elevenlabs",
|
|
4573
|
+
providerModelId: "music_v2_5",
|
|
4574
|
+
lifecycle: "active",
|
|
4575
|
+
exposure: ["cowork"],
|
|
4576
|
+
constraints: {
|
|
4577
|
+
// The API takes 3 s to 10 min; ElevenLabs' overview says 5 min, so stop there.
|
|
4578
|
+
durations: { min: 3, max: 300 },
|
|
4579
|
+
durationPresets: [30, 60, 120, 180],
|
|
4580
|
+
// No `seed`: the API refuses it with a prompt (composition plans only).
|
|
4581
|
+
supports: ["instrumental"],
|
|
4582
|
+
outputFormats: ELEVENLABS_MUSIC_FORMATS
|
|
4583
|
+
},
|
|
4584
|
+
defaults: { durationSeconds: 60, outputFormat: "mp3_48000_192" },
|
|
4585
|
+
usage: { unit: "seconds" },
|
|
4586
|
+
pricingKind: "flat",
|
|
4587
|
+
display: {
|
|
4588
|
+
provider: "elevenlabs",
|
|
4589
|
+
logo: ELEVENLABS_LOGO3,
|
|
4590
|
+
description: "Songs and instrumentals in any genre, from 3 seconds to 5 minutes."
|
|
4591
|
+
},
|
|
4592
|
+
capabilities: {}
|
|
4593
|
+
},
|
|
4594
|
+
{
|
|
4595
|
+
id: "elevenlabs-sound-effects-direct",
|
|
4596
|
+
aliases: [],
|
|
4597
|
+
label: "Eleven Sound Effects",
|
|
4598
|
+
type: "sound-effect",
|
|
4599
|
+
adapter: "elevenlabs",
|
|
4600
|
+
providerModelId: "eleven_text_to_sound_v3",
|
|
4601
|
+
lifecycle: "active",
|
|
4602
|
+
exposure: ["cowork"],
|
|
4603
|
+
constraints: {
|
|
4604
|
+
durations: { min: 0.5, max: 30 },
|
|
4605
|
+
durationPresets: [2, 5, 10, 22],
|
|
4606
|
+
supports: ["loop"],
|
|
4607
|
+
outputFormats: ELEVENLABS_MP3_FORMATS
|
|
4608
|
+
},
|
|
4609
|
+
// No default length: a request without one gets ElevenLabs' auto length.
|
|
4610
|
+
defaults: { outputFormat: "mp3_44100_128" },
|
|
4611
|
+
usage: { unit: "seconds" },
|
|
4612
|
+
pricingKind: "flat",
|
|
4613
|
+
display: {
|
|
4614
|
+
provider: "elevenlabs",
|
|
4615
|
+
logo: ELEVENLABS_LOGO3,
|
|
4616
|
+
description: "Any sound from a text description, up to 30 seconds, at a set or automatic length; can loop."
|
|
4617
|
+
},
|
|
4618
|
+
capabilities: {}
|
|
4619
|
+
}
|
|
4620
|
+
];
|
|
4621
|
+
|
|
4622
|
+
// src/catalog/other.ts
|
|
4623
|
+
var GOOGLE_LOGO3 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
4624
|
+
var ELEVENLABS_LOGO4 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/elevenlabs.png";
|
|
4477
4625
|
var MINIMAX_LOGO3 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png";
|
|
4478
4626
|
var OTHER_MODELS = [
|
|
4479
4627
|
{
|
|
@@ -4495,7 +4643,7 @@ var OTHER_MODELS = [
|
|
|
4495
4643
|
pricingKind: "flat",
|
|
4496
4644
|
display: {
|
|
4497
4645
|
provider: "google",
|
|
4498
|
-
logo:
|
|
4646
|
+
logo: GOOGLE_LOGO3,
|
|
4499
4647
|
description: "Google Lyria 3 Clip short music clips, loops, and previews; takes text and up to 10 image prompts and returns a fixed 30-second MP3 plus lyrics."
|
|
4500
4648
|
},
|
|
4501
4649
|
capabilities: {}
|
|
@@ -4518,7 +4666,7 @@ var OTHER_MODELS = [
|
|
|
4518
4666
|
pricingKind: "flat",
|
|
4519
4667
|
display: {
|
|
4520
4668
|
provider: "google",
|
|
4521
|
-
logo:
|
|
4669
|
+
logo: GOOGLE_LOGO3,
|
|
4522
4670
|
description: "Google Lyria 3 Pro flagship music model for full-length songs with verses, choruses, and bridges; takes text and up to 10 image prompts and returns MP3 plus lyrics."
|
|
4523
4671
|
},
|
|
4524
4672
|
capabilities: {}
|
|
@@ -4610,7 +4758,7 @@ var OTHER_MODELS = [
|
|
|
4610
4758
|
pricingKind: "flat",
|
|
4611
4759
|
display: {
|
|
4612
4760
|
provider: "google",
|
|
4613
|
-
logo:
|
|
4761
|
+
logo: GOOGLE_LOGO3,
|
|
4614
4762
|
description: "Google Lyria 3.5 full-length songs with verses, choruses and bridges; takes text and up to 10 image prompts and returns 44.1 kHz stereo MP3 plus lyrics."
|
|
4615
4763
|
},
|
|
4616
4764
|
capabilities: {}
|
|
@@ -4638,7 +4786,7 @@ var OTHER_MODELS = [
|
|
|
4638
4786
|
pricingKind: "flat",
|
|
4639
4787
|
display: {
|
|
4640
4788
|
provider: "elevenlabs",
|
|
4641
|
-
logo:
|
|
4789
|
+
logo: ELEVENLABS_LOGO4,
|
|
4642
4790
|
description: "ElevenLabs Music v2.5 text-to-music; full songs or instrumentals from 3 seconds to 1 minute."
|
|
4643
4791
|
},
|
|
4644
4792
|
capabilities: {}
|
|
@@ -4690,7 +4838,7 @@ var OTHER_MODELS = [
|
|
|
4690
4838
|
pricingKind: "flat",
|
|
4691
4839
|
display: {
|
|
4692
4840
|
provider: "elevenlabs",
|
|
4693
|
-
logo:
|
|
4841
|
+
logo: ELEVENLABS_LOGO4,
|
|
4694
4842
|
description: "ElevenLabs Sound Effects v2; a sound effect from a text description, up to 22 seconds."
|
|
4695
4843
|
},
|
|
4696
4844
|
capabilities: {}
|
|
@@ -4826,7 +4974,8 @@ var OTHER_MODELS = [
|
|
|
4826
4974
|
provider: "prodia",
|
|
4827
4975
|
description: "Background removal; takes one input image and returns a PNG cut-out of the subject plus an optional black-and-white mask."
|
|
4828
4976
|
}
|
|
4829
|
-
}
|
|
4977
|
+
},
|
|
4978
|
+
...ELEVENLABS_DIRECT_AUDIO_MODELS
|
|
4830
4979
|
];
|
|
4831
4980
|
|
|
4832
4981
|
// src/catalog/text.ts
|
|
@@ -6098,7 +6247,7 @@ var H3_PROMPT2 = { referenceSyntax: "numbered", maxChars: 5e4 };
|
|
|
6098
6247
|
var WAN_PROMPT = { referenceSyntax: "numbered", maxChars: 2e4 };
|
|
6099
6248
|
var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
|
|
6100
6249
|
var BYTEDANCE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
6101
|
-
var
|
|
6250
|
+
var GOOGLE_LOGO4 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
6102
6251
|
var VIDEO_MODELS = [
|
|
6103
6252
|
// Google shuts down the Veo 3.1 previews and Omni Flash 1.0 on 2026-10-22.
|
|
6104
6253
|
{
|
|
@@ -6134,7 +6283,7 @@ var VIDEO_MODELS = [
|
|
|
6134
6283
|
display: {
|
|
6135
6284
|
provider: "google",
|
|
6136
6285
|
description: "Google's highest-quality video generation model. Supports up to 4K resolution and 8-second clips with reference image conditioning.",
|
|
6137
|
-
logo:
|
|
6286
|
+
logo: GOOGLE_LOGO4
|
|
6138
6287
|
},
|
|
6139
6288
|
// Veo's lastFrame "must be used in combination with the image parameter".
|
|
6140
6289
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
@@ -6235,7 +6384,7 @@ var VIDEO_MODELS = [
|
|
|
6235
6384
|
display: {
|
|
6236
6385
|
provider: "google",
|
|
6237
6386
|
description: "Google's conversational video model with native audio, human support, and natural language editing. Aspect ratio only \u2014 resolution and duration are model-determined.",
|
|
6238
|
-
logo:
|
|
6387
|
+
logo: GOOGLE_LOGO4
|
|
6239
6388
|
},
|
|
6240
6389
|
capabilities: { acceptsSourceVideo: true, videoEdit: true }
|
|
6241
6390
|
},
|
|
@@ -6272,7 +6421,7 @@ var VIDEO_MODELS = [
|
|
|
6272
6421
|
pricingKind: "video_per_second",
|
|
6273
6422
|
display: {
|
|
6274
6423
|
provider: "google",
|
|
6275
|
-
logo:
|
|
6424
|
+
logo: GOOGLE_LOGO4,
|
|
6276
6425
|
description: "Google Gemini Omni Flash 1.1 conversational video generation, editing and extension; text, image, and up to 10-second video input, 3-10 second output at up to 4K and 24 FPS, extendable to 40 seconds."
|
|
6277
6426
|
},
|
|
6278
6427
|
capabilities: {
|
|
@@ -6311,7 +6460,7 @@ var VIDEO_MODELS = [
|
|
|
6311
6460
|
pricingKind: "video_per_second",
|
|
6312
6461
|
display: {
|
|
6313
6462
|
provider: "google",
|
|
6314
|
-
logo:
|
|
6463
|
+
logo: GOOGLE_LOGO4,
|
|
6315
6464
|
description: "Google Gemini Omni Flash 1.2 conversational video generation, editing and extension; text, image, and up to 15-second video input, 3-15 second output at up to 4K and 24 FPS (start and end frames up to 10 seconds), extendable to 30 seconds."
|
|
6316
6465
|
},
|
|
6317
6466
|
capabilities: {
|
|
@@ -8333,6 +8482,7 @@ var SupportedOptionSchema = import_zod3.z.enum([
|
|
|
8333
8482
|
"videoExtension",
|
|
8334
8483
|
"instrumental",
|
|
8335
8484
|
"lyrics",
|
|
8485
|
+
"loop",
|
|
8336
8486
|
"style",
|
|
8337
8487
|
"insertWindow",
|
|
8338
8488
|
"points",
|
|
@@ -10644,7 +10794,13 @@ function resolveAudioOptions(model, request, onUnsupported = "error") {
|
|
|
10644
10794
|
model: model.id
|
|
10645
10795
|
});
|
|
10646
10796
|
}
|
|
10647
|
-
dropUnsupported(merged, model, warnings, [
|
|
10797
|
+
dropUnsupported(merged, model, warnings, [
|
|
10798
|
+
"seed",
|
|
10799
|
+
"negativePrompt",
|
|
10800
|
+
"instrumental",
|
|
10801
|
+
"lyrics",
|
|
10802
|
+
"loop"
|
|
10803
|
+
]);
|
|
10648
10804
|
applyFalAudioRules(model, merged);
|
|
10649
10805
|
const format = resolveOutputFormat(model, request.outputFormat, onUnsupported, warnings);
|
|
10650
10806
|
if (format !== void 0) merged.outputFormat = format;
|