@picsart/ai-sdk 6.11.1 → 6.13.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/_vendor/workflows-types/index.d.ts +1770 -1714
- package/index.d.ts +41 -2
- package/index.js +153 -6
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -204,6 +204,16 @@ type ModelInputById = {
|
|
|
204
204
|
styleExaggeration?: number;
|
|
205
205
|
speed?: number;
|
|
206
206
|
useSpeakerBoost?: boolean;
|
|
207
|
+
withTimestamps?: boolean;
|
|
208
|
+
};
|
|
209
|
+
"eleven-speech-to-text": {
|
|
210
|
+
audioUrl: string;
|
|
211
|
+
language?: string;
|
|
212
|
+
diarize?: boolean;
|
|
213
|
+
numSpeakers?: number;
|
|
214
|
+
timestampsGranularity?: "word" | "character";
|
|
215
|
+
tagAudioEvents?: boolean;
|
|
216
|
+
seed?: number;
|
|
207
217
|
};
|
|
208
218
|
"eleven-sts-v2": {
|
|
209
219
|
audioUrl: string;
|
|
@@ -232,6 +242,11 @@ type ModelInputById = {
|
|
|
232
242
|
styleExaggeration?: number;
|
|
233
243
|
speed?: number;
|
|
234
244
|
useSpeakerBoost?: boolean;
|
|
245
|
+
withTimestamps?: boolean;
|
|
246
|
+
};
|
|
247
|
+
"eleven-video-to-music": {
|
|
248
|
+
videoUrls: [string, ...string[]];
|
|
249
|
+
prompt?: string;
|
|
235
250
|
};
|
|
236
251
|
"eleven-voice-create": {
|
|
237
252
|
prompt: string;
|
|
@@ -390,6 +405,18 @@ type ModelInputById = {
|
|
|
390
405
|
imageUrls?: string[];
|
|
391
406
|
thinking?: "off" | "low" | "medium" | "high";
|
|
392
407
|
};
|
|
408
|
+
"gemini-3.8-flash-lite-tts": {
|
|
409
|
+
language?: string;
|
|
410
|
+
accent?: string;
|
|
411
|
+
prompt: string;
|
|
412
|
+
voiceId?: string;
|
|
413
|
+
};
|
|
414
|
+
"gemini-3.8-flash-tts": {
|
|
415
|
+
language?: string;
|
|
416
|
+
accent?: string;
|
|
417
|
+
prompt: string;
|
|
418
|
+
voiceId?: string;
|
|
419
|
+
};
|
|
393
420
|
"gemini-omni-1.1-flash-preview": {
|
|
394
421
|
prompt: string;
|
|
395
422
|
aspectRatio?: "16:9" | "9:16";
|
|
@@ -1725,6 +1752,13 @@ type ModelInputById = {
|
|
|
1725
1752
|
imageUrls?: string[];
|
|
1726
1753
|
negativePrompt?: string;
|
|
1727
1754
|
};
|
|
1755
|
+
"seedream-5.0-flash": {
|
|
1756
|
+
resolution?: "1K" | "2K";
|
|
1757
|
+
prompt: string;
|
|
1758
|
+
aspectRatio?: "1:1" | "4:3" | "3:4" | "16:9" | "9:16" | "3:2" | "2:3" | "21:9";
|
|
1759
|
+
imageUrls?: string[];
|
|
1760
|
+
negativePrompt?: string;
|
|
1761
|
+
};
|
|
1728
1762
|
"seedream-5.0-lite": {
|
|
1729
1763
|
resolution?: "2K" | "3K";
|
|
1730
1764
|
prompt: string;
|
|
@@ -1885,7 +1919,7 @@ type ModelInputById = {
|
|
|
1885
1919
|
type TypedModelId = keyof ModelInputById;
|
|
1886
1920
|
type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
1887
1921
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
1888
|
-
type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra";
|
|
1922
|
+
type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "eleven-speech-to-text" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra";
|
|
1889
1923
|
type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
1890
1924
|
|
|
1891
1925
|
/**
|
|
@@ -2423,7 +2457,7 @@ type Provider = AppProvider;
|
|
|
2423
2457
|
/** App generation modes. */
|
|
2424
2458
|
type GenerationMode = 'video' | 'image' | 'audio' | 'text';
|
|
2425
2459
|
/** App input types. */
|
|
2426
|
-
type InputType = 't2v' | 'i2v' | 'v2v' | 'a2v' | 't2i' | 'i2i' | 't2a' | 'v2a' | 'tts' | 'sts' | 'sfx' | 'music' | 't2t' | 'i2t' | 'v2t';
|
|
2460
|
+
type InputType = 't2v' | 'i2v' | 'v2v' | 'a2v' | 't2i' | 'i2i' | 't2a' | 'v2a' | 'tts' | 'sts' | 'sfx' | 'music' | 't2t' | 'i2t' | 'v2t' | 'a2t';
|
|
2427
2461
|
interface ModelFeature {
|
|
2428
2462
|
label: string;
|
|
2429
2463
|
variant: 'frame' | 'resolution' | 'audio' | 'duration' | 'input' | 'quality' | 'style' | 'characteristic';
|
|
@@ -3083,9 +3117,11 @@ declare const Models: {
|
|
|
3083
3117
|
readonly ElevenDubbing: "eleven-dubbing";
|
|
3084
3118
|
readonly ElevenMultilingualStsV2: "eleven-multilingual-sts-v2";
|
|
3085
3119
|
readonly ElevenMultilingualV2: "eleven-multilingual-v2";
|
|
3120
|
+
readonly ElevenSpeechToText: "eleven-speech-to-text";
|
|
3086
3121
|
readonly ElevenStsV2: "eleven-sts-v2";
|
|
3087
3122
|
readonly ElevenTextToDialogue: "eleven-text-to-dialogue";
|
|
3088
3123
|
readonly ElevenV3: "eleven-v3";
|
|
3124
|
+
readonly ElevenVideoToMusic: "eleven-video-to-music";
|
|
3089
3125
|
readonly ElevenVoiceCreate: "eleven-voice-create";
|
|
3090
3126
|
readonly ElevenVoiceDesignV2: "eleven-voice-design-v2";
|
|
3091
3127
|
readonly ElevenVoiceDesignV3: "eleven-voice-design-v3";
|
|
@@ -3113,6 +3149,8 @@ declare const Models: {
|
|
|
3113
3149
|
readonly Gemini36Flash: "gemini-3.6-flash";
|
|
3114
3150
|
readonly Gemini37Flash: "gemini-3.7-flash";
|
|
3115
3151
|
readonly Gemini38Flash: "gemini-3.8-flash";
|
|
3152
|
+
readonly Gemini38FlashLiteTts: "gemini-3.8-flash-lite-tts";
|
|
3153
|
+
readonly Gemini38FlashTts: "gemini-3.8-flash-tts";
|
|
3116
3154
|
readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
|
|
3117
3155
|
readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
|
|
3118
3156
|
readonly Gpt41Mini: "gpt-4.1-mini";
|
|
@@ -3290,6 +3328,7 @@ declare const Models: {
|
|
|
3290
3328
|
readonly Seedream40: "seedream-4.0";
|
|
3291
3329
|
readonly Seedream45: "seedream-4.5";
|
|
3292
3330
|
readonly Seedream47: "seedream-4.7";
|
|
3331
|
+
readonly Seedream50Flash: "seedream-5.0-flash";
|
|
3293
3332
|
readonly Seedream50Lite: "seedream-5.0-lite";
|
|
3294
3333
|
readonly Seedream50Pro: "seedream-5.0-pro";
|
|
3295
3334
|
readonly TopazUpscaleImage: "topaz-upscale-image";
|
package/index.js
CHANGED
|
@@ -5070,6 +5070,7 @@ var buildSeedream45Payload = buildSeedreamV2("seedream_4_5");
|
|
|
5070
5070
|
var buildSeedream47Payload = buildSeedreamV2("seedream_4_7");
|
|
5071
5071
|
var buildSeedream50LitePayload = buildSeedreamV2("seedream_5_0_lite");
|
|
5072
5072
|
var buildSeedream50ProPayload = buildSeedreamV2("seedream_5_0_pro");
|
|
5073
|
+
var buildSeedream50FlashPayload = buildSeedreamV2("seedream_5_0_flash");
|
|
5073
5074
|
var seedreamV2Params = {
|
|
5074
5075
|
...params.prompt(),
|
|
5075
5076
|
...params.aspectRatio(["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3", "21:9"], "16:9"),
|
|
@@ -5078,6 +5079,29 @@ var seedreamV2Params = {
|
|
|
5078
5079
|
...params.negativePrompt()
|
|
5079
5080
|
};
|
|
5080
5081
|
var { MODELS: MODELS14 } = defineModels("seedream", [
|
|
5082
|
+
{
|
|
5083
|
+
id: "seedream-5.0-flash",
|
|
5084
|
+
name: "Seedream 5.0 Flash",
|
|
5085
|
+
modelId: "seedream_5_0_flash",
|
|
5086
|
+
addedAt: "2026-09-24",
|
|
5087
|
+
workflow: "seedream",
|
|
5088
|
+
buildPayload: buildSeedream50FlashPayload,
|
|
5089
|
+
estimatedTime: { "1K": 10, "2K": 18 },
|
|
5090
|
+
mode: "image",
|
|
5091
|
+
inputType: "t2i",
|
|
5092
|
+
// Fastest 5.0 tier. Backend gates Flash to 1K/2K (same as 5.0-pro). Single-image
|
|
5093
|
+
// only (no group/sequential) with up to 10 reference images. Supports both T2I
|
|
5094
|
+
// and I2I modes.
|
|
5095
|
+
description: "Fastest 5.0 tier \u2014 quick 2K generation with up to 10 reference images.",
|
|
5096
|
+
features: [feat("Multi-Image Input", "input"), feat("2K", "resolution")],
|
|
5097
|
+
paramConfig: {
|
|
5098
|
+
...params.resolution(["1K", "2K"]),
|
|
5099
|
+
...params.prompt(),
|
|
5100
|
+
...params.aspectRatio(["1:1", "4:3", "3:4", "16:9", "9:16", "3:2", "2:3", "21:9"], "16:9"),
|
|
5101
|
+
...params.imageInput(10, "Source Images"),
|
|
5102
|
+
...params.negativePrompt()
|
|
5103
|
+
}
|
|
5104
|
+
},
|
|
5081
5105
|
{
|
|
5082
5106
|
id: "seedream-5.0-pro",
|
|
5083
5107
|
name: "Seedream 5.0 Pro",
|
|
@@ -6383,9 +6407,9 @@ var buildGemini31FlashLiteImagePayload = (ctx) => ({
|
|
|
6383
6407
|
imageSize: ctx.resolution ?? "1K",
|
|
6384
6408
|
...buildThinkingConfig(ctx)
|
|
6385
6409
|
});
|
|
6386
|
-
var buildGeminiTTSPayload = (ctx) => ({
|
|
6410
|
+
var buildGeminiTTSPayload = (model) => (ctx) => ({
|
|
6387
6411
|
text: ctx.prompt,
|
|
6388
|
-
model
|
|
6412
|
+
model,
|
|
6389
6413
|
voiceName: ctx.voiceId ?? "Kore"
|
|
6390
6414
|
});
|
|
6391
6415
|
function inferMimeType2(url) {
|
|
@@ -6517,7 +6541,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6517
6541
|
name: "Gemini 2.5 Flash TTS",
|
|
6518
6542
|
addedAt: "2026-02-15",
|
|
6519
6543
|
workflow: "gemini/v1/audios",
|
|
6520
|
-
buildPayload: buildGeminiTTSPayload,
|
|
6544
|
+
buildPayload: buildGeminiTTSPayload("gemini-2.5-flash-tts"),
|
|
6521
6545
|
estimatedTime: 15,
|
|
6522
6546
|
mode: "audio",
|
|
6523
6547
|
inputType: "tts",
|
|
@@ -6537,7 +6561,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6537
6561
|
name: "Gemini 2.5 Pro TTS",
|
|
6538
6562
|
addedAt: "2026-03-18",
|
|
6539
6563
|
workflow: "gemini/v1/audios",
|
|
6540
|
-
buildPayload: buildGeminiTTSPayload,
|
|
6564
|
+
buildPayload: buildGeminiTTSPayload("gemini-2.5-pro-tts"),
|
|
6541
6565
|
estimatedTime: 20,
|
|
6542
6566
|
mode: "audio",
|
|
6543
6567
|
inputType: "tts",
|
|
@@ -6553,6 +6577,47 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6553
6577
|
...params.voiceId([], GEMINI_DEFAULT_VOICE_ID, { catalog: { workflow: "gemini/v1/catalog/voices" } })
|
|
6554
6578
|
}
|
|
6555
6579
|
},
|
|
6580
|
+
{
|
|
6581
|
+
id: "gemini-3.8-flash-tts",
|
|
6582
|
+
name: "Gemini 3.8 Flash TTS",
|
|
6583
|
+
addedAt: "2026-09-24",
|
|
6584
|
+
workflow: "gemini/v1/audios",
|
|
6585
|
+
buildPayload: buildGeminiTTSPayload("gemini-3.8-flash-tts"),
|
|
6586
|
+
estimatedTime: 15,
|
|
6587
|
+
mode: "audio",
|
|
6588
|
+
inputType: "tts",
|
|
6589
|
+
modelId: "gemini-3.8-flash-tts",
|
|
6590
|
+
description: "Latest Gemini native text-to-speech with expressive multilingual voices.",
|
|
6591
|
+
features: [feat("Multilingual", "characteristic"), feat("30 Voices", "characteristic")],
|
|
6592
|
+
paramConfig: {
|
|
6593
|
+
...params.language(true),
|
|
6594
|
+
// 6,000 boundary-verified against the live gemini/v1/audios worker
|
|
6595
|
+
// (accepts >5,000; see scripts/api-tests/audio-charlimit-boundary-probe.mjs).
|
|
6596
|
+
...params.prompt({ maxLength: 6e3 }),
|
|
6597
|
+
...params.voiceId([], GEMINI_DEFAULT_VOICE_ID, { catalog: { workflow: "gemini/v1/catalog/voices" } })
|
|
6598
|
+
}
|
|
6599
|
+
},
|
|
6600
|
+
{
|
|
6601
|
+
id: "gemini-3.8-flash-lite-tts",
|
|
6602
|
+
name: "Gemini 3.8 Flash Lite TTS",
|
|
6603
|
+
addedAt: "2026-09-24",
|
|
6604
|
+
workflow: "gemini/v1/audios",
|
|
6605
|
+
buildPayload: buildGeminiTTSPayload("gemini-3.8-flash-lite-tts"),
|
|
6606
|
+
estimatedTime: 12,
|
|
6607
|
+
mode: "audio",
|
|
6608
|
+
inputType: "tts",
|
|
6609
|
+
modelId: "gemini-3.8-flash-lite-tts",
|
|
6610
|
+
badge: ["fast"],
|
|
6611
|
+
description: "Lightweight Gemini 3.8 TTS variant for faster, high-volume speech synthesis.",
|
|
6612
|
+
features: [feat("Multilingual", "characteristic"), feat("30 Voices", "characteristic")],
|
|
6613
|
+
paramConfig: {
|
|
6614
|
+
...params.language(true),
|
|
6615
|
+
// 6,000 boundary-verified against the live gemini/v1/audios worker
|
|
6616
|
+
// (accepts >5,000; see scripts/api-tests/audio-charlimit-boundary-probe.mjs).
|
|
6617
|
+
...params.prompt({ maxLength: 6e3 }),
|
|
6618
|
+
...params.voiceId([], GEMINI_DEFAULT_VOICE_ID, { catalog: { workflow: "gemini/v1/catalog/voices" } })
|
|
6619
|
+
}
|
|
6620
|
+
},
|
|
6556
6621
|
// ── Video ─────────────────────────────────────────────────────────
|
|
6557
6622
|
{
|
|
6558
6623
|
id: "gemini-omni-flash-preview",
|
|
@@ -6937,7 +7002,11 @@ var ttsParamConfig = (promptMaxLength, withLanguage) => ({
|
|
|
6937
7002
|
...withLanguage ? params.language(false) : {},
|
|
6938
7003
|
...params.prompt({ maxLength: promptMaxLength }),
|
|
6939
7004
|
...params.voiceId([], DEFAULT_VOICE_ID, { catalog: VOICE_CATALOG }),
|
|
6940
|
-
...voiceSettingsParams(true)
|
|
7005
|
+
...voiceSettingsParams(true),
|
|
7006
|
+
// Timings come back beside the audio, for captions and lip sync. Off by
|
|
7007
|
+
// default: the vendor answers a different route that inlines the audio as
|
|
7008
|
+
// base64, and callers who do not need timings should not pay the decode.
|
|
7009
|
+
...p.boolean("withTimestamps", false, "Character Timings")
|
|
6941
7010
|
});
|
|
6942
7011
|
var { MODELS: MODELS24 } = defineModels("elevenlabs", [
|
|
6943
7012
|
// ── TTS ───────────────────────────────────────────────────────────
|
|
@@ -7063,6 +7132,56 @@ var { MODELS: MODELS24 } = defineModels("elevenlabs", [
|
|
|
7063
7132
|
...p.boolean("isInstrumental", false, "Instrumental Only")
|
|
7064
7133
|
}
|
|
7065
7134
|
},
|
|
7135
|
+
// ── Transcription ─────────────────────────────────────────────────
|
|
7136
|
+
{
|
|
7137
|
+
// `modelId` is the pricing-catalog key: the vendor id `scribe_v2` is not
|
|
7138
|
+
// vendor-scoped, so pricing carries the `eleven_` prefix, as music does.
|
|
7139
|
+
id: "eleven-speech-to-text",
|
|
7140
|
+
name: "Eleven Scribe v2",
|
|
7141
|
+
modelId: "eleven_scribe_v2",
|
|
7142
|
+
addedAt: "2026-09-24",
|
|
7143
|
+
workflow: "elevenlabs/v1/speech-to-text",
|
|
7144
|
+
estimatedTime: 10,
|
|
7145
|
+
mode: "text",
|
|
7146
|
+
inputType: "a2t",
|
|
7147
|
+
description: "Transcribe speech from audio or video, with word timings and speaker labels.",
|
|
7148
|
+
features: [feat("Transcription", "characteristic"), feat("Speaker Labels", "characteristic")],
|
|
7149
|
+
paramConfig: {
|
|
7150
|
+
...params.audioInput("Audio or Video", true),
|
|
7151
|
+
// ISO 639-1 or 639-3. Left free text: the vendor detects the language on
|
|
7152
|
+
// its own, and the closed list would be 99 entries of upkeep.
|
|
7153
|
+
language: {
|
|
7154
|
+
label: "Language (ISO code, optional)",
|
|
7155
|
+
descriptor: { kind: "text", placeholder: "e.g. en, rus \u2014 omit to auto-detect" }
|
|
7156
|
+
},
|
|
7157
|
+
...p.boolean("diarize", false, "Label Speakers"),
|
|
7158
|
+
...p.range("numSpeakers", 1, 32, 1, { step: 1, label: "Speakers" }),
|
|
7159
|
+
...p.enum("timestampsGranularity", ["word", "character"], "word", { label: "Timing Detail" }),
|
|
7160
|
+
...p.boolean("tagAudioEvents", false, "Tag Audio Events"),
|
|
7161
|
+
...params.seed(2147483647)
|
|
7162
|
+
}
|
|
7163
|
+
},
|
|
7164
|
+
// ── Video to Music ────────────────────────────────────────────────
|
|
7165
|
+
{
|
|
7166
|
+
// Same pricing model as music-generation — the same engine writes the
|
|
7167
|
+
// track; what separates the two is the use case, `video-to-audio`.
|
|
7168
|
+
id: "eleven-video-to-music",
|
|
7169
|
+
name: "Eleven Video to Music",
|
|
7170
|
+
modelId: "eleven_music_v2",
|
|
7171
|
+
addedAt: "2026-09-24",
|
|
7172
|
+
workflow: "elevenlabs/v1/video-to-music",
|
|
7173
|
+
estimatedTime: 25,
|
|
7174
|
+
mode: "audio",
|
|
7175
|
+
inputType: "v2a",
|
|
7176
|
+
description: "Score a video with a soundtrack written to follow what happens on screen.",
|
|
7177
|
+
features: [feat("Video Scoring", "characteristic"), feat("Soundtrack", "characteristic")],
|
|
7178
|
+
paramConfig: {
|
|
7179
|
+
// The vendor takes up to ten clips, 200MB and 600 seconds in total, and
|
|
7180
|
+
// scores them as one timeline.
|
|
7181
|
+
...params.videoInputs(10, "Videos", true),
|
|
7182
|
+
...params.prompt({ maxLength: 1e3, required: false, placeholder: "How the soundtrack should sound" })
|
|
7183
|
+
}
|
|
7184
|
+
},
|
|
7066
7185
|
// ── Speech-to-Speech ──────────────────────────────────────────────
|
|
7067
7186
|
{
|
|
7068
7187
|
id: "eleven-sts-v2",
|
|
@@ -7227,6 +7346,7 @@ var buildElevenLabsTTSPayload = (modelId) => (input) => ({
|
|
|
7227
7346
|
voice_id: input.voiceId ?? DEFAULT_VOICE_ID,
|
|
7228
7347
|
model_id: modelId,
|
|
7229
7348
|
...input.language ? { language_code: input.language } : {},
|
|
7349
|
+
...input.withTimestamps ? { with_timestamps: true } : {},
|
|
7230
7350
|
...voiceSettings(input)
|
|
7231
7351
|
});
|
|
7232
7352
|
var buildElevenLabsSTSPayload = (modelId) => (input) => ({
|
|
@@ -7246,13 +7366,30 @@ var buildElevenLabsDialoguePayload = (input) => ({
|
|
|
7246
7366
|
...input.language ? { language_code: input.language } : {},
|
|
7247
7367
|
...input.seed != null ? { seed: input.seed } : {}
|
|
7248
7368
|
});
|
|
7369
|
+
var buildElevenLabsTranscribePayload = (input) => ({
|
|
7370
|
+
audio_url: input.audioUrl,
|
|
7371
|
+
...input.language ? { language_code: input.language } : {},
|
|
7372
|
+
...input.diarize ? { diarize: true } : {},
|
|
7373
|
+
// Only meaningful alongside diarization, and only when the caller moved it
|
|
7374
|
+
// off the default of one.
|
|
7375
|
+
...input.diarize && input.numSpeakers && input.numSpeakers > 1 ? { num_speakers: input.numSpeakers } : {},
|
|
7376
|
+
...input.timestampsGranularity ? { timestamps_granularity: input.timestampsGranularity } : {},
|
|
7377
|
+
...input.tagAudioEvents ? { tag_audio_events: true } : {},
|
|
7378
|
+
...input.seed != null ? { seed: input.seed } : {}
|
|
7379
|
+
});
|
|
7380
|
+
var buildElevenLabsVideoToMusicPayload = (input) => ({
|
|
7381
|
+
video_urls: input.videoUrls,
|
|
7382
|
+
...input.prompt ? { description: input.prompt } : {}
|
|
7383
|
+
});
|
|
7249
7384
|
registerPayloads(MODELS24, {
|
|
7250
7385
|
"elevenlabs-music-v2": buildElevenLabsMusicPayload,
|
|
7251
7386
|
"eleven-v3": buildElevenLabsTTSPayload("eleven_v3"),
|
|
7252
7387
|
"eleven-multilingual-v2": buildElevenLabsTTSPayload("eleven_multilingual_v2"),
|
|
7253
7388
|
"eleven-sts-v2": buildElevenLabsSTSPayload("eleven_english_sts_v2"),
|
|
7254
7389
|
"eleven-multilingual-sts-v2": buildElevenLabsSTSPayload("eleven_multilingual_sts_v2"),
|
|
7255
|
-
"eleven-text-to-dialogue": buildElevenLabsDialoguePayload
|
|
7390
|
+
"eleven-text-to-dialogue": buildElevenLabsDialoguePayload,
|
|
7391
|
+
"eleven-speech-to-text": buildElevenLabsTranscribePayload,
|
|
7392
|
+
"eleven-video-to-music": buildElevenLabsVideoToMusicPayload
|
|
7256
7393
|
});
|
|
7257
7394
|
|
|
7258
7395
|
// src/vendors/catalog/heygen.ts
|
|
@@ -12587,9 +12724,11 @@ var ElevenAudioIsolation = "eleven-audio-isolation";
|
|
|
12587
12724
|
var ElevenDubbing = "eleven-dubbing";
|
|
12588
12725
|
var ElevenMultilingualStsV2 = "eleven-multilingual-sts-v2";
|
|
12589
12726
|
var ElevenMultilingualV2 = "eleven-multilingual-v2";
|
|
12727
|
+
var ElevenSpeechToText = "eleven-speech-to-text";
|
|
12590
12728
|
var ElevenStsV2 = "eleven-sts-v2";
|
|
12591
12729
|
var ElevenTextToDialogue = "eleven-text-to-dialogue";
|
|
12592
12730
|
var ElevenV3 = "eleven-v3";
|
|
12731
|
+
var ElevenVideoToMusic = "eleven-video-to-music";
|
|
12593
12732
|
var ElevenVoiceCreate = "eleven-voice-create";
|
|
12594
12733
|
var ElevenVoiceDesignV2 = "eleven-voice-design-v2";
|
|
12595
12734
|
var ElevenVoiceDesignV3 = "eleven-voice-design-v3";
|
|
@@ -12617,6 +12756,8 @@ var Gemini35FlashLite = "gemini-3.5-flash-lite";
|
|
|
12617
12756
|
var Gemini36Flash = "gemini-3.6-flash";
|
|
12618
12757
|
var Gemini37Flash = "gemini-3.7-flash";
|
|
12619
12758
|
var Gemini38Flash = "gemini-3.8-flash";
|
|
12759
|
+
var Gemini38FlashLiteTts = "gemini-3.8-flash-lite-tts";
|
|
12760
|
+
var Gemini38FlashTts = "gemini-3.8-flash-tts";
|
|
12620
12761
|
var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
|
|
12621
12762
|
var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
|
|
12622
12763
|
var Gpt41Mini = "gpt-4.1-mini";
|
|
@@ -12794,6 +12935,7 @@ var SeedanceI2v = "seedance-i2v";
|
|
|
12794
12935
|
var Seedream40 = "seedream-4.0";
|
|
12795
12936
|
var Seedream45 = "seedream-4.5";
|
|
12796
12937
|
var Seedream47 = "seedream-4.7";
|
|
12938
|
+
var Seedream50Flash = "seedream-5.0-flash";
|
|
12797
12939
|
var Seedream50Lite = "seedream-5.0-lite";
|
|
12798
12940
|
var Seedream50Pro = "seedream-5.0-pro";
|
|
12799
12941
|
var TopazUpscaleImage = "topaz-upscale-image";
|
|
@@ -12832,9 +12974,11 @@ var Models = {
|
|
|
12832
12974
|
ElevenDubbing,
|
|
12833
12975
|
ElevenMultilingualStsV2,
|
|
12834
12976
|
ElevenMultilingualV2,
|
|
12977
|
+
ElevenSpeechToText,
|
|
12835
12978
|
ElevenStsV2,
|
|
12836
12979
|
ElevenTextToDialogue,
|
|
12837
12980
|
ElevenV3,
|
|
12981
|
+
ElevenVideoToMusic,
|
|
12838
12982
|
ElevenVoiceCreate,
|
|
12839
12983
|
ElevenVoiceDesignV2,
|
|
12840
12984
|
ElevenVoiceDesignV3,
|
|
@@ -12862,6 +13006,8 @@ var Models = {
|
|
|
12862
13006
|
Gemini36Flash,
|
|
12863
13007
|
Gemini37Flash,
|
|
12864
13008
|
Gemini38Flash,
|
|
13009
|
+
Gemini38FlashLiteTts,
|
|
13010
|
+
Gemini38FlashTts,
|
|
12865
13011
|
GeminiOmni11FlashPreview,
|
|
12866
13012
|
GeminiOmniFlashPreview,
|
|
12867
13013
|
Gpt41Mini,
|
|
@@ -13039,6 +13185,7 @@ var Models = {
|
|
|
13039
13185
|
Seedream40,
|
|
13040
13186
|
Seedream45,
|
|
13041
13187
|
Seedream47,
|
|
13188
|
+
Seedream50Flash,
|
|
13042
13189
|
Seedream50Lite,
|
|
13043
13190
|
Seedream50Pro,
|
|
13044
13191
|
TopazUpscaleImage,
|