@picsart/ai-sdk 7.39.0 → 7.41.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"; };
@@ -148,8 +149,8 @@ export type ModelInputById = {
148
149
  "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"; };
149
150
  "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 }>; };
150
151
  "kling-v3-turbo": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1"; duration?: number; negativePrompt?: string; 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; };
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
+ "kling-v4": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; resolution?: "720p" | "1080p" | "4k"; hdr?: boolean; startFrame?: string; middleFrames?: string[]; endFrame?: string; };
153
+ "kling-v4-omni": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4" | "adaptive"; duration?: number; resolution?: "720p" | "1080p" | "4k"; hdr?: boolean; startFrame?: string; middleFrames?: string[]; endFrame?: string; imageUrls?: string[]; videoUrl?: string; referType?: "feature" | "base"; elementList?: Array<{ element_id: string }>; };
153
154
  "kling-v4-flash": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:4"; duration?: number; startFrame?: string; };
154
155
  "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 }>; };
155
156
  "kling-video-effects": { templateId?: string; imageUrls: [string, ...string[]]; };
@@ -291,7 +292,7 @@ export type TypedModelId = keyof ModelInputById;
291
292
  export type ModelInput<M extends TypedModelId> = ModelInputById[M];
292
293
 
293
294
  /** 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";
295
+ 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
296
  export type TextModelInputById = Pick<ModelInputById, TextModelId>;
296
297
 
297
298
  /** 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.39.0",
3
+ "version": "7.41.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",