@picsart/ai-sdk 6.2.3 → 6.4.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 +17 -0
  2. package/index.js +58 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -170,6 +170,16 @@ type ModelInputById = {
170
170
  imageUrls: [string, ...string[]];
171
171
  audioUrl: string;
172
172
  };
173
+ "creatify-boreal": {
174
+ prompt: string;
175
+ imageUrls?: string[];
176
+ audioUrl?: string;
177
+ negativePrompt?: string;
178
+ resolution?: "720p" | "1080p" | "2k";
179
+ aspectRatio?: "auto" | "16:9" | "9:16" | "1:1" | "4:3" | "3:4";
180
+ duration?: number;
181
+ manifestDisclosure?: boolean;
182
+ };
173
183
  "eleven-audio-isolation": {
174
184
  audioUrl: string;
175
185
  };
@@ -1210,6 +1220,11 @@ type ModelInputById = {
1210
1220
  imageUrls?: string[];
1211
1221
  imageWeight?: number;
1212
1222
  };
1223
+ "recraftv4_1_flash": {
1224
+ prompt: string;
1225
+ aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
1226
+ count?: 1 | 2 | 4 | 6;
1227
+ };
1213
1228
  "recraftv4_1_pro": {
1214
1229
  prompt: string;
1215
1230
  aspectRatio?: "1:1" | "4:3" | "3:4" | "3:2" | "2:3" | "16:9" | "9:16" | "2:1" | "1:2";
@@ -2890,6 +2905,7 @@ declare const Models: {
2890
2905
  readonly ClaudeSonnet46: "claude-sonnet-4-6";
2891
2906
  readonly ClaudeSonnet5: "claude-sonnet-5";
2892
2907
  readonly CreatifyAurora: "creatify-aurora";
2908
+ readonly CreatifyBoreal: "creatify-boreal";
2893
2909
  readonly ElevenAudioIsolation: "eleven-audio-isolation";
2894
2910
  readonly ElevenDubbing: "eleven-dubbing";
2895
2911
  readonly ElevenMultilingualStsV2: "eleven-multilingual-sts-v2";
@@ -3047,6 +3063,7 @@ declare const Models: {
3047
3063
  readonly Recraftv3ReplaceBg: "recraftv3-replace-bg";
3048
3064
  readonly Recraftv4: "recraftv4";
3049
3065
  readonly Recraftv41: "recraftv4_1";
3066
+ readonly Recraftv41Flash: "recraftv4_1_flash";
3050
3067
  readonly Recraftv41Pro: "recraftv4_1_pro";
3051
3068
  readonly Recraftv41ProVector: "recraftv4_1_pro_vector";
3052
3069
  readonly Recraftv41Utility: "recraftv4_1_utility";
package/index.js CHANGED
@@ -2421,6 +2421,27 @@ var { MODELS: MODELS3 } = defineModels("creatify", [
2421
2421
  ...params.imageInput(1, "Product Image", true),
2422
2422
  ...params.audioInput("Audio Track", true)
2423
2423
  }
2424
+ },
2425
+ {
2426
+ id: "creatify-boreal",
2427
+ name: "Creatify Boreal",
2428
+ addedAt: "2026-09-22",
2429
+ workflow: "creatify/boreal",
2430
+ estimatedTime: 169,
2431
+ mode: "video",
2432
+ inputType: "t2v",
2433
+ description: "Text-to-video with synchronized native audio for product, UGC, and presenter clips.",
2434
+ features: [feat("Image Input", "input"), feat("Audio Input", "audio")],
2435
+ paramConfig: {
2436
+ ...params.prompt({ maxLength: 5e3 }),
2437
+ ...params.imageInput(1, "Reference Image", false, "asset"),
2438
+ ...params.audioInput("Audio Track", false),
2439
+ ...params.negativePrompt(),
2440
+ ...params.resolution(["720p", "1080p", "2k"], "720p"),
2441
+ ...params.aspectRatio(["auto", "16:9", "9:16", "1:1", "4:3", "3:4"], "auto"),
2442
+ ...params.durationRange(1, 20, 10),
2443
+ ...p.boolean("manifestDisclosure", false, "AI-Generated Disclosure")
2444
+ }
2424
2445
  }
2425
2446
  ]);
2426
2447
 
@@ -7467,6 +7488,24 @@ var { MODELS: MODELS28 } = defineModels("recraft", [
7467
7488
  ...params.imageWeight(0, 100, 80, 5)
7468
7489
  }
7469
7490
  },
7491
+ {
7492
+ id: "recraftv4_1_flash",
7493
+ name: "Recraft V4.1 Flash",
7494
+ addedAt: "2026-09-22",
7495
+ workflow: "recraft/v1/images/generations",
7496
+ buildPayload: buildRecraftV4VariantPayload("recraftv4_1_flash"),
7497
+ estimatedTime: 8,
7498
+ mode: "image",
7499
+ inputType: "t2i",
7500
+ badge: ["fast"],
7501
+ description: "Fastest V4.1 tier \u2014 quick raster output with 10K-character prompts.",
7502
+ features: [feat("Fast", "characteristic"), feat("10K Prompt", "characteristic")],
7503
+ paramConfig: {
7504
+ ...params.prompt({ maxLength: 1e4 }),
7505
+ ...params.aspectRatio(recraftAspectRatios, "1:1"),
7506
+ ...params.count([1, 2, 4, 6])
7507
+ }
7508
+ },
7470
7509
  // ── V4.1 vector variants ─────
7471
7510
  {
7472
7511
  id: "recraftv4_1_vector",
@@ -9335,6 +9374,21 @@ registerEditPayloads(MODELS37, {
9335
9374
  "muse-image-1.0": buildMuseImageEditPayload
9336
9375
  });
9337
9376
 
9377
+ // src/vendors/catalog/creatify.payloads.ts
9378
+ var buildCreatifyBorealPayload = (input) => ({
9379
+ prompt: input.prompt,
9380
+ ...input.imageUrls?.[0] ? { image_url: input.imageUrls[0] } : {},
9381
+ ...input.audioUrl ? { audio_url: input.audioUrl } : {},
9382
+ negative_prompt: input.negativePrompt ?? "",
9383
+ resolution: input.resolution ?? "720p",
9384
+ aspect_ratio: input.aspectRatio ?? "auto",
9385
+ duration: input.duration ?? 10,
9386
+ manifest_disclosure: input.manifestDisclosure ?? false
9387
+ });
9388
+ registerPayloads(MODELS3, {
9389
+ "creatify-boreal": buildCreatifyBorealPayload
9390
+ });
9391
+
9338
9392
  // src/vendors/catalog/index.ts
9339
9393
  var ALL_MODELS = [
9340
9394
  ...MODELS,
@@ -11897,6 +11951,7 @@ var ClaudeSonnet45 = "claude-sonnet-4-5";
11897
11951
  var ClaudeSonnet46 = "claude-sonnet-4-6";
11898
11952
  var ClaudeSonnet5 = "claude-sonnet-5";
11899
11953
  var CreatifyAurora = "creatify-aurora";
11954
+ var CreatifyBoreal = "creatify-boreal";
11900
11955
  var ElevenAudioIsolation = "eleven-audio-isolation";
11901
11956
  var ElevenDubbing = "eleven-dubbing";
11902
11957
  var ElevenMultilingualStsV2 = "eleven-multilingual-sts-v2";
@@ -12054,6 +12109,7 @@ var Recraftv3Vector = "recraftv3_vector";
12054
12109
  var Recraftv3ReplaceBg = "recraftv3-replace-bg";
12055
12110
  var Recraftv4 = "recraftv4";
12056
12111
  var Recraftv41 = "recraftv4_1";
12112
+ var Recraftv41Flash = "recraftv4_1_flash";
12057
12113
  var Recraftv41Pro = "recraftv4_1_pro";
12058
12114
  var Recraftv41ProVector = "recraftv4_1_pro_vector";
12059
12115
  var Recraftv41Utility = "recraftv4_1_utility";
@@ -12133,6 +12189,7 @@ var Models = {
12133
12189
  ClaudeSonnet46,
12134
12190
  ClaudeSonnet5,
12135
12191
  CreatifyAurora,
12192
+ CreatifyBoreal,
12136
12193
  ElevenAudioIsolation,
12137
12194
  ElevenDubbing,
12138
12195
  ElevenMultilingualStsV2,
@@ -12290,6 +12347,7 @@ var Models = {
12290
12347
  Recraftv3ReplaceBg,
12291
12348
  Recraftv4,
12292
12349
  Recraftv41,
12350
+ Recraftv41Flash,
12293
12351
  Recraftv41Pro,
12294
12352
  Recraftv41ProVector,
12295
12353
  Recraftv41Utility,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.2.3",
3
+ "version": "6.4.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",