@picsart/ai-sdk 6.38.0 → 6.39.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 +8 -1
  2. package/index.js +21 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -517,6 +517,12 @@ type ModelInputById = {
517
517
  voiceName: string;
518
518
  }>;
519
519
  };
520
+ "gemini-4-argon": {
521
+ prompt: string;
522
+ imageUrls?: string[];
523
+ videoUrl?: string;
524
+ thinking?: "off" | "low" | "high";
525
+ };
520
526
  "gemini-nano-banana-2.1": {
521
527
  prompt: string;
522
528
  aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
@@ -2098,7 +2104,7 @@ type ModelInputById = {
2098
2104
  type TypedModelId = keyof ModelInputById;
2099
2105
  type ModelInput<M extends TypedModelId> = ModelInputById[M];
2100
2106
  /** IDs of text-generation (LLM) models — narrows generateText(). */
2101
- type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-haiku-5-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "eleven-speech-to-text" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra" | "gpt-6-luna" | "gpt-6-sol" | "grok-4.7" | "kimi-k3";
2107
+ type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-haiku-5-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "eleven-speech-to-text" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gemini-4-argon" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra" | "gpt-6-luna" | "gpt-6-sol" | "grok-4.7" | "kimi-k3";
2102
2108
  type TextModelInputById = Pick<ModelInputById, TextModelId>;
2103
2109
  /** IDs of structured-output (json-mode) models — narrows run()'s result type. */
2104
2110
  type JsonModelId = "typesafe-evaluate";
@@ -3515,6 +3521,7 @@ declare const Models: {
3515
3521
  readonly Gemini38Flash: "gemini-3.8-flash";
3516
3522
  readonly Gemini38FlashLiteTts: "gemini-3.8-flash-lite-tts";
3517
3523
  readonly Gemini38FlashTts: "gemini-3.8-flash-tts";
3524
+ readonly Gemini4Argon: "gemini-4-argon";
3518
3525
  readonly GeminiNanoBanana21: "gemini-nano-banana-2.1";
3519
3526
  readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
3520
3527
  readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
package/index.js CHANGED
@@ -10502,6 +10502,24 @@ var { MODELS: OPENAI_LLM } = defineModels("openai", [
10502
10502
  }
10503
10503
  ]);
10504
10504
  var { MODELS: GEMINI_LLM } = defineModels("google", [
10505
+ {
10506
+ id: "gemini-4-argon",
10507
+ name: "Gemini 4 Argon",
10508
+ workflow: "gemini",
10509
+ addedAt: "2026-10-14",
10510
+ estimatedTime: 8,
10511
+ mode: "text",
10512
+ inputType: "v2t",
10513
+ badge: ["premium"],
10514
+ description: "Google\u2019s flagship Gemini 4 reasoning model \u2014 text, image, and video with deep reasoning and 1M-token context.",
10515
+ features: [feat("Vision", "input"), feat("Video Input", "input"), feat("Thinking", "characteristic")],
10516
+ paramConfig: {
10517
+ ...params.prompt(),
10518
+ ...params.imageInput(8, "Images"),
10519
+ ...params.videoInput("Video", "reference", false),
10520
+ ...thinkingParam(["low", "high"])
10521
+ }
10522
+ },
10505
10523
  {
10506
10524
  id: "gemini-3-pro",
10507
10525
  name: "Gemini 3 Pro",
@@ -10722,6 +10740,7 @@ registerPayloads(MODELS35, {
10722
10740
  "gpt-4o-mini": buildOpenAiPayload("gpt-4o-mini"),
10723
10741
  "gpt-4.1-mini": buildOpenAiPayload("gpt-4.1-mini"),
10724
10742
  "gpt-4.1-nano": buildOpenAiPayload("gpt-4.1-nano"),
10743
+ "gemini-4-argon": buildGeminiPayload("gemini-4-argon"),
10725
10744
  "gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
10726
10745
  // Flash models route through chat-completions (OpenAI-shaped), not the
10727
10746
  // native `gemini` workflow.
@@ -14753,6 +14772,7 @@ var Gemini37Flash = "gemini-3.7-flash";
14753
14772
  var Gemini38Flash = "gemini-3.8-flash";
14754
14773
  var Gemini38FlashLiteTts = "gemini-3.8-flash-lite-tts";
14755
14774
  var Gemini38FlashTts = "gemini-3.8-flash-tts";
14775
+ var Gemini4Argon = "gemini-4-argon";
14756
14776
  var GeminiNanoBanana21 = "gemini-nano-banana-2.1";
14757
14777
  var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
14758
14778
  var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
@@ -15017,6 +15037,7 @@ var Models = {
15017
15037
  Gemini38Flash,
15018
15038
  Gemini38FlashLiteTts,
15019
15039
  Gemini38FlashTts,
15040
+ Gemini4Argon,
15020
15041
  GeminiNanoBanana21,
15021
15042
  GeminiOmni11FlashPreview,
15022
15043
  GeminiOmniFlashPreview,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.38.0",
3
+ "version": "6.39.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",