@picsart/ai-sdk 7.3.0 → 7.4.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.
|
@@ -18,6 +18,7 @@ export type ModelInputById = {
|
|
|
18
18
|
"claude-haiku-5-5": { prompt: string; imageUrls?: string[]; };
|
|
19
19
|
"claude-opus-4-8": { prompt: string; imageUrls?: string[]; };
|
|
20
20
|
"claude-opus-5": { prompt: string; imageUrls?: string[]; };
|
|
21
|
+
"claude-opus-5-5": { prompt: string; imageUrls?: string[]; };
|
|
21
22
|
"claude-sonnet-4-5": { prompt: string; imageUrls?: string[]; };
|
|
22
23
|
"claude-sonnet-4-6": { prompt: string; imageUrls?: string[]; };
|
|
23
24
|
"claude-sonnet-5": { prompt: string; imageUrls?: string[]; };
|
|
@@ -278,15 +279,15 @@ export type ModelInputById = {
|
|
|
278
279
|
"wan-2.7-r2v": { prompt: string; duration?: 5 | 10; resolution?: "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4"; negativePrompt?: string; imageUrls: [string, ...string[]]; videoUrl: string; seed?: number; };
|
|
279
280
|
"wan-2.7-t2v": { prompt: string; duration?: 5 | 10 | 15; resolution?: "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4"; negativePrompt?: string; enhancePrompt?: boolean; audioUrl?: string; startFrame?: string; seed?: number; };
|
|
280
281
|
"wan-2.7-video-edit": { prompt?: string; resolution?: "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4"; negativePrompt?: string; videoUrl: string; imageUrls?: string[]; audioSetting?: "auto" | "origin"; duration?: number; seed?: number; };
|
|
281
|
-
"wan-3.0-video": { prompt?: string; duration?: -1 | 5 | 10 | 15 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
|
|
282
|
-
"wan-3.0-video-prime": { prompt?: string; duration?: -1 | 5 | 10 | 15 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
|
|
282
|
+
"wan-3.0-video": { prompt?: string; duration?: -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
|
|
283
|
+
"wan-3.0-video-prime": { prompt?: string; duration?: -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
|
|
283
284
|
};
|
|
284
285
|
|
|
285
286
|
export type TypedModelId = keyof ModelInputById;
|
|
286
287
|
export type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
287
288
|
|
|
288
289
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
289
|
-
export 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" | "gpt-6.1-sol" | "gpt-6.1-terra" | "grok-4.7" | "kimi-k3" | "kimi-k3.1-pro" | "kimi-k3.1-pro-highspeed" | "minimax-h3-context-ir" | "minimax-m3" | "minimax-m3.1-flash";
|
|
290
|
+
export 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-opus-5-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" | "gpt-6.1-sol" | "gpt-6.1-terra" | "grok-4.7" | "kimi-k3" | "kimi-k3.1-pro" | "kimi-k3.1-pro-highspeed" | "minimax-h3-context-ir" | "minimax-m3" | "minimax-m3.1-flash";
|
|
290
291
|
export type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
291
292
|
|
|
292
293
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|