@picsart/ai-sdk 5.21.0 → 5.21.1

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.
Files changed (3) hide show
  1. package/index.d.ts +11 -11
  2. package/index.js +6 -6
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -395,16 +395,6 @@ type ModelInputById = {
395
395
  prompt: string;
396
396
  voiceId?: string;
397
397
  };
398
- "hailuo-03": {
399
- prompt: string;
400
- startFrame?: string;
401
- endFrame?: string;
402
- imageUrls?: string[];
403
- videoUrls?: string[];
404
- audioUrls?: string[];
405
- duration?: 5 | 10 | 15;
406
- aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
407
- };
408
398
  "hailuo-2.3": {
409
399
  prompt: string;
410
400
  enhancePrompt?: boolean;
@@ -791,6 +781,16 @@ type ModelInputById = {
791
781
  accent?: string;
792
782
  prompt: string;
793
783
  };
784
+ "minimax-h3": {
785
+ prompt: string;
786
+ startFrame?: string;
787
+ endFrame?: string;
788
+ imageUrls?: string[];
789
+ videoUrls?: string[];
790
+ audioUrls?: string[];
791
+ duration?: 5 | 10 | 15;
792
+ aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
793
+ };
794
794
  "minimax-music-v2": {
795
795
  prompt: string;
796
796
  lyricsPrompt?: string;
@@ -2537,7 +2537,6 @@ declare const Models: {
2537
2537
  readonly GrokImagineVideo: "grok-imagine-video";
2538
2538
  readonly GrokImagineVideo15: "grok-imagine-video-1.5";
2539
2539
  readonly GrokTts: "grok-tts";
2540
- readonly Hailuo03: "hailuo-03";
2541
2540
  readonly Hailuo23: "hailuo-2.3";
2542
2541
  readonly Hailuo23Fast: "hailuo-2.3-fast";
2543
2542
  readonly Hailuo23FastPro: "hailuo-2.3-fast-pro";
@@ -2590,6 +2589,7 @@ declare const Models: {
2590
2589
  readonly Lyria3Clip: "lyria-3-clip";
2591
2590
  readonly Lyria3Pro: "lyria-3-pro";
2592
2591
  readonly Minimax02Hd: "minimax-02-hd";
2592
+ readonly MinimaxH3: "minimax-h3";
2593
2593
  readonly MinimaxMusicV2: "minimax-music-v2";
2594
2594
  readonly MinimaxMusicV3: "minimax-music-v3";
2595
2595
  readonly Ovi: "ovi";
package/index.js CHANGED
@@ -2667,7 +2667,7 @@ var buildMinimaxH3 = (ctx) => {
2667
2667
  var FRAME_REF_EXCLUSIVE = "First/last frame and reference inputs cannot be combined.";
2668
2668
  var LAST_NEEDS_FIRST = "An end frame requires a start frame.";
2669
2669
  var AUDIO_NEEDS_VISUAL = "Reference audio needs a reference image or video.";
2670
- var hailuo03Constraints = [
2670
+ var minimaxH3Constraints = [
2671
2671
  // Frame roles ⊥ reference roles (declared both ways so either input disables the other).
2672
2672
  { when: { startFrame: { exists: true } }, then: {
2673
2673
  imageUrls: { disabled: true, reason: FRAME_REF_EXCLUSIVE },
@@ -2784,8 +2784,8 @@ var { MODELS: MODELS9 } = defineModels("minimax", [
2784
2784
  },
2785
2785
  {
2786
2786
  ...base,
2787
- id: "hailuo-03",
2788
- name: "Hailuo 03",
2787
+ id: "minimax-h3",
2788
+ name: "MiniMax H3",
2789
2789
  modelId: "minimax-h3",
2790
2790
  addedAt: "2026-07-30",
2791
2791
  inputType: "t2v",
@@ -2810,7 +2810,7 @@ var { MODELS: MODELS9 } = defineModels("minimax", [
2810
2810
  ...params.duration([5, 10, 15]),
2811
2811
  ...p.aspectRatio(["adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"], "adaptive")
2812
2812
  },
2813
- constraints: hailuo03Constraints
2813
+ constraints: minimaxH3Constraints
2814
2814
  }
2815
2815
  ]);
2816
2816
 
@@ -10571,7 +10571,6 @@ var GrokImagineImageQuality = "grok-imagine-image-quality";
10571
10571
  var GrokImagineVideo = "grok-imagine-video";
10572
10572
  var GrokImagineVideo15 = "grok-imagine-video-1.5";
10573
10573
  var GrokTts = "grok-tts";
10574
- var Hailuo03 = "hailuo-03";
10575
10574
  var Hailuo23 = "hailuo-2.3";
10576
10575
  var Hailuo23Fast = "hailuo-2.3-fast";
10577
10576
  var Hailuo23FastPro = "hailuo-2.3-fast-pro";
@@ -10624,6 +10623,7 @@ var LumaUni1Max = "luma-uni-1-max";
10624
10623
  var Lyria3Clip = "lyria-3-clip";
10625
10624
  var Lyria3Pro = "lyria-3-pro";
10626
10625
  var Minimax02Hd = "minimax-02-hd";
10626
+ var MinimaxH3 = "minimax-h3";
10627
10627
  var MinimaxMusicV2 = "minimax-music-v2";
10628
10628
  var MinimaxMusicV3 = "minimax-music-v3";
10629
10629
  var Ovi = "ovi";
@@ -10780,7 +10780,6 @@ var Models = {
10780
10780
  GrokImagineVideo,
10781
10781
  GrokImagineVideo15,
10782
10782
  GrokTts,
10783
- Hailuo03,
10784
10783
  Hailuo23,
10785
10784
  Hailuo23Fast,
10786
10785
  Hailuo23FastPro,
@@ -10833,6 +10832,7 @@ var Models = {
10833
10832
  Lyria3Clip,
10834
10833
  Lyria3Pro,
10835
10834
  Minimax02Hd,
10835
+ MinimaxH3,
10836
10836
  MinimaxMusicV2,
10837
10837
  MinimaxMusicV3,
10838
10838
  Ovi,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.21.0",
3
+ "version": "5.21.1",
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",