@picsart/ai-sdk 5.34.0 → 5.34.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 +1 -0
  2. package/index.js +4 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -857,6 +857,7 @@ type ModelInputById = {
857
857
  imageUrls?: string[];
858
858
  videoUrls?: string[];
859
859
  audioUrls?: string[];
860
+ resolution?: "768P" | "2K";
860
861
  duration?: number;
861
862
  aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
862
863
  };
package/index.js CHANGED
@@ -2900,7 +2900,7 @@ var buildMinimaxH3 = (ctx) => {
2900
2900
  return {
2901
2901
  model: "MiniMax-H3",
2902
2902
  content,
2903
- resolution: "2K",
2903
+ resolution: ctx.resolution ?? "2K",
2904
2904
  duration: ctx.duration ?? 5,
2905
2905
  ...ctx.aspectRatio ? { ratio: ctx.aspectRatio } : {}
2906
2906
  };
@@ -3048,6 +3048,9 @@ var { MODELS: MODELS9 } = defineModels("minimax", [
3048
3048
  ...params.imageInput(9, "Reference Images", false),
3049
3049
  ...params.videoInputs(3, "Reference Videos", false),
3050
3050
  ...params.audioInputs(3, "Reference Audios", false),
3051
+ // Backend enum is case-insensitive (['768P','2K','768p','2k']); the
3052
+ // uppercase forms are canonical.
3053
+ ...params.resolution(["768P", "2K"], "2K"),
3051
3054
  ...params.durationRange(5, 15, 5),
3052
3055
  ...p.aspectRatio(["adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"], "adaptive")
3053
3056
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.34.0",
3
+ "version": "5.34.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",