@shop-os/modelkit 0.25.1 → 0.26.1
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 +175 -18
- 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 +175 -18
- package/dist/catalog.js.map +1 -1
- package/dist/index.cjs +669 -225
- 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 +668 -225
- 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.1] - Unreleased
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
- `kling-image-4.0` declares `references.imagePixels: { minWidth: 300, minHeight: 300 }`, fal's
|
|
16
|
+
minimum (422 `image_too_small` on 256x256 stock backgrounds, prod COWORK-5S), so a caller's
|
|
17
|
+
conform step can resize a smaller reference instead of sending it.
|
|
18
|
+
|
|
19
|
+
## [0.26.0] - 2026-11-19
|
|
20
|
+
|
|
21
|
+
### Added
|
|
22
|
+
- ElevenLabs direct music and sound effects (`generateAudio` on the `elevenlabs` adapter, our own
|
|
23
|
+
key and account): `elevenlabs-music-direct` (`music_v2_5`, 3 s to 5 min, `instrumental`) and
|
|
24
|
+
`elevenlabs-sound-effects-direct` (`eleven_text_to_sound_v3`, 0.5 to 30 s or ElevenLabs' auto
|
|
25
|
+
length when none is asked, `loop`). Both are metered per second on the returned MP3's length
|
|
26
|
+
(`mp3Seconds`), since neither endpoint reports one. Exposed on `cowork` only.
|
|
27
|
+
- `AudioRequest.loop` and the `loop` supported option. An older kit drops a row that lists it.
|
|
28
|
+
- Gemini direct speech and voice replication on the `google-genai` adapter (`generateSpeech`,
|
|
29
|
+
`createVoice`, `deleteVoice`): `gemini-3.8-flash-tts-direct` (prebuilt voices or a replicated
|
|
30
|
+
voice, `customVoices`) and `gemini-voice-clone` (one 10 to 30 s recording plus
|
|
31
|
+
`VoiceCloneRequest.consent`, the speaker reading Google's consent sentence). The sentences per
|
|
32
|
+
locale are `GEMINI_VOICE_CONSENT`. Exposed on `cowork` only.
|
|
33
|
+
|
|
34
|
+
### Not verified live
|
|
35
|
+
- `gemini-voice-clone` end to end: Google refuses synthetic audio, so the create call was only
|
|
36
|
+
checked up to that refusal (400 `FINISH_REASON_INPUT_VR_TAKEDOWN`). Whether it takes a format
|
|
37
|
+
other than WAV is unknown; send WAV.
|
|
38
|
+
|
|
12
39
|
## [0.25.1] - Unreleased
|
|
13
40
|
|
|
14
41
|
### Changed
|
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,
|
|
@@ -458,7 +459,8 @@ var FAL_IMAGE_MODELS = [
|
|
|
458
459
|
constraints: {
|
|
459
460
|
aspectRatios: [...KLING_RATIOS, "adaptive"],
|
|
460
461
|
sizes: ["2K", "4K", "8K"],
|
|
461
|
-
|
|
462
|
+
// fal refuses a reference under 300x300 (422 image_too_small, prod COWORK-5S).
|
|
463
|
+
references: { images: 10, imagePixels: { minWidth: 300, minHeight: 300 } },
|
|
462
464
|
supports: ["count"],
|
|
463
465
|
prompt: { referenceSyntax: "numbered", maxChars: 21e3 }
|
|
464
466
|
},
|
|
@@ -2481,6 +2483,94 @@ var GEMINI_TTS_VOICES = [
|
|
|
2481
2483
|
{ id: "Zubenelgenubi", name: "Zubenelgenubi" }
|
|
2482
2484
|
];
|
|
2483
2485
|
|
|
2486
|
+
// src/catalog/speech-gemini-direct.ts
|
|
2487
|
+
var GOOGLE_LOGO = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
2488
|
+
var GEMINI_VOICE_CONSENT = {
|
|
2489
|
+
"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.",
|
|
2490
|
+
"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",
|
|
2491
|
+
"de-DE": "Ich bin der Eigent\xFCmer dieser Stimme und bin damit einverstanden, dass Google diese Stimme zur Erstellung eines synthetischen Stimmmodells verwendet.",
|
|
2492
|
+
"en-AU": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2493
|
+
"en-GB": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2494
|
+
"en-IN": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2495
|
+
"en-US": "I am the owner of this voice and I consent to Google using this voice to create a synthetic voice model.",
|
|
2496
|
+
"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.",
|
|
2497
|
+
"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.",
|
|
2498
|
+
"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.",
|
|
2499
|
+
"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.",
|
|
2500
|
+
"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",
|
|
2501
|
+
"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",
|
|
2502
|
+
"id-ID": "Saya pemilik suara ini dan saya menyetujui Google menggunakan suara ini untuk membuat model suara sintetis.",
|
|
2503
|
+
"it-IT": "Sono il proprietario di questa voce e acconsento che Google la utilizzi per creare un modello di voce sintetica.",
|
|
2504
|
+
"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",
|
|
2505
|
+
"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.",
|
|
2506
|
+
"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.",
|
|
2507
|
+
"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.",
|
|
2508
|
+
"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",
|
|
2509
|
+
"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.",
|
|
2510
|
+
"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.",
|
|
2511
|
+
"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.",
|
|
2512
|
+
"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.",
|
|
2513
|
+
"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.",
|
|
2514
|
+
"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.",
|
|
2515
|
+
"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",
|
|
2516
|
+
"tr-TR": "Bu sesin sahibi benim ve Google'\u0131n bu sesi kullanarak sentetik bir ses modeli olu\u015Fturmas\u0131na izin veriyorum.",
|
|
2517
|
+
"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.",
|
|
2518
|
+
"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"
|
|
2519
|
+
};
|
|
2520
|
+
var GEMINI_DIRECT_MODELS = [
|
|
2521
|
+
{
|
|
2522
|
+
id: "gemini-3.8-flash-tts-direct",
|
|
2523
|
+
aliases: [],
|
|
2524
|
+
label: "Gemini 3.8 Flash TTS",
|
|
2525
|
+
type: "speech",
|
|
2526
|
+
adapter: "google-genai",
|
|
2527
|
+
providerModelId: "gemini-3.8-flash-tts",
|
|
2528
|
+
lifecycle: "active",
|
|
2529
|
+
exposure: ["cowork"],
|
|
2530
|
+
constraints: {
|
|
2531
|
+
voices: GEMINI_TTS_VOICES,
|
|
2532
|
+
// Returns a 24 kHz mono WAV; the language is detected from the script.
|
|
2533
|
+
supports: ["style"],
|
|
2534
|
+
// Google's docs state no script limit; fal gives 8,192 input tokens for this model
|
|
2535
|
+
// (a token is at least one character), so the same cap is kept here.
|
|
2536
|
+
prompt: { referenceSyntax: "numbered", maxChars: 8192 }
|
|
2537
|
+
},
|
|
2538
|
+
defaults: { voice: "Kore" },
|
|
2539
|
+
usage: { unit: "images" },
|
|
2540
|
+
pricingKind: "flat",
|
|
2541
|
+
display: {
|
|
2542
|
+
provider: "google",
|
|
2543
|
+
logo: GOOGLE_LOGO,
|
|
2544
|
+
description: "Google Gemini 3.8 Flash text to speech in 30 prebuilt voices or your own replicated voice, with separate style instructions."
|
|
2545
|
+
},
|
|
2546
|
+
capabilities: { customVoices: true }
|
|
2547
|
+
},
|
|
2548
|
+
{
|
|
2549
|
+
id: "gemini-voice-clone",
|
|
2550
|
+
aliases: [],
|
|
2551
|
+
label: "Gemini Voice Replication",
|
|
2552
|
+
type: "voice-clone",
|
|
2553
|
+
adapter: "google-genai",
|
|
2554
|
+
providerModelId: "gemini-3.8-flash-tts",
|
|
2555
|
+
lifecycle: "active",
|
|
2556
|
+
exposure: ["cowork"],
|
|
2557
|
+
constraints: {
|
|
2558
|
+
// One 10-30 s recording, plus the consent recording. Google's samples are WAV.
|
|
2559
|
+
references: { audios: 1, audioFormats: ["wav"], audioSeconds: { min: 10, max: 30 } },
|
|
2560
|
+
supports: []
|
|
2561
|
+
},
|
|
2562
|
+
defaults: {},
|
|
2563
|
+
usage: { unit: "requests" },
|
|
2564
|
+
pricingKind: "flat",
|
|
2565
|
+
display: {
|
|
2566
|
+
provider: "google",
|
|
2567
|
+
logo: GOOGLE_LOGO,
|
|
2568
|
+
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."
|
|
2569
|
+
},
|
|
2570
|
+
capabilities: {}
|
|
2571
|
+
}
|
|
2572
|
+
];
|
|
2573
|
+
|
|
2484
2574
|
// src/catalog/voices-minimax.ts
|
|
2485
2575
|
var MINIMAX_VOICES = [
|
|
2486
2576
|
{ id: "Wise_Woman", name: "Wise Woman" },
|
|
@@ -3981,7 +4071,7 @@ var MINIMAX_VOICES = [
|
|
|
3981
4071
|
|
|
3982
4072
|
// src/catalog/media-nodes.ts
|
|
3983
4073
|
var ELEVENLABS_LOGO2 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/elevenlabs.png";
|
|
3984
|
-
var
|
|
4074
|
+
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
3985
4075
|
var MINIMAX_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png";
|
|
3986
4076
|
var SYNC_LOGO = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/sync.png";
|
|
3987
4077
|
var PER_CALL3 = { unit: "images" };
|
|
@@ -4031,7 +4121,7 @@ function geminiTts(id, label, description) {
|
|
|
4031
4121
|
defaults: { voice: "Kore" },
|
|
4032
4122
|
usage: PER_CALL3,
|
|
4033
4123
|
pricingKind: "flat",
|
|
4034
|
-
display: { provider: "google", logo:
|
|
4124
|
+
display: { provider: "google", logo: GOOGLE_LOGO2, description },
|
|
4035
4125
|
capabilities: {}
|
|
4036
4126
|
};
|
|
4037
4127
|
}
|
|
@@ -4277,7 +4367,8 @@ var MEDIA_NODE_MODELS = [
|
|
|
4277
4367
|
},
|
|
4278
4368
|
SAM_3_IMAGE,
|
|
4279
4369
|
...FISH_MODELS,
|
|
4280
|
-
...ELEVENLABS_DIRECT_MODELS
|
|
4370
|
+
...ELEVENLABS_DIRECT_MODELS,
|
|
4371
|
+
...GEMINI_DIRECT_MODELS
|
|
4281
4372
|
];
|
|
4282
4373
|
|
|
4283
4374
|
// src/catalog/model3d.ts
|
|
@@ -4471,9 +4562,67 @@ var MODEL3D_MODELS = [
|
|
|
4471
4562
|
)
|
|
4472
4563
|
];
|
|
4473
4564
|
|
|
4474
|
-
// src/catalog/
|
|
4475
|
-
var GOOGLE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
4565
|
+
// src/catalog/audio-elevenlabs-direct.ts
|
|
4476
4566
|
var ELEVENLABS_LOGO3 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/elevenlabs.png";
|
|
4567
|
+
var ELEVENLABS_DIRECT_AUDIO_MODELS = [
|
|
4568
|
+
{
|
|
4569
|
+
id: "elevenlabs-music-direct",
|
|
4570
|
+
aliases: [],
|
|
4571
|
+
label: "Eleven Music",
|
|
4572
|
+
type: "audio",
|
|
4573
|
+
adapter: "elevenlabs",
|
|
4574
|
+
providerModelId: "music_v2_5",
|
|
4575
|
+
lifecycle: "active",
|
|
4576
|
+
exposure: ["cowork"],
|
|
4577
|
+
constraints: {
|
|
4578
|
+
// The API takes 3 s to 10 min; ElevenLabs' overview says 5 min, so stop there.
|
|
4579
|
+
durations: { min: 3, max: 300 },
|
|
4580
|
+
durationPresets: [30, 60, 120, 180],
|
|
4581
|
+
// No `seed`: the API refuses it with a prompt (composition plans only).
|
|
4582
|
+
supports: ["instrumental"],
|
|
4583
|
+
outputFormats: ELEVENLABS_MUSIC_FORMATS
|
|
4584
|
+
},
|
|
4585
|
+
defaults: { durationSeconds: 60, outputFormat: "mp3_48000_192" },
|
|
4586
|
+
usage: { unit: "seconds" },
|
|
4587
|
+
pricingKind: "flat",
|
|
4588
|
+
display: {
|
|
4589
|
+
provider: "elevenlabs",
|
|
4590
|
+
logo: ELEVENLABS_LOGO3,
|
|
4591
|
+
description: "Songs and instrumentals in any genre, from 3 seconds to 5 minutes."
|
|
4592
|
+
},
|
|
4593
|
+
capabilities: {}
|
|
4594
|
+
},
|
|
4595
|
+
{
|
|
4596
|
+
id: "elevenlabs-sound-effects-direct",
|
|
4597
|
+
aliases: [],
|
|
4598
|
+
label: "Eleven Sound Effects",
|
|
4599
|
+
type: "sound-effect",
|
|
4600
|
+
adapter: "elevenlabs",
|
|
4601
|
+
providerModelId: "eleven_text_to_sound_v3",
|
|
4602
|
+
lifecycle: "active",
|
|
4603
|
+
exposure: ["cowork"],
|
|
4604
|
+
constraints: {
|
|
4605
|
+
durations: { min: 0.5, max: 30 },
|
|
4606
|
+
durationPresets: [2, 5, 10, 22],
|
|
4607
|
+
supports: ["loop"],
|
|
4608
|
+
outputFormats: ELEVENLABS_MP3_FORMATS
|
|
4609
|
+
},
|
|
4610
|
+
// No default length: a request without one gets ElevenLabs' auto length.
|
|
4611
|
+
defaults: { outputFormat: "mp3_44100_128" },
|
|
4612
|
+
usage: { unit: "seconds" },
|
|
4613
|
+
pricingKind: "flat",
|
|
4614
|
+
display: {
|
|
4615
|
+
provider: "elevenlabs",
|
|
4616
|
+
logo: ELEVENLABS_LOGO3,
|
|
4617
|
+
description: "Any sound from a text description, up to 30 seconds, at a set or automatic length; can loop."
|
|
4618
|
+
},
|
|
4619
|
+
capabilities: {}
|
|
4620
|
+
}
|
|
4621
|
+
];
|
|
4622
|
+
|
|
4623
|
+
// src/catalog/other.ts
|
|
4624
|
+
var GOOGLE_LOGO3 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
4625
|
+
var ELEVENLABS_LOGO4 = "https://cdn.jsdelivr.net/npm/@lobehub/icons-static-png@1.97.0/light/elevenlabs.png";
|
|
4477
4626
|
var MINIMAX_LOGO3 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/f4c2e906-28b7-4a4a-b491-df8fef7808ed.png";
|
|
4478
4627
|
var OTHER_MODELS = [
|
|
4479
4628
|
{
|
|
@@ -4495,7 +4644,7 @@ var OTHER_MODELS = [
|
|
|
4495
4644
|
pricingKind: "flat",
|
|
4496
4645
|
display: {
|
|
4497
4646
|
provider: "google",
|
|
4498
|
-
logo:
|
|
4647
|
+
logo: GOOGLE_LOGO3,
|
|
4499
4648
|
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
4649
|
},
|
|
4501
4650
|
capabilities: {}
|
|
@@ -4518,7 +4667,7 @@ var OTHER_MODELS = [
|
|
|
4518
4667
|
pricingKind: "flat",
|
|
4519
4668
|
display: {
|
|
4520
4669
|
provider: "google",
|
|
4521
|
-
logo:
|
|
4670
|
+
logo: GOOGLE_LOGO3,
|
|
4522
4671
|
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
4672
|
},
|
|
4524
4673
|
capabilities: {}
|
|
@@ -4610,7 +4759,7 @@ var OTHER_MODELS = [
|
|
|
4610
4759
|
pricingKind: "flat",
|
|
4611
4760
|
display: {
|
|
4612
4761
|
provider: "google",
|
|
4613
|
-
logo:
|
|
4762
|
+
logo: GOOGLE_LOGO3,
|
|
4614
4763
|
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
4764
|
},
|
|
4616
4765
|
capabilities: {}
|
|
@@ -4638,7 +4787,7 @@ var OTHER_MODELS = [
|
|
|
4638
4787
|
pricingKind: "flat",
|
|
4639
4788
|
display: {
|
|
4640
4789
|
provider: "elevenlabs",
|
|
4641
|
-
logo:
|
|
4790
|
+
logo: ELEVENLABS_LOGO4,
|
|
4642
4791
|
description: "ElevenLabs Music v2.5 text-to-music; full songs or instrumentals from 3 seconds to 1 minute."
|
|
4643
4792
|
},
|
|
4644
4793
|
capabilities: {}
|
|
@@ -4690,7 +4839,7 @@ var OTHER_MODELS = [
|
|
|
4690
4839
|
pricingKind: "flat",
|
|
4691
4840
|
display: {
|
|
4692
4841
|
provider: "elevenlabs",
|
|
4693
|
-
logo:
|
|
4842
|
+
logo: ELEVENLABS_LOGO4,
|
|
4694
4843
|
description: "ElevenLabs Sound Effects v2; a sound effect from a text description, up to 22 seconds."
|
|
4695
4844
|
},
|
|
4696
4845
|
capabilities: {}
|
|
@@ -4826,7 +4975,8 @@ var OTHER_MODELS = [
|
|
|
4826
4975
|
provider: "prodia",
|
|
4827
4976
|
description: "Background removal; takes one input image and returns a PNG cut-out of the subject plus an optional black-and-white mask."
|
|
4828
4977
|
}
|
|
4829
|
-
}
|
|
4978
|
+
},
|
|
4979
|
+
...ELEVENLABS_DIRECT_AUDIO_MODELS
|
|
4830
4980
|
];
|
|
4831
4981
|
|
|
4832
4982
|
// src/catalog/text.ts
|
|
@@ -6098,7 +6248,7 @@ var H3_PROMPT2 = { referenceSyntax: "numbered", maxChars: 5e4 };
|
|
|
6098
6248
|
var WAN_PROMPT = { referenceSyntax: "numbered", maxChars: 2e4 };
|
|
6099
6249
|
var OMNI_PROMPT = { referenceSyntax: "caption", maxChars: 5e4 };
|
|
6100
6250
|
var BYTEDANCE_LOGO2 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/3bba5d81-4e57-4e71-911b-cdfa05acca2c_compressed.png";
|
|
6101
|
-
var
|
|
6251
|
+
var GOOGLE_LOGO4 = "https://d31vvfpk2ppdyq.cloudfront.net/assets/image/192485d2-a76a-4657-9c06-930b2c70badd_compressed.png";
|
|
6102
6252
|
var VIDEO_MODELS = [
|
|
6103
6253
|
// Google shuts down the Veo 3.1 previews and Omni Flash 1.0 on 2026-10-22.
|
|
6104
6254
|
{
|
|
@@ -6134,7 +6284,7 @@ var VIDEO_MODELS = [
|
|
|
6134
6284
|
display: {
|
|
6135
6285
|
provider: "google",
|
|
6136
6286
|
description: "Google's highest-quality video generation model. Supports up to 4K resolution and 8-second clips with reference image conditioning.",
|
|
6137
|
-
logo:
|
|
6287
|
+
logo: GOOGLE_LOGO4
|
|
6138
6288
|
},
|
|
6139
6289
|
// Veo's lastFrame "must be used in combination with the image parameter".
|
|
6140
6290
|
capabilities: { ...FRAMES_EXCLUDE_REFERENCES, lastFrameRequiresFirstFrame: true }
|
|
@@ -6235,7 +6385,7 @@ var VIDEO_MODELS = [
|
|
|
6235
6385
|
display: {
|
|
6236
6386
|
provider: "google",
|
|
6237
6387
|
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:
|
|
6388
|
+
logo: GOOGLE_LOGO4
|
|
6239
6389
|
},
|
|
6240
6390
|
capabilities: { acceptsSourceVideo: true, videoEdit: true }
|
|
6241
6391
|
},
|
|
@@ -6272,7 +6422,7 @@ var VIDEO_MODELS = [
|
|
|
6272
6422
|
pricingKind: "video_per_second",
|
|
6273
6423
|
display: {
|
|
6274
6424
|
provider: "google",
|
|
6275
|
-
logo:
|
|
6425
|
+
logo: GOOGLE_LOGO4,
|
|
6276
6426
|
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
6427
|
},
|
|
6278
6428
|
capabilities: {
|
|
@@ -6311,7 +6461,7 @@ var VIDEO_MODELS = [
|
|
|
6311
6461
|
pricingKind: "video_per_second",
|
|
6312
6462
|
display: {
|
|
6313
6463
|
provider: "google",
|
|
6314
|
-
logo:
|
|
6464
|
+
logo: GOOGLE_LOGO4,
|
|
6315
6465
|
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
6466
|
},
|
|
6317
6467
|
capabilities: {
|
|
@@ -8333,6 +8483,7 @@ var SupportedOptionSchema = import_zod3.z.enum([
|
|
|
8333
8483
|
"videoExtension",
|
|
8334
8484
|
"instrumental",
|
|
8335
8485
|
"lyrics",
|
|
8486
|
+
"loop",
|
|
8336
8487
|
"style",
|
|
8337
8488
|
"insertWindow",
|
|
8338
8489
|
"points",
|
|
@@ -10644,7 +10795,13 @@ function resolveAudioOptions(model, request, onUnsupported = "error") {
|
|
|
10644
10795
|
model: model.id
|
|
10645
10796
|
});
|
|
10646
10797
|
}
|
|
10647
|
-
dropUnsupported(merged, model, warnings, [
|
|
10798
|
+
dropUnsupported(merged, model, warnings, [
|
|
10799
|
+
"seed",
|
|
10800
|
+
"negativePrompt",
|
|
10801
|
+
"instrumental",
|
|
10802
|
+
"lyrics",
|
|
10803
|
+
"loop"
|
|
10804
|
+
]);
|
|
10648
10805
|
applyFalAudioRules(model, merged);
|
|
10649
10806
|
const format = resolveOutputFormat(model, request.outputFormat, onUnsupported, warnings);
|
|
10650
10807
|
if (format !== void 0) merged.outputFormat = format;
|