@picsart/ai-sdk 7.0.1 → 7.1.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.
|
@@ -87,6 +87,8 @@ export type ModelInputById = {
|
|
|
87
87
|
"gpt-6-astra": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
88
88
|
"gpt-6-luna": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
89
89
|
"gpt-6-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
90
|
+
"gpt-6.1-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
91
|
+
"gpt-6.1-terra": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
90
92
|
"gpt-image-1": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4"; quality?: "high" | "medium" | "low"; background?: "opaque" | "transparent"; outputFormat?: "png" | "jpeg" | "webp"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; };
|
|
91
93
|
"gpt-image-1.5": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4"; quality?: "high" | "medium" | "low"; background?: "opaque" | "transparent"; outputFormat?: "png" | "jpeg" | "webp"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; };
|
|
92
94
|
"gpt-image-2": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto"; quality?: "high" | "medium" | "low"; outputFormat?: "png" | "jpeg" | "webp"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; };
|
|
@@ -125,6 +127,8 @@ export type ModelInputById = {
|
|
|
125
127
|
"ideogram-vector-1": { prompt: string; imageUrls?: string[]; aspectRatio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "16:10" | "10:16" | "2:1" | "1:2" | "3:1" | "1:3" | "4:1" | "1:4"; quality?: "low" | "medium" | "high"; count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; seed?: number; };
|
|
126
128
|
"ideogram-vector-1-vectorize": { startFrame: string; mode?: "default" | "simple"; };
|
|
127
129
|
"kimi-k3": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
|
|
130
|
+
"kimi-k3.1-pro": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
|
|
131
|
+
"kimi-k3.1-pro-highspeed": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
|
|
128
132
|
"kling-3.0-image": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:2" | "2:3" | "3:4"; resolution?: "1k" | "2k" | "4k"; count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; imageUrls?: string[]; };
|
|
129
133
|
"kling-avatar": { prompt?: string; renderingSpeed?: "std" | "pro"; imageUrls: [string, ...string[]]; audioUrl: string; audioId?: string; };
|
|
130
134
|
"kling-elements": { elementName: string; elementDescription: string; referenceType: "image_refer" | "video_refer"; imageUrls?: string[]; videoUrl?: string; elementVoiceId?: string; };
|
|
@@ -282,7 +286,7 @@ export type TypedModelId = keyof ModelInputById;
|
|
|
282
286
|
export type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
283
287
|
|
|
284
288
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
285
|
-
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" | "grok-4.7" | "kimi-k3" | "minimax-h3-context-ir" | "minimax-m3" | "minimax-m3.1-flash";
|
|
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";
|
|
286
290
|
export type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
287
291
|
|
|
288
292
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|