@picsart/ai-sdk 7.37.0 → 7.39.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; };
|
|
@@ -147,7 +148,7 @@ export type ModelInputById = {
|
|
|
147
148
|
"kling-v3": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1"; duration?: number; startFrame?: string; endFrame?: string; negativePrompt?: string; generateAudio?: boolean; multiShot?: boolean; shotType?: "customize" | "intelligence"; multiPrompt?: Array<{ index: number; prompt: string; duration: string }>; voiceList?: Array<{ voice_id: string }>; elementList?: Array<{ element_id: string }>; renderingSpeed?: "std" | "pro" | "4k"; };
|
|
148
149
|
"kling-v3-omni": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1"; duration?: number; resolution?: "720p" | "1080p" | "4k"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrl?: string; referType?: "feature" | "base"; keepOriginalSound?: "yes" | "no"; multiShot?: boolean; shotType?: "customize"; multiPrompt?: Array<{ index: number; prompt: string; duration: string }>; elementList?: Array<{ element_id: string }>; };
|
|
149
150
|
"kling-v3-turbo": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1"; duration?: number; negativePrompt?: string; resolution?: "720p" | "1080p"; startFrame?: string; };
|
|
150
|
-
"kling-v4": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; resolution?: "720p" | "1080p"; startFrame?: string;
|
|
151
|
+
"kling-v4": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; resolution?: "720p" | "1080p"; startFrame?: string; middleFrames?: string[]; endFrame?: string; };
|
|
151
152
|
"kling-v4-omni": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4" | "adaptive"; duration?: number; resolution?: "720p" | "1080p"; startFrame?: string; middleFrames?: string[]; endFrame?: string; imageUrls?: string[]; videoUrl?: string; referType?: "feature" | "base"; elementList?: Array<{ element_id: string }>; };
|
|
152
153
|
"kling-v4-flash": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; startFrame?: string; };
|
|
153
154
|
"kling-v4-flash-omni": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4" | "adaptive"; duration?: number; startFrame?: string; imageUrls?: string[]; videoUrl?: string; referType?: "feature" | "base"; elementList?: Array<{ element_id: string }>; };
|
|
@@ -170,6 +171,7 @@ export type ModelInputById = {
|
|
|
170
171
|
"lyria-3-clip": { prompt: string; imageUrls?: string[]; };
|
|
171
172
|
"lyria-3-pro": { prompt: string; imageUrls?: string[]; };
|
|
172
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>>; };
|
|
173
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"; };
|
|
174
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"; };
|
|
175
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"; };
|
|
@@ -293,7 +295,7 @@ export type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-fable-
|
|
|
293
295
|
export type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
294
296
|
|
|
295
297
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|
|
296
|
-
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";
|
|
297
299
|
|
|
298
300
|
/** Ensure caller does not pass keys unsupported by the target model input shape. */
|
|
299
301
|
export type NoExtraKeys<Shape, T extends Shape> = T & Record<Exclude<keyof T, keyof Shape>, never>;
|