@picsart/ai-sdk 6.54.0 → 6.55.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/README.md +5 -4
- package/index.d.ts +12 -1
- package/index.js +41 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -194,7 +194,7 @@ names or catalog model IDs from an arbitrary vendor request.
|
|
|
194
194
|
|
|
195
195
|
## Text Generation (LLMs)
|
|
196
196
|
|
|
197
|
-
Claude, GPT, Gemini, Kimi and
|
|
197
|
+
Claude, GPT, Gemini, Kimi, Grok and MiniMax text models are called with `generateText()`. Single-shot:
|
|
198
198
|
pass a prompt and optional image(s)/video, get text back. They surface in the catalog
|
|
199
199
|
as `mode: 'text'`. Each vendor uses its own native workflow, so capabilities aren't lost
|
|
200
200
|
— Gemini accepts video input, Claude uses the Anthropic-native messages API.
|
|
@@ -227,9 +227,10 @@ await ai.generateText(Models.Gemini3Pro, {
|
|
|
227
227
|
catalog.find({ output: 'text' })
|
|
228
228
|
```
|
|
229
229
|
|
|
230
|
-
> Thinking level maps per vendor: OpenAI, Kimi and
|
|
231
|
-
> `thinkingConfig.thinkingLevel` (LOW/HIGH). Kimi K3
|
|
232
|
-
> they have no `off`.
|
|
230
|
+
> Thinking level maps per vendor: OpenAI, Kimi, Grok and MiniMax M3.1 Flash → `reasoning_effort`, Gemini →
|
|
231
|
+
> `thinkingConfig.thinkingLevel` (LOW/HIGH). Kimi K3, Grok 4.7 and MiniMax M3.1 Flash
|
|
232
|
+
> always reason, so they have no `off`. MiniMax M3 reasons adaptively and has no
|
|
233
|
+
> thinking knob. Claude’s `claude/v1/messages`
|
|
233
234
|
> workflow exposes no thinking knob, so Claude models omit `thinking`.
|
|
234
235
|
|
|
235
236
|
`generateText()` is type-narrowed to text models (`TextModelId`); calling it with an
|
package/index.d.ts
CHANGED
|
@@ -1360,6 +1360,15 @@ type ModelInputById = {
|
|
|
1360
1360
|
seed?: number;
|
|
1361
1361
|
enableSafetyChecker?: boolean;
|
|
1362
1362
|
};
|
|
1363
|
+
"minimax-m3": {
|
|
1364
|
+
prompt: string;
|
|
1365
|
+
imageUrls?: string[];
|
|
1366
|
+
};
|
|
1367
|
+
"minimax-m3.1-flash": {
|
|
1368
|
+
prompt: string;
|
|
1369
|
+
imageUrls?: string[];
|
|
1370
|
+
thinking?: "low" | "medium" | "high";
|
|
1371
|
+
};
|
|
1363
1372
|
"minimax-music-v2": {
|
|
1364
1373
|
prompt: string;
|
|
1365
1374
|
lyricsPrompt?: string;
|
|
@@ -2194,7 +2203,7 @@ type ModelInputById = {
|
|
|
2194
2203
|
type TypedModelId = keyof ModelInputById;
|
|
2195
2204
|
type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
2196
2205
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
2197
|
-
type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-haiku-5-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "eleven-speech-to-text" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gemini-4-argon" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra" | "gpt-6-luna" | "gpt-6-sol" | "grok-4.7" | "kimi-k3" | "minimax-h3-context-ir";
|
|
2206
|
+
type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-haiku-5-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "eleven-speech-to-text" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gemini-4-argon" | "gpt-4.1-mini" | "gpt-4.1-nano" | "gpt-4o" | "gpt-4o-mini" | "gpt-5" | "gpt-5-mini" | "gpt-5.1" | "gpt-5.2" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra" | "gpt-6-luna" | "gpt-6-sol" | "grok-4.7" | "kimi-k3" | "minimax-h3-context-ir" | "minimax-m3" | "minimax-m3.1-flash";
|
|
2198
2207
|
type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
2199
2208
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|
|
2200
2209
|
type JsonModelId = "typesafe-evaluate";
|
|
@@ -3724,6 +3733,8 @@ declare const Models: {
|
|
|
3724
3733
|
readonly MinimaxH3MaxLipSync: "minimax-h3-max-lip-sync";
|
|
3725
3734
|
readonly MinimaxH3MaxRelight: "minimax-h3-max-relight";
|
|
3726
3735
|
readonly MinimaxH3MaxTurbo: "minimax-h3-max-turbo";
|
|
3736
|
+
readonly MinimaxM3: "minimax-m3";
|
|
3737
|
+
readonly MinimaxM31Flash: "minimax-m3.1-flash";
|
|
3727
3738
|
readonly MinimaxMusicV2: "minimax-music-v2";
|
|
3728
3739
|
readonly MinimaxMusicV3: "minimax-music-v3";
|
|
3729
3740
|
readonly MireloSfx20TextToAudio: "mirelo-sfx-2.0-text-to-audio";
|
package/index.js
CHANGED
|
@@ -11119,7 +11119,41 @@ var h3ContextIrConstraints = [
|
|
|
11119
11119
|
{ when: { videoUrls: { exists: true } }, then: H3_REFERENCE_EXCLUDES_FRAMES },
|
|
11120
11120
|
{ when: { audioUrls: { exists: true } }, then: H3_REFERENCE_EXCLUDES_FRAMES }
|
|
11121
11121
|
];
|
|
11122
|
+
var minimaxFlashThinkingParam = () => p.enum("thinking", ["low", "medium", "high"], "high", { label: "Thinking" });
|
|
11122
11123
|
var { MODELS: MINIMAX_LLM } = defineModels("minimax", [
|
|
11124
|
+
{
|
|
11125
|
+
id: "minimax-m3",
|
|
11126
|
+
name: "MiniMax M3",
|
|
11127
|
+
workflow: "chat-completions",
|
|
11128
|
+
addedAt: "2026-10-26",
|
|
11129
|
+
estimatedTime: 10,
|
|
11130
|
+
mode: "text",
|
|
11131
|
+
inputType: "i2t",
|
|
11132
|
+
badge: ["new"],
|
|
11133
|
+
description: "MiniMax\u2019s flagship model \u2014 adaptive reasoning with a 1M-token context.",
|
|
11134
|
+
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
11135
|
+
paramConfig: {
|
|
11136
|
+
...params.prompt(),
|
|
11137
|
+
...params.imageInput(8, "Images")
|
|
11138
|
+
}
|
|
11139
|
+
},
|
|
11140
|
+
{
|
|
11141
|
+
id: "minimax-m3.1-flash",
|
|
11142
|
+
name: "MiniMax M3.1 Flash",
|
|
11143
|
+
workflow: "chat-completions",
|
|
11144
|
+
addedAt: "2026-10-26",
|
|
11145
|
+
estimatedTime: 8,
|
|
11146
|
+
mode: "text",
|
|
11147
|
+
inputType: "i2t",
|
|
11148
|
+
badge: ["new"],
|
|
11149
|
+
description: "Fast, low-cost MiniMax model \u2014 always-on reasoning with a 1M-token context.",
|
|
11150
|
+
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
11151
|
+
paramConfig: {
|
|
11152
|
+
...params.prompt(),
|
|
11153
|
+
...params.imageInput(8, "Images"),
|
|
11154
|
+
...minimaxFlashThinkingParam()
|
|
11155
|
+
}
|
|
11156
|
+
},
|
|
11123
11157
|
{
|
|
11124
11158
|
id: "minimax-h3-context-ir",
|
|
11125
11159
|
name: "MiniMax H3 Context IR",
|
|
@@ -11252,7 +11286,9 @@ registerPayloads(MODELS34, {
|
|
|
11252
11286
|
"gemini-3.5-flash-lite": buildOpenAiPayload("gemini-3.5-flash-lite"),
|
|
11253
11287
|
"gemini-2.5-flash": buildOpenAiPayload("gemini-2.5-flash"),
|
|
11254
11288
|
"kimi-k3": buildOpenAiPayload("kimi-k3"),
|
|
11255
|
-
"grok-4.7": buildOpenAiPayload("grok-4.7")
|
|
11289
|
+
"grok-4.7": buildOpenAiPayload("grok-4.7"),
|
|
11290
|
+
"minimax-m3": buildOpenAiPayload("minimax-m3"),
|
|
11291
|
+
"minimax-m3.1-flash": buildOpenAiPayload("minimax-m3.1-flash")
|
|
11256
11292
|
});
|
|
11257
11293
|
|
|
11258
11294
|
// src/vendors/catalog/captionsai.ts
|
|
@@ -15490,6 +15526,8 @@ var MinimaxH3MaxExtend = "minimax-h3-max-extend";
|
|
|
15490
15526
|
var MinimaxH3MaxLipSync = "minimax-h3-max-lip-sync";
|
|
15491
15527
|
var MinimaxH3MaxRelight = "minimax-h3-max-relight";
|
|
15492
15528
|
var MinimaxH3MaxTurbo = "minimax-h3-max-turbo";
|
|
15529
|
+
var MinimaxM3 = "minimax-m3";
|
|
15530
|
+
var MinimaxM31Flash = "minimax-m3.1-flash";
|
|
15493
15531
|
var MinimaxMusicV2 = "minimax-music-v2";
|
|
15494
15532
|
var MinimaxMusicV3 = "minimax-music-v3";
|
|
15495
15533
|
var MireloSfx20TextToAudio = "mirelo-sfx-2.0-text-to-audio";
|
|
@@ -15760,6 +15798,8 @@ var Models = {
|
|
|
15760
15798
|
MinimaxH3MaxLipSync,
|
|
15761
15799
|
MinimaxH3MaxRelight,
|
|
15762
15800
|
MinimaxH3MaxTurbo,
|
|
15801
|
+
MinimaxM3,
|
|
15802
|
+
MinimaxM31Flash,
|
|
15763
15803
|
MinimaxMusicV2,
|
|
15764
15804
|
MinimaxMusicV3,
|
|
15765
15805
|
MireloSfx20TextToAudio,
|