@picsart/ai-sdk 6.29.0 → 6.30.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
@@ -1203,6 +1203,14 @@ type ModelInputById = {
1203
1203
  seed?: number;
1204
1204
  enableSafetyChecker?: boolean;
1205
1205
  };
1206
+ "minimax-h3-max-relight": {
1207
+ videoUrl: string;
1208
+ imageUrls: [string, ...string[]];
1209
+ resolution?: "480p" | "768p" | "1080p" | "2k";
1210
+ aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
1211
+ seed?: number;
1212
+ enableSafetyChecker?: boolean;
1213
+ };
1206
1214
  "minimax-h3-max-turbo": {
1207
1215
  prompt: string;
1208
1216
  startFrame?: string;
@@ -3477,6 +3485,7 @@ declare const Models: {
3477
3485
  readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
3478
3486
  readonly MinimaxH3MaxExtend: "minimax-h3-max-extend";
3479
3487
  readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
3488
+ readonly MinimaxH3MaxRelight: "minimax-h3-max-relight";
3480
3489
  readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
3481
3490
  readonly MinimaxMusicV2: "minimax-music-v2";
3482
3491
  readonly MinimaxMusicV3: "minimax-music-v3";
package/index.js CHANGED
@@ -3287,6 +3287,41 @@ var { MODELS: MODELS9 } = defineModels("minimax", [
3287
3287
  // Default-less on purpose: unset means the vendor picks a random seed.
3288
3288
  ...params.seed()
3289
3289
  }
3290
+ },
3291
+ {
3292
+ // Relight sibling of minimax-h3-max: re-lights an existing clip to match
3293
+ // a lighting-reference image (a sphere render showing the target light).
3294
+ // No prompt and no duration on this wire — the output keeps the source
3295
+ // clip's length (the source is converted to constant 24 fps and trimmed
3296
+ // to the closest 17n+5 frame count, with at least ~2.33s remaining).
3297
+ id: "minimax-h3-max-relight",
3298
+ name: "MiniMax H3 Max Relight",
3299
+ modelId: "fal-ai-h3-max-relight",
3300
+ addedAt: "2026-10-08",
3301
+ workflow: "minimax/h3-max/relight",
3302
+ estimatedTime: 120,
3303
+ mode: "video",
3304
+ inputType: "v2v",
3305
+ description: "Relight an existing video with MiniMax H3 Max \u2014 a sphere-render reference image sets the target lighting and the output keeps the source clip's length. Sources up to 15s, output up to 2K.",
3306
+ features: [
3307
+ feat("Relight", "characteristic"),
3308
+ feat("Video Input", "input"),
3309
+ feat("Image Input", "input"),
3310
+ feat("2K", "resolution")
3311
+ ],
3312
+ paramConfig: {
3313
+ ...params.videoInput("Source Video", "asset", true, 15),
3314
+ // The target lighting, as a sphere render.
3315
+ ...params.imageInput(1, "Lighting Reference", true, "reference"),
3316
+ // 480p/768p generate natively; 1080p and 2K are latent refinements
3317
+ // of a native 768p generation.
3318
+ ...params.resolution(["480p", "768p", "1080p", "2k"], "768p"),
3319
+ // 'adaptive' follows the source video's ratio.
3320
+ ...params.aspectRatio(["adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"], "16:9"),
3321
+ // Default-less on purpose: unset means the vendor picks a random seed.
3322
+ ...params.seed(),
3323
+ ...p.boolean("enableSafetyChecker", true, "Safety Checker")
3324
+ }
3290
3325
  }
3291
3326
  ]);
3292
3327
 
@@ -8001,13 +8036,24 @@ var buildMinimaxH3MaxExtendPayload = (input) => ({
8001
8036
  enable_prompt_expansion: input.enhancePrompt ?? true,
8002
8037
  enable_safety_checker: input.enableSafetyChecker ?? true
8003
8038
  });
8039
+ var buildMinimaxH3MaxRelightPayload = (input) => ({
8040
+ video_url: input.videoUrl,
8041
+ // The single lighting reference travels as a scalar on the wire.
8042
+ reference_image_url: input.imageUrls?.[0],
8043
+ // The vendor enum is uppercase; paramConfig keeps the lowercase form.
8044
+ resolution: (input.resolution ?? "768p").toUpperCase(),
8045
+ aspect_ratio: input.aspectRatio ?? "16:9",
8046
+ ...input.seed != null ? { seed: input.seed } : {},
8047
+ enable_safety_checker: input.enableSafetyChecker ?? true
8048
+ });
8004
8049
  registerPayloads(MODELS9, {
8005
8050
  "minimax-music-v3": buildMinimaxMusicV3Payload,
8006
8051
  "minimax-h3-max": buildMinimaxH3MaxPayload,
8007
8052
  "minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload,
8008
8053
  "minimax-h3-max-camera-controls": buildMinimaxH3MaxCameraControlsPayload,
8009
8054
  "minimax-h3-max-lip-sync": buildMinimaxH3MaxLipSyncPayload,
8010
- "minimax-h3-max-extend": buildMinimaxH3MaxExtendPayload
8055
+ "minimax-h3-max-extend": buildMinimaxH3MaxExtendPayload,
8056
+ "minimax-h3-max-relight": buildMinimaxH3MaxRelightPayload
8011
8057
  });
8012
8058
  registerEditPayloads(MODELS9, {
8013
8059
  "minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload
@@ -13734,6 +13780,7 @@ var MinimaxH3Max = "minimax-h3-max";
13734
13780
  var MinimaxH3MaxCameraControls = "minimax-h3-max-camera-controls";
13735
13781
  var MinimaxH3MaxExtend = "minimax-h3-max-extend";
13736
13782
  var MinimaxH3MaxLipSync = "minimax-h3-max-lip-sync";
13783
+ var MinimaxH3MaxRelight = "minimax-h3-max-relight";
13737
13784
  var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
13738
13785
  var MinimaxMusicV2 = "minimax-music-v2";
13739
13786
  var MinimaxMusicV3 = "minimax-music-v3";
@@ -13991,6 +14038,7 @@ var Models = {
13991
14038
  MinimaxH3MaxCameraControls,
13992
14039
  MinimaxH3MaxExtend,
13993
14040
  MinimaxH3MaxLipSync,
14041
+ MinimaxH3MaxRelight,
13994
14042
  MinimaxH3MaxTurbo,
13995
14043
  MinimaxMusicV2,
13996
14044
  MinimaxMusicV3,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.29.0",
3
+ "version": "6.30.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",