@picsart/ai-sdk 7.36.0 → 7.38.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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
export type ModelInputById = {
|
|
8
8
|
"async-flash-v1": { prompt: string; voiceId?: string; container?: "mp3" | "wav" | "raw"; sampleRate?: number; encoding?: "pcm_s16le" | "pcm_f32le"; bitRate?: number; };
|
|
9
|
+
"elephant-1": { state: string; imageUrls?: string[]; questions: Record<string, { type: "noul" | "choice" | "score"; instructions: unknown } & Record<string, unknown>>; };
|
|
9
10
|
"gpt-6-luna-decisions": { input: string; imageUrls?: string[]; questions: Array<{ type: "predicate" | "choice" | "score"; name?: string; instructions: string; choices?: unknown; levels?: unknown }>; };
|
|
10
11
|
"gpt-image-2.6-sunburst": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto"; resolution?: "1K" | "2K" | "4K"; size?: string; quality?: "max" | "xhigh" | "high" | "medium" | "low"; complexity?: "high" | "medium" | "low"; background?: "opaque" | "transparent" | "auto"; outputFormat?: "png" | "jpeg" | "webp" | "gif" | "svg"; frameCount?: number; frameDurationMs?: number; svgAuthorModel?: "gpt-6.1-sol" | "gpt-6.1-terra" | "gpt-6-astra" | "gpt-6-sol" | "gpt-6-luna"; svgReasoningEffort?: "auto" | "none" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; markupUrl?: string; maskUrl?: string; };
|
|
11
12
|
"bytedance-omnihuman-v1.5": { prompt?: string; imageUrls: [string, ...string[]]; audioUrl: string; resolution?: "720p" | "1080p"; turboMode?: boolean; seed?: number; };
|
|
@@ -92,6 +93,8 @@ export type ModelInputById = {
|
|
|
92
93
|
"gpt-6-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
93
94
|
"gpt-6.1-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
94
95
|
"gpt-6.1-terra": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
96
|
+
"gpt-6.2-astra": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
97
|
+
"gpt-6.2-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
|
|
95
98
|
"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[]; };
|
|
96
99
|
"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[]; };
|
|
97
100
|
"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[]; };
|
|
@@ -168,6 +171,7 @@ export type ModelInputById = {
|
|
|
168
171
|
"lyria-3-clip": { prompt: string; imageUrls?: string[]; };
|
|
169
172
|
"lyria-3-pro": { prompt: string; imageUrls?: string[]; };
|
|
170
173
|
"lyria-3.5": { prompt: string; imageUrls?: string[]; };
|
|
174
|
+
"mammoth-1": { state: string; imageUrls?: string[]; questions: Record<string, { type: "noul" | "choice" | "score"; instructions: unknown } & Record<string, unknown>>; };
|
|
171
175
|
"minimax-h3": { prompt: string; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; resolution?: "768P" | "2K"; duration?: number; aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; };
|
|
172
176
|
"minimax-h3-context-ir": { prompt: string; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; duration?: number; aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; };
|
|
173
177
|
"minimax-h3-highspeed": { prompt: string; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; resolution?: "480P" | "768P"; duration?: number; aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; };
|
|
@@ -287,11 +291,11 @@ export type TypedModelId = keyof ModelInputById;
|
|
|
287
291
|
export type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
288
292
|
|
|
289
293
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
290
|
-
export type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-fable-5-2" | "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.7-flash" | "gemini-3.8-flash" | "gemini-4-argon" | "gemini-4-carbon" | "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";
|
|
294
|
+
export type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-fable-5-2" | "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.7-flash" | "gemini-3.8-flash" | "gemini-4-argon" | "gemini-4-carbon" | "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" | "gpt-6.2-astra" | "gpt-6.2-sol" | "grok-4.7" | "kimi-k3" | "kimi-k3.1-pro" | "kimi-k3.1-pro-highspeed" | "minimax-h3-context-ir" | "minimax-m3" | "minimax-m3.1-flash";
|
|
291
295
|
export type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
292
296
|
|
|
293
297
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|
|
294
|
-
export type JsonModelId = "gemini-decision-1" | "gpt-6-luna-decisions" | "typesafe-evaluate";
|
|
298
|
+
export type JsonModelId = "elephant-1" | "gemini-decision-1" | "gpt-6-luna-decisions" | "mammoth-1" | "typesafe-evaluate";
|
|
295
299
|
|
|
296
300
|
/** Ensure caller does not pass keys unsupported by the target model input shape. */
|
|
297
301
|
export type NoExtraKeys<Shape, T extends Shape> = T & Record<Exclude<keyof T, keyof Shape>, never>;
|