@picsart/ai-sdk 3.19.0 → 3.20.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 +8 -0
- package/index.d.ts +12 -1
- package/index.js +42 -1
- package/package.json +1 -1
|
@@ -5942,6 +5942,8 @@ interface PikaTextToVideoResponse {
|
|
|
5942
5942
|
}
|
|
5943
5943
|
interface PikaVideoResult$3 {
|
|
5944
5944
|
url: string;
|
|
5945
|
+
mimeType?: string;
|
|
5946
|
+
driveFile?: Record<string, unknown>;
|
|
5945
5947
|
}
|
|
5946
5948
|
|
|
5947
5949
|
interface PikaImageToVideoCommand {
|
|
@@ -5978,6 +5980,8 @@ interface PikaImageToVideoResponse {
|
|
|
5978
5980
|
}
|
|
5979
5981
|
interface PikaVideoResult$2 {
|
|
5980
5982
|
url: string;
|
|
5983
|
+
mimeType?: string;
|
|
5984
|
+
driveFile?: Record<string, unknown>;
|
|
5981
5985
|
}
|
|
5982
5986
|
|
|
5983
5987
|
interface PikaScenesCommand {
|
|
@@ -6017,6 +6021,8 @@ interface PikaScenesResponse {
|
|
|
6017
6021
|
}
|
|
6018
6022
|
interface PikaVideoResult$1 {
|
|
6019
6023
|
url: string;
|
|
6024
|
+
mimeType?: string;
|
|
6025
|
+
driveFile?: Record<string, unknown>;
|
|
6020
6026
|
}
|
|
6021
6027
|
|
|
6022
6028
|
interface PikaFramesCommand {
|
|
@@ -6054,6 +6060,8 @@ interface PikaFramesResponse {
|
|
|
6054
6060
|
}
|
|
6055
6061
|
interface PikaVideoResult {
|
|
6056
6062
|
url: string;
|
|
6063
|
+
mimeType?: string;
|
|
6064
|
+
driveFile?: Record<string, unknown>;
|
|
6057
6065
|
}
|
|
6058
6066
|
|
|
6059
6067
|
interface IdeogramV3GenerateCommand {
|
package/index.d.ts
CHANGED
|
@@ -220,6 +220,15 @@ type ModelInputById = {
|
|
|
220
220
|
thinkingLevel?: "minimal" | "high";
|
|
221
221
|
imageUrls?: string[];
|
|
222
222
|
};
|
|
223
|
+
"gemini-3.5-flash-lite": {
|
|
224
|
+
prompt: string;
|
|
225
|
+
imageUrls?: string[];
|
|
226
|
+
};
|
|
227
|
+
"gemini-3.6-flash": {
|
|
228
|
+
prompt: string;
|
|
229
|
+
imageUrls?: string[];
|
|
230
|
+
thinking?: "off" | "low" | "medium" | "high";
|
|
231
|
+
};
|
|
223
232
|
"gemini-omni-flash-preview": {
|
|
224
233
|
prompt: string;
|
|
225
234
|
aspectRatio?: "16:9" | "9:16";
|
|
@@ -1333,7 +1342,7 @@ type ModelInputById = {
|
|
|
1333
1342
|
type TypedModelId = keyof ModelInputById;
|
|
1334
1343
|
type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
1335
1344
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
1336
|
-
type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gpt-5.5";
|
|
1345
|
+
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";
|
|
1337
1346
|
type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
1338
1347
|
|
|
1339
1348
|
/**
|
|
@@ -2097,6 +2106,8 @@ declare const Models: {
|
|
|
2097
2106
|
readonly Gemini3ProImage: "gemini-3-pro-image";
|
|
2098
2107
|
readonly Gemini31FlashImage: "gemini-3.1-flash-image";
|
|
2099
2108
|
readonly Gemini31FlashLiteImage: "gemini-3.1-flash-lite-image";
|
|
2109
|
+
readonly Gemini35FlashLite: "gemini-3.5-flash-lite";
|
|
2110
|
+
readonly Gemini36Flash: "gemini-3.6-flash";
|
|
2100
2111
|
readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
|
|
2101
2112
|
readonly Gpt55: "gpt-5.5";
|
|
2102
2113
|
readonly GptImage1: "gpt-image-1";
|
package/index.js
CHANGED
|
@@ -7768,6 +7768,39 @@ var { MODELS: GEMINI_LLM } = defineModels("google", [
|
|
|
7768
7768
|
...params.videoInput("Video", "reference", false),
|
|
7769
7769
|
...thinkingParam(["low", "high"])
|
|
7770
7770
|
}
|
|
7771
|
+
},
|
|
7772
|
+
{
|
|
7773
|
+
id: "gemini-3.6-flash",
|
|
7774
|
+
name: "Gemini 3.6 Flash",
|
|
7775
|
+
workflow: "chat-completions",
|
|
7776
|
+
addedAt: "2026-07-22",
|
|
7777
|
+
estimatedTime: 5,
|
|
7778
|
+
mode: "text",
|
|
7779
|
+
inputType: "i2t",
|
|
7780
|
+
badge: ["fast"],
|
|
7781
|
+
description: "Fast Gemini model \u2014 low-latency multimodal text generation.",
|
|
7782
|
+
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
7783
|
+
paramConfig: {
|
|
7784
|
+
...params.prompt(),
|
|
7785
|
+
...params.imageInput(8, "Images"),
|
|
7786
|
+
...thinkingParam(["low", "medium", "high"])
|
|
7787
|
+
}
|
|
7788
|
+
},
|
|
7789
|
+
{
|
|
7790
|
+
id: "gemini-3.5-flash-lite",
|
|
7791
|
+
name: "Gemini 3.5 Flash Lite",
|
|
7792
|
+
workflow: "chat-completions",
|
|
7793
|
+
addedAt: "2026-07-22",
|
|
7794
|
+
estimatedTime: 4,
|
|
7795
|
+
mode: "text",
|
|
7796
|
+
inputType: "i2t",
|
|
7797
|
+
badge: ["fast"],
|
|
7798
|
+
description: "Lightweight Gemini model \u2014 the fastest, most cost-efficient tier.",
|
|
7799
|
+
features: [feat("Vision", "input")],
|
|
7800
|
+
paramConfig: {
|
|
7801
|
+
...params.prompt(),
|
|
7802
|
+
...params.imageInput(8, "Images")
|
|
7803
|
+
}
|
|
7771
7804
|
}
|
|
7772
7805
|
]);
|
|
7773
7806
|
var MODELS36 = [...ANTHROPIC, ...OPENAI_LLM, ...GEMINI_LLM];
|
|
@@ -7826,7 +7859,11 @@ registerPayloads(MODELS36, {
|
|
|
7826
7859
|
"claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
|
|
7827
7860
|
"claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
|
|
7828
7861
|
"gpt-5.5": buildOpenAiPayload("gpt-5.5"),
|
|
7829
|
-
"gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview")
|
|
7862
|
+
"gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
|
|
7863
|
+
// Flash models route through chat-completions (OpenAI-shaped), not the
|
|
7864
|
+
// native `gemini` workflow. flash-lite has no thinking param → reasoning_effort omitted.
|
|
7865
|
+
"gemini-3.6-flash": buildOpenAiPayload("gemini-3.6-flash"),
|
|
7866
|
+
"gemini-3.5-flash-lite": buildOpenAiPayload("gemini-3.5-flash-lite")
|
|
7830
7867
|
});
|
|
7831
7868
|
|
|
7832
7869
|
// src/vendors/catalog/index.ts
|
|
@@ -9786,6 +9823,8 @@ var Gemini3Pro = "gemini-3-pro";
|
|
|
9786
9823
|
var Gemini3ProImage = "gemini-3-pro-image";
|
|
9787
9824
|
var Gemini31FlashImage = "gemini-3.1-flash-image";
|
|
9788
9825
|
var Gemini31FlashLiteImage = "gemini-3.1-flash-lite-image";
|
|
9826
|
+
var Gemini35FlashLite = "gemini-3.5-flash-lite";
|
|
9827
|
+
var Gemini36Flash = "gemini-3.6-flash";
|
|
9789
9828
|
var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
|
|
9790
9829
|
var Gpt55 = "gpt-5.5";
|
|
9791
9830
|
var GptImage1 = "gpt-image-1";
|
|
@@ -9975,6 +10014,8 @@ var Models = {
|
|
|
9975
10014
|
Gemini3ProImage,
|
|
9976
10015
|
Gemini31FlashImage,
|
|
9977
10016
|
Gemini31FlashLiteImage,
|
|
10017
|
+
Gemini35FlashLite,
|
|
10018
|
+
Gemini36Flash,
|
|
9978
10019
|
GeminiOmniFlashPreview,
|
|
9979
10020
|
Gpt55,
|
|
9980
10021
|
GptImage1,
|