@picsart/ai-sdk 6.13.3 → 6.15.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.
package/index.d.ts CHANGED
@@ -500,6 +500,16 @@ type ModelInputById = {
500
500
  imageUrls?: string[];
501
501
  thinking?: "off" | "low" | "medium" | "high";
502
502
  };
503
+ "gpt-6-luna": {
504
+ prompt: string;
505
+ imageUrls?: string[];
506
+ thinking?: "off" | "low" | "medium" | "high";
507
+ };
508
+ "gpt-6-sol": {
509
+ prompt: string;
510
+ imageUrls?: string[];
511
+ thinking?: "off" | "low" | "medium" | "high";
512
+ };
503
513
  "gpt-image-1": {
504
514
  prompt: string;
505
515
  aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4";
@@ -1072,6 +1082,17 @@ type ModelInputById = {
1072
1082
  seed?: number;
1073
1083
  enableSafetyChecker?: boolean;
1074
1084
  };
1085
+ "minimax-h3-max-extend": {
1086
+ prompt: string;
1087
+ videoUrl: string;
1088
+ duration?: number;
1089
+ output?: "extended" | "continuation";
1090
+ aspectRatio?: "auto" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1091
+ resolution?: "480p" | "768p" | "1080p" | "2k";
1092
+ enhancePrompt?: boolean;
1093
+ enableSafetyChecker?: boolean;
1094
+ seed?: number;
1095
+ };
1075
1096
  "minimax-h3-max-lip-sync": {
1076
1097
  startFrame: string;
1077
1098
  audioUrl: string;
@@ -1923,7 +1944,7 @@ type ModelInputById = {
1923
1944
  type TypedModelId = keyof ModelInputById;
1924
1945
  type ModelInput<M extends TypedModelId> = ModelInputById[M];
1925
1946
  /** IDs of text-generation (LLM) models — narrows generateText(). */
1926
- type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-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";
1947
+ type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-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";
1927
1948
  type TextModelInputById = Pick<ModelInputById, TextModelId>;
1928
1949
 
1929
1950
  interface ParamSchema {
@@ -3198,6 +3219,8 @@ declare const Models: {
3198
3219
  readonly Gpt56Sol: "gpt-5.6-sol";
3199
3220
  readonly Gpt56Terra: "gpt-5.6-terra";
3200
3221
  readonly Gpt6Astra: "gpt-6-astra";
3222
+ readonly Gpt6Luna: "gpt-6-luna";
3223
+ readonly Gpt6Sol: "gpt-6-sol";
3201
3224
  readonly GptImage1: "gpt-image-1";
3202
3225
  readonly GptImage15: "gpt-image-1.5";
3203
3226
  readonly GptImage2: "gpt-image-2";
@@ -3270,6 +3293,7 @@ declare const Models: {
3270
3293
  readonly MinimaxH3: "minimax-h3";
3271
3294
  readonly MinimaxH3Max: "minimax-h3-max";
3272
3295
  readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
3296
+ readonly MinimaxH3MaxExtend: "minimax-h3-max-extend";
3273
3297
  readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
3274
3298
  readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
3275
3299
  readonly MinimaxMusicV2: "minimax-music-v2";
package/index.js CHANGED
@@ -3158,6 +3158,47 @@ var { MODELS: MODELS9 } = defineModels("minimax", [
3158
3158
  ...p.range("seed", -1, 2147483647, -1),
3159
3159
  ...p.boolean("enableSafetyChecker", true, "Safety Checker")
3160
3160
  }
3161
+ },
3162
+ {
3163
+ // Continues an existing clip. `duration` is the length of the NEW footage,
3164
+ // not of the result: with the default 'extended' output the response
3165
+ // replays the whole source before the continuation, so a 5s extension of a
3166
+ // 60s clip comes back 65s long. 'continuation' returns the new part alone.
3167
+ id: "minimax-h3-max-extend",
3168
+ name: "MiniMax H3 Max Extend",
3169
+ modelId: "fal-ai-h3-max-extend",
3170
+ addedAt: "2026-09-25",
3171
+ workflow: "minimax/h3-max/extend-video",
3172
+ estimatedTime: 120,
3173
+ mode: "video",
3174
+ inputType: "v2v",
3175
+ description: "Continue an existing video with newly generated footage \u2014 describe what happens next and get 5-15 more seconds, either appended to the source or on its own. Up to 2K.",
3176
+ features: [
3177
+ feat("Video Input", "input"),
3178
+ feat("Extend", "characteristic"),
3179
+ feat("2K", "resolution"),
3180
+ feat("5-15 sec", "duration")
3181
+ ],
3182
+ paramConfig: {
3183
+ // The vendor wants the continuation described, not the source.
3184
+ ...params.prompt({ placeholder: "What happens next" }),
3185
+ // 1.625-60s, up to 50MB, aspect ratio between 0.4 and 2.5.
3186
+ ...params.videoInput("Source Video", "asset", true, 60),
3187
+ ...params.durationRange(5, 15, 5, 1),
3188
+ ...p.enum("output", [
3189
+ { id: "extended", label: "Source + continuation" },
3190
+ { id: "continuation", label: "Continuation only" }
3191
+ ], "extended", { label: "Output" }),
3192
+ // 'auto' keeps the source ratio; anything else crops to fit.
3193
+ ...params.aspectRatio(["auto", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"]),
3194
+ // Same ladder as lip-sync, and the same per-second rates.
3195
+ ...params.resolution(["480p", "768p", "1080p", "2k"], "768p"),
3196
+ // Rewrites the prompt using the source so the continuation stays consistent.
3197
+ ...params.enhancePrompt(),
3198
+ ...p.boolean("enableSafetyChecker", true, "Safety Checker"),
3199
+ // Default-less on purpose: unset means the vendor picks a random seed.
3200
+ ...params.seed()
3201
+ }
3161
3202
  }
3162
3203
  ]);
3163
3204
 
@@ -7578,12 +7619,25 @@ var buildMinimaxH3MaxLipSyncPayload = (input) => ({
7578
7619
  ...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
7579
7620
  enable_safety_checker: input.enableSafetyChecker ?? true
7580
7621
  });
7622
+ var buildMinimaxH3MaxExtendPayload = (input) => ({
7623
+ prompt: input.prompt,
7624
+ video_url: input.videoUrl,
7625
+ ...input.duration != null ? { duration: input.duration } : {},
7626
+ ...input.output ? { output: input.output } : {},
7627
+ ...input.aspectRatio ? { aspect_ratio: input.aspectRatio } : {},
7628
+ // The vendor enum is uppercase; paramConfig keeps the lowercase form.
7629
+ resolution: (input.resolution ?? "768p").toUpperCase(),
7630
+ ...input.seed != null ? { seed: input.seed } : {},
7631
+ enable_prompt_expansion: input.enhancePrompt ?? true,
7632
+ enable_safety_checker: input.enableSafetyChecker ?? true
7633
+ });
7581
7634
  registerPayloads(MODELS9, {
7582
7635
  "minimax-music-v3": buildMinimaxMusicV3Payload,
7583
7636
  "minimax-h3-max": buildMinimaxH3MaxPayload,
7584
7637
  "minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload,
7585
7638
  "minimax-h3-max-camera-controls": buildMinimaxH3MaxCameraControlsPayload,
7586
- "minimax-h3-max-lip-sync": buildMinimaxH3MaxLipSyncPayload
7639
+ "minimax-h3-max-lip-sync": buildMinimaxH3MaxLipSyncPayload,
7640
+ "minimax-h3-max-extend": buildMinimaxH3MaxExtendPayload
7587
7641
  });
7588
7642
  registerEditPayloads(MODELS9, {
7589
7643
  "minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload
@@ -9540,6 +9594,40 @@ var { MODELS: OPENAI_LLM } = defineModels("openai", [
9540
9594
  ...thinkingParam(["low", "medium", "high"])
9541
9595
  }
9542
9596
  },
9597
+ {
9598
+ id: "gpt-6-sol",
9599
+ name: "GPT-6 Sol",
9600
+ workflow: "chat-completions",
9601
+ addedAt: "2026-09-25",
9602
+ estimatedTime: 10,
9603
+ mode: "text",
9604
+ inputType: "i2t",
9605
+ badge: ["premium"],
9606
+ description: "OpenAI\u2019s most capable GPT-6 model for deep reasoning and complex tasks.",
9607
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
9608
+ paramConfig: {
9609
+ ...params.prompt(),
9610
+ ...params.imageInput(8, "Images"),
9611
+ ...thinkingParam(["low", "medium", "high"])
9612
+ }
9613
+ },
9614
+ {
9615
+ id: "gpt-6-luna",
9616
+ name: "GPT-6 Luna",
9617
+ workflow: "chat-completions",
9618
+ addedAt: "2026-09-25",
9619
+ estimatedTime: 5,
9620
+ mode: "text",
9621
+ inputType: "i2t",
9622
+ badge: ["fast"],
9623
+ description: "Fast, lightweight GPT-6 model for low-latency, high-volume text tasks.",
9624
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
9625
+ paramConfig: {
9626
+ ...params.prompt(),
9627
+ ...params.imageInput(8, "Images"),
9628
+ ...thinkingParam(["low", "medium", "high"])
9629
+ }
9630
+ },
9543
9631
  {
9544
9632
  id: "gpt-5.6-sol",
9545
9633
  name: "GPT-5.6 Sol",
@@ -9893,6 +9981,8 @@ registerPayloads(MODELS35, {
9893
9981
  "claude-sonnet-4-5": buildClaudePayload("claude-sonnet-4-5"),
9894
9982
  "claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
9895
9983
  "gpt-6-astra": buildOpenAiPayload("gpt-6-astra"),
9984
+ "gpt-6-sol": buildOpenAiPayload("gpt-6-sol"),
9985
+ "gpt-6-luna": buildOpenAiPayload("gpt-6-luna"),
9896
9986
  "gpt-5.6-sol": buildOpenAiPayload("gpt-5.6-sol"),
9897
9987
  "gpt-5.6-terra": buildOpenAiPayload("gpt-5.6-terra"),
9898
9988
  "gpt-5.6-luna": buildOpenAiPayload("gpt-5.6-luna"),
@@ -12866,6 +12956,8 @@ var Gpt56Luna = "gpt-5.6-luna";
12866
12956
  var Gpt56Sol = "gpt-5.6-sol";
12867
12957
  var Gpt56Terra = "gpt-5.6-terra";
12868
12958
  var Gpt6Astra = "gpt-6-astra";
12959
+ var Gpt6Luna = "gpt-6-luna";
12960
+ var Gpt6Sol = "gpt-6-sol";
12869
12961
  var GptImage1 = "gpt-image-1";
12870
12962
  var GptImage15 = "gpt-image-1.5";
12871
12963
  var GptImage2 = "gpt-image-2";
@@ -12938,6 +13030,7 @@ var Lyria35 = "lyria-3.5";
12938
13030
  var MinimaxH3 = "minimax-h3";
12939
13031
  var MinimaxH3Max = "minimax-h3-max";
12940
13032
  var MinimaxH3MaxCameraControls = "minimax-h3-max-camera-controls";
13033
+ var MinimaxH3MaxExtend = "minimax-h3-max-extend";
12941
13034
  var MinimaxH3MaxLipSync = "minimax-h3-max-lip-sync";
12942
13035
  var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
12943
13036
  var MinimaxMusicV2 = "minimax-music-v2";
@@ -13116,6 +13209,8 @@ var Models = {
13116
13209
  Gpt56Sol,
13117
13210
  Gpt56Terra,
13118
13211
  Gpt6Astra,
13212
+ Gpt6Luna,
13213
+ Gpt6Sol,
13119
13214
  GptImage1,
13120
13215
  GptImage15,
13121
13216
  GptImage2,
@@ -13188,6 +13283,7 @@ var Models = {
13188
13283
  MinimaxH3,
13189
13284
  MinimaxH3Max,
13190
13285
  MinimaxH3MaxCameraControls,
13286
+ MinimaxH3MaxExtend,
13191
13287
  MinimaxH3MaxLipSync,
13192
13288
  MinimaxH3MaxTurbo,
13193
13289
  MinimaxMusicV2,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.13.3",
3
+ "version": "6.15.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",