@picsart/ai-sdk 5.0.1 → 5.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.
Files changed (3) hide show
  1. package/index.d.ts +0 -5
  2. package/index.js +0 -32
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -915,10 +915,6 @@ type ModelInputById = {
915
915
  imageUrls?: string[];
916
916
  promptExtendMode?: "direct" | "agent";
917
917
  };
918
- "qwen-image-edit-plus": {
919
- prompt: string;
920
- imageUrls: [string, ...string[]];
921
- };
922
918
  "recraft-creative-upscale": {
923
919
  imageUrls: [string, ...string[]];
924
920
  };
@@ -2459,7 +2455,6 @@ declare const Models: {
2459
2455
  readonly QwenImage2: "qwen-image-2";
2460
2456
  readonly QwenImage2Pro: "qwen-image-2-pro";
2461
2457
  readonly QwenImage30: "qwen-image-3.0";
2462
- readonly QwenImageEditPlus: "qwen-image-edit-plus";
2463
2458
  readonly RecraftCreativeUpscale: "recraft-creative-upscale";
2464
2459
  readonly RecraftCrispUpscale: "recraft-crisp-upscale";
2465
2460
  readonly RecraftExplore: "recraft-explore";
package/index.js CHANGED
@@ -6702,14 +6702,6 @@ var { MODELS: MODELS27 } = defineModels("ideogram", [
6702
6702
  ]);
6703
6703
 
6704
6704
  // src/vendors/catalog/qwen.ts
6705
- var QWEN_SIZE_MAP = {
6706
- "1024x1024": "1024x1024",
6707
- "1024x768": "1024x768",
6708
- "768x1024": "768x1024",
6709
- "1536x1024": "1536x1024",
6710
- "1024x1536": "1024x1536",
6711
- "2048x2048": "2048x2048"
6712
- };
6713
6705
  var QWEN_V1_SIZES = [
6714
6706
  "2048x2048",
6715
6707
  "2688x1536",
@@ -6731,11 +6723,6 @@ var buildQwen2Payload = (ctx) => {
6731
6723
  ...hasImages ? { image_urls: ctx.imageUrls } : {}
6732
6724
  };
6733
6725
  };
6734
- var buildQwenEditPlusPayload = (ctx) => ({
6735
- prompt: ctx.prompt,
6736
- image_urls: ctx.imageUrls ?? [],
6737
- ...ctx.size && QWEN_SIZE_MAP[ctx.size] ? { size: QWEN_SIZE_MAP[ctx.size] } : {}
6738
- });
6739
6726
  var buildQwenV1 = (model) => (ctx) => {
6740
6727
  const hasImages = Array.isArray(ctx.imageUrls) && ctx.imageUrls.length > 0;
6741
6728
  return {
@@ -6840,23 +6827,6 @@ var { MODELS: MODELS28 } = defineModels("qwen", [
6840
6827
  feat("2K", "resolution")
6841
6828
  ],
6842
6829
  paramConfig: qwenV1Params3
6843
- },
6844
- {
6845
- id: "qwen-image-edit-plus",
6846
- name: "Qwen Edit Plus",
6847
- addedAt: "2026-02-06",
6848
- workflow: "qwen-image-edit-plus",
6849
- buildPayload: buildQwenEditPlusPayload,
6850
- estimatedTime: 11,
6851
- mode: "image",
6852
- inputType: "i2i",
6853
- description: "Edit or transform up to 3 source images with prompt-guided changes.",
6854
- features: [feat("Image Input", "input")],
6855
- paramConfig: {
6856
- ...params.prompt(),
6857
- // size: Qwen edit-plus API ignores size param — output is always 1024x1024
6858
- ...params.imageInput(3, "Source Images", true)
6859
- }
6860
6830
  }
6861
6831
  ]);
6862
6832
 
@@ -10544,7 +10514,6 @@ var Qwen = "qwen";
10544
10514
  var QwenImage2 = "qwen-image-2";
10545
10515
  var QwenImage2Pro = "qwen-image-2-pro";
10546
10516
  var QwenImage30 = "qwen-image-3.0";
10547
- var QwenImageEditPlus = "qwen-image-edit-plus";
10548
10517
  var RecraftCreativeUpscale = "recraft-creative-upscale";
10549
10518
  var RecraftCrispUpscale = "recraft-crisp-upscale";
10550
10519
  var RecraftExplore = "recraft-explore";
@@ -10743,7 +10712,6 @@ var Models = {
10743
10712
  QwenImage2,
10744
10713
  QwenImage2Pro,
10745
10714
  QwenImage30,
10746
- QwenImageEditPlus,
10747
10715
  RecraftCreativeUpscale,
10748
10716
  RecraftCrispUpscale,
10749
10717
  RecraftExplore,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "5.0.1",
3
+ "version": "5.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",