@picsart/ai-sdk 7.31.0 → 7.33.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.
@@ -64,7 +64,6 @@ export type ModelInputById = {
64
64
  "gemini-3.1-flash-image": { prompt: string; aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9" | "auto"; resolution?: "0.5K" | "1K" | "2K" | "4K"; count?: 1 | 2 | 4 | 6 | 8 | 10; seed?: number; thinkingLevel?: "minimal" | "high"; imageUrls?: string[]; };
65
65
  "gemini-3.1-flash-lite-image": { prompt: string; aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "3:2" | "2:3" | "4:5" | "5:4" | "4:1" | "1:4" | "8:1" | "1:8" | "21:9" | "auto"; count?: 1 | 2 | 4 | 6 | 8 | 10; seed?: number; thinkingLevel?: "minimal" | "high"; imageUrls?: string[]; };
66
66
  "gemini-3.5-flash-lite": { prompt: string; imageUrls?: string[]; };
67
- "gemini-3.6-flash": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
68
67
  "gemini-3.7-flash": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
69
68
  "gemini-3.8-flash": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
70
69
  "gemini-3.8-flash-lite-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 }>; };
@@ -145,10 +144,10 @@ export type ModelInputById = {
145
144
  "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"; };
146
145
  "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 }>; };
147
146
  "kling-v3-turbo": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1"; duration?: number; negativePrompt?: string; resolution?: "720p" | "1080p"; startFrame?: string; };
148
- "kling-v4": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9"; duration?: number; resolution?: "720p" | "1080p"; startFrame?: string; imageUrls?: string[]; endFrame?: string; };
149
- "kling-v4-omni": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "adaptive"; duration?: number; resolution?: "720p" | "1080p"; startFrame?: string; middleFrames?: string[]; endFrame?: string; imageUrls?: string[]; videoUrl?: string; referType?: "feature" | "base"; elementList?: Array<{ element_id: string }>; };
150
- "kling-v4-flash": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9"; duration?: number; startFrame?: string; };
151
- "kling-v4-flash-omni": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "adaptive"; duration?: number; startFrame?: string; imageUrls?: string[]; videoUrl?: string; referType?: "feature" | "base"; elementList?: Array<{ element_id: string }>; };
147
+ "kling-v4": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; resolution?: "720p" | "1080p"; startFrame?: string; imageUrls?: string[]; endFrame?: string; };
148
+ "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 }>; };
149
+ "kling-v4-flash": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; startFrame?: string; };
150
+ "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 }>; };
152
151
  "kling-video-effects": { templateId?: string; imageUrls: [string, ...string[]]; };
153
152
  "kling-video-o1": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1"; duration?: 5 | 10; renderingSpeed?: "std" | "pro"; generateAudio?: boolean; };
154
153
  "ltx-2.3-a2v": { prompt?: string; audioUrl: string; imageUrls?: string[]; aspectRatio?: "auto" | "16:9" | "9:16"; cfgScale?: number; };
@@ -287,7 +286,7 @@ export type TypedModelId = keyof ModelInputById;
287
286
  export type ModelInput<M extends TypedModelId> = ModelInputById[M];
288
287
 
289
288
  /** 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.6-flash" | "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";
289
+ 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";
291
290
  export type TextModelInputById = Pick<ModelInputById, TextModelId>;
292
291
 
293
292
  /** IDs of structured-output (json-mode) models — narrows run()'s result type. */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "7.31.0",
3
+ "version": "7.33.0",
4
4
  "type": "module",
5
5
  "description": "Type-safe SDK for 100+ AI models — image, video, audio, and text generation with Picsart",
6
6
  "license": "MIT",