@picsart/ai-sdk 5.35.0 → 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.
Files changed (3) hide show
  1. package/index.d.ts +4 -4
  2. package/index.js +3 -3
  3. 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[];
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")
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.35.0",
3
+ "version": "5.35.1",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for 100+ AI models — image, video, audio, and text generation with Picsart",
6
6
  "license": "MIT",