@picsart/ai-sdk 6.52.0 → 6.53.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 +14 -0
  2. package/index.js +87 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -931,6 +931,18 @@ type ModelInputById = {
931
931
  imageUrls?: string[];
932
932
  imageWeight?: number;
933
933
  };
934
+ "ideogram-vector-1": {
935
+ prompt: string;
936
+ imageUrls?: string[];
937
+ 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";
938
+ quality?: "low" | "medium" | "high";
939
+ count?: 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8;
940
+ seed?: number;
941
+ };
942
+ "ideogram-vector-1-vectorize": {
943
+ startFrame: string;
944
+ mode?: "default" | "simple";
945
+ };
934
946
  "kimi-k3": {
935
947
  prompt: string;
936
948
  imageUrls?: string[];
@@ -3640,6 +3652,8 @@ declare const Models: {
3640
3652
  readonly IdeogramPImage: "ideogram-p-image";
3641
3653
  readonly IdeogramV3: "ideogram-v3";
3642
3654
  readonly IdeogramV4: "ideogram-v4";
3655
+ readonly IdeogramVector1: "ideogram-vector-1";
3656
+ readonly IdeogramVector1Vectorize: "ideogram-vector-1-vectorize";
3643
3657
  readonly KimiK3: "kimi-k3";
3644
3658
  readonly Kling30Image: "kling-3.0-image";
3645
3659
  readonly KlingAvatar: "kling-avatar";
package/index.js CHANGED
@@ -8579,7 +8579,75 @@ var ideogram45Constraints = [
8579
8579
  resolution: { disabled: true, reason: "The output keeps the source image size." }
8580
8580
  } }
8581
8581
  ];
8582
+ var IDEOGRAM_VECTOR_IMAGE_BOUNDS = {
8583
+ maxBytes: 50 * 1024 * 1024
8584
+ };
8585
+ var IDEOGRAM_VECTOR_ASPECT_RATIOS = [
8586
+ "auto",
8587
+ "1:1",
8588
+ "16:9",
8589
+ "9:16",
8590
+ "4:3",
8591
+ "3:4",
8592
+ "3:2",
8593
+ "2:3",
8594
+ "5:4",
8595
+ "4:5",
8596
+ "16:10",
8597
+ "10:16",
8598
+ "2:1",
8599
+ "1:2",
8600
+ "3:1",
8601
+ "1:3",
8602
+ "4:1",
8603
+ "1:4"
8604
+ ];
8605
+ var IDEOGRAM_VECTOR_QUALITIES = ["low", "medium", "high"];
8582
8606
  var { MODELS: MODELS25 } = defineModels("ideogram", [
8607
+ {
8608
+ id: "ideogram-vector-1",
8609
+ name: "Ideogram Vector",
8610
+ addedAt: "2026-10-21",
8611
+ workflow: "ideogram/vector/generate",
8612
+ // The worker returns SVG and exposes no format param.
8613
+ outputExtension: "svg",
8614
+ estimatedTime: 30,
8615
+ mode: "image",
8616
+ inputType: "t2i",
8617
+ description: "Ideogram Vector \u2014 SVG logos, icons and illustrations from a prompt, optionally guided by up to 5 reference images.",
8618
+ features: [feat("Vector/SVG", "characteristic"), feat("Reference Images", "input")],
8619
+ paramConfig: {
8620
+ ...params.prompt({ maxLength: 9500 }),
8621
+ // imageUrls[0] is the primary source; the rest are additional references.
8622
+ ...params.imageInput(5, "Reference Images", false, "reference", IDEOGRAM_VECTOR_IMAGE_BOUNDS),
8623
+ ...params.aspectRatio(IDEOGRAM_VECTOR_ASPECT_RATIOS, "auto"),
8624
+ ...p.quality(IDEOGRAM_VECTOR_QUALITIES, "medium"),
8625
+ ...params.count(IDEOGRAM_45_COUNTS, 1),
8626
+ ...params.seed()
8627
+ }
8628
+ },
8629
+ {
8630
+ id: "ideogram-vector-1-vectorize",
8631
+ name: "Ideogram Vectorize",
8632
+ addedAt: "2026-10-21",
8633
+ workflow: "ideogram/vector/vectorize",
8634
+ syncExecute: true,
8635
+ // The worker returns SVG and exposes no format param.
8636
+ outputExtension: "svg",
8637
+ estimatedTime: 8,
8638
+ mode: "image",
8639
+ inputType: "i2i",
8640
+ description: "Ideogram Vectorize \u2014 convert a raster image (JPEG, PNG or WebP) into an SVG.",
8641
+ features: [feat("Vector/SVG", "characteristic"), feat("Image to SVG", "input")],
8642
+ paramConfig: {
8643
+ ...params.startFrame("Source Image", true, IDEOGRAM_VECTOR_IMAGE_BOUNDS),
8644
+ // `simple` traces fewer, simpler shapes; `default` preserves finer details.
8645
+ ...p.enum("mode", [
8646
+ { id: "default", label: "Detailed" },
8647
+ { id: "simple", label: "Simple" }
8648
+ ], "default", { label: "Detail" })
8649
+ }
8650
+ },
8583
8651
  {
8584
8652
  id: "ideogram-4-5",
8585
8653
  name: "Ideogram 4.5",
@@ -8878,9 +8946,23 @@ var buildIdeogram45PreciseEditPayload = (input) => {
8878
8946
  ...input.enableCopyrightDetection ? { enable_copyright_detection: true } : {}
8879
8947
  };
8880
8948
  };
8949
+ var buildIdeogramVectorPayload = (input) => ({
8950
+ prompt: input.prompt,
8951
+ ...input.imageUrls?.length ? { images: input.imageUrls } : {},
8952
+ ...input.aspectRatio ? { aspect_ratio: input.aspectRatio } : {},
8953
+ quality: input.quality ?? "medium",
8954
+ num_images: input.count ?? 1,
8955
+ ...input.seed != null ? { seed: input.seed } : {}
8956
+ });
8957
+ var buildIdeogramVectorizePayload = (input) => ({
8958
+ image: input.startFrame,
8959
+ mode: input.mode ?? "default"
8960
+ });
8881
8961
  registerPayloads(MODELS25, {
8882
8962
  "ideogram-4-5": buildIdeogram45Payload,
8883
- "ideogram-4-5-precise-edit": buildIdeogram45PreciseEditPayload
8963
+ "ideogram-4-5-precise-edit": buildIdeogram45PreciseEditPayload,
8964
+ "ideogram-vector-1": buildIdeogramVectorPayload,
8965
+ "ideogram-vector-1-vectorize": buildIdeogramVectorizePayload
8884
8966
  });
8885
8967
 
8886
8968
  // src/vendors/catalog/qwen.ts
@@ -15252,6 +15334,8 @@ var IdeogramCharacter = "ideogram-character";
15252
15334
  var IdeogramPImage = "ideogram-p-image";
15253
15335
  var IdeogramV3 = "ideogram-v3";
15254
15336
  var IdeogramV4 = "ideogram-v4";
15337
+ var IdeogramVector1 = "ideogram-vector-1";
15338
+ var IdeogramVector1Vectorize = "ideogram-vector-1-vectorize";
15255
15339
  var KimiK3 = "kimi-k3";
15256
15340
  var Kling30Image = "kling-3.0-image";
15257
15341
  var KlingAvatar = "kling-avatar";
@@ -15518,6 +15602,8 @@ var Models = {
15518
15602
  IdeogramPImage,
15519
15603
  IdeogramV3,
15520
15604
  IdeogramV4,
15605
+ IdeogramVector1,
15606
+ IdeogramVector1Vectorize,
15521
15607
  KimiK3,
15522
15608
  Kling30Image,
15523
15609
  KlingAvatar,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.52.0",
3
+ "version": "6.53.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",