@picsart/ai-sdk 7.28.0 → 7.29.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
|
+
"gpt-6-luna-decisions": { input: string; imageUrls?: string[]; questions: Array<{ type: "predicate" | "choice" | "score"; name?: string; instructions: string; choices?: unknown; levels?: unknown }>; };
|
|
9
10
|
"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; };
|
|
10
11
|
"bytedance-omnihuman-v1.5": { prompt?: string; imageUrls: [string, ...string[]]; audioUrl: string; resolution?: "720p" | "1080p"; turboMode?: boolean; seed?: number; };
|
|
11
12
|
"bytedance-omnihuman-v2.0": { prompt?: string; imageUrls: [string, ...string[]]; audioUrl: string; enableWatermark?: boolean; };
|
|
@@ -73,6 +74,7 @@ export type ModelInputById = {
|
|
|
73
74
|
"gemini-nano-banana-2.1": { prompt: string; aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto"; resolution?: "1K" | "2K" | "4K"; count?: 1 | 2 | 4 | 6 | 8 | 10; seed?: number; thinkingLevel?: "minimal" | "medium" | "high"; imageUrls?: string[]; };
|
|
74
75
|
"gemini-omni-1.1-flash-preview": { prompt: string; aspectRatio?: "16:9" | "9:16"; resolution?: "360p" | "720p" | "1080p" | "4k"; duration?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrl?: string; videoUrls?: string[]; };
|
|
75
76
|
"gemini-omni-1.2-flash": { prompt: string; aspectRatio?: "16:9" | "9:16"; resolution?: "360p" | "720p" | "1080p" | "4k"; duration?: 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrl?: string; videoUrls?: string[]; task?: "edit" | "extend"; };
|
|
77
|
+
"gemini-decision-1": { input: string; imageUrls?: string[]; questions: Record<string, { type: "noul" | "choice" | "score"; instructions: string; criteria?: unknown }>; };
|
|
76
78
|
"gemini-omni-flash-preview": { prompt: string; aspectRatio?: "16:9" | "9:16"; duration?: 3 | 5 | 6 | 8 | 10; imageUrls?: string[]; videoUrl?: string; };
|
|
77
79
|
"gpt-4.1-mini": { prompt: string; imageUrls?: string[]; };
|
|
78
80
|
"gpt-4.1-nano": { prompt: string; imageUrls?: string[]; };
|
|
@@ -288,7 +290,7 @@ export type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-fable-
|
|
|
288
290
|
export type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
289
291
|
|
|
290
292
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|
|
291
|
-
export type JsonModelId = "typesafe-evaluate";
|
|
293
|
+
export type JsonModelId = "gemini-decision-1" | "gpt-6-luna-decisions" | "typesafe-evaluate";
|
|
292
294
|
|
|
293
295
|
/** Ensure caller does not pass keys unsupported by the target model input shape. */
|
|
294
296
|
export type NoExtraKeys<Shape, T extends Shape> = T & Record<Exclude<keyof T, keyof Shape>, never>;
|