@picsart/ai-sdk 3.25.0 → 3.26.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 +6 -0
  2. package/index.js +69 -0
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -409,6 +409,11 @@ type ModelInputById = {
409
409
  count?: 1 | 2 | 4 | 6 | 8 | 10;
410
410
  imageUrls: [string, ...string[]];
411
411
  };
412
+ "ideogram-p-image": {
413
+ prompt: string;
414
+ 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";
415
+ renderingSpeed?: "very-low" | "low" | "medium" | "high";
416
+ };
412
417
  "ideogram-v3": {
413
418
  prompt: string;
414
419
  aspectRatio?: "16:9" | "9:16" | "1:1" | "3:4" | "4:3";
@@ -2185,6 +2190,7 @@ declare const Models: {
2185
2190
  readonly HeygenVideoAvatar: "heygen-video-avatar";
2186
2191
  readonly HunyuanV3: "hunyuan-v3";
2187
2192
  readonly IdeogramCharacter: "ideogram-character";
2193
+ readonly IdeogramPImage: "ideogram-p-image";
2188
2194
  readonly IdeogramV3: "ideogram-v3";
2189
2195
  readonly IdeogramV4: "ideogram-v4";
2190
2196
  readonly Imagen40: "imagen-4.0";
package/index.js CHANGED
@@ -6492,6 +6492,11 @@ var buildIdeogramV4GeneratePayload = (ctx) => ({
6492
6492
  ...ctx.renderingSpeed ? { rendering_speed: ctx.renderingSpeed } : {},
6493
6493
  ...ctx.enableCopyrightDetection ? { enable_copyright_detection: true } : {}
6494
6494
  });
6495
+ var buildIdeogramPImagePayload = (ctx) => ({
6496
+ prompt: ctx.prompt,
6497
+ resolution: ctx.resolution ?? "1024x1024",
6498
+ rendering_speed: ctx.renderingSpeed ?? "medium"
6499
+ });
6495
6500
  var { MODELS: MODELS27 } = defineModels("ideogram", [
6496
6501
  {
6497
6502
  id: "ideogram-v4",
@@ -6537,6 +6542,68 @@ var { MODELS: MODELS27 } = defineModels("ideogram", [
6537
6542
  ...p.boolean("enableCopyrightDetection", false, "Copyright Detection")
6538
6543
  }
6539
6544
  },
6545
+ {
6546
+ id: "ideogram-p-image",
6547
+ name: "Ideogram P-Image",
6548
+ release: "preview",
6549
+ addedAt: "2026-07-28",
6550
+ workflow: "ideogram/p-image/generate",
6551
+ buildPayload: buildIdeogramPImagePayload,
6552
+ estimatedTime: 15,
6553
+ mode: "image",
6554
+ inputType: "t2i",
6555
+ description: "Tiered Ideogram text-to-image \u2014 pick a speed/quality tier from very-low (fastest) to high (max quality).",
6556
+ features: [feat("Speed Tiers", "style"), feat("Up to 2K", "resolution")],
6557
+ paramConfig: {
6558
+ ...params.prompt(),
6559
+ ...params.resolution([
6560
+ // 2K bucket (~3–4 MP)
6561
+ "2048x2048",
6562
+ "1440x2880",
6563
+ "2880x1440",
6564
+ "1664x2496",
6565
+ "2496x1664",
6566
+ "1792x2240",
6567
+ "2240x1792",
6568
+ "1440x2560",
6569
+ "2560x1440",
6570
+ "1600x2560",
6571
+ "2560x1600",
6572
+ "1728x2304",
6573
+ "2304x1728",
6574
+ "1296x3168",
6575
+ "3168x1296",
6576
+ "1152x2944",
6577
+ "2944x1152",
6578
+ "1248x3328",
6579
+ "3328x1248",
6580
+ "1280x3072",
6581
+ "3072x1280",
6582
+ "1024x3072",
6583
+ "3072x1024",
6584
+ // 1K bucket (~1 MP)
6585
+ "1024x1024",
6586
+ "896x1120",
6587
+ "1120x896",
6588
+ "864x1152",
6589
+ "1152x864",
6590
+ "832x1248",
6591
+ "1248x832",
6592
+ "800x1280",
6593
+ "1280x800",
6594
+ "720x1280",
6595
+ "1280x720",
6596
+ "720x1440",
6597
+ "1440x720"
6598
+ ], "1024x1024"),
6599
+ ...params.renderingSpeed([
6600
+ { id: "very-low", label: "Very Low" },
6601
+ { id: "low", label: "Low" },
6602
+ { id: "medium", label: "Balanced" },
6603
+ { id: "high", label: "Quality" }
6604
+ ], "medium")
6605
+ }
6606
+ },
6540
6607
  {
6541
6608
  id: "ideogram-v3",
6542
6609
  name: "Ideogram v3",
@@ -10259,6 +10326,7 @@ var HeygenTalkingPhoto = "heygen-talking-photo";
10259
10326
  var HeygenVideoAvatar = "heygen-video-avatar";
10260
10327
  var HunyuanV3 = "hunyuan-v3";
10261
10328
  var IdeogramCharacter = "ideogram-character";
10329
+ var IdeogramPImage = "ideogram-p-image";
10262
10330
  var IdeogramV3 = "ideogram-v3";
10263
10331
  var IdeogramV4 = "ideogram-v4";
10264
10332
  var Imagen40 = "imagen-4.0";
@@ -10454,6 +10522,7 @@ var Models = {
10454
10522
  HeygenVideoAvatar,
10455
10523
  HunyuanV3,
10456
10524
  IdeogramCharacter,
10525
+ IdeogramPImage,
10457
10526
  IdeogramV3,
10458
10527
  IdeogramV4,
10459
10528
  Imagen40,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "3.25.0",
3
+ "version": "3.26.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",