@picsart/ai-sdk 5.25.0 → 5.26.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
@@ -810,6 +810,18 @@ type ModelInputById = {
810
810
  seed?: number;
811
811
  enableSafetyChecker?: boolean;
812
812
  };
813
+ "minimax-h3-max-r2v": {
814
+ prompt: string;
815
+ imageUrls?: string[];
816
+ videoUrls?: string[];
817
+ audioUrls?: string[];
818
+ resolution?: "480p" | "768p";
819
+ duration?: number;
820
+ aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
821
+ promptExpansionMode?: "balanced" | "quality";
822
+ seed?: number;
823
+ enableSafetyChecker?: boolean;
824
+ };
813
825
  "minimax-music-v2": {
814
826
  prompt: string;
815
827
  lyricsPrompt?: string;
@@ -2645,6 +2657,7 @@ declare const Models: {
2645
2657
  readonly Minimax02Hd: "minimax-02-hd";
2646
2658
  readonly MinimaxH3: "minimax-h3";
2647
2659
  readonly MinimaxH3Max: "minimax-h3-max";
2660
+ readonly MinimaxH3MaxR2v: "minimax-h3-max-r2v";
2648
2661
  readonly MinimaxMusicV2: "minimax-music-v2";
2649
2662
  readonly MinimaxMusicV3: "minimax-music-v3";
2650
2663
  readonly MuseImage10: "muse-image-1.0";
package/index.js CHANGED
@@ -6529,7 +6529,7 @@ var { MODELS: MODELS26 } = defineModels("minimax", [
6529
6529
  addedAt: "2026-08-28",
6530
6530
  workflow: "minimax/h3-max/text-to-video",
6531
6531
  editWorkflow: "minimax/h3-max/image-to-video",
6532
- estimatedTime: 180,
6532
+ estimatedTime: 5,
6533
6533
  mode: "video",
6534
6534
  inputType: "t2v",
6535
6535
  description: "Top-tier MiniMax H3 Max video from text or a start/end frame, with prompt expansion. Up to 15s at 768p.",
@@ -6564,6 +6564,49 @@ var { MODELS: MODELS26 } = defineModels("minimax", [
6564
6564
  aspectRatio: { disabled: true, reason: "Aspect ratio follows the start frame image." }
6565
6565
  } }
6566
6566
  ]
6567
+ },
6568
+ {
6569
+ // Reference-to-video sibling of minimax-h3-max (same fal.ai worker).
6570
+ // The prompt addresses references by modality and order — Image 1,
6571
+ // Video 1, Audio 1, … Reference clips are 2-15s each (≤15s combined per
6572
+ // modality) and images + videos + audios must add up to ≤12 files —
6573
+ // backend-enforced; paramConfig only carries the per-array maxima.
6574
+ id: "minimax-h3-max-r2v",
6575
+ name: "MiniMax H3 Max Ref-to-Video",
6576
+ modelId: "fal-ai-h3-max",
6577
+ addedAt: "2026-09-01",
6578
+ workflow: "minimax/h3-max/reference-to-video",
6579
+ estimatedTime: 5,
6580
+ mode: "video",
6581
+ inputType: "i2v",
6582
+ description: "MiniMax H3 Max video from reference images, videos, and audio \u2014 refer to them in the prompt as Image 1, Video 1, Audio 1, in input order. Up to 15s at 768p.",
6583
+ features: [
6584
+ feat("Multi-Image Input", "input"),
6585
+ feat("Video Input", "input"),
6586
+ feat("Audio Input", "input"),
6587
+ feat("768p", "resolution"),
6588
+ feat("5-15 sec", "duration")
6589
+ ],
6590
+ paramConfig: {
6591
+ ...params.prompt({ placeholder: "Image 1 is the protagonist. Keep her consistent with the reference while she walks through a sunlit garden..." }),
6592
+ ...params.imageInput(9, "Reference Images"),
6593
+ ...params.videoInputs(3, "Reference Videos"),
6594
+ ...params.audioInputs(3, "Reference Audios"),
6595
+ // Lowercase on purpose — same worker normalization as minimax-h3-max.
6596
+ ...params.resolution(["480p", "768p"], "768p"),
6597
+ ...params.durationRange(5, 15, 5),
6598
+ ...params.aspectRatio(["adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"], "adaptive"),
6599
+ // Unlike the T2V/I2V entry, this wire has no 'disabled' expansion mode.
6600
+ ...p.enum("promptExpansionMode", ["balanced", "quality"], "balanced", { label: "Prompt Expansion" }),
6601
+ // -1 (sentinel) means "pick a random seed"; the builder drops it.
6602
+ ...p.range("seed", -1, 2147483647, -1),
6603
+ ...p.boolean("enableSafetyChecker", true, "Safety Checker")
6604
+ },
6605
+ constraints: [
6606
+ { when: { imageUrls: { exists: false }, videoUrls: { exists: false } }, then: {
6607
+ audioUrls: { disabled: true, reason: "Audio cannot be the only reference \u2014 add an image or video." }
6608
+ } }
6609
+ ]
6567
6610
  }
6568
6611
  ]);
6569
6612
 
@@ -6595,9 +6638,23 @@ var buildMinimaxH3MaxPayload = (input) => ({
6595
6638
  ...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
6596
6639
  enable_safety_checker: input.enableSafetyChecker ?? true
6597
6640
  });
6641
+ var buildMinimaxH3MaxR2VPayload = (input) => ({
6642
+ prompt: input.prompt,
6643
+ prompt_expansion_mode: input.promptExpansionMode ?? "balanced",
6644
+ duration: input.duration ?? 5,
6645
+ resolution: input.resolution ?? "768p",
6646
+ aspect_ratio: input.aspectRatio ?? "adaptive",
6647
+ ...input.imageUrls?.length ? { reference_image_urls: input.imageUrls } : {},
6648
+ ...input.videoUrls?.length ? { reference_video_urls: input.videoUrls } : {},
6649
+ ...input.audioUrls?.length ? { reference_audio_urls: input.audioUrls } : {},
6650
+ // -1 is the paramConfig sentinel for "random seed" — omit it on the wire.
6651
+ ...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
6652
+ enable_safety_checker: input.enableSafetyChecker ?? true
6653
+ });
6598
6654
  registerPayloads(MODELS26, {
6599
6655
  "minimax-music-v3": buildMinimaxMusicV3Payload,
6600
- "minimax-h3-max": buildMinimaxH3MaxPayload
6656
+ "minimax-h3-max": buildMinimaxH3MaxPayload,
6657
+ "minimax-h3-max-r2v": buildMinimaxH3MaxR2VPayload
6601
6658
  });
6602
6659
  registerEditPayloads(MODELS26, {
6603
6660
  "minimax-h3-max": buildMinimaxH3MaxPayload
@@ -10995,6 +11052,7 @@ var Lyria3Pro = "lyria-3-pro";
10995
11052
  var Minimax02Hd = "minimax-02-hd";
10996
11053
  var MinimaxH3 = "minimax-h3";
10997
11054
  var MinimaxH3Max = "minimax-h3-max";
11055
+ var MinimaxH3MaxR2v = "minimax-h3-max-r2v";
10998
11056
  var MinimaxMusicV2 = "minimax-music-v2";
10999
11057
  var MinimaxMusicV3 = "minimax-music-v3";
11000
11058
  var MuseImage10 = "muse-image-1.0";
@@ -11208,6 +11266,7 @@ var Models = {
11208
11266
  Minimax02Hd,
11209
11267
  MinimaxH3,
11210
11268
  MinimaxH3Max,
11269
+ MinimaxH3MaxR2v,
11211
11270
  MinimaxMusicV2,
11212
11271
  MinimaxMusicV3,
11213
11272
  MuseImage10,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.25.0",
3
+ "version": "5.26.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",