@picsart/ai-sdk 5.28.1 → 5.28.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.
@@ -130,7 +130,7 @@ interface GeminiResponseContent$1 {
130
130
  }
131
131
 
132
132
  interface ChatCompletionsCommand$1 {
133
- model: "gpt-5" | "gpt-5-search-api" | "gpt-5.1" | "gpt-5.1-chat-latest" | "gpt-5.2" | "gpt-5.2-pro" | "gpt-5.3-codex" | "gpt-5.4" | "gpt-5.4-pro" | "gpt-5.4-mini" | "gpt-5.4-nano" | "gpt-5.5" | "gpt-5.5-pro" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-5-pro" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o-search-preview" | "gpt-o3" | "gpt-o3-mini" | "claude-sonnet-4-0" | "claude-opus-4-0" | "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-sonnet-4-5" | "claude-sonnet-4-5-latest" | "claude-sonnet-4-6" | "claude-sonnet-5" | "claude-opus-4-8" | "claude-3-5-haiku-latest" | "claude-haiku-4-5" | "claude-fable-5" | "gemini-3-pro-preview" | "gemini-3.1-pro-preview" | "gemini-3.7-flash" | "gemini-3.6-flash" | "gemini-3.5-flash" | "gemini-3.5-flash-lite" | "gemini-3.1-flash-lite" | "gemini-2.0-flash-001" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.0-flash-lite";
133
+ model: "gpt-5" | "gpt-5-search-api" | "gpt-5.1" | "gpt-5.1-chat-latest" | "gpt-5.2" | "gpt-5.2-pro" | "gpt-5.3-codex" | "gpt-5.4" | "gpt-5.4-pro" | "gpt-5.4-mini" | "gpt-5.4-nano" | "gpt-5.5" | "gpt-5.5-pro" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-5-pro" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o-search-preview" | "gpt-o3" | "gpt-o3-mini" | "claude-sonnet-4-0" | "claude-opus-4-0" | "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-sonnet-4-5" | "claude-sonnet-4-5-latest" | "claude-sonnet-4-6" | "claude-sonnet-5" | "claude-opus-4-8" | "claude-3-5-haiku-latest" | "claude-haiku-4-5" | "claude-fable-5" | "gemini-3-pro-preview" | "gemini-3.1-pro-preview" | "gemini-3.8-flash" | "gemini-3.7-flash" | "gemini-3.6-flash" | "gemini-3.5-flash" | "gemini-3.5-flash-lite" | "gemini-3.1-flash-lite" | "gemini-2.0-flash-001" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.0-flash-lite";
134
134
  messages: MessageParam[];
135
135
  temperature?: number;
136
136
  max_completion_tokens?: number;
@@ -181,7 +181,7 @@ interface ChatCompletionResponse {
181
181
  interface ChatCompletionResult {
182
182
  id: string;
183
183
  created: number;
184
- model: "gpt-5" | "gpt-5-search-api" | "gpt-5.1" | "gpt-5.1-chat-latest" | "gpt-5.2" | "gpt-5.2-pro" | "gpt-5.3-codex" | "gpt-5.4" | "gpt-5.4-pro" | "gpt-5.4-mini" | "gpt-5.4-nano" | "gpt-5.5" | "gpt-5.5-pro" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-5-pro" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o-search-preview" | "gpt-o3" | "gpt-o3-mini" | "claude-sonnet-4-0" | "claude-opus-4-0" | "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-sonnet-4-5" | "claude-sonnet-4-5-latest" | "claude-sonnet-4-6" | "claude-sonnet-5" | "claude-opus-4-8" | "claude-3-5-haiku-latest" | "claude-haiku-4-5" | "claude-fable-5" | "gemini-3-pro-preview" | "gemini-3.1-pro-preview" | "gemini-3.7-flash" | "gemini-3.6-flash" | "gemini-3.5-flash" | "gemini-3.5-flash-lite" | "gemini-3.1-flash-lite" | "gemini-2.0-flash-001" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.0-flash-lite";
184
+ model: "gpt-5" | "gpt-5-search-api" | "gpt-5.1" | "gpt-5.1-chat-latest" | "gpt-5.2" | "gpt-5.2-pro" | "gpt-5.3-codex" | "gpt-5.4" | "gpt-5.4-pro" | "gpt-5.4-mini" | "gpt-5.4-nano" | "gpt-5.5" | "gpt-5.5-pro" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-5.6-luna" | "gpt-5-pro" | "gpt-5-mini" | "gpt-5-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-4.1" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o-search-preview" | "gpt-o3" | "gpt-o3-mini" | "claude-sonnet-4-0" | "claude-opus-4-0" | "claude-3-7-sonnet-latest" | "claude-3-5-sonnet-latest" | "claude-sonnet-4-5" | "claude-sonnet-4-5-latest" | "claude-sonnet-4-6" | "claude-sonnet-5" | "claude-opus-4-8" | "claude-3-5-haiku-latest" | "claude-haiku-4-5" | "claude-fable-5" | "gemini-3-pro-preview" | "gemini-3.1-pro-preview" | "gemini-3.8-flash" | "gemini-3.7-flash" | "gemini-3.6-flash" | "gemini-3.5-flash" | "gemini-3.5-flash-lite" | "gemini-3.1-flash-lite" | "gemini-2.0-flash-001" | "gemini-2.5-pro" | "gemini-2.5-flash" | "gemini-2.0-flash-lite";
185
185
  choices: Choice[];
186
186
  usage: Usage$1;
187
187
  }
@@ -4685,6 +4685,7 @@ interface WanV2ReferenceToVideoCommand {
4685
4685
  prompt: string;
4686
4686
  media: WanV2R2VMediaItem[];
4687
4687
  negative_prompt?: string;
4688
+ prompt_extend?: boolean;
4688
4689
  model?: "wan2.7-r2v";
4689
4690
  resolution?: "720P" | "1080P";
4690
4691
  ratio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
@@ -4731,6 +4732,7 @@ interface WanV2ReferenceToVideoResult {
4731
4732
  interface WanV2VideoEditCommand {
4732
4733
  prompt?: string;
4733
4734
  negative_prompt?: string;
4735
+ prompt_extend?: boolean;
4734
4736
  media: WanV2VideoEditMediaItem[];
4735
4737
  model?: "wan2.7-videoedit";
4736
4738
  resolution?: "720P" | "1080P";
@@ -10578,7 +10580,7 @@ interface VoiceDeleteResult {
10578
10580
  deleted: boolean;
10579
10581
  }
10580
10582
 
10581
- interface TurboTextToVideoHailuo03Input {
10583
+ interface TurboTextToVideoHailuo03Input$1 {
10582
10584
  prompt_expansion_mode: string;
10583
10585
  resolution?: "480P" | "768P";
10584
10586
  enable_safety_checker?: boolean;
@@ -10604,9 +10606,9 @@ interface TurboTextToVideoHailuo03Input {
10604
10606
  interface MinimaxH3MaxTextToVideoResponse {
10605
10607
  id: string;
10606
10608
  status: "ACCEPTED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
10607
- result: TurboTextToVideoHailuo03Output;
10609
+ result: TurboTextToVideoHailuo03Output$1;
10608
10610
  }
10609
- interface TurboTextToVideoHailuo03Output {
10611
+ interface TurboTextToVideoHailuo03Output$1 {
10610
10612
  timings?: Record<string, number> | unknown;
10611
10613
  expanded_prompt?: string | unknown;
10612
10614
  video: {
@@ -10617,7 +10619,7 @@ interface TurboTextToVideoHailuo03Output {
10617
10619
  };
10618
10620
  }
10619
10621
 
10620
- interface TurboImageToVideoHailuo03Input {
10622
+ interface TurboImageToVideoHailuo03Input$1 {
10621
10623
  prompt_expansion_mode: string;
10622
10624
  resolution?: "480P" | "768P";
10623
10625
  enable_safety_checker?: boolean;
@@ -10644,9 +10646,9 @@ interface TurboImageToVideoHailuo03Input {
10644
10646
  interface MinimaxH3MaxImageToVideoResponse {
10645
10647
  id: string;
10646
10648
  status: "ACCEPTED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
10647
- result: TurboImageToVideoHailuo03Output;
10649
+ result: TurboImageToVideoHailuo03Output$1;
10648
10650
  }
10649
- interface TurboImageToVideoHailuo03Output {
10651
+ interface TurboImageToVideoHailuo03Output$1 {
10650
10652
  timings?: Record<string, number> | unknown;
10651
10653
  expanded_prompt?: string | unknown;
10652
10654
  video: {
@@ -10907,6 +10909,85 @@ interface MultipleAnglesOutput {
10907
10909
  prompt: string;
10908
10910
  }
10909
10911
 
10912
+ interface TurboTextToVideoHailuo03Input {
10913
+ prompt_expansion_mode: string;
10914
+ resolution?: "480P" | "768P";
10915
+ enable_safety_checker?: boolean;
10916
+ seed?: number | unknown;
10917
+ duration?: number;
10918
+ prompt: string;
10919
+ sync_mode?: boolean;
10920
+ aspect_ratio?: "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
10921
+ options?: {
10922
+ safety_checks?: {
10923
+ enabled?: boolean;
10924
+ };
10925
+ drive?: {
10926
+ name: string;
10927
+ attributes?: Record<string, string>;
10928
+ folder?: {
10929
+ path?: string;
10930
+ id?: string;
10931
+ };
10932
+ };
10933
+ };
10934
+ }
10935
+ interface MinimaxH3MaxTurboTextToVideoResponse {
10936
+ id: string;
10937
+ status: "ACCEPTED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
10938
+ result: TurboTextToVideoHailuo03Output;
10939
+ }
10940
+ interface TurboTextToVideoHailuo03Output {
10941
+ timings?: Record<string, number> | unknown;
10942
+ expanded_prompt?: string | unknown;
10943
+ video: {
10944
+ file_size?: number | unknown;
10945
+ url: string;
10946
+ content_type?: string | unknown;
10947
+ file_name?: string | unknown;
10948
+ };
10949
+ }
10950
+
10951
+ interface TurboImageToVideoHailuo03Input {
10952
+ prompt_expansion_mode: string;
10953
+ resolution?: "480P" | "768P";
10954
+ enable_safety_checker?: boolean;
10955
+ seed?: number | unknown;
10956
+ end_image_url?: string | unknown;
10957
+ duration?: number;
10958
+ prompt: string;
10959
+ sync_mode?: boolean;
10960
+ image_url?: string | unknown;
10961
+ options?: {
10962
+ safety_checks?: {
10963
+ enabled?: boolean;
10964
+ };
10965
+ drive?: {
10966
+ name: string;
10967
+ attributes?: Record<string, string>;
10968
+ folder?: {
10969
+ path?: string;
10970
+ id?: string;
10971
+ };
10972
+ };
10973
+ };
10974
+ }
10975
+ interface MinimaxH3MaxTurboImageToVideoResponse {
10976
+ id: string;
10977
+ status: "ACCEPTED" | "IN_PROGRESS" | "COMPLETED" | "FAILED";
10978
+ result: TurboImageToVideoHailuo03Output;
10979
+ }
10980
+ interface TurboImageToVideoHailuo03Output {
10981
+ timings?: Record<string, number> | unknown;
10982
+ expanded_prompt?: string | unknown;
10983
+ video: {
10984
+ file_size?: number | unknown;
10985
+ url: string;
10986
+ content_type?: string | unknown;
10987
+ file_name?: string | unknown;
10988
+ };
10989
+ }
10990
+
10910
10991
  interface WorkflowTypes {
10911
10992
  'check-text': {
10912
10993
  params: CheckTextCommand;
@@ -11933,11 +12014,11 @@ interface WorkflowTypes {
11933
12014
  result: VoiceDeleteResponse;
11934
12015
  };
11935
12016
  'minimax/h3-max/text-to-video': {
11936
- params: TurboTextToVideoHailuo03Input;
12017
+ params: TurboTextToVideoHailuo03Input$1;
11937
12018
  result: MinimaxH3MaxTextToVideoResponse;
11938
12019
  };
11939
12020
  'minimax/h3-max/image-to-video': {
11940
- params: TurboImageToVideoHailuo03Input;
12021
+ params: TurboImageToVideoHailuo03Input$1;
11941
12022
  result: MinimaxH3MaxImageToVideoResponse;
11942
12023
  };
11943
12024
  'meta/v1/images/generations': {
@@ -11964,6 +12045,14 @@ interface WorkflowTypes {
11964
12045
  params: MultipleAnglesInput;
11965
12046
  result: QwenImageEdit2511MultipleAnglesResponse;
11966
12047
  };
12048
+ 'minimax/h3-max-turbo/text-to-video': {
12049
+ params: TurboTextToVideoHailuo03Input;
12050
+ result: MinimaxH3MaxTurboTextToVideoResponse;
12051
+ };
12052
+ 'minimax/h3-max-turbo/image-to-video': {
12053
+ params: TurboImageToVideoHailuo03Input;
12054
+ result: MinimaxH3MaxTurboImageToVideoResponse;
12055
+ };
11967
12056
  }
11968
12057
 
11969
12058
  export type { WorkflowTypes };
package/index.d.ts CHANGED
@@ -325,6 +325,26 @@ 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
+ };
343
+ "gpt-6-astra": {
344
+ prompt: string;
345
+ imageUrls?: string[];
346
+ thinking?: "off" | "low" | "medium" | "high";
347
+ };
328
348
  "gpt-image-1": {
329
349
  prompt: string;
330
350
  aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
@@ -1629,7 +1649,7 @@ type ModelInputById = {
1629
1649
  type TypedModelId = keyof ModelInputById;
1630
1650
  type ModelInput<M extends TypedModelId> = ModelInputById[M];
1631
1651
  /** 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";
1652
+ 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" | "gpt-6-astra";
1633
1653
  type TextModelInputById = Pick<ModelInputById, TextModelId>;
1634
1654
 
1635
1655
  /**
@@ -2628,6 +2648,10 @@ declare const Models: {
2628
2648
  readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
2629
2649
  readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
2630
2650
  readonly Gpt55: "gpt-5.5";
2651
+ readonly Gpt56Luna: "gpt-5.6-luna";
2652
+ readonly Gpt56Sol: "gpt-5.6-sol";
2653
+ readonly Gpt56Terra: "gpt-5.6-terra";
2654
+ readonly Gpt6Astra: "gpt-6-astra";
2631
2655
  readonly GptImage1: "gpt-image-1";
2632
2656
  readonly GptImage15: "gpt-image-1.5";
2633
2657
  readonly GptImage2: "gpt-image-2";
package/index.js CHANGED
@@ -8724,6 +8724,74 @@ var { MODELS: ANTHROPIC } = defineModels("anthropic", [
8724
8724
  }
8725
8725
  ]);
8726
8726
  var { MODELS: OPENAI_LLM } = defineModels("openai", [
8727
+ {
8728
+ id: "gpt-6-astra",
8729
+ name: "GPT-6 Astra",
8730
+ workflow: "chat-completions",
8731
+ addedAt: "2026-09-04",
8732
+ estimatedTime: 10,
8733
+ mode: "text",
8734
+ inputType: "i2t",
8735
+ release: "preview",
8736
+ description: "OpenAI\u2019s next-generation flagship model for advanced reasoning and multimodal 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-sol",
8746
+ name: "GPT-5.6 Sol",
8747
+ workflow: "chat-completions",
8748
+ addedAt: "2026-09-04",
8749
+ estimatedTime: 10,
8750
+ mode: "text",
8751
+ inputType: "i2t",
8752
+ badge: ["premium"],
8753
+ description: "OpenAI\u2019s most capable GPT-5.6 model for deep reasoning and complex tasks.",
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-terra",
8763
+ name: "GPT-5.6 Terra",
8764
+ workflow: "chat-completions",
8765
+ addedAt: "2026-09-04",
8766
+ estimatedTime: 8,
8767
+ mode: "text",
8768
+ inputType: "i2t",
8769
+ badge: ["popular"],
8770
+ description: "Balanced GPT-5.6 model \u2014 strong general-purpose quality at moderate latency.",
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
+ },
8778
+ {
8779
+ id: "gpt-5.6-luna",
8780
+ name: "GPT-5.6 Luna",
8781
+ workflow: "chat-completions",
8782
+ addedAt: "2026-09-04",
8783
+ estimatedTime: 5,
8784
+ mode: "text",
8785
+ inputType: "i2t",
8786
+ badge: ["fast"],
8787
+ description: "Fast, lightweight GPT-5.6 model for low-latency, high-volume text tasks.",
8788
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8789
+ paramConfig: {
8790
+ ...params.prompt(),
8791
+ ...params.imageInput(8, "Images"),
8792
+ ...thinkingParam(["low", "medium", "high"])
8793
+ }
8794
+ },
8727
8795
  {
8728
8796
  id: "gpt-5.5",
8729
8797
  name: "GPT-5.5",
@@ -8885,6 +8953,10 @@ registerPayloads(MODELS36, {
8885
8953
  "claude-opus-4-8": buildClaudePayload("claude-opus-4-8"),
8886
8954
  "claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
8887
8955
  "claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
8956
+ "gpt-6-astra": buildOpenAiPayload("gpt-6-astra"),
8957
+ "gpt-5.6-sol": buildOpenAiPayload("gpt-5.6-sol"),
8958
+ "gpt-5.6-terra": buildOpenAiPayload("gpt-5.6-terra"),
8959
+ "gpt-5.6-luna": buildOpenAiPayload("gpt-5.6-luna"),
8888
8960
  "gpt-5.5": buildOpenAiPayload("gpt-5.5"),
8889
8961
  "gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
8890
8962
  // Flash models route through chat-completions (OpenAI-shaped), not the
@@ -11240,6 +11312,10 @@ var Gemini38Flash = "gemini-3.8-flash";
11240
11312
  var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
11241
11313
  var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
11242
11314
  var Gpt55 = "gpt-5.5";
11315
+ var Gpt56Luna = "gpt-5.6-luna";
11316
+ var Gpt56Sol = "gpt-5.6-sol";
11317
+ var Gpt56Terra = "gpt-5.6-terra";
11318
+ var Gpt6Astra = "gpt-6-astra";
11243
11319
  var GptImage1 = "gpt-image-1";
11244
11320
  var GptImage15 = "gpt-image-1.5";
11245
11321
  var GptImage2 = "gpt-image-2";
@@ -11456,6 +11532,10 @@ var Models = {
11456
11532
  GeminiOmni11FlashPreview,
11457
11533
  GeminiOmniFlashPreview,
11458
11534
  Gpt55,
11535
+ Gpt56Luna,
11536
+ Gpt56Sol,
11537
+ Gpt56Terra,
11538
+ Gpt6Astra,
11459
11539
  GptImage1,
11460
11540
  GptImage15,
11461
11541
  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.3",
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",