@picsart/ai-sdk 7.3.0 → 7.5.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.
@@ -18,6 +18,7 @@ export type ModelInputById = {
18
18
  "claude-haiku-5-5": { prompt: string; imageUrls?: string[]; };
19
19
  "claude-opus-4-8": { prompt: string; imageUrls?: string[]; };
20
20
  "claude-opus-5": { prompt: string; imageUrls?: string[]; };
21
+ "claude-opus-5-5": { prompt: string; imageUrls?: string[]; };
21
22
  "claude-sonnet-4-5": { prompt: string; imageUrls?: string[]; };
22
23
  "claude-sonnet-4-6": { prompt: string; imageUrls?: string[]; };
23
24
  "claude-sonnet-5": { prompt: string; imageUrls?: string[]; };
@@ -120,10 +121,10 @@ export type ModelInputById = {
120
121
  "hunyuan-v3": { prompt: string; aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4"; count?: 1 | 2 | 4; negativePrompt?: string; cfgScale?: number; };
121
122
  "ideogram-4-5": { prompt: string; imageUrls?: string[]; mask?: string; aspectRatio?: "auto" | "source" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "8:5" | "5:8" | "2:1" | "1:2" | "3:1" | "1:3"; resolution?: "1K" | "2K"; magicPrompt?: "auto" | "on" | "off"; quality?: "very_low" | "low" | "medium" | "high"; count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; seed?: number; enableCopyrightDetection?: boolean; };
122
123
  "ideogram-4-5-precise-edit": { prompt: string; startFrame: string; mask?: string; contextWindow?: string; imageUrls?: string[]; quality?: "very_low" | "low" | "medium" | "high"; count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; seed?: number; enableCopyrightDetection?: boolean; };
123
- "ideogram-character": { prompt: string; resolution?: "1024x1024" | "1344x768" | "768x1344" | "1152x864" | "864x1152" | "832x1248" | "1280x800"; renderingSpeed?: "TURBO" | "DEFAULT" | "QUALITY"; style?: "AUTO" | "REALISTIC" | "FICTION"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls: [string, ...string[]]; };
124
- "ideogram-p-image": { prompt: string; resolution?: "2048x2048" | "1440x2880" | "2880x1440" | "1664x2496" | "2496x1664" | "1792x2240" | "2240x1792" | "1440x2560" | "2560x1440" | "1600x2560" | "2560x1600" | "1728x2304" | "2304x1728" | "1296x3168" | "3168x1296" | "1152x2944" | "2944x1152" | "1248x3328" | "3328x1248" | "1280x3072" | "3072x1280" | "1024x3072" | "3072x1024" | "1024x1024" | "896x1120" | "1120x896" | "864x1152" | "1152x864" | "832x1248" | "1248x832" | "800x1280" | "1280x800" | "720x1280" | "1280x720" | "720x1440" | "1440x720"; renderingSpeed?: "very-low" | "low" | "medium" | "high"; };
125
- "ideogram-v3": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "3:4" | "4:3"; renderingSpeed?: "FLASH" | "TURBO" | "DEFAULT" | "QUALITY"; style?: "GENERAL" | "REALISTIC" | "DESIGN"; count?: 1 | 2 | 4 | 6 | 8 | 10; negativePrompt?: string; imageUrls?: string[]; imageWeight?: number; };
126
- "ideogram-v4": { prompt: string; resolution?: "2048x2048" | "1440x2880" | "2880x1440" | "1664x2496" | "2496x1664" | "1792x2240" | "2240x1792" | "1440x2560" | "2560x1440" | "1600x2560" | "2560x1600" | "1728x2304" | "2304x1728" | "1296x3168" | "3168x1296" | "1152x2944" | "2944x1152" | "1248x3328" | "3328x1248" | "1280x3072" | "3072x1280" | "1024x3072" | "3072x1024" | "1024x1024" | "896x1120" | "1120x896" | "864x1152" | "1152x864" | "832x1248" | "1248x832" | "800x1280" | "1280x800" | "720x1280" | "1280x720" | "720x1440" | "1440x720" | "512x1536" | "1536x512"; renderingSpeed?: "TURBO" | "DEFAULT" | "QUALITY"; enableCopyrightDetection?: boolean; imageUrls?: string[]; imageWeight?: number; };
124
+ "ideogram-character": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "3:4" | "4:3" | "2:3" | "3:2" | "4:5" | "5:4" | "10:16" | "16:10" | "1:2" | "2:1" | "1:3" | "3:1"; renderingSpeed?: "TURBO" | "DEFAULT" | "QUALITY"; style?: "AUTO" | "REALISTIC" | "FICTION"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls: [string, ...string[]]; };
125
+ "ideogram-p-image": { prompt: string; aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "8:5" | "5:8" | "2:1" | "1:2"; resolution?: "1K" | "2K"; renderingSpeed?: "very-low" | "low" | "medium" | "high"; };
126
+ "ideogram-v3": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "3:4" | "4:3" | "2:3" | "3:2" | "4:5" | "5:4" | "10:16" | "16:10" | "1:2" | "2:1" | "1:3" | "3:1"; renderingSpeed?: "FLASH" | "TURBO" | "DEFAULT" | "QUALITY"; style?: "GENERAL" | "REALISTIC" | "DESIGN"; count?: 1 | 2 | 4 | 6 | 8 | 10; negativePrompt?: string; imageUrls?: string[]; imageWeight?: number; };
127
+ "ideogram-v4": { prompt: string; aspectRatio?: "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "8:5" | "5:8" | "2:1" | "1:2" | "3:1" | "1:3"; resolution?: "1K" | "2K"; renderingSpeed?: "TURBO" | "DEFAULT" | "QUALITY"; enableCopyrightDetection?: boolean; imageUrls?: string[]; imageWeight?: number; };
127
128
  "ideogram-vector-1": { prompt: string; imageUrls?: string[]; aspectRatio?: "auto" | "1:1" | "16:9" | "9:16" | "4:3" | "3:4" | "3:2" | "2:3" | "5:4" | "4:5" | "16:10" | "10:16" | "2:1" | "1:2" | "3:1" | "1:3" | "4:1" | "1:4"; quality?: "low" | "medium" | "high"; count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8; seed?: number; };
128
129
  "ideogram-vector-1-vectorize": { startFrame: string; mode?: "default" | "simple"; };
129
130
  "kimi-k3": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
@@ -278,15 +279,15 @@ export type ModelInputById = {
278
279
  "wan-2.7-r2v": { prompt: string; duration?: 5 | 10; resolution?: "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4"; negativePrompt?: string; imageUrls: [string, ...string[]]; videoUrl: string; seed?: number; };
279
280
  "wan-2.7-t2v": { prompt: string; duration?: 5 | 10 | 15; resolution?: "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4"; negativePrompt?: string; enhancePrompt?: boolean; audioUrl?: string; startFrame?: string; seed?: number; };
280
281
  "wan-2.7-video-edit": { prompt?: string; resolution?: "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4"; negativePrompt?: string; videoUrl: string; imageUrls?: string[]; audioSetting?: "auto" | "origin"; duration?: number; seed?: number; };
281
- "wan-3.0-video": { prompt?: string; duration?: -1 | 5 | 10 | 15 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
282
- "wan-3.0-video-prime": { prompt?: string; duration?: -1 | 5 | 10 | 15 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
282
+ "wan-3.0-video": { prompt?: string; duration?: -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
283
+ "wan-3.0-video-prime": { prompt?: string; duration?: -1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30; resolution?: "480P" | "720P" | "1080P"; aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "adaptive"; generateAudio?: boolean; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; enableThinking?: boolean; watermark?: boolean; seed?: number; };
283
284
  };
284
285
 
285
286
  export type TypedModelId = keyof ModelInputById;
286
287
  export type ModelInput<M extends TypedModelId> = ModelInputById[M];
287
288
 
288
289
  /** IDs of text-generation (LLM) models — narrows generateText(). */
289
- export type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-haiku-5-5" | "claude-opus-4-8" | "claude-opus-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" | "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";
290
+ export type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "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" | "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";
290
291
  export type TextModelInputById = Pick<ModelInputById, TextModelId>;
291
292
 
292
293
  /** 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.3.0",
3
+ "version": "7.5.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",