@picsart/ai-sdk 5.28.3 → 5.28.5
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 +295 -295
- package/index.d.ts +16 -1
- package/index.js +49 -1
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -120,6 +120,14 @@ type ModelInputById = {
|
|
|
120
120
|
videoUrl: string;
|
|
121
121
|
templateId?: string;
|
|
122
122
|
};
|
|
123
|
+
"claude-fable-5": {
|
|
124
|
+
prompt: string;
|
|
125
|
+
imageUrls?: string[];
|
|
126
|
+
};
|
|
127
|
+
"claude-fable-5-1": {
|
|
128
|
+
prompt: string;
|
|
129
|
+
imageUrls?: string[];
|
|
130
|
+
};
|
|
123
131
|
"claude-haiku-4-5": {
|
|
124
132
|
prompt: string;
|
|
125
133
|
imageUrls?: string[];
|
|
@@ -128,6 +136,10 @@ type ModelInputById = {
|
|
|
128
136
|
prompt: string;
|
|
129
137
|
imageUrls?: string[];
|
|
130
138
|
};
|
|
139
|
+
"claude-opus-5": {
|
|
140
|
+
prompt: string;
|
|
141
|
+
imageUrls?: string[];
|
|
142
|
+
};
|
|
131
143
|
"claude-sonnet-4-6": {
|
|
132
144
|
prompt: string;
|
|
133
145
|
imageUrls?: string[];
|
|
@@ -1649,7 +1661,7 @@ type ModelInputById = {
|
|
|
1649
1661
|
type TypedModelId = keyof ModelInputById;
|
|
1650
1662
|
type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
1651
1663
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
1652
|
-
type TextModelId = "claude-haiku-4-5" | "claude-opus-4-8" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra";
|
|
1664
|
+
type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra";
|
|
1653
1665
|
type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
1654
1666
|
|
|
1655
1667
|
/**
|
|
@@ -2611,8 +2623,11 @@ declare const Models: {
|
|
|
2611
2623
|
readonly BytedanceVideoEnhance: "bytedance-video-enhance";
|
|
2612
2624
|
readonly BytedanceVideoUpscaler: "bytedance-video-upscaler";
|
|
2613
2625
|
readonly CaptionsaiVideoCaptions: "captionsai-video-captions";
|
|
2626
|
+
readonly ClaudeFable5: "claude-fable-5";
|
|
2627
|
+
readonly ClaudeFable51: "claude-fable-5-1";
|
|
2614
2628
|
readonly ClaudeHaiku45: "claude-haiku-4-5";
|
|
2615
2629
|
readonly ClaudeOpus48: "claude-opus-4-8";
|
|
2630
|
+
readonly ClaudeOpus5: "claude-opus-5";
|
|
2616
2631
|
readonly ClaudeSonnet46: "claude-sonnet-4-6";
|
|
2617
2632
|
readonly CreatifyAurora: "creatify-aurora";
|
|
2618
2633
|
readonly ElevenAudioIsolation: "eleven-audio-isolation";
|
package/index.js
CHANGED
|
@@ -8680,6 +8680,45 @@ registerPayloads(MODELS35, { "async-flash-v1": buildAsyncTtsPayload });
|
|
|
8680
8680
|
var ADDED = "2026-06-16";
|
|
8681
8681
|
var thinkingParam = (levels) => p.enum("thinking", ["off", ...levels], "off", { label: "Thinking" });
|
|
8682
8682
|
var { MODELS: ANTHROPIC } = defineModels("anthropic", [
|
|
8683
|
+
{
|
|
8684
|
+
id: "claude-fable-5-1",
|
|
8685
|
+
name: "Claude Fable 5.1",
|
|
8686
|
+
workflow: "claude/v1/messages",
|
|
8687
|
+
addedAt: "2026-09-07",
|
|
8688
|
+
estimatedTime: 12,
|
|
8689
|
+
mode: "text",
|
|
8690
|
+
inputType: "i2t",
|
|
8691
|
+
badge: ["new"],
|
|
8692
|
+
description: "Anthropic\u2019s newest flagship \u2014 frontier reasoning above the Opus tier.",
|
|
8693
|
+
features: [feat("Vision", "input")],
|
|
8694
|
+
paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
|
|
8695
|
+
},
|
|
8696
|
+
{
|
|
8697
|
+
id: "claude-fable-5",
|
|
8698
|
+
name: "Claude Fable 5",
|
|
8699
|
+
workflow: "claude/v1/messages",
|
|
8700
|
+
addedAt: "2026-09-07",
|
|
8701
|
+
estimatedTime: 12,
|
|
8702
|
+
mode: "text",
|
|
8703
|
+
inputType: "i2t",
|
|
8704
|
+
badge: ["new"],
|
|
8705
|
+
description: "Anthropic\u2019s Fable-tier model for the most demanding reasoning and agentic tasks.",
|
|
8706
|
+
features: [feat("Vision", "input")],
|
|
8707
|
+
paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
|
|
8708
|
+
},
|
|
8709
|
+
{
|
|
8710
|
+
id: "claude-opus-5",
|
|
8711
|
+
name: "Claude Opus 5",
|
|
8712
|
+
workflow: "claude/v1/messages",
|
|
8713
|
+
addedAt: "2026-09-07",
|
|
8714
|
+
estimatedTime: 10,
|
|
8715
|
+
mode: "text",
|
|
8716
|
+
inputType: "i2t",
|
|
8717
|
+
badge: ["new"],
|
|
8718
|
+
description: "Next-generation Opus model for complex reasoning and long-form analysis.",
|
|
8719
|
+
features: [feat("Vision", "input")],
|
|
8720
|
+
paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
|
|
8721
|
+
},
|
|
8683
8722
|
{
|
|
8684
8723
|
id: "claude-opus-4-8",
|
|
8685
8724
|
name: "Claude Opus 4.8",
|
|
@@ -8732,7 +8771,7 @@ var { MODELS: OPENAI_LLM } = defineModels("openai", [
|
|
|
8732
8771
|
estimatedTime: 10,
|
|
8733
8772
|
mode: "text",
|
|
8734
8773
|
inputType: "i2t",
|
|
8735
|
-
|
|
8774
|
+
badge: ["new"],
|
|
8736
8775
|
description: "OpenAI\u2019s next-generation flagship model for advanced reasoning and multimodal tasks.",
|
|
8737
8776
|
features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
|
|
8738
8777
|
paramConfig: {
|
|
@@ -8950,6 +8989,9 @@ var buildGeminiPayload = (modelId) => (input) => {
|
|
|
8950
8989
|
};
|
|
8951
8990
|
};
|
|
8952
8991
|
registerPayloads(MODELS36, {
|
|
8992
|
+
"claude-fable-5-1": buildClaudePayload("claude-fable-5-1"),
|
|
8993
|
+
"claude-fable-5": buildClaudePayload("claude-fable-5"),
|
|
8994
|
+
"claude-opus-5": buildClaudePayload("claude-opus-5"),
|
|
8953
8995
|
"claude-opus-4-8": buildClaudePayload("claude-opus-4-8"),
|
|
8954
8996
|
"claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
|
|
8955
8997
|
"claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
|
|
@@ -11275,8 +11317,11 @@ var BytedanceOmnihumanV15 = "bytedance-omnihuman-v1.5";
|
|
|
11275
11317
|
var BytedanceVideoEnhance = "bytedance-video-enhance";
|
|
11276
11318
|
var BytedanceVideoUpscaler = "bytedance-video-upscaler";
|
|
11277
11319
|
var CaptionsaiVideoCaptions = "captionsai-video-captions";
|
|
11320
|
+
var ClaudeFable5 = "claude-fable-5";
|
|
11321
|
+
var ClaudeFable51 = "claude-fable-5-1";
|
|
11278
11322
|
var ClaudeHaiku45 = "claude-haiku-4-5";
|
|
11279
11323
|
var ClaudeOpus48 = "claude-opus-4-8";
|
|
11324
|
+
var ClaudeOpus5 = "claude-opus-5";
|
|
11280
11325
|
var ClaudeSonnet46 = "claude-sonnet-4-6";
|
|
11281
11326
|
var CreatifyAurora = "creatify-aurora";
|
|
11282
11327
|
var ElevenAudioIsolation = "eleven-audio-isolation";
|
|
@@ -11495,8 +11540,11 @@ var Models = {
|
|
|
11495
11540
|
BytedanceVideoEnhance,
|
|
11496
11541
|
BytedanceVideoUpscaler,
|
|
11497
11542
|
CaptionsaiVideoCaptions,
|
|
11543
|
+
ClaudeFable5,
|
|
11544
|
+
ClaudeFable51,
|
|
11498
11545
|
ClaudeHaiku45,
|
|
11499
11546
|
ClaudeOpus48,
|
|
11547
|
+
ClaudeOpus5,
|
|
11500
11548
|
ClaudeSonnet46,
|
|
11501
11549
|
CreatifyAurora,
|
|
11502
11550
|
ElevenAudioIsolation,
|