@picsart/ai-sdk 5.28.2 → 5.28.4

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
@@ -340,6 +340,11 @@ type ModelInputById = {
340
340
  imageUrls?: string[];
341
341
  thinking?: "off" | "low" | "medium" | "high";
342
342
  };
343
+ "gpt-6-astra": {
344
+ prompt: string;
345
+ imageUrls?: string[];
346
+ thinking?: "off" | "low" | "medium" | "high";
347
+ };
343
348
  "gpt-image-1": {
344
349
  prompt: string;
345
350
  aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
@@ -1644,7 +1649,7 @@ type ModelInputById = {
1644
1649
  type TypedModelId = keyof ModelInputById;
1645
1650
  type ModelInput<M extends TypedModelId> = ModelInputById[M];
1646
1651
  /** IDs of text-generation (LLM) models — narrows generateText(). */
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";
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";
1648
1653
  type TextModelInputById = Pick<ModelInputById, TextModelId>;
1649
1654
 
1650
1655
  /**
@@ -2646,6 +2651,7 @@ declare const Models: {
2646
2651
  readonly Gpt56Luna: "gpt-5.6-luna";
2647
2652
  readonly Gpt56Sol: "gpt-5.6-sol";
2648
2653
  readonly Gpt56Terra: "gpt-5.6-terra";
2654
+ readonly Gpt6Astra: "gpt-6-astra";
2649
2655
  readonly GptImage1: "gpt-image-1";
2650
2656
  readonly GptImage15: "gpt-image-1.5";
2651
2657
  readonly GptImage2: "gpt-image-2";
package/index.js CHANGED
@@ -8724,6 +8724,23 @@ 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
+ badge: ["new"],
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
+ },
8727
8744
  {
8728
8745
  id: "gpt-5.6-sol",
8729
8746
  name: "GPT-5.6 Sol",
@@ -8936,6 +8953,7 @@ registerPayloads(MODELS36, {
8936
8953
  "claude-opus-4-8": buildClaudePayload("claude-opus-4-8"),
8937
8954
  "claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
8938
8955
  "claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
8956
+ "gpt-6-astra": buildOpenAiPayload("gpt-6-astra"),
8939
8957
  "gpt-5.6-sol": buildOpenAiPayload("gpt-5.6-sol"),
8940
8958
  "gpt-5.6-terra": buildOpenAiPayload("gpt-5.6-terra"),
8941
8959
  "gpt-5.6-luna": buildOpenAiPayload("gpt-5.6-luna"),
@@ -11297,6 +11315,7 @@ var Gpt55 = "gpt-5.5";
11297
11315
  var Gpt56Luna = "gpt-5.6-luna";
11298
11316
  var Gpt56Sol = "gpt-5.6-sol";
11299
11317
  var Gpt56Terra = "gpt-5.6-terra";
11318
+ var Gpt6Astra = "gpt-6-astra";
11300
11319
  var GptImage1 = "gpt-image-1";
11301
11320
  var GptImage15 = "gpt-image-1.5";
11302
11321
  var GptImage2 = "gpt-image-2";
@@ -11516,6 +11535,7 @@ var Models = {
11516
11535
  Gpt56Luna,
11517
11536
  Gpt56Sol,
11518
11537
  Gpt56Terra,
11538
+ Gpt6Astra,
11519
11539
  GptImage1,
11520
11540
  GptImage15,
11521
11541
  GptImage2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.28.2",
3
+ "version": "5.28.4",
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",