@picsart/ai-sdk 6.12.0 → 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/index.d.ts +22 -0
- package/index.js +75 -4
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -405,6 +405,18 @@ type ModelInputById = {
|
|
|
405
405
|
imageUrls?: string[];
|
|
406
406
|
thinking?: "off" | "low" | "medium" | "high";
|
|
407
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
|
+
};
|
|
408
420
|
"gemini-omni-1.1-flash-preview": {
|
|
409
421
|
prompt: string;
|
|
410
422
|
aspectRatio?: "16:9" | "9:16";
|
|
@@ -1740,6 +1752,13 @@ type ModelInputById = {
|
|
|
1740
1752
|
imageUrls?: string[];
|
|
1741
1753
|
negativePrompt?: string;
|
|
1742
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
|
+
};
|
|
1743
1762
|
"seedream-5.0-lite": {
|
|
1744
1763
|
resolution?: "2K" | "3K";
|
|
1745
1764
|
prompt: string;
|
|
@@ -3130,6 +3149,8 @@ declare const Models: {
|
|
|
3130
3149
|
readonly Gemini36Flash: "gemini-3.6-flash";
|
|
3131
3150
|
readonly Gemini37Flash: "gemini-3.7-flash";
|
|
3132
3151
|
readonly Gemini38Flash: "gemini-3.8-flash";
|
|
3152
|
+
readonly Gemini38FlashLiteTts: "gemini-3.8-flash-lite-tts";
|
|
3153
|
+
readonly Gemini38FlashTts: "gemini-3.8-flash-tts";
|
|
3133
3154
|
readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
|
|
3134
3155
|
readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
|
|
3135
3156
|
readonly Gpt41Mini: "gpt-4.1-mini";
|
|
@@ -3307,6 +3328,7 @@ declare const Models: {
|
|
|
3307
3328
|
readonly Seedream40: "seedream-4.0";
|
|
3308
3329
|
readonly Seedream45: "seedream-4.5";
|
|
3309
3330
|
readonly Seedream47: "seedream-4.7";
|
|
3331
|
+
readonly Seedream50Flash: "seedream-5.0-flash";
|
|
3310
3332
|
readonly Seedream50Lite: "seedream-5.0-lite";
|
|
3311
3333
|
readonly Seedream50Pro: "seedream-5.0-pro";
|
|
3312
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",
|
|
@@ -12691,6 +12756,8 @@ var Gemini35FlashLite = "gemini-3.5-flash-lite";
|
|
|
12691
12756
|
var Gemini36Flash = "gemini-3.6-flash";
|
|
12692
12757
|
var Gemini37Flash = "gemini-3.7-flash";
|
|
12693
12758
|
var Gemini38Flash = "gemini-3.8-flash";
|
|
12759
|
+
var Gemini38FlashLiteTts = "gemini-3.8-flash-lite-tts";
|
|
12760
|
+
var Gemini38FlashTts = "gemini-3.8-flash-tts";
|
|
12694
12761
|
var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
|
|
12695
12762
|
var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
|
|
12696
12763
|
var Gpt41Mini = "gpt-4.1-mini";
|
|
@@ -12868,6 +12935,7 @@ var SeedanceI2v = "seedance-i2v";
|
|
|
12868
12935
|
var Seedream40 = "seedream-4.0";
|
|
12869
12936
|
var Seedream45 = "seedream-4.5";
|
|
12870
12937
|
var Seedream47 = "seedream-4.7";
|
|
12938
|
+
var Seedream50Flash = "seedream-5.0-flash";
|
|
12871
12939
|
var Seedream50Lite = "seedream-5.0-lite";
|
|
12872
12940
|
var Seedream50Pro = "seedream-5.0-pro";
|
|
12873
12941
|
var TopazUpscaleImage = "topaz-upscale-image";
|
|
@@ -12938,6 +13006,8 @@ var Models = {
|
|
|
12938
13006
|
Gemini36Flash,
|
|
12939
13007
|
Gemini37Flash,
|
|
12940
13008
|
Gemini38Flash,
|
|
13009
|
+
Gemini38FlashLiteTts,
|
|
13010
|
+
Gemini38FlashTts,
|
|
12941
13011
|
GeminiOmni11FlashPreview,
|
|
12942
13012
|
GeminiOmniFlashPreview,
|
|
12943
13013
|
Gpt41Mini,
|
|
@@ -13115,6 +13185,7 @@ var Models = {
|
|
|
13115
13185
|
Seedream40,
|
|
13116
13186
|
Seedream45,
|
|
13117
13187
|
Seedream47,
|
|
13188
|
+
Seedream50Flash,
|
|
13118
13189
|
Seedream50Lite,
|
|
13119
13190
|
Seedream50Pro,
|
|
13120
13191
|
TopazUpscaleImage,
|