@picsart/ai-sdk 5.28.4 → 5.28.6
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 -0
- 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
|
@@ -4855,6 +4855,7 @@ var { MODELS: MODELS16 } = defineModels("reve", [
|
|
|
4855
4855
|
workflow: "reve/text-to-image",
|
|
4856
4856
|
editWorkflow: "reve/edit",
|
|
4857
4857
|
buildPayload: buildRevePayload,
|
|
4858
|
+
release: "preview",
|
|
4858
4859
|
estimatedTime: 20,
|
|
4859
4860
|
mode: "image",
|
|
4860
4861
|
inputType: "t2i",
|
|
@@ -8680,6 +8681,45 @@ registerPayloads(MODELS35, { "async-flash-v1": buildAsyncTtsPayload });
|
|
|
8680
8681
|
var ADDED = "2026-06-16";
|
|
8681
8682
|
var thinkingParam = (levels) => p.enum("thinking", ["off", ...levels], "off", { label: "Thinking" });
|
|
8682
8683
|
var { MODELS: ANTHROPIC } = defineModels("anthropic", [
|
|
8684
|
+
{
|
|
8685
|
+
id: "claude-fable-5-1",
|
|
8686
|
+
name: "Claude Fable 5.1",
|
|
8687
|
+
workflow: "claude/v1/messages",
|
|
8688
|
+
addedAt: "2026-09-07",
|
|
8689
|
+
estimatedTime: 12,
|
|
8690
|
+
mode: "text",
|
|
8691
|
+
inputType: "i2t",
|
|
8692
|
+
badge: ["new"],
|
|
8693
|
+
description: "Anthropic\u2019s newest flagship \u2014 frontier reasoning above the Opus tier.",
|
|
8694
|
+
features: [feat("Vision", "input")],
|
|
8695
|
+
paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
|
|
8696
|
+
},
|
|
8697
|
+
{
|
|
8698
|
+
id: "claude-fable-5",
|
|
8699
|
+
name: "Claude Fable 5",
|
|
8700
|
+
workflow: "claude/v1/messages",
|
|
8701
|
+
addedAt: "2026-09-07",
|
|
8702
|
+
estimatedTime: 12,
|
|
8703
|
+
mode: "text",
|
|
8704
|
+
inputType: "i2t",
|
|
8705
|
+
badge: ["new"],
|
|
8706
|
+
description: "Anthropic\u2019s Fable-tier model for the most demanding reasoning and agentic tasks.",
|
|
8707
|
+
features: [feat("Vision", "input")],
|
|
8708
|
+
paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
|
|
8709
|
+
},
|
|
8710
|
+
{
|
|
8711
|
+
id: "claude-opus-5",
|
|
8712
|
+
name: "Claude Opus 5",
|
|
8713
|
+
workflow: "claude/v1/messages",
|
|
8714
|
+
addedAt: "2026-09-07",
|
|
8715
|
+
estimatedTime: 10,
|
|
8716
|
+
mode: "text",
|
|
8717
|
+
inputType: "i2t",
|
|
8718
|
+
badge: ["new"],
|
|
8719
|
+
description: "Next-generation Opus model for complex reasoning and long-form analysis.",
|
|
8720
|
+
features: [feat("Vision", "input")],
|
|
8721
|
+
paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
|
|
8722
|
+
},
|
|
8683
8723
|
{
|
|
8684
8724
|
id: "claude-opus-4-8",
|
|
8685
8725
|
name: "Claude Opus 4.8",
|
|
@@ -8950,6 +8990,9 @@ var buildGeminiPayload = (modelId) => (input) => {
|
|
|
8950
8990
|
};
|
|
8951
8991
|
};
|
|
8952
8992
|
registerPayloads(MODELS36, {
|
|
8993
|
+
"claude-fable-5-1": buildClaudePayload("claude-fable-5-1"),
|
|
8994
|
+
"claude-fable-5": buildClaudePayload("claude-fable-5"),
|
|
8995
|
+
"claude-opus-5": buildClaudePayload("claude-opus-5"),
|
|
8953
8996
|
"claude-opus-4-8": buildClaudePayload("claude-opus-4-8"),
|
|
8954
8997
|
"claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
|
|
8955
8998
|
"claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
|
|
@@ -11275,8 +11318,11 @@ var BytedanceOmnihumanV15 = "bytedance-omnihuman-v1.5";
|
|
|
11275
11318
|
var BytedanceVideoEnhance = "bytedance-video-enhance";
|
|
11276
11319
|
var BytedanceVideoUpscaler = "bytedance-video-upscaler";
|
|
11277
11320
|
var CaptionsaiVideoCaptions = "captionsai-video-captions";
|
|
11321
|
+
var ClaudeFable5 = "claude-fable-5";
|
|
11322
|
+
var ClaudeFable51 = "claude-fable-5-1";
|
|
11278
11323
|
var ClaudeHaiku45 = "claude-haiku-4-5";
|
|
11279
11324
|
var ClaudeOpus48 = "claude-opus-4-8";
|
|
11325
|
+
var ClaudeOpus5 = "claude-opus-5";
|
|
11280
11326
|
var ClaudeSonnet46 = "claude-sonnet-4-6";
|
|
11281
11327
|
var CreatifyAurora = "creatify-aurora";
|
|
11282
11328
|
var ElevenAudioIsolation = "eleven-audio-isolation";
|
|
@@ -11495,8 +11541,11 @@ var Models = {
|
|
|
11495
11541
|
BytedanceVideoEnhance,
|
|
11496
11542
|
BytedanceVideoUpscaler,
|
|
11497
11543
|
CaptionsaiVideoCaptions,
|
|
11544
|
+
ClaudeFable5,
|
|
11545
|
+
ClaudeFable51,
|
|
11498
11546
|
ClaudeHaiku45,
|
|
11499
11547
|
ClaudeOpus48,
|
|
11548
|
+
ClaudeOpus5,
|
|
11500
11549
|
ClaudeSonnet46,
|
|
11501
11550
|
CreatifyAurora,
|
|
11502
11551
|
ElevenAudioIsolation,
|