@picsart/ai-sdk 7.40.0 → 7.42.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.
|
@@ -71,6 +71,7 @@ export type ModelInputById = {
|
|
|
71
71
|
"gemini-3.8-flash-tts": { language?: string; accent?: string; prompt?: string; voiceId?: string; style?: string; parts?: Array<{ text: string; speaker?: string; style?: string }>; multiSpeakerVoiceConfigs?: Array<{ speaker: string; voiceName: string }>; };
|
|
72
72
|
"gemini-4-argon": { prompt: string; imageUrls?: string[]; videoUrl?: string; thinking?: "off" | "low" | "high"; };
|
|
73
73
|
"gemini-4-carbon": { prompt: string; imageUrls?: string[]; videoUrl?: string; thinking?: "off" | "low" | "medium" | "high"; };
|
|
74
|
+
"gemini-4-neon": { prompt: string; imageUrls?: string[]; videoUrl?: string; thinking?: "off" | "low" | "medium" | "high"; };
|
|
74
75
|
"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[]; };
|
|
75
76
|
"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[]; };
|
|
76
77
|
"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"; };
|
|
@@ -246,6 +247,7 @@ export type ModelInputById = {
|
|
|
246
247
|
"runway-gen4.5": { prompt: string; duration?: 5 | 8 | 10; aspectRatio?: "16:9" | "9:16"; imageUrls?: string[]; };
|
|
247
248
|
"sam-3-video": { prompt: string; videoUrl: string; detectionThreshold?: number; applyMask?: boolean; outputFormat?: "mp4" | "webm"; };
|
|
248
249
|
"seed-audio-1.0": { prompt: string; voiceId?: string; audioUrls?: string[]; imageUrls?: string[]; format?: "wav" | "mp3" | "pcm" | "ogg_opus"; sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000; speechRate?: number; loudnessRate?: number; pitchRate?: number; aigcWatermark?: boolean; };
|
|
250
|
+
"seed-tts-3.0": { prompt: string; voiceId?: string; instructions?: string; format?: "mp3" | "wav" | "pcm" | "ogg_opus"; sampleRate?: 8000 | 16000 | 22050 | 24000 | 32000 | 44100 | 48000; speed?: number; volume?: number; pitch?: number; };
|
|
249
251
|
"seed-audio-1.0-multilingual": { prompt: string; voiceId?: string; audioUrls?: string[]; imageUrls?: string[]; format?: "wav" | "mp3" | "pcm" | "ogg_opus"; sampleRate?: 8000 | 16000 | 24000 | 32000 | 44100 | 48000; speechRate?: number; loudnessRate?: number; pitchRate?: number; aigcWatermark?: boolean; };
|
|
250
252
|
"seedance-1.5-pro": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive"; resolution?: "480p" | "720p"; duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12; generateAudio?: boolean; startFrame?: string; endFrame?: string; };
|
|
251
253
|
"seedance-2.0": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive"; resolution?: "480p" | "720p" | "1080p" | "4k"; duration?: -1 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15; generateAudio?: boolean; returnLastFrame?: boolean; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; startFrame?: string; endFrame?: string; };
|
|
@@ -291,7 +293,7 @@ export type TypedModelId = keyof ModelInputById;
|
|
|
291
293
|
export type ModelInput<M extends TypedModelId> = ModelInputById[M];
|
|
292
294
|
|
|
293
295
|
/** IDs of text-generation (LLM) models — narrows generateText(). */
|
|
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";
|
|
296
|
+
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" | "gemini-4-neon" | "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";
|
|
295
297
|
export type TextModelInputById = Pick<ModelInputById, TextModelId>;
|
|
296
298
|
|
|
297
299
|
/** IDs of structured-output (json-mode) models — narrows run()'s result type. */
|