@picsart/ai-sdk 5.34.3 → 5.35.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/index.d.ts +6 -6
- package/index.js +5 -5
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -255,7 +255,7 @@ type ModelInputById = {
|
|
|
255
255
|
};
|
|
256
256
|
"gemini-2.5-flash-image": {
|
|
257
257
|
prompt: string;
|
|
258
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9";
|
|
258
|
+
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
|
|
259
259
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
260
260
|
imageUrls?: string[];
|
|
261
261
|
};
|
|
@@ -279,7 +279,7 @@ type ModelInputById = {
|
|
|
279
279
|
};
|
|
280
280
|
"gemini-3-pro-image": {
|
|
281
281
|
prompt: string;
|
|
282
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9";
|
|
282
|
+
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
|
|
283
283
|
resolution?: "1K" | "2K" | "4K";
|
|
284
284
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
285
285
|
thinkingBudget?: number;
|
|
@@ -287,7 +287,7 @@ type ModelInputById = {
|
|
|
287
287
|
};
|
|
288
288
|
"gemini-3.1-flash-image": {
|
|
289
289
|
prompt: string;
|
|
290
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9";
|
|
290
|
+
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9" | "auto";
|
|
291
291
|
resolution?: "0.5K" | "1K" | "2K" | "4K";
|
|
292
292
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
293
293
|
thinkingLevel?: "minimal" | "high";
|
|
@@ -295,7 +295,7 @@ type ModelInputById = {
|
|
|
295
295
|
};
|
|
296
296
|
"gemini-3.1-flash-lite-image": {
|
|
297
297
|
prompt: string;
|
|
298
|
-
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9";
|
|
298
|
+
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9" | "auto";
|
|
299
299
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
300
300
|
thinkingLevel?: "minimal" | "high";
|
|
301
301
|
imageUrls?: string[];
|
|
@@ -522,14 +522,14 @@ type ModelInputById = {
|
|
|
522
522
|
"heygen-talking-photo": {
|
|
523
523
|
imageUrls: [string, ...string[]];
|
|
524
524
|
resolution?: "4k" | "1080p" | "720p";
|
|
525
|
-
aspectRatio?: "16:9" | "9:16";
|
|
525
|
+
aspectRatio?: "16:9" | "9:16" | "4:5" | "5:4" | "1:1" | "auto";
|
|
526
526
|
voiceId: string;
|
|
527
527
|
prompt: string;
|
|
528
528
|
};
|
|
529
529
|
"heygen-video-avatar": {
|
|
530
530
|
videoId: string;
|
|
531
531
|
resolution?: "4k" | "1080p" | "720p";
|
|
532
|
-
aspectRatio?: "16:9" | "9:16";
|
|
532
|
+
aspectRatio?: "16:9" | "9:16" | "4:5" | "5:4" | "1:1" | "auto";
|
|
533
533
|
voiceId: string;
|
|
534
534
|
prompt: string;
|
|
535
535
|
};
|
package/index.js
CHANGED
|
@@ -5978,7 +5978,7 @@ var buildGeminiOmniVideoPayload = (ctx) => ({
|
|
|
5978
5978
|
...ctx.imageUrls?.[0] ? { image: { url: ctx.imageUrls[0], mimeType: inferMimeType2(ctx.imageUrls[0]) } } : {},
|
|
5979
5979
|
...ctx.videoUrl ? { video: { url: ctx.videoUrl } } : {}
|
|
5980
5980
|
});
|
|
5981
|
-
var GEMINI_AR_WIDE = ["1:1", "16:9", "9:16", "3:4", "4:3", "2:3", "21:9"];
|
|
5981
|
+
var GEMINI_AR_WIDE = ["1:1", "16:9", "9:16", "3:4", "4:3", "2:3", "21:9", "auto"];
|
|
5982
5982
|
var thinkingLevelParam = {
|
|
5983
5983
|
thinkingLevel: {
|
|
5984
5984
|
label: "Thinking",
|
|
@@ -6017,7 +6017,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6017
6017
|
features: [feat("Multi-Image Input", "input"), feat("4K", "resolution"), feat("Text Rendering", "characteristic")],
|
|
6018
6018
|
paramConfig: {
|
|
6019
6019
|
...params.prompt(),
|
|
6020
|
-
...params.aspectRatio(["1:1", "16:9", "9:16", "3:4", "4:3", "3:2", "2:3", "4:5", "5:4", "4:1", "1:4", "8:1", "1:8", "21:9"], "1:1"),
|
|
6020
|
+
...params.aspectRatio(["1:1", "16:9", "9:16", "3:4", "4:3", "3:2", "2:3", "4:5", "5:4", "4:1", "1:4", "8:1", "1:8", "21:9", "auto"], "1:1"),
|
|
6021
6021
|
...params.resolution(["0.5K", "1K", "2K", "4K"], "1K"),
|
|
6022
6022
|
...params.count(),
|
|
6023
6023
|
...thinkingLevelParam,
|
|
@@ -6040,7 +6040,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6040
6040
|
features: [feat("Multi-Image Input", "input"), feat("Text Rendering", "characteristic")],
|
|
6041
6041
|
paramConfig: {
|
|
6042
6042
|
...params.prompt(),
|
|
6043
|
-
...params.aspectRatio(["1:1", "16:9", "9:16", "3:4", "4:3", "3:2", "2:3", "4:5", "5:4", "4:1", "1:4", "8:1", "1:8", "21:9"], "1:1"),
|
|
6043
|
+
...params.aspectRatio(["1:1", "16:9", "9:16", "3:4", "4:3", "3:2", "2:3", "4:5", "5:4", "4:1", "1:4", "8:1", "1:8", "21:9", "auto"], "1:1"),
|
|
6044
6044
|
...params.count(),
|
|
6045
6045
|
...thinkingLevelParam,
|
|
6046
6046
|
...params.imageInput(14, "Source Images")
|
|
@@ -6767,7 +6767,7 @@ var { MODELS: MODELS25 } = defineModels("heygen", [
|
|
|
6767
6767
|
paramConfig: {
|
|
6768
6768
|
...params.imageInput(1, "Portrait Image", true),
|
|
6769
6769
|
...params.resolution(["4k", "1080p", "720p"], "720p"),
|
|
6770
|
-
...params.aspectRatio(["16:9", "9:16"]),
|
|
6770
|
+
...params.aspectRatio(["16:9", "9:16", "4:5", "5:4", "1:1", "auto"]),
|
|
6771
6771
|
...dynamicVoiceConfig,
|
|
6772
6772
|
...params.prompt({ minLength: 20, maxLength: 5e3, placeholder: "Write the script your avatar will speak (at least 20 characters)..." })
|
|
6773
6773
|
}
|
|
@@ -6795,7 +6795,7 @@ var { MODELS: MODELS25 } = defineModels("heygen", [
|
|
|
6795
6795
|
catalog: { workflow: "heygen/v1/catalog/avatars" }
|
|
6796
6796
|
}),
|
|
6797
6797
|
...params.resolution(["4k", "1080p", "720p"], "720p"),
|
|
6798
|
-
...params.aspectRatio(["16:9", "9:16"]),
|
|
6798
|
+
...params.aspectRatio(["16:9", "9:16", "4:5", "5:4", "1:1", "auto"]),
|
|
6799
6799
|
...dynamicVoiceConfig,
|
|
6800
6800
|
...params.prompt({ minLength: 20, maxLength: 5e3, placeholder: "Write the script your avatar will speak (at least 20 characters)..." })
|
|
6801
6801
|
}
|