@picsart/ai-sdk 6.22.1 → 6.23.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.
Files changed (3) hide show
  1. package/index.d.ts +9 -0
  2. package/index.js +56 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -1908,6 +1908,14 @@ type ModelInputById = {
1908
1908
  imageUrls?: string[];
1909
1909
  negativePrompt?: string;
1910
1910
  };
1911
+ "spicy-mayo": {
1912
+ prompt: string;
1913
+ aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
1914
+ count?: 1 | 2 | 4 | 6 | 8 | 10;
1915
+ seed?: number;
1916
+ thinkingLevel?: "minimal" | "medium" | "high";
1917
+ imageUrls?: string[];
1918
+ };
1911
1919
  "topaz-upscale-image": {
1912
1920
  imageUrls: [string, ...string[]];
1913
1921
  model?: "Standard V2" | "Standard MAX" | "Low Resolution V2" | "High Fidelity V2" | "CGI" | "Text Refine" | "Redefine" | "Recovery" | "Recovery V2" | "Wonder" | "Wonder 3";
@@ -3524,6 +3532,7 @@ declare const Models: {
3524
3532
  readonly Seedream50Flash: "seedream-5.0-flash";
3525
3533
  readonly Seedream50Lite: "seedream-5.0-lite";
3526
3534
  readonly Seedream50Pro: "seedream-5.0-pro";
3535
+ readonly SpicyMayo: "spicy-mayo";
3527
3536
  readonly TopazUpscaleImage: "topaz-upscale-image";
3528
3537
  readonly TopazUpscaleVideo: "topaz-upscale-video";
3529
3538
  readonly VeedFabricV1: "veed-fabric-v1";
package/index.js CHANGED
@@ -6583,6 +6583,16 @@ var buildGemini31FlashLiteImagePayload = (ctx) => ({
6583
6583
  imageSize: ctx.resolution ?? "1K",
6584
6584
  ...buildThinkingConfig(ctx)
6585
6585
  });
6586
+ var buildSpicyMayoPayload = (ctx) => ({
6587
+ prompt: ctx.prompt,
6588
+ model: "spicy-mayo",
6589
+ count: ctx.count ?? 1,
6590
+ ...ctx.seed != null ? { seed: ctx.seed } : {},
6591
+ ...ctx.imageUrls?.length ? { imageUrls: ctx.imageUrls } : {},
6592
+ aspectRatio: ctx.aspectRatio ?? "1:1",
6593
+ imageSize: "1K",
6594
+ ...buildThinkingConfig(ctx)
6595
+ });
6586
6596
  function inferMimeType2(url) {
6587
6597
  return url.match(/\.png(\?|$)/i) ? "image/png" : "image/jpeg";
6588
6598
  }
@@ -6661,8 +6671,52 @@ var thinkingBudgetParam = {
6661
6671
  descriptor: { kind: "range", min: 128, max: 24576, step: 128, default: 128 }
6662
6672
  }
6663
6673
  };
6674
+ var spicyMayoThinkingParam = {
6675
+ thinkingLevel: {
6676
+ label: "Thinking",
6677
+ descriptor: {
6678
+ kind: "enum",
6679
+ valueType: "string",
6680
+ options: [
6681
+ { id: "minimal", label: "Minimal (faster)" },
6682
+ { id: "medium", label: "Medium (balanced)" },
6683
+ { id: "high", label: "High (more reasoning)" }
6684
+ ],
6685
+ default: "minimal"
6686
+ }
6687
+ }
6688
+ };
6664
6689
  var { MODELS: MODELS22 } = defineModels("google", [
6665
6690
  // ── Image ─────────────────────────────────────────────────────────
6691
+ {
6692
+ id: "spicy-mayo",
6693
+ name: "Spicy Mayo",
6694
+ addedAt: "2026-10-02",
6695
+ // Confidential early access at the vendor, authorized for named projects
6696
+ // only — stage until the co-launch clears it for prod.
6697
+ release: "preview",
6698
+ workflow: "gemini/v2/images",
6699
+ buildPayload: buildSpicyMayoPayload,
6700
+ // Measured end-to-end against stage at 1K/1:1: 9s to generate, 13s to edit
6701
+ // with two reference images. Rounded up — vendor testing capacity is capped.
6702
+ estimatedTime: 15,
6703
+ mode: "image",
6704
+ inputType: "t2i",
6705
+ modelId: "spicy-mayo",
6706
+ badge: ["fast"],
6707
+ description: "Fast Google image generation and editing with multi-image references.",
6708
+ // Only the 1K tier is priced, so no `resolution` param: the builder pins
6709
+ // imageSize and anything else is a 400 from the worker.
6710
+ features: [feat("Multi-Image Input", "input"), feat("1K", "resolution")],
6711
+ paramConfig: {
6712
+ ...params.prompt(),
6713
+ ...params.aspectRatio([...GEMINI_AR_WIDE], "1:1"),
6714
+ ...params.count(),
6715
+ ...params.seed(),
6716
+ ...spicyMayoThinkingParam,
6717
+ ...params.imageInput(14, "Source Images")
6718
+ }
6719
+ },
6666
6720
  {
6667
6721
  id: "gemini-3.1-flash-image",
6668
6722
  addedAt: "2026-02-26",
@@ -13670,6 +13724,7 @@ var Seedream47 = "seedream-4.7";
13670
13724
  var Seedream50Flash = "seedream-5.0-flash";
13671
13725
  var Seedream50Lite = "seedream-5.0-lite";
13672
13726
  var Seedream50Pro = "seedream-5.0-pro";
13727
+ var SpicyMayo = "spicy-mayo";
13673
13728
  var TopazUpscaleImage = "topaz-upscale-image";
13674
13729
  var TopazUpscaleVideo = "topaz-upscale-video";
13675
13730
  var VeedFabricV1 = "veed-fabric-v1";
@@ -13928,6 +13983,7 @@ var Models = {
13928
13983
  Seedream50Flash,
13929
13984
  Seedream50Lite,
13930
13985
  Seedream50Pro,
13986
+ SpicyMayo,
13931
13987
  TopazUpscaleImage,
13932
13988
  TopazUpscaleVideo,
13933
13989
  VeedFabricV1,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.22.1",
3
+ "version": "6.23.0",
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",