@picsart/ai-sdk 6.4.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/_vendor/workflows-types/index.d.ts +749 -759
- package/index.d.ts +9 -0
- package/index.js +49 -1
- package/package.json +1 -1
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;
|
|
@@ -3021,6 +3029,7 @@ declare const Models: {
|
|
|
3021
3029
|
readonly MinimaxH3: "minimax-h3";
|
|
3022
3030
|
readonly MinimaxH3Max: "minimax-h3-max";
|
|
3023
3031
|
readonly MinimaxH3MaxCameraControls: "minimax-h3-max-camera-controls";
|
|
3032
|
+
readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
|
|
3024
3033
|
readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
|
|
3025
3034
|
readonly MinimaxMusicV2: "minimax-music-v2";
|
|
3026
3035
|
readonly MinimaxMusicV3: "minimax-music-v3";
|
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
|
|
@@ -12067,6 +12113,7 @@ var Lyria35 = "lyria-3.5";
|
|
|
12067
12113
|
var MinimaxH3 = "minimax-h3";
|
|
12068
12114
|
var MinimaxH3Max = "minimax-h3-max";
|
|
12069
12115
|
var MinimaxH3MaxCameraControls = "minimax-h3-max-camera-controls";
|
|
12116
|
+
var MinimaxH3MaxLipSync = "minimax-h3-max-lip-sync";
|
|
12070
12117
|
var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
|
|
12071
12118
|
var MinimaxMusicV2 = "minimax-music-v2";
|
|
12072
12119
|
var MinimaxMusicV3 = "minimax-music-v3";
|
|
@@ -12305,6 +12352,7 @@ var Models = {
|
|
|
12305
12352
|
MinimaxH3,
|
|
12306
12353
|
MinimaxH3Max,
|
|
12307
12354
|
MinimaxH3MaxCameraControls,
|
|
12355
|
+
MinimaxH3MaxLipSync,
|
|
12308
12356
|
MinimaxH3MaxTurbo,
|
|
12309
12357
|
MinimaxMusicV2,
|
|
12310
12358
|
MinimaxMusicV3,
|