@picsart/ai-sdk 5.9.0 → 5.10.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 +7 -2
- package/index.d.ts +7 -1
- package/index.js +20 -0
- package/package.json +1 -1
|
@@ -6522,10 +6522,11 @@ interface XAiTtsResult {
|
|
|
6522
6522
|
|
|
6523
6523
|
interface XAiImagesGenerationsCommand {
|
|
6524
6524
|
prompt: string;
|
|
6525
|
-
model?: "grok-imagine-image" | "grok-imagine-image-quality";
|
|
6525
|
+
model?: "grok-imagine-image" | "grok-imagine-image-quality" | "grok-imagine-image-2.0";
|
|
6526
6526
|
aspect_ratio?: "1:1" | "3:4" | "4:3" | "9:16" | "16:9" | "2:3" | "3:2" | "9:19.5" | "19.5:9" | "9:20" | "20:9" | "1:2" | "2:1" | "auto";
|
|
6527
6527
|
n?: number;
|
|
6528
6528
|
resolution?: "1k" | "2k";
|
|
6529
|
+
quality?: "low" | "medium";
|
|
6529
6530
|
options?: GenAIOptions$1a;
|
|
6530
6531
|
}
|
|
6531
6532
|
interface GenAIOptions$1a {
|
|
@@ -6564,7 +6565,7 @@ interface XAiImagesEditsCommand {
|
|
|
6564
6565
|
image?: XAiImageUrl$1;
|
|
6565
6566
|
images?: XAiImageUrl$1[];
|
|
6566
6567
|
mask?: XAiImageUrl$1;
|
|
6567
|
-
model?: "grok-imagine-image" | "grok-imagine-image-quality";
|
|
6568
|
+
model?: "grok-imagine-image" | "grok-imagine-image-quality" | "grok-imagine-image-2.0";
|
|
6568
6569
|
n?: number;
|
|
6569
6570
|
resolution?: "1k" | "2k";
|
|
6570
6571
|
options?: GenAIOptions$19;
|
|
@@ -9365,8 +9366,12 @@ interface AsyncCatalogVoice {
|
|
|
9365
9366
|
name: string;
|
|
9366
9367
|
description?: string;
|
|
9367
9368
|
tags: string[];
|
|
9369
|
+
preview?: AsyncCatalogVoicePreview;
|
|
9368
9370
|
meta?: Record<string, unknown>;
|
|
9369
9371
|
}
|
|
9372
|
+
interface AsyncCatalogVoicePreview {
|
|
9373
|
+
audioUrl?: string;
|
|
9374
|
+
}
|
|
9370
9375
|
|
|
9371
9376
|
interface GeminiCatalogVoicesCommand {
|
|
9372
9377
|
cursor?: string;
|
package/index.d.ts
CHANGED
|
@@ -251,6 +251,11 @@ type ModelInputById = {
|
|
|
251
251
|
imageUrls?: string[];
|
|
252
252
|
thinking?: "off" | "low" | "medium" | "high";
|
|
253
253
|
};
|
|
254
|
+
"gemini-3.7-flash": {
|
|
255
|
+
prompt: string;
|
|
256
|
+
imageUrls?: string[];
|
|
257
|
+
thinking?: "off" | "low" | "medium" | "high";
|
|
258
|
+
};
|
|
254
259
|
"gemini-omni-flash-preview": {
|
|
255
260
|
prompt: string;
|
|
256
261
|
aspectRatio?: "16:9" | "9:16";
|
|
@@ -1523,7 +1528,7 @@ type ModelInputById = {
|
|
|
1523
1528
|
type TypedModelId = keyof ModelInputById;
|
|
1524
1529
|
type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
1525
1530
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
1526
|
-
type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gpt-5.5";
|
|
1531
|
+
type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gpt-5.5";
|
|
1527
1532
|
type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
1528
1533
|
|
|
1529
1534
|
/**
|
|
@@ -2466,6 +2471,7 @@ declare const Models: {
|
|
|
2466
2471
|
readonly Gemini31FlashLiteImage: "gemini-3.1-flash-lite-image";
|
|
2467
2472
|
readonly Gemini35FlashLite: "gemini-3.5-flash-lite";
|
|
2468
2473
|
readonly Gemini36Flash: "gemini-3.6-flash";
|
|
2474
|
+
readonly Gemini37Flash: "gemini-3.7-flash";
|
|
2469
2475
|
readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
|
|
2470
2476
|
readonly Gpt55: "gpt-5.5";
|
|
2471
2477
|
readonly GptImage1: "gpt-image-1";
|
package/index.js
CHANGED
|
@@ -8264,6 +8264,23 @@ var { MODELS: GEMINI_LLM } = defineModels("google", [
|
|
|
8264
8264
|
...thinkingParam(["low", "high"])
|
|
8265
8265
|
}
|
|
8266
8266
|
},
|
|
8267
|
+
{
|
|
8268
|
+
id: "gemini-3.7-flash",
|
|
8269
|
+
name: "Gemini 3.7 Flash",
|
|
8270
|
+
workflow: "chat-completions",
|
|
8271
|
+
addedAt: "2026-08-19",
|
|
8272
|
+
estimatedTime: 5,
|
|
8273
|
+
mode: "text",
|
|
8274
|
+
inputType: "i2t",
|
|
8275
|
+
badge: ["fast"],
|
|
8276
|
+
description: "Latest fast Gemini model \u2014 low-latency multimodal text generation.",
|
|
8277
|
+
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
8278
|
+
paramConfig: {
|
|
8279
|
+
...params.prompt(),
|
|
8280
|
+
...params.imageInput(8, "Images"),
|
|
8281
|
+
...thinkingParam(["low", "medium", "high"])
|
|
8282
|
+
}
|
|
8283
|
+
},
|
|
8267
8284
|
{
|
|
8268
8285
|
id: "gemini-3.6-flash",
|
|
8269
8286
|
name: "Gemini 3.6 Flash",
|
|
@@ -8357,6 +8374,7 @@ registerPayloads(MODELS36, {
|
|
|
8357
8374
|
"gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
|
|
8358
8375
|
// Flash models route through chat-completions (OpenAI-shaped), not the
|
|
8359
8376
|
// native `gemini` workflow. flash-lite has no thinking param → reasoning_effort omitted.
|
|
8377
|
+
"gemini-3.7-flash": buildOpenAiPayload("gemini-3.7-flash"),
|
|
8360
8378
|
"gemini-3.6-flash": buildOpenAiPayload("gemini-3.6-flash"),
|
|
8361
8379
|
"gemini-3.5-flash-lite": buildOpenAiPayload("gemini-3.5-flash-lite")
|
|
8362
8380
|
});
|
|
@@ -10496,6 +10514,7 @@ var Gemini31FlashImage = "gemini-3.1-flash-image";
|
|
|
10496
10514
|
var Gemini31FlashLiteImage = "gemini-3.1-flash-lite-image";
|
|
10497
10515
|
var Gemini35FlashLite = "gemini-3.5-flash-lite";
|
|
10498
10516
|
var Gemini36Flash = "gemini-3.6-flash";
|
|
10517
|
+
var Gemini37Flash = "gemini-3.7-flash";
|
|
10499
10518
|
var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
|
|
10500
10519
|
var Gpt55 = "gpt-5.5";
|
|
10501
10520
|
var GptImage1 = "gpt-image-1";
|
|
@@ -10705,6 +10724,7 @@ var Models = {
|
|
|
10705
10724
|
Gemini31FlashLiteImage,
|
|
10706
10725
|
Gemini35FlashLite,
|
|
10707
10726
|
Gemini36Flash,
|
|
10727
|
+
Gemini37Flash,
|
|
10708
10728
|
GeminiOmniFlashPreview,
|
|
10709
10729
|
Gpt55,
|
|
10710
10730
|
GptImage1,
|