@picsart/ai-sdk 5.26.3 → 5.27.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 +1073 -914
- package/index.d.ts +12 -0
- package/index.js +66 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -811,6 +811,17 @@ type ModelInputById = {
|
|
|
811
811
|
seed?: number;
|
|
812
812
|
enableSafetyChecker?: boolean;
|
|
813
813
|
};
|
|
814
|
+
"minimax-h3-max-turbo": {
|
|
815
|
+
prompt: string;
|
|
816
|
+
startFrame?: string;
|
|
817
|
+
endFrame?: string;
|
|
818
|
+
resolution?: "480p" | "768p";
|
|
819
|
+
duration?: number;
|
|
820
|
+
aspectRatio?: "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16";
|
|
821
|
+
promptExpansionMode?: "balanced" | "quality";
|
|
822
|
+
seed?: number;
|
|
823
|
+
enableSafetyChecker?: boolean;
|
|
824
|
+
};
|
|
814
825
|
"minimax-music-v2": {
|
|
815
826
|
prompt: string;
|
|
816
827
|
lyricsPrompt?: string;
|
|
@@ -2655,6 +2666,7 @@ declare const Models: {
|
|
|
2655
2666
|
readonly MinimaxH3: "minimax-h3";
|
|
2656
2667
|
readonly MinimaxH3Max: "minimax-h3-max";
|
|
2657
2668
|
readonly MinimaxH3MaxR2v: "minimax-h3-max-r2v";
|
|
2669
|
+
readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
|
|
2658
2670
|
readonly MinimaxMusicV2: "minimax-music-v2";
|
|
2659
2671
|
readonly MinimaxMusicV3: "minimax-music-v3";
|
|
2660
2672
|
readonly MuseImage10: "muse-image-1.0";
|
package/index.js
CHANGED
|
@@ -6663,6 +6663,54 @@ var { MODELS: MODELS26 } = defineModels("minimax", [
|
|
|
6663
6663
|
} }
|
|
6664
6664
|
]
|
|
6665
6665
|
},
|
|
6666
|
+
{
|
|
6667
|
+
// Turbo sibling of minimax-h3-max — same fal.ai worker, same wire shape,
|
|
6668
|
+
// tuned for speed (faster-than-realtime generation). The only schema
|
|
6669
|
+
// difference: prompt expansion has no 'disabled' mode on this endpoint.
|
|
6670
|
+
id: "minimax-h3-max-turbo",
|
|
6671
|
+
name: "MiniMax H3 Max Turbo",
|
|
6672
|
+
modelId: "fal-ai-h3-max-turbo",
|
|
6673
|
+
addedAt: "2026-09-03",
|
|
6674
|
+
workflow: "minimax/h3-max-turbo/text-to-video",
|
|
6675
|
+
editWorkflow: "minimax/h3-max-turbo/image-to-video",
|
|
6676
|
+
estimatedTime: 5,
|
|
6677
|
+
mode: "video",
|
|
6678
|
+
inputType: "t2v",
|
|
6679
|
+
description: "Faster-than-realtime MiniMax H3 Max Turbo video from text or a start/end frame, with prompt expansion. Up to 15s at 768p.",
|
|
6680
|
+
features: [
|
|
6681
|
+
feat("Fast", "characteristic"),
|
|
6682
|
+
feat("Image Input", "input"),
|
|
6683
|
+
feat("Start/End Frame", "frame"),
|
|
6684
|
+
feat("768p", "resolution"),
|
|
6685
|
+
feat("5-15 sec", "duration")
|
|
6686
|
+
],
|
|
6687
|
+
paramConfig: {
|
|
6688
|
+
...params.prompt(),
|
|
6689
|
+
...params.startFrame(),
|
|
6690
|
+
...params.endFrame(),
|
|
6691
|
+
// Lowercase on purpose: the worker uppercases for the fal wire ('768P')
|
|
6692
|
+
// and the pricing qualities are lowercase, so this casing serves both.
|
|
6693
|
+
...params.resolution(["480p", "768p"], "768p"),
|
|
6694
|
+
...params.durationRange(5, 15, 5),
|
|
6695
|
+
...params.aspectRatio(["21:9", "16:9", "4:3", "1:1", "3:4", "9:16"], "16:9"),
|
|
6696
|
+
// Unlike minimax-h3-max, the turbo wire has no 'disabled' expansion mode.
|
|
6697
|
+
...p.enum("promptExpansionMode", ["balanced", "quality"], "balanced", { label: "Prompt Expansion" }),
|
|
6698
|
+
// -1 (sentinel) means "pick a random seed"; the builder drops it.
|
|
6699
|
+
...p.range("seed", -1, 2147483647, -1),
|
|
6700
|
+
...p.boolean("enableSafetyChecker", true, "Safety Checker")
|
|
6701
|
+
},
|
|
6702
|
+
constraints: [
|
|
6703
|
+
// The T2V wire has no end_image_url — an end frame only reaches the
|
|
6704
|
+
// vendor on the I2V route, which needs a start frame to trigger.
|
|
6705
|
+
{ when: { startFrame: { exists: false } }, then: {
|
|
6706
|
+
endFrame: { disabled: true, reason: "An end frame requires a start frame." }
|
|
6707
|
+
} },
|
|
6708
|
+
// I2V derives the ratio from the input image (no aspect_ratio on that wire).
|
|
6709
|
+
{ when: { startFrame: { exists: true } }, then: {
|
|
6710
|
+
aspectRatio: { disabled: true, reason: "Aspect ratio follows the start frame image." }
|
|
6711
|
+
} }
|
|
6712
|
+
]
|
|
6713
|
+
},
|
|
6666
6714
|
{
|
|
6667
6715
|
// Reference-to-video sibling of minimax-h3-max (same fal.ai worker).
|
|
6668
6716
|
// The prompt addresses references by modality and order — Image 1,
|
|
@@ -6736,6 +6784,19 @@ var buildMinimaxH3MaxPayload = (input) => ({
|
|
|
6736
6784
|
...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
|
|
6737
6785
|
enable_safety_checker: input.enableSafetyChecker ?? true
|
|
6738
6786
|
});
|
|
6787
|
+
var buildMinimaxH3MaxTurboPayload = (input) => ({
|
|
6788
|
+
prompt: input.prompt,
|
|
6789
|
+
prompt_expansion_mode: input.promptExpansionMode ?? "balanced",
|
|
6790
|
+
duration: input.duration ?? 5,
|
|
6791
|
+
resolution: input.resolution ?? "768p",
|
|
6792
|
+
...input.startFrame ? {
|
|
6793
|
+
image_url: input.startFrame,
|
|
6794
|
+
...input.endFrame ? { end_image_url: input.endFrame } : {}
|
|
6795
|
+
} : { aspect_ratio: input.aspectRatio ?? "16:9" },
|
|
6796
|
+
// -1 is the paramConfig sentinel for "random seed" — omit it on the wire.
|
|
6797
|
+
...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {},
|
|
6798
|
+
enable_safety_checker: input.enableSafetyChecker ?? true
|
|
6799
|
+
});
|
|
6739
6800
|
var buildMinimaxH3MaxR2VPayload = (input) => ({
|
|
6740
6801
|
prompt: input.prompt,
|
|
6741
6802
|
prompt_expansion_mode: input.promptExpansionMode ?? "balanced",
|
|
@@ -6752,10 +6813,12 @@ var buildMinimaxH3MaxR2VPayload = (input) => ({
|
|
|
6752
6813
|
registerPayloads(MODELS26, {
|
|
6753
6814
|
"minimax-music-v3": buildMinimaxMusicV3Payload,
|
|
6754
6815
|
"minimax-h3-max": buildMinimaxH3MaxPayload,
|
|
6816
|
+
"minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload,
|
|
6755
6817
|
"minimax-h3-max-r2v": buildMinimaxH3MaxR2VPayload
|
|
6756
6818
|
});
|
|
6757
6819
|
registerEditPayloads(MODELS26, {
|
|
6758
|
-
"minimax-h3-max": buildMinimaxH3MaxPayload
|
|
6820
|
+
"minimax-h3-max": buildMinimaxH3MaxPayload,
|
|
6821
|
+
"minimax-h3-max-turbo": buildMinimaxH3MaxTurboPayload
|
|
6759
6822
|
});
|
|
6760
6823
|
|
|
6761
6824
|
// src/vendors/catalog/ideogram.ts
|
|
@@ -11165,6 +11228,7 @@ var Minimax02Hd = "minimax-02-hd";
|
|
|
11165
11228
|
var MinimaxH3 = "minimax-h3";
|
|
11166
11229
|
var MinimaxH3Max = "minimax-h3-max";
|
|
11167
11230
|
var MinimaxH3MaxR2v = "minimax-h3-max-r2v";
|
|
11231
|
+
var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
|
|
11168
11232
|
var MinimaxMusicV2 = "minimax-music-v2";
|
|
11169
11233
|
var MinimaxMusicV3 = "minimax-music-v3";
|
|
11170
11234
|
var MuseImage10 = "muse-image-1.0";
|
|
@@ -11379,6 +11443,7 @@ var Models = {
|
|
|
11379
11443
|
MinimaxH3,
|
|
11380
11444
|
MinimaxH3Max,
|
|
11381
11445
|
MinimaxH3MaxR2v,
|
|
11446
|
+
MinimaxH3MaxTurbo,
|
|
11382
11447
|
MinimaxMusicV2,
|
|
11383
11448
|
MinimaxMusicV3,
|
|
11384
11449
|
MuseImage10,
|