@picsart/ai-sdk 6.3.0 → 6.5.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
@@ -960,6 +960,14 @@ type ModelInputById = {
960
960
  seed?: number;
961
961
  enableSafetyChecker?: boolean;
962
962
  };
963
+ "minimax-h3-max-lip-sync": {
964
+ startFrame: string;
965
+ audioUrl: string;
966
+ resolution?: "480p" | "768p" | "1080p" | "2k";
967
+ enableTranscription?: boolean;
968
+ seed?: number;
969
+ enableSafetyChecker?: boolean;
970
+ };
963
971
  "minimax-h3-max-turbo": {
964
972
  prompt: string;
965
973
  startFrame?: string;
@@ -1220,6 +1228,11 @@ type ModelInputById = {
1220
1228
  imageUrls?: string[];
1221
1229
  imageWeight?: number;
1222
1230
  };
1231
+ "recraftv4_1_flash": {
1232
+ prompt: string;
1233
+ aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1234
+ count?: 1 | 2 | 4 | 6;
1235
+ };
1223
1236
  "recraftv4_1_pro": {
1224
1237
  prompt: string;
1225
1238
  aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
@@ -3016,6 +3029,7 @@ declare const Models: {
3016
3029
  readonly MinimaxH3: "minimax-h3";
3017
3030
  readonly MinimaxH3Max: "minimax-h3-max";
3018
3031
  readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
3032
+ readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
3019
3033
  readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
3020
3034
  readonly MinimaxMusicV2: "minimax-music-v2";
3021
3035
  readonly MinimaxMusicV3: "minimax-music-v3";
@@ -3058,6 +3072,7 @@ declare const Models: {
3058
3072
  readonly Recraftv3ReplaceBg: "recraftv3-replace-bg";
3059
3073
  readonly Recraftv4: "recraftv4";
3060
3074
  readonly Recraftv41: "recraftv4_1";
3075
+ readonly Recraftv41Flash: "recraftv4_1_flash";
3061
3076
  readonly Recraftv41Pro: "recraftv4_1_pro";
3062
3077
  readonly Recraftv41ProVector: "recraftv4_1_pro_vector";
3063
3078
  readonly Recraftv41Utility: "recraftv4_1_utility";
package/index.js CHANGED
@@ -6851,6 +6851,41 @@ var { MODELS: MODELS25 } = defineModels("minimax", [
6851
6851
  ...p.range("seed", -1, 2147483647, -1),
6852
6852
  ...p.boolean("enableSafetyChecker", true, "Safety Checker")
6853
6853
  }
6854
+ },
6855
+ {
6856
+ // Lip-sync sibling of minimax-h3-max: animates a portrait to a supplied
6857
+ // soundtrack. No prompt and no duration on this wire — the audio drives
6858
+ // both: the vendor requires at least 5s, clips anything past 14.8s, and
6859
+ // the output matches the clipped track. The output follows the image, so
6860
+ // there is no aspect ratio either.
6861
+ id: "minimax-h3-max-lip-sync",
6862
+ name: "MiniMax H3 Max Lip Sync",
6863
+ modelId: "fal-ai-h3-max-lip-sync",
6864
+ addedAt: "2026-09-22",
6865
+ workflow: "minimax/h3-max/lip-sync/image-to-video",
6866
+ estimatedTime: 120,
6867
+ mode: "video",
6868
+ inputType: "i2v",
6869
+ description: "MiniMax H3 Max lip-synced video from a portrait and an audio track \u2014 mouth movements follow the soundtrack, optionally guided by a transcript. 5-14.8s of audio, up to 2K.",
6870
+ features: [
6871
+ feat("Lip Sync", "characteristic"),
6872
+ feat("Image Input", "input"),
6873
+ feat("Audio Input", "audio"),
6874
+ feat("2K", "resolution"),
6875
+ feat("5-15 sec", "duration")
6876
+ ],
6877
+ paramConfig: {
6878
+ ...params.startFrame("Portrait Image", true),
6879
+ ...params.audioInput("Audio Track", true),
6880
+ // Unlike the siblings this one also offers 2K; 1080p and 2K are latent
6881
+ // refinements of a native 768p generation.
6882
+ ...params.resolution(["480p", "768p", "1080p", "2k"], "768p"),
6883
+ // Transcribes the audio to guide the sync; off follows the waveform alone.
6884
+ ...p.boolean("enableTranscription", false, "Transcription"),
6885
+ // -1 (sentinel) means "pick a random seed"; the builder drops it.
6886
+ ...p.range("seed", -1, 2147483647, -1),
6887
+ ...p.boolean("enableSafetyChecker", true, "Safety Checker")
6888
+ }
6854
6889
  }
6855
6890
  ]);
6856
6891
 
@@ -6924,11 +6959,22 @@ var buildMinimaxH3MaxCameraControlsPayload = (input) => ({
6924
6959
  ...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
6925
6960
  enable_safety_checker: input.enableSafetyChecker ?? true
6926
6961
  });
6962
+ var buildMinimaxH3MaxLipSyncPayload = (input) => ({
6963
+ image_url: input.startFrame,
6964
+ audio_url: input.audioUrl,
6965
+ // The vendor enum is uppercase; paramConfig keeps the lowercase form.
6966
+ resolution: (input.resolution ?? "768p").toUpperCase(),
6967
+ enable_transcription: input.enableTranscription ?? false,
6968
+ // -1 is the paramConfig sentinel for "random seed" — omit it on the wire.
6969
+ ...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
6970
+ enable_safety_checker: input.enableSafetyChecker ?? true
6971
+ });
6927
6972
  registerPayloads(MODELS25, {
6928
6973
  "minimax-music-v3": buildMinimaxMusicV3Payload,
6929
6974
  "minimax-h3-max": buildMinimaxH3MaxPayload,
6930
6975
  "minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload,
6931
- "minimax-h3-max-camera-controls": buildMinimaxH3MaxCameraControlsPayload
6976
+ "minimax-h3-max-camera-controls": buildMinimaxH3MaxCameraControlsPayload,
6977
+ "minimax-h3-max-lip-sync": buildMinimaxH3MaxLipSyncPayload
6932
6978
  });
6933
6979
  registerEditPayloads(MODELS25, {
6934
6980
  "minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload
@@ -7488,6 +7534,24 @@ var { MODELS: MODELS28 } = defineModels("recraft", [
7488
7534
  ...params.imageWeight(0, 100, 80, 5)
7489
7535
  }
7490
7536
  },
7537
+ {
7538
+ id: "recraftv4_1_flash",
7539
+ name: "Recraft V4.1 Flash",
7540
+ addedAt: "2026-09-22",
7541
+ workflow: "recraft/v1/images/generations",
7542
+ buildPayload: buildRecraftV4VariantPayload("recraftv4_1_flash"),
7543
+ estimatedTime: 8,
7544
+ mode: "image",
7545
+ inputType: "t2i",
7546
+ badge: ["fast"],
7547
+ description: "Fastest V4.1 tier \u2014 quick raster output with 10K-character prompts.",
7548
+ features: [feat("Fast", "characteristic"), feat("10K Prompt", "characteristic")],
7549
+ paramConfig: {
7550
+ ...params.prompt({ maxLength: 1e4 }),
7551
+ ...params.aspectRatio(recraftAspectRatios, "1:1"),
7552
+ ...params.count([1, 2, 4, 6])
7553
+ }
7554
+ },
7491
7555
  // ── V4.1 vector variants ─────
7492
7556
  {
7493
7557
  id: "recraftv4_1_vector",
@@ -12049,6 +12113,7 @@ var Lyria35 = "lyria-3.5";
12049
12113
  var MinimaxH3 = "minimax-h3";
12050
12114
  var MinimaxH3Max = "minimax-h3-max";
12051
12115
  var MinimaxH3MaxCameraControls = "minimax-h3-max-camera-controls";
12116
+ var MinimaxH3MaxLipSync = "minimax-h3-max-lip-sync";
12052
12117
  var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
12053
12118
  var MinimaxMusicV2 = "minimax-music-v2";
12054
12119
  var MinimaxMusicV3 = "minimax-music-v3";
@@ -12091,6 +12156,7 @@ var Recraftv3Vector = "recraftv3_vector";
12091
12156
  var Recraftv3ReplaceBg = "recraftv3-replace-bg";
12092
12157
  var Recraftv4 = "recraftv4";
12093
12158
  var Recraftv41 = "recraftv4_1";
12159
+ var Recraftv41Flash = "recraftv4_1_flash";
12094
12160
  var Recraftv41Pro = "recraftv4_1_pro";
12095
12161
  var Recraftv41ProVector = "recraftv4_1_pro_vector";
12096
12162
  var Recraftv41Utility = "recraftv4_1_utility";
@@ -12286,6 +12352,7 @@ var Models = {
12286
12352
  MinimaxH3,
12287
12353
  MinimaxH3Max,
12288
12354
  MinimaxH3MaxCameraControls,
12355
+ MinimaxH3MaxLipSync,
12289
12356
  MinimaxH3MaxTurbo,
12290
12357
  MinimaxMusicV2,
12291
12358
  MinimaxMusicV3,
@@ -12328,6 +12395,7 @@ var Models = {
12328
12395
  Recraftv3ReplaceBg,
12329
12396
  Recraftv4,
12330
12397
  Recraftv41,
12398
+ Recraftv41Flash,
12331
12399
  Recraftv41Pro,
12332
12400
  Recraftv41ProVector,
12333
12401
  Recraftv41Utility,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.3.0",
3
+ "version": "6.5.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",