@picsart/ai-sdk 6.0.0 → 6.2.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.
Files changed (3) hide show
  1. package/index.d.ts +66 -15
  2. package/index.js +197 -18
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -153,10 +153,18 @@ type ModelInputById = {
153
153
  prompt: string;
154
154
  imageUrls?: string[];
155
155
  };
156
+ "claude-sonnet-4-5": {
157
+ prompt: string;
158
+ imageUrls?: string[];
159
+ };
156
160
  "claude-sonnet-4-6": {
157
161
  prompt: string;
158
162
  imageUrls?: string[];
159
163
  };
164
+ "claude-sonnet-5": {
165
+ prompt: string;
166
+ imageUrls?: string[];
167
+ };
160
168
  "creatify-aurora": {
161
169
  prompt?: string;
162
170
  imageUrls: [string, ...string[]];
@@ -266,6 +274,11 @@ type ModelInputById = {
266
274
  prompt?: string;
267
275
  safetyTolerance?: number;
268
276
  };
277
+ "gemini-2.5-flash": {
278
+ prompt: string;
279
+ imageUrls?: string[];
280
+ thinking?: "off" | "low" | "medium" | "high";
281
+ };
269
282
  "gemini-2.5-flash-image": {
270
283
  prompt: string;
271
284
  aspectRatio?: "1:1" | "16:9" | "9:16" | "3:4" | "4:3" | "2:3" | "21:9" | "auto";
@@ -350,6 +363,42 @@ type ModelInputById = {
350
363
  imageUrls?: string[];
351
364
  videoUrl?: string;
352
365
  };
366
+ "gpt-4.1-mini": {
367
+ prompt: string;
368
+ imageUrls?: string[];
369
+ };
370
+ "gpt-4.1-nano": {
371
+ prompt: string;
372
+ imageUrls?: string[];
373
+ };
374
+ "gpt-4o": {
375
+ prompt: string;
376
+ imageUrls?: string[];
377
+ };
378
+ "gpt-4o-mini": {
379
+ prompt: string;
380
+ imageUrls?: string[];
381
+ };
382
+ "gpt-5": {
383
+ prompt: string;
384
+ imageUrls?: string[];
385
+ thinking?: "off" | "low" | "medium" | "high";
386
+ };
387
+ "gpt-5-mini": {
388
+ prompt: string;
389
+ imageUrls?: string[];
390
+ thinking?: "off" | "low" | "medium" | "high";
391
+ };
392
+ "gpt-5.1": {
393
+ prompt: string;
394
+ imageUrls?: string[];
395
+ thinking?: "off" | "low" | "medium" | "high";
396
+ };
397
+ "gpt-5.2": {
398
+ prompt: string;
399
+ imageUrls?: string[];
400
+ thinking?: "off" | "low" | "medium" | "high";
401
+ };
353
402
  "gpt-5.5": {
354
403
  prompt: string;
355
404
  imageUrls?: string[];
@@ -1710,7 +1759,7 @@ type ModelInputById = {
1710
1759
  type TypedModelId = keyof ModelInputById;
1711
1760
  type ModelInput<M extends TypedModelId> = ModelInputById[M];
1712
1761
  /** IDs of text-generation (LLM) models — narrows generateText(). */
1713
- type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-6" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "gpt-5.5" | "gpt-5.6-luna" | "gpt-5.6-sol" | "gpt-5.6-terra" | "gpt-6-astra";
1762
+ type TextModelId = "claude-fable-5" | "claude-fable-5-1" | "claude-haiku-4-5" | "claude-opus-4-8" | "claude-opus-5" | "claude-sonnet-4-5" | "claude-sonnet-4-6" | "claude-sonnet-5" | "gemini-2.5-flash" | "gemini-3-pro" | "gemini-3.5-flash-lite" | "gemini-3.6-flash" | "gemini-3.7-flash" | "gemini-3.8-flash" | "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";
1714
1763
  type TextModelInputById = Pick<ModelInputById, TextModelId>;
1715
1764
 
1716
1765
  /**
@@ -2488,24 +2537,15 @@ interface CatalogsOptions {
2488
2537
  * best-effort: present when the vendor reports it, absent otherwise.
2489
2538
  */
2490
2539
  interface GenerateResultItemMetadata {
2491
- /** Explore image id (recraft explore models). */
2540
+ /** Explore image id (recraft explore models) — pass back as `sourceImageId`
2541
+ * to iterate on this image. */
2492
2542
  exploreImageId?: string;
2493
2543
  /** Voice preview id (ElevenLabs voice design/remix) — pass to the vendor's
2494
2544
  * create-voice-from-preview step to persist the voice. */
2495
2545
  generatedVoiceId?: string;
2496
- /** Generation seed, when the vendor echoes it. */
2497
- seed?: number;
2498
- /** Vendor safety flag for this item (e.g. `has_nsfw_concepts[i]`). */
2499
- nsfw?: boolean;
2500
- width?: number;
2501
- height?: number;
2502
- contentType?: string;
2503
- /** Video duration in seconds. */
2504
- duration?: number;
2505
- /** Video frame rate. */
2506
- fps?: number;
2507
- /** Video file size in bytes. */
2508
- fileSize?: number;
2546
+ /** URL of the generated video's last frame, when the model was asked for it
2547
+ * (`returnLastFrame`, seedance) — the seed for frame-chaining flows. */
2548
+ lastFrameUrl?: string;
2509
2549
  }
2510
2550
 
2511
2551
  /**
@@ -2839,7 +2879,9 @@ declare const Models: {
2839
2879
  readonly ClaudeHaiku45: "claude-haiku-4-5";
2840
2880
  readonly ClaudeOpus48: "claude-opus-4-8";
2841
2881
  readonly ClaudeOpus5: "claude-opus-5";
2882
+ readonly ClaudeSonnet45: "claude-sonnet-4-5";
2842
2883
  readonly ClaudeSonnet46: "claude-sonnet-4-6";
2884
+ readonly ClaudeSonnet5: "claude-sonnet-5";
2843
2885
  readonly CreatifyAurora: "creatify-aurora";
2844
2886
  readonly ElevenAudioIsolation: "eleven-audio-isolation";
2845
2887
  readonly ElevenDubbing: "eleven-dubbing";
@@ -2861,6 +2903,7 @@ declare const Models: {
2861
2903
  readonly FluxKontextPro: "flux-kontext-pro";
2862
2904
  readonly FluxVideoEdit: "flux-video-edit";
2863
2905
  readonly FluxVideoUpscale: "flux-video-upscale";
2906
+ readonly Gemini25Flash: "gemini-2.5-flash";
2864
2907
  readonly Gemini25FlashImage: "gemini-2.5-flash-image";
2865
2908
  readonly Gemini25FlashTts: "gemini-2.5-flash-tts";
2866
2909
  readonly Gemini25ProTts: "gemini-2.5-pro-tts";
@@ -2874,6 +2917,14 @@ declare const Models: {
2874
2917
  readonly Gemini38Flash: "gemini-3.8-flash";
2875
2918
  readonly GeminiOmni11FlashPreview: "gemini-omni-1.1-flash-preview";
2876
2919
  readonly GeminiOmniFlashPreview: "gemini-omni-flash-preview";
2920
+ readonly Gpt41Mini: "gpt-4.1-mini";
2921
+ readonly Gpt41Nano: "gpt-4.1-nano";
2922
+ readonly Gpt4o: "gpt-4o";
2923
+ readonly Gpt4oMini: "gpt-4o-mini";
2924
+ readonly Gpt5: "gpt-5";
2925
+ readonly Gpt5Mini: "gpt-5-mini";
2926
+ readonly Gpt51: "gpt-5.1";
2927
+ readonly Gpt52: "gpt-5.2";
2877
2928
  readonly Gpt55: "gpt-5.5";
2878
2929
  readonly Gpt56Luna: "gpt-5.6-luna";
2879
2930
  readonly Gpt56Sol: "gpt-5.6-sol";
package/index.js CHANGED
@@ -8743,6 +8743,18 @@ var { MODELS: ANTHROPIC } = defineModels("anthropic", [
8743
8743
  features: [feat("Vision", "input")],
8744
8744
  paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8745
8745
  },
8746
+ {
8747
+ id: "claude-sonnet-5",
8748
+ name: "Claude Sonnet 5",
8749
+ workflow: "claude/v1/messages",
8750
+ addedAt: "2026-09-16",
8751
+ estimatedTime: 6,
8752
+ mode: "text",
8753
+ inputType: "i2t",
8754
+ description: "Latest Sonnet \u2014 frontier reasoning at everyday latency and cost.",
8755
+ features: [feat("Vision", "input")],
8756
+ paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8757
+ },
8746
8758
  {
8747
8759
  id: "claude-sonnet-4-6",
8748
8760
  name: "Claude Sonnet 4.6",
@@ -8756,6 +8768,18 @@ var { MODELS: ANTHROPIC } = defineModels("anthropic", [
8756
8768
  features: [feat("Vision", "input")],
8757
8769
  paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8758
8770
  },
8771
+ {
8772
+ id: "claude-sonnet-4-5",
8773
+ name: "Claude Sonnet 4.5",
8774
+ workflow: "claude/v1/messages",
8775
+ addedAt: "2026-09-16",
8776
+ estimatedTime: 6,
8777
+ mode: "text",
8778
+ inputType: "i2t",
8779
+ description: "Previous-generation Sonnet \u2014 balanced reasoning, latency, and cost.",
8780
+ features: [feat("Vision", "input")],
8781
+ paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8782
+ },
8759
8783
  {
8760
8784
  id: "claude-haiku-4-5",
8761
8785
  name: "Claude Haiku 4.5",
@@ -8858,6 +8882,124 @@ var { MODELS: OPENAI_LLM } = defineModels("openai", [
8858
8882
  ...params.imageInput(8, "Images"),
8859
8883
  ...thinkingParam(["low", "medium", "high"])
8860
8884
  }
8885
+ },
8886
+ {
8887
+ id: "gpt-5.2",
8888
+ name: "GPT-5.2",
8889
+ workflow: "chat-completions",
8890
+ addedAt: "2026-09-16",
8891
+ estimatedTime: 8,
8892
+ mode: "text",
8893
+ inputType: "i2t",
8894
+ description: "GPT-5.2 reasoning model \u2014 strong general-purpose text generation.",
8895
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8896
+ paramConfig: {
8897
+ ...params.prompt(),
8898
+ ...params.imageInput(8, "Images"),
8899
+ ...thinkingParam(["low", "medium", "high"])
8900
+ }
8901
+ },
8902
+ {
8903
+ id: "gpt-5.1",
8904
+ name: "GPT-5.1",
8905
+ workflow: "chat-completions",
8906
+ addedAt: "2026-09-16",
8907
+ estimatedTime: 8,
8908
+ mode: "text",
8909
+ inputType: "i2t",
8910
+ description: "GPT-5.1 reasoning model \u2014 reliable general-purpose text generation.",
8911
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8912
+ paramConfig: {
8913
+ ...params.prompt(),
8914
+ ...params.imageInput(8, "Images"),
8915
+ ...thinkingParam(["low", "medium", "high"])
8916
+ }
8917
+ },
8918
+ {
8919
+ id: "gpt-5",
8920
+ name: "GPT-5",
8921
+ workflow: "chat-completions",
8922
+ addedAt: "2026-09-16",
8923
+ estimatedTime: 8,
8924
+ mode: "text",
8925
+ inputType: "i2t",
8926
+ description: "GPT-5 reasoning model for general-purpose text generation.",
8927
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8928
+ paramConfig: {
8929
+ ...params.prompt(),
8930
+ ...params.imageInput(8, "Images"),
8931
+ ...thinkingParam(["low", "medium", "high"])
8932
+ }
8933
+ },
8934
+ {
8935
+ id: "gpt-5-mini",
8936
+ name: "GPT-5 Mini",
8937
+ workflow: "chat-completions",
8938
+ addedAt: "2026-09-16",
8939
+ estimatedTime: 5,
8940
+ mode: "text",
8941
+ inputType: "i2t",
8942
+ badge: ["fast"],
8943
+ description: "Fast, lightweight GPT-5 model for high-volume text tasks.",
8944
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
8945
+ paramConfig: {
8946
+ ...params.prompt(),
8947
+ ...params.imageInput(8, "Images"),
8948
+ ...thinkingParam(["low", "medium", "high"])
8949
+ }
8950
+ },
8951
+ // gpt-4o / gpt-4.1 families are not reasoning models: the worker's chat-completions
8952
+ // route rejects reasoning_effort for them, so no thinking param is exposed.
8953
+ {
8954
+ id: "gpt-4o",
8955
+ name: "GPT-4o",
8956
+ workflow: "chat-completions",
8957
+ addedAt: "2026-09-16",
8958
+ estimatedTime: 5,
8959
+ mode: "text",
8960
+ inputType: "i2t",
8961
+ description: "Multimodal GPT-4o \u2014 solid quality at low latency, no reasoning pass.",
8962
+ features: [feat("Vision", "input")],
8963
+ paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8964
+ },
8965
+ {
8966
+ id: "gpt-4o-mini",
8967
+ name: "GPT-4o Mini",
8968
+ workflow: "chat-completions",
8969
+ addedAt: "2026-09-16",
8970
+ estimatedTime: 4,
8971
+ mode: "text",
8972
+ inputType: "i2t",
8973
+ badge: ["fast"],
8974
+ description: "Small, cost-efficient GPT-4o tier for high-volume text tasks.",
8975
+ features: [feat("Vision", "input")],
8976
+ paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8977
+ },
8978
+ {
8979
+ id: "gpt-4.1-mini",
8980
+ name: "GPT-4.1 Mini",
8981
+ workflow: "chat-completions",
8982
+ addedAt: "2026-09-16",
8983
+ estimatedTime: 4,
8984
+ mode: "text",
8985
+ inputType: "i2t",
8986
+ badge: ["fast"],
8987
+ description: "Compact GPT-4.1 tier \u2014 fast text generation with vision input.",
8988
+ features: [feat("Vision", "input")],
8989
+ paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8990
+ },
8991
+ {
8992
+ id: "gpt-4.1-nano",
8993
+ name: "GPT-4.1 Nano",
8994
+ workflow: "chat-completions",
8995
+ addedAt: "2026-09-16",
8996
+ estimatedTime: 3,
8997
+ mode: "text",
8998
+ inputType: "i2t",
8999
+ badge: ["fast"],
9000
+ description: "The smallest, fastest GPT-4.1 tier for lightweight text tasks.",
9001
+ features: [feat("Vision", "input")],
9002
+ paramConfig: { ...params.prompt(), ...params.imageInput(8, "Images") }
8861
9003
  }
8862
9004
  ]);
8863
9005
  var { MODELS: GEMINI_LLM } = defineModels("google", [
@@ -8946,6 +9088,23 @@ var { MODELS: GEMINI_LLM } = defineModels("google", [
8946
9088
  ...params.prompt(),
8947
9089
  ...params.imageInput(8, "Images")
8948
9090
  }
9091
+ },
9092
+ {
9093
+ id: "gemini-2.5-flash",
9094
+ name: "Gemini 2.5 Flash",
9095
+ workflow: "chat-completions",
9096
+ addedAt: "2026-09-16",
9097
+ estimatedTime: 4,
9098
+ mode: "text",
9099
+ inputType: "i2t",
9100
+ badge: ["fast"],
9101
+ description: "Proven fast Gemini tier \u2014 low-latency multimodal text generation.",
9102
+ features: [feat("Vision", "input"), feat("Thinking", "characteristic")],
9103
+ paramConfig: {
9104
+ ...params.prompt(),
9105
+ ...params.imageInput(8, "Images"),
9106
+ ...thinkingParam(["low", "medium", "high"])
9107
+ }
8949
9108
  }
8950
9109
  ]);
8951
9110
  var MODELS35 = [...ANTHROPIC, ...OPENAI_LLM, ...GEMINI_LLM];
@@ -9004,20 +9163,31 @@ registerPayloads(MODELS35, {
9004
9163
  "claude-fable-5": buildClaudePayload("claude-fable-5"),
9005
9164
  "claude-opus-5": buildClaudePayload("claude-opus-5"),
9006
9165
  "claude-opus-4-8": buildClaudePayload("claude-opus-4-8"),
9166
+ "claude-sonnet-5": buildClaudePayload("claude-sonnet-5"),
9007
9167
  "claude-sonnet-4-6": buildClaudePayload("claude-sonnet-4-6"),
9168
+ "claude-sonnet-4-5": buildClaudePayload("claude-sonnet-4-5"),
9008
9169
  "claude-haiku-4-5": buildClaudePayload("claude-haiku-4-5"),
9009
9170
  "gpt-6-astra": buildOpenAiPayload("gpt-6-astra"),
9010
9171
  "gpt-5.6-sol": buildOpenAiPayload("gpt-5.6-sol"),
9011
9172
  "gpt-5.6-terra": buildOpenAiPayload("gpt-5.6-terra"),
9012
9173
  "gpt-5.6-luna": buildOpenAiPayload("gpt-5.6-luna"),
9013
9174
  "gpt-5.5": buildOpenAiPayload("gpt-5.5"),
9175
+ "gpt-5.2": buildOpenAiPayload("gpt-5.2"),
9176
+ "gpt-5.1": buildOpenAiPayload("gpt-5.1"),
9177
+ "gpt-5": buildOpenAiPayload("gpt-5"),
9178
+ "gpt-5-mini": buildOpenAiPayload("gpt-5-mini"),
9179
+ "gpt-4o": buildOpenAiPayload("gpt-4o"),
9180
+ "gpt-4o-mini": buildOpenAiPayload("gpt-4o-mini"),
9181
+ "gpt-4.1-mini": buildOpenAiPayload("gpt-4.1-mini"),
9182
+ "gpt-4.1-nano": buildOpenAiPayload("gpt-4.1-nano"),
9014
9183
  "gemini-3-pro": buildGeminiPayload("gemini-3-pro-preview"),
9015
9184
  // Flash models route through chat-completions (OpenAI-shaped), not the
9016
- // native `gemini` workflow. flash-lite has no thinking param → reasoning_effort omitted.
9185
+ // native `gemini` workflow.
9017
9186
  "gemini-3.8-flash": buildOpenAiPayload("gemini-3.8-flash"),
9018
9187
  "gemini-3.7-flash": buildOpenAiPayload("gemini-3.7-flash"),
9019
9188
  "gemini-3.6-flash": buildOpenAiPayload("gemini-3.6-flash"),
9020
- "gemini-3.5-flash-lite": buildOpenAiPayload("gemini-3.5-flash-lite")
9189
+ "gemini-3.5-flash-lite": buildOpenAiPayload("gemini-3.5-flash-lite"),
9190
+ "gemini-2.5-flash": buildOpenAiPayload("gemini-2.5-flash")
9021
9191
  });
9022
9192
 
9023
9193
  // src/vendors/catalog/captionsai.ts
@@ -9411,27 +9581,14 @@ var extractAllResults = (result) => {
9411
9581
  }
9412
9582
  return items.length > 0 ? items : void 0;
9413
9583
  };
9414
- function buildItemMetadata(parsed, item, index, provider) {
9584
+ function buildItemMetadata(parsed, item, _index, provider) {
9415
9585
  const meta = {};
9416
9586
  const top = parsed && typeof parsed === "object" ? parsed : void 0;
9417
9587
  const it = item && typeof item === "object" && !Array.isArray(item) ? item : void 0;
9418
9588
  if (provider === "recraft" && typeof it?.image_id === "string") meta.exploreImageId = it.image_id;
9419
9589
  if (provider === "elevenlabs" && typeof it?.generated_voice_id === "string") meta.generatedVoiceId = it.generated_voice_id;
9420
- if (typeof top?.seed === "number") meta.seed = top.seed;
9421
- if (Array.isArray(top?.has_nsfw_concepts) && typeof top.has_nsfw_concepts[index] === "boolean") {
9422
- meta.nsfw = top.has_nsfw_concepts[index];
9423
- }
9424
- if (typeof it?.width === "number") meta.width = it.width;
9425
- if (typeof it?.height === "number") meta.height = it.height;
9426
- if (typeof it?.content_type === "string") meta.contentType = it.content_type;
9427
- const video = top?.video && typeof top.video === "object" ? top.video : void 0;
9428
- if (video) {
9429
- if (typeof video.duration === "number") meta.duration = video.duration;
9430
- if (typeof video.fps === "number") meta.fps = video.fps;
9431
- if (typeof video.file_size === "number") meta.fileSize = video.file_size;
9432
- if (meta.width === void 0 && typeof video.width === "number") meta.width = video.width;
9433
- if (meta.height === void 0 && typeof video.height === "number") meta.height = video.height;
9434
- }
9590
+ const lastFrame = it?.last_frame_url ?? top?.last_frame_url;
9591
+ if (typeof lastFrame === "string") meta.lastFrameUrl = lastFrame;
9435
9592
  return Object.keys(meta).length > 0 ? meta : void 0;
9436
9593
  }
9437
9594
  function toCompletedStatus(handle, result, raw, usage) {
@@ -11707,7 +11864,9 @@ var ClaudeFable51 = "claude-fable-5-1";
11707
11864
  var ClaudeHaiku45 = "claude-haiku-4-5";
11708
11865
  var ClaudeOpus48 = "claude-opus-4-8";
11709
11866
  var ClaudeOpus5 = "claude-opus-5";
11867
+ var ClaudeSonnet45 = "claude-sonnet-4-5";
11710
11868
  var ClaudeSonnet46 = "claude-sonnet-4-6";
11869
+ var ClaudeSonnet5 = "claude-sonnet-5";
11711
11870
  var CreatifyAurora = "creatify-aurora";
11712
11871
  var ElevenAudioIsolation = "eleven-audio-isolation";
11713
11872
  var ElevenDubbing = "eleven-dubbing";
@@ -11729,6 +11888,7 @@ var FluxKontextMax = "flux-kontext-max";
11729
11888
  var FluxKontextPro = "flux-kontext-pro";
11730
11889
  var FluxVideoEdit = "flux-video-edit";
11731
11890
  var FluxVideoUpscale = "flux-video-upscale";
11891
+ var Gemini25Flash = "gemini-2.5-flash";
11732
11892
  var Gemini25FlashImage = "gemini-2.5-flash-image";
11733
11893
  var Gemini25FlashTts = "gemini-2.5-flash-tts";
11734
11894
  var Gemini25ProTts = "gemini-2.5-pro-tts";
@@ -11742,6 +11902,14 @@ var Gemini37Flash = "gemini-3.7-flash";
11742
11902
  var Gemini38Flash = "gemini-3.8-flash";
11743
11903
  var GeminiOmni11FlashPreview = "gemini-omni-1.1-flash-preview";
11744
11904
  var GeminiOmniFlashPreview = "gemini-omni-flash-preview";
11905
+ var Gpt41Mini = "gpt-4.1-mini";
11906
+ var Gpt41Nano = "gpt-4.1-nano";
11907
+ var Gpt4o = "gpt-4o";
11908
+ var Gpt4oMini = "gpt-4o-mini";
11909
+ var Gpt5 = "gpt-5";
11910
+ var Gpt5Mini = "gpt-5-mini";
11911
+ var Gpt51 = "gpt-5.1";
11912
+ var Gpt52 = "gpt-5.2";
11745
11913
  var Gpt55 = "gpt-5.5";
11746
11914
  var Gpt56Luna = "gpt-5.6-luna";
11747
11915
  var Gpt56Sol = "gpt-5.6-sol";
@@ -11932,7 +12100,9 @@ var Models = {
11932
12100
  ClaudeHaiku45,
11933
12101
  ClaudeOpus48,
11934
12102
  ClaudeOpus5,
12103
+ ClaudeSonnet45,
11935
12104
  ClaudeSonnet46,
12105
+ ClaudeSonnet5,
11936
12106
  CreatifyAurora,
11937
12107
  ElevenAudioIsolation,
11938
12108
  ElevenDubbing,
@@ -11954,6 +12124,7 @@ var Models = {
11954
12124
  FluxKontextPro,
11955
12125
  FluxVideoEdit,
11956
12126
  FluxVideoUpscale,
12127
+ Gemini25Flash,
11957
12128
  Gemini25FlashImage,
11958
12129
  Gemini25FlashTts,
11959
12130
  Gemini25ProTts,
@@ -11967,6 +12138,14 @@ var Models = {
11967
12138
  Gemini38Flash,
11968
12139
  GeminiOmni11FlashPreview,
11969
12140
  GeminiOmniFlashPreview,
12141
+ Gpt41Mini,
12142
+ Gpt41Nano,
12143
+ Gpt4o,
12144
+ Gpt4oMini,
12145
+ Gpt5,
12146
+ Gpt5Mini,
12147
+ Gpt51,
12148
+ Gpt52,
11970
12149
  Gpt55,
11971
12150
  Gpt56Luna,
11972
12151
  Gpt56Sol,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.0.0",
3
+ "version": "6.2.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",