@picsart/ai-sdk 6.13.2 → 6.13.3
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 +4 -0
- package/index.js +8 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -343,6 +343,7 @@ type ModelInputById = {
|
|
|
343
343
|
prompt: string;
|
|
344
344
|
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
|
|
345
345
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
346
|
+
seed?: number;
|
|
346
347
|
imageUrls?: string[];
|
|
347
348
|
};
|
|
348
349
|
"gemini-2.5-flash-tts": {
|
|
@@ -368,6 +369,7 @@ type ModelInputById = {
|
|
|
368
369
|
aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
|
|
369
370
|
resolution?: "1K" | "2K" | "4K";
|
|
370
371
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
372
|
+
seed?: number;
|
|
371
373
|
thinkingBudget?: number;
|
|
372
374
|
imageUrls?: string[];
|
|
373
375
|
};
|
|
@@ -376,6 +378,7 @@ type ModelInputById = {
|
|
|
376
378
|
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";
|
|
377
379
|
resolution?: "0.5K" | "1K" | "2K" | "4K";
|
|
378
380
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
381
|
+
seed?: number;
|
|
379
382
|
thinkingLevel?: "minimal" | "high";
|
|
380
383
|
imageUrls?: string[];
|
|
381
384
|
};
|
|
@@ -383,6 +386,7 @@ type ModelInputById = {
|
|
|
383
386
|
prompt: string;
|
|
384
387
|
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";
|
|
385
388
|
count?: 1 | 2 | 4 | 6 | 8 | 10;
|
|
389
|
+
seed?: number;
|
|
386
390
|
thinkingLevel?: "minimal" | "high";
|
|
387
391
|
imageUrls?: string[];
|
|
388
392
|
};
|
package/index.js
CHANGED
|
@@ -6378,6 +6378,7 @@ var buildGemini3ProImagePayload = (ctx) => ({
|
|
|
6378
6378
|
prompt: ctx.prompt,
|
|
6379
6379
|
model: "gemini-3-pro-image-preview",
|
|
6380
6380
|
count: ctx.count ?? 1,
|
|
6381
|
+
...ctx.seed != null ? { seed: ctx.seed } : {},
|
|
6381
6382
|
...ctx.imageUrls?.length ? { imageUrls: ctx.imageUrls } : {},
|
|
6382
6383
|
aspectRatio: ctx.aspectRatio ?? "1:1",
|
|
6383
6384
|
imageSize: ctx.resolution ?? "2K",
|
|
@@ -6387,6 +6388,7 @@ var buildGeminiFlashImagePayload = (ctx) => ({
|
|
|
6387
6388
|
prompt: ctx.prompt,
|
|
6388
6389
|
model: "gemini-2.5-flash-image",
|
|
6389
6390
|
count: ctx.count ?? 1,
|
|
6391
|
+
...ctx.seed != null ? { seed: ctx.seed } : {},
|
|
6390
6392
|
...ctx.imageUrls?.length ? { imageUrls: ctx.imageUrls } : {},
|
|
6391
6393
|
aspectRatio: ctx.aspectRatio ?? "16:9"
|
|
6392
6394
|
});
|
|
@@ -6394,6 +6396,7 @@ var buildGemini31FlashImagePayload = (ctx) => ({
|
|
|
6394
6396
|
prompt: ctx.prompt,
|
|
6395
6397
|
model: "gemini-3.1-flash-image-preview",
|
|
6396
6398
|
count: ctx.count ?? 1,
|
|
6399
|
+
...ctx.seed != null ? { seed: ctx.seed } : {},
|
|
6397
6400
|
...ctx.imageUrls?.length ? { imageUrls: ctx.imageUrls } : {},
|
|
6398
6401
|
aspectRatio: ctx.aspectRatio ?? "1:1",
|
|
6399
6402
|
imageSize: ctx.resolution ?? "1K",
|
|
@@ -6403,6 +6406,7 @@ var buildGemini31FlashLiteImagePayload = (ctx) => ({
|
|
|
6403
6406
|
prompt: ctx.prompt,
|
|
6404
6407
|
model: "gemini-3.1-flash-lite-image",
|
|
6405
6408
|
count: ctx.count ?? 1,
|
|
6409
|
+
...ctx.seed != null ? { seed: ctx.seed } : {},
|
|
6406
6410
|
...ctx.imageUrls?.length ? { imageUrls: ctx.imageUrls } : {},
|
|
6407
6411
|
aspectRatio: ctx.aspectRatio ?? "1:1",
|
|
6408
6412
|
imageSize: ctx.resolution ?? "1K",
|
|
@@ -6466,6 +6470,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6466
6470
|
...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"),
|
|
6467
6471
|
...params.resolution(["0.5K", "1K", "2K", "4K"], "1K"),
|
|
6468
6472
|
...params.count(),
|
|
6473
|
+
...params.seed(),
|
|
6469
6474
|
...thinkingLevelParam,
|
|
6470
6475
|
...params.imageInput(14, "Source Images")
|
|
6471
6476
|
}
|
|
@@ -6488,6 +6493,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6488
6493
|
...params.prompt(),
|
|
6489
6494
|
...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"),
|
|
6490
6495
|
...params.count(),
|
|
6496
|
+
...params.seed(),
|
|
6491
6497
|
...thinkingLevelParam,
|
|
6492
6498
|
...params.imageInput(14, "Source Images")
|
|
6493
6499
|
}
|
|
@@ -6511,6 +6517,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6511
6517
|
...params.aspectRatio([...GEMINI_AR_WIDE], "1:1"),
|
|
6512
6518
|
...params.resolution(["1K", "2K", "4K"], "2K"),
|
|
6513
6519
|
...params.count(),
|
|
6520
|
+
...params.seed(),
|
|
6514
6521
|
...thinkingBudgetParam,
|
|
6515
6522
|
...params.imageInput(14, "Source Images")
|
|
6516
6523
|
}
|
|
@@ -6533,6 +6540,7 @@ var { MODELS: MODELS22 } = defineModels("google", [
|
|
|
6533
6540
|
...params.prompt(),
|
|
6534
6541
|
...params.aspectRatio([...GEMINI_AR_WIDE], "16:9"),
|
|
6535
6542
|
...params.count(),
|
|
6543
|
+
...params.seed(),
|
|
6536
6544
|
...params.imageInput(14, "Source Images")
|
|
6537
6545
|
}
|
|
6538
6546
|
},
|