@picsart/ai-sdk 6.13.3 → 6.14.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
@@ -1072,6 +1072,17 @@ type ModelInputById = {
1072
1072
  seed?: number;
1073
1073
  enableSafetyChecker?: boolean;
1074
1074
  };
1075
+ "minimax-h3-max-extend": {
1076
+ prompt: string;
1077
+ videoUrl: string;
1078
+ duration?: number;
1079
+ output?: "extended" | "continuation";
1080
+ aspectRatio?: "auto" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1081
+ resolution?: "480p" | "768p" | "1080p" | "2k";
1082
+ enhancePrompt?: boolean;
1083
+ enableSafetyChecker?: boolean;
1084
+ seed?: number;
1085
+ };
1075
1086
  "minimax-h3-max-lip-sync": {
1076
1087
  startFrame: string;
1077
1088
  audioUrl: string;
@@ -3270,6 +3281,7 @@ declare const Models: {
3270
3281
  readonly MinimaxH3: "minimax-h3";
3271
3282
  readonly MinimaxH3Max: "minimax-h3-max";
3272
3283
  readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
3284
+ readonly MinimaxH3MaxExtend: "minimax-h3-max-extend";
3273
3285
  readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
3274
3286
  readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
3275
3287
  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
@@ -12938,6 +12992,7 @@ var Lyria35 = "lyria-3.5";
12938
12992
  var MinimaxH3 = "minimax-h3";
12939
12993
  var MinimaxH3Max = "minimax-h3-max";
12940
12994
  var MinimaxH3MaxCameraControls = "minimax-h3-max-camera-controls";
12995
+ var MinimaxH3MaxExtend = "minimax-h3-max-extend";
12941
12996
  var MinimaxH3MaxLipSync = "minimax-h3-max-lip-sync";
12942
12997
  var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
12943
12998
  var MinimaxMusicV2 = "minimax-music-v2";
@@ -13188,6 +13243,7 @@ var Models = {
13188
13243
  MinimaxH3,
13189
13244
  MinimaxH3Max,
13190
13245
  MinimaxH3MaxCameraControls,
13246
+ MinimaxH3MaxExtend,
13191
13247
  MinimaxH3MaxLipSync,
13192
13248
  MinimaxH3MaxTurbo,
13193
13249
  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.14.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",