@picsart/ai-sdk 5.28.1 → 5.28.2

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 +19 -1
  2. package/index.js +60 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -325,6 +325,21 @@ type ModelInputById = {
325
325
  imageUrls?: string[];
326
326
  thinking?: "off" | "low" | "medium" | "high";
327
327
  };
328
+ "gpt-5.6-luna": {
329
+ prompt: string;
330
+ imageUrls?: string[];
331
+ thinking?: "off" | "low" | "medium" | "high";
332
+ };
333
+ "gpt-5.6-sol": {
334
+ prompt: string;
335
+ imageUrls?: string[];
336
+ thinking?: "off" | "low" | "medium" | "high";
337
+ };
338
+ "gpt-5.6-terra": {
339
+ prompt: string;
340
+ imageUrls?: string[];
341
+ thinking?: "off" | "low" | "medium" | "high";
342
+ };
328
343
  "gpt-image-1": {
329
344
  prompt: string;
330
345
  aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
@@ -1629,7 +1644,7 @@ type ModelInputById = {
1629
1644
  type TypedModelId = keyof ModelInputById;
1630
1645
  type ModelInput<M extends TypedModelId> = ModelInputById[M];
1631
1646
  /** IDs of text-generation (LLM) models — narrows generateText(). */
1632
- type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-5.5";
1647
+ type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra";
1633
1648
  type TextModelInputById = Pick<ModelInputById, TextModelId>;
1634
1649
 
1635
1650
  /**
@@ -2628,6 +2643,9 @@ declare const Models: {
2628
2643
  readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
2629
2644
  readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
2630
2645
  readonly Gpt55: "gpt-5.5";
2646
+ readonly Gpt56Luna: "gpt-5.6-luna";
2647
+ readonly Gpt56Sol: "gpt-5.6-sol";
2648
+ readonly Gpt56Terra: "gpt-5.6-terra";
2631
2649
  readonly GptImage1: "gpt-image-1";
2632
2650
  readonly GptImage15: "gpt-image-1.5";
2633
2651
  readonly GptImage2: "gpt-image-2";
package/index.js CHANGED
@@ -8724,6 +8724,57 @@ var { MODELS: ANTHROPIC } = defineModels("anthropic", [
8724
8724
  }
8725
8725
  ]);
8726
8726
  var { MODELS: OPENAI_LLM } = defineModels("openai", [
8727
+ {
8728
+ id: "gpt-5.6-sol",
8729
+ name: "GPT-5.6 Sol",
8730
+ workflow: "chat-completions",
8731
+ addedAt: "2026-09-04",
8732
+ estimatedTime: 10,
8733
+ mode: "text",
8734
+ inputType: "i2t",
8735
+ badge: ["premium"],
8736
+ description: "OpenAI\u2019s most capable GPT-5.6 model for deep reasoning and complex tasks.",
8737
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8738
+ paramConfig: {
8739
+ ...params.prompt(),
8740
+ ...params.imageInput(8, "Images"),
8741
+ ...thinkingParam(["low", "medium", "high"])
8742
+ }
8743
+ },
8744
+ {
8745
+ id: "gpt-5.6-terra",
8746
+ name: "GPT-5.6 Terra",
8747
+ workflow: "chat-completions",
8748
+ addedAt: "2026-09-04",
8749
+ estimatedTime: 8,
8750
+ mode: "text",
8751
+ inputType: "i2t",
8752
+ badge: ["popular"],
8753
+ description: "Balanced GPT-5.6 model \u2014 strong general-purpose quality at moderate latency.",
8754
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8755
+ paramConfig: {
8756
+ ...params.prompt(),
8757
+ ...params.imageInput(8, "Images"),
8758
+ ...thinkingParam(["low", "medium", "high"])
8759
+ }
8760
+ },
8761
+ {
8762
+ id: "gpt-5.6-luna",
8763
+ name: "GPT-5.6 Luna",
8764
+ workflow: "chat-completions",
8765
+ addedAt: "2026-09-04",
8766
+ estimatedTime: 5,
8767
+ mode: "text",
8768
+ inputType: "i2t",
8769
+ badge: ["fast"],
8770
+ description: "Fast, lightweight GPT-5.6 model for low-latency, high-volume text tasks.",
8771
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8772
+ paramConfig: {
8773
+ ...params.prompt(),
8774
+ ...params.imageInput(8, "Images"),
8775
+ ...thinkingParam(["low", "medium", "high"])
8776
+ }
8777
+ },
8727
8778
  {
8728
8779
  id: "gpt-5.5",
8729
8780
  name: "GPT-5.5",
@@ -8885,6 +8936,9 @@ registerPayloads(MODELS36, {
8885
8936
  "claude-opus-4-8": buildClaudePayload("claude-opus-4-8"),
8886
8937
  "claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
8887
8938
  "claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
8939
+ "gpt-5.6-sol": buildOpenAiPayload("gpt-5.6-sol"),
8940
+ "gpt-5.6-terra": buildOpenAiPayload("gpt-5.6-terra"),
8941
+ "gpt-5.6-luna": buildOpenAiPayload("gpt-5.6-luna"),
8888
8942
  "gpt-5.5": buildOpenAiPayload("gpt-5.5"),
8889
8943
  "gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
8890
8944
  // Flash models route through chat-completions (OpenAI-shaped), not the
@@ -11240,6 +11294,9 @@ var Gemini38Flash = "gemini-3.8-flash";
11240
11294
  var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
11241
11295
  var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
11242
11296
  var Gpt55 = "gpt-5.5";
11297
+ var Gpt56Luna = "gpt-5.6-luna";
11298
+ var Gpt56Sol = "gpt-5.6-sol";
11299
+ var Gpt56Terra = "gpt-5.6-terra";
11243
11300
  var GptImage1 = "gpt-image-1";
11244
11301
  var GptImage15 = "gpt-image-1.5";
11245
11302
  var GptImage2 = "gpt-image-2";
@@ -11456,6 +11513,9 @@ var Models = {
11456
11513
  GeminiOmni11FlashPreview,
11457
11514
  GeminiOmniFlashPreview,
11458
11515
  Gpt55,
11516
+ Gpt56Luna,
11517
+ Gpt56Sol,
11518
+ Gpt56Terra,
11459
11519
  GptImage1,
11460
11520
  GptImage15,
11461
11521
  GptImage2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.28.1",
3
+ "version": "5.28.2",
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",