@picsart/ai-sdk 7.0.0 → 7.1.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.
@@ -87,6 +87,8 @@ export type ModelInputById = {
87
87
  "gpt-6-astra": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
88
88
  "gpt-6-luna": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
89
89
  "gpt-6-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
90
+ "gpt-6.1-sol": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
91
+ "gpt-6.1-terra": { prompt: string; imageUrls?: string[]; thinking?: "off" | "low" | "medium" | "high"; };
90
92
  "gpt-image-1": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4"; quality?: "high" | "medium" | "low"; background?: "opaque" | "transparent"; outputFormat?: "png" | "jpeg" | "webp"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; };
91
93
  "gpt-image-1.5": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4"; quality?: "high" | "medium" | "low"; background?: "opaque" | "transparent"; outputFormat?: "png" | "jpeg" | "webp"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; };
92
94
  "gpt-image-2": { prompt: string; aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto"; quality?: "high" | "medium" | "low"; outputFormat?: "png" | "jpeg" | "webp"; count?: 1 | 2 | 4 | 6 | 8 | 10; imageUrls?: string[]; };
@@ -125,6 +127,8 @@ export type ModelInputById = {
125
127
  "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; };
126
128
  "ideogram-vector-1-vectorize": { startFrame: string; mode?: "default" | "simple"; };
127
129
  "kimi-k3": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
130
+ "kimi-k3.1-pro": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
131
+ "kimi-k3.1-pro-highspeed": { prompt: string; imageUrls?: string[]; thinking?: "low" | "high"; };
128
132
  "kling-3.0-image": { prompt: string; aspectRatio?: "16:9" | "9:16" | "1:1" | "21:9" | "4:3" | "3:2" | "2:3" | "3:4"; resolution?: "1k" | "2k" | "4k"; count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9; imageUrls?: string[]; };
129
133
  "kling-avatar": { prompt?: string; renderingSpeed?: "std" | "pro"; imageUrls: [string, ...string[]]; audioUrl: string; audioId?: string; };
130
134
  "kling-elements": { elementName: string; elementDescription: string; referenceType: "image_refer" | "video_refer"; imageUrls?: string[]; videoUrl?: string; elementVoiceId?: string; };
@@ -163,12 +167,12 @@ export type ModelInputById = {
163
167
  "macaron-cookie": { 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[]; task?: "edit" | "extend"; };
164
168
  "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"; };
165
169
  "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"; };
166
- "minimax-h3-max": { prompt: string; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; resolution?: "480p" | "768p" | "1080p"; duration?: number; aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; promptExpansionMode?: "balanced" | "quality"; seed?: number; enableSafetyChecker?: boolean; };
167
- "minimax-h3-max-camera-controls": { prompt?: string; startFrame: string; resolution?: "480p" | "768p" | "1080p"; duration?: number; cameraTrajectory?: Array<{ time: number; azimuth: number; elevation: number; distance: number }>; promptExpansionMode?: "balanced" | "quality"; seed?: number; enableSafetyChecker?: boolean; };
170
+ "minimax-h3-max": { prompt: string; startFrame?: string; endFrame?: string; imageUrls?: string[]; videoUrls?: string[]; audioUrls?: string[]; resolution?: "480p" | "768p" | "1080p"; duration?: number; aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; promptExpansionMode?: "disabled" | "balanced" | "quality"; seed?: number; enableSafetyChecker?: boolean; };
171
+ "minimax-h3-max-camera-controls": { prompt?: string; startFrame: string; resolution?: "480p" | "768p" | "1080p"; duration?: number; cameraTrajectory?: Array<{ time: number; azimuth: number; elevation: number; distance: number }>; promptExpansionMode?: "disabled" | "balanced" | "quality"; seed?: number; enableSafetyChecker?: boolean; };
168
172
  "minimax-h3-max-extend": { prompt: string; videoUrl: string; duration?: number; output?: "extended" | "continuation"; aspectRatio?: "auto" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; resolution?: "480p" | "768p" | "1080p" | "2k"; enhancePrompt?: boolean; enableSafetyChecker?: boolean; seed?: number; };
169
173
  "minimax-h3-max-lip-sync": { startFrame: string; audioUrl: string; resolution?: "480p" | "768p" | "1080p" | "2k"; enableTranscription?: boolean; seed?: number; enableSafetyChecker?: boolean; };
170
174
  "minimax-h3-max-relight": { videoUrl: string; imageUrls: [string, ...string[]]; resolution?: "480p" | "768p" | "1080p" | "2k"; aspectRatio?: "adaptive" | "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; seed?: number; enableSafetyChecker?: boolean; };
171
- "minimax-h3-max-turbo": { prompt: string; startFrame?: string; endFrame?: string; resolution?: "480p" | "768p" | "1080p"; duration?: number; aspectRatio?: "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; promptExpansionMode?: "balanced" | "quality"; seed?: number; enableSafetyChecker?: boolean; };
175
+ "minimax-h3-max-turbo": { prompt: string; startFrame?: string; endFrame?: string; resolution?: "480p" | "768p" | "1080p"; duration?: number; aspectRatio?: "21:9" | "16:9" | "4:3" | "1:1" | "3:4" | "9:16"; promptExpansionMode?: "disabled" | "balanced" | "quality"; seed?: number; enableSafetyChecker?: boolean; };
172
176
  "minimax-m3": { prompt: string; imageUrls?: string[]; };
173
177
  "minimax-m3.1-flash": { prompt: string; imageUrls?: string[]; thinking?: "low" | "medium" | "high"; };
174
178
  "minimax-music-v2": { prompt: string; lyricsPrompt?: string; lyricsOptimizer?: boolean; isInstrumental?: boolean; sampleRate?: 16000 | 24000 | 32000 | 44100; bitrate?: 32000 | 64000 | 128000 | 256000; format?: "mp3" | "wav" | "pcm"; };
@@ -282,7 +286,7 @@ export type TypedModelId = keyof ModelInputById;
282
286
  export type ModelInput<M extends TypedModelId> = ModelInputById[M];
283
287
 
284
288
  /** IDs of text-generation (LLM) models — narrows generateText(). */
285
- 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" | "grok-4.7" | "kimi-k3" | "minimax-h3-context-ir" | "minimax-m3" | "minimax-m3.1-flash";
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";
286
290
  export type TextModelInputById = Pick<ModelInputById, TextModelId>;
287
291
 
288
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.0.0",
3
+ "version": "7.1.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",