@picsart/ai-sdk 6.53.1 → 6.54.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.
package/index.d.ts CHANGED
@@ -138,6 +138,18 @@ type ModelInputById = {
138
138
  encoding?: "pcm_s16le" | "pcm_f32le";
139
139
  bitRate?: number;
140
140
  };
141
+ "aurora-img-alpha": {
142
+ prompt: string;
143
+ aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
144
+ resolution?: "1K" | "2K" | "4K";
145
+ size?: string;
146
+ reasoningEffort?: "max" | "xhigh" | "high" | "medium" | "low";
147
+ temperature?: number;
148
+ background?: "opaque" | "transparent";
149
+ outputFormat?: "png" | "jpeg" | "webp";
150
+ count?: 1 | 2 | 4 | 6 | 8 | 10;
151
+ imageUrls?: string[];
152
+ };
141
153
  "bytedance-omnihuman-v1.5": {
142
154
  prompt?: string;
143
155
  imageUrls: [string, ...string[]];
@@ -2032,6 +2044,18 @@ type ModelInputById = {
2032
2044
  imageUrls?: string[];
2033
2045
  negativePrompt?: string;
2034
2046
  };
2047
+ "star-swirl-alpha": {
2048
+ prompt: string;
2049
+ aspectRatio?: "1:1" | "3:2" | "2:3" | "16:9" | "9:16" | "4:3" | "3:4" | "auto";
2050
+ resolution?: "1K" | "2K" | "4K";
2051
+ size?: string;
2052
+ reasoningEffort?: "max" | "xhigh" | "high" | "medium" | "low";
2053
+ temperature?: number;
2054
+ background?: "opaque" | "transparent";
2055
+ outputFormat?: "png" | "jpeg" | "webp";
2056
+ count?: 1 | 2 | 4 | 6 | 8 | 10;
2057
+ imageUrls?: string[];
2058
+ };
2035
2059
  "topaz-upscale-image": {
2036
2060
  imageUrls: [string, ...string[]];
2037
2061
  model?: "Standard V2" | "Standard MAX" | "Low Resolution V2" | "High Fidelity V2" | "CGI" | "Text Refine" | "Redefine" | "Recovery" | "Recovery V2" | "Wonder" | "Wonder 3";
@@ -3537,6 +3561,7 @@ declare function createClient(config: ClientConfig): AiClient;
3537
3561
 
3538
3562
  declare const Models: {
3539
3563
  readonly AsyncFlashV1: "async-flash-v1";
3564
+ readonly AuroraImgAlpha: "aurora-img-alpha";
3540
3565
  readonly BytedanceOmnihumanV15: "bytedance-omnihuman-v1.5";
3541
3566
  readonly BytedanceOmnihumanV20: "bytedance-omnihuman-v2.0";
3542
3567
  readonly BytedanceVideoEnhance: "bytedance-video-enhance";
@@ -3788,6 +3813,7 @@ declare const Models: {
3788
3813
  readonly Seedream50Flash: "seedream-5.0-flash";
3789
3814
  readonly Seedream50Lite: "seedream-5.0-lite";
3790
3815
  readonly Seedream50Pro: "seedream-5.0-pro";
3816
+ readonly StarSwirlAlpha: "star-swirl-alpha";
3791
3817
  readonly TopazUpscaleImage: "topaz-upscale-image";
3792
3818
  readonly TopazUpscaleVideo: "topaz-upscale-video";
3793
3819
  readonly TypesafeEvaluate: "typesafe-evaluate";
package/index.js CHANGED
@@ -1669,7 +1669,7 @@ var { MODELS } = defineModels("kling", [
1669
1669
  // ── Video: Kling 4.0 Omni (dedicated /omni-video/kling-4.0 tasks API) ──
1670
1670
  {
1671
1671
  id: "kling-v4-omni",
1672
- name: "Kling 4.0 Flash",
1672
+ name: "Kling 4.0 Omni",
1673
1673
  modelId: "kling-v4-omni",
1674
1674
  addedAt: "2026-10-16",
1675
1675
  workflow: "kling-omni-video",
@@ -7445,6 +7445,7 @@ var buildGptImage2EditPayload = (ctx) => ({
7445
7445
  });
7446
7446
  var GPT_IMAGE_PROMPT_MAX = 32e3;
7447
7447
  var GPT_IMAGE_25_QUALITIES = ["max", "xhigh", "high", "medium", "low"];
7448
+ var IMAGEGEN_26_ALPHA_EFFORTS = ["max", "xhigh", "high", "medium", "low"];
7448
7449
  var GPT_IMAGE_25_ASPECT_RATIOS = ["1:1", "3:2", "2:3", "16:9", "9:16", "4:3", "3:4", "auto"];
7449
7450
  var GPT_IMAGE_25_RESOLUTIONS = Object.keys(GPT_IMAGE_25_SIZES);
7450
7451
  var GPT_IMAGE_25_MAX_INPUT_IMAGES = 16;
@@ -7485,6 +7486,64 @@ var validateGptImage25Input = (input) => {
7485
7486
  };
7486
7487
  var { MODELS: MODELS22 } = defineModels("openai", [
7487
7488
  // ── Image ─────────────────────────────────────────
7489
+ // ImageGen 2.6 alpha (preview) — same two OpenAI image workflows as the
7490
+ // gpt-image tiers, but driven by reasoning.effort + temperature instead of
7491
+ // quality (quality is withheld for these models). aurora is the base tier,
7492
+ // star-swirl the smaller one; both token-priced like gpt-image-2.5.
7493
+ {
7494
+ id: "aurora-img-alpha",
7495
+ name: "Aurora (ImageGen 2.6 Alpha)",
7496
+ addedAt: "2026-10-23",
7497
+ release: "preview",
7498
+ workflow: "openai-images-generate",
7499
+ editWorkflow: "openai-image-editing",
7500
+ estimatedTime: 60,
7501
+ mode: "image",
7502
+ inputType: "t2i",
7503
+ description: "ImageGen 2.6 alpha (preview) \u2014 base tier tuned by reasoning effort and temperature rather than quality. Strong text rendering and complex layouts.",
7504
+ features: [feat("Multi-Image Input", "input"), feat("High Quality", "quality")],
7505
+ paramConfig: {
7506
+ ...params.prompt({ maxLength: GPT_IMAGE_PROMPT_MAX }),
7507
+ ...params.aspectRatio(GPT_IMAGE_25_ASPECT_RATIOS, "1:1"),
7508
+ ...params.resolution(GPT_IMAGE_25_RESOLUTIONS, "1K"),
7509
+ ...p.text("size", { label: "Custom Size", placeholder: "WIDTHxHEIGHT, e.g. 2048x1152" }),
7510
+ ...p.enum("reasoningEffort", IMAGEGEN_26_ALPHA_EFFORTS, "high", { label: "Reasoning Effort" }),
7511
+ ...p.range("temperature", 0, 2, 1, { step: 0.1, label: "Temperature" }),
7512
+ ...p.enum("background", ["opaque", "transparent"], "opaque", { label: "Background" }),
7513
+ ...p.enum("outputFormat", ["png", "jpeg", "webp"], "png", { label: "Format" }),
7514
+ ...params.count(),
7515
+ ...params.imageInput(GPT_IMAGE_25_MAX_INPUT_IMAGES, "Source Images")
7516
+ },
7517
+ constraints: [...gptImageBgConstraints, ...gptImage25SizeConstraints],
7518
+ validateInput: validateGptImage25Input
7519
+ },
7520
+ {
7521
+ id: "star-swirl-alpha",
7522
+ name: "Star Swirl (ImageGen 2.6 Alpha)",
7523
+ addedAt: "2026-10-23",
7524
+ release: "preview",
7525
+ workflow: "openai-images-generate",
7526
+ editWorkflow: "openai-image-editing",
7527
+ estimatedTime: 40,
7528
+ mode: "image",
7529
+ inputType: "t2i",
7530
+ description: "ImageGen 2.6 alpha (preview) \u2014 smaller, faster tier tuned by reasoning effort and temperature rather than quality. Quick, precise edits and generation.",
7531
+ features: [feat("Multi-Image Input", "input"), feat("Fast", "characteristic")],
7532
+ paramConfig: {
7533
+ ...params.prompt({ maxLength: GPT_IMAGE_PROMPT_MAX }),
7534
+ ...params.aspectRatio(GPT_IMAGE_25_ASPECT_RATIOS, "1:1"),
7535
+ ...params.resolution(GPT_IMAGE_25_RESOLUTIONS, "1K"),
7536
+ ...p.text("size", { label: "Custom Size", placeholder: "WIDTHxHEIGHT, e.g. 2048x1152" }),
7537
+ ...p.enum("reasoningEffort", IMAGEGEN_26_ALPHA_EFFORTS, "high", { label: "Reasoning Effort" }),
7538
+ ...p.range("temperature", 0, 2, 1, { step: 0.1, label: "Temperature" }),
7539
+ ...p.enum("background", ["opaque", "transparent"], "opaque", { label: "Background" }),
7540
+ ...p.enum("outputFormat", ["png", "jpeg", "webp"], "png", { label: "Format" }),
7541
+ ...params.count(),
7542
+ ...params.imageInput(GPT_IMAGE_25_MAX_INPUT_IMAGES, "Source Images")
7543
+ },
7544
+ constraints: [...gptImageBgConstraints, ...gptImage25SizeConstraints],
7545
+ validateInput: validateGptImage25Input
7546
+ },
7488
7547
  {
7489
7548
  id: "gpt-image-2.5-sunburst",
7490
7549
  name: "GPT Image 2.5 Sunburst",
@@ -7649,6 +7708,37 @@ registerEditPayloads(MODELS22, {
7649
7708
  "gpt-image-2.5-flare": editFor("gpt-image-2.5-flare"),
7650
7709
  "gpt-image-2.5-sunburst": editFor("gpt-image-2.5-sunburst")
7651
7710
  });
7711
+ var alphaPlanningControls = (input) => ({
7712
+ ...input.reasoningEffort ? { reasoning: { effort: input.reasoningEffort } } : {},
7713
+ ...input.temperature !== void 0 ? { temperature: input.temperature } : {}
7714
+ });
7715
+ var generateAlphaFor = (model) => (input) => ({
7716
+ prompt: input.prompt,
7717
+ model,
7718
+ n: input.count ?? 1,
7719
+ size: resolveSize(input, "1:1"),
7720
+ ...alphaPlanningControls(input),
7721
+ ...input.background ? { background: input.background } : {},
7722
+ ...input.outputFormat ? { output_format: input.outputFormat } : {}
7723
+ });
7724
+ var editAlphaFor = (model) => (input) => ({
7725
+ prompt: input.prompt,
7726
+ model,
7727
+ images: input.imageUrls ?? [],
7728
+ n: input.count ?? 1,
7729
+ size: resolveSize(input, "auto"),
7730
+ ...alphaPlanningControls(input),
7731
+ ...input.background ? { background: input.background } : {},
7732
+ ...input.outputFormat ? { output_format: input.outputFormat } : {}
7733
+ });
7734
+ registerPayloads(MODELS22, {
7735
+ "aurora-img-alpha": generateAlphaFor("aurora-img-alpha"),
7736
+ "star-swirl-alpha": generateAlphaFor("star-swirl-alpha")
7737
+ });
7738
+ registerEditPayloads(MODELS22, {
7739
+ "aurora-img-alpha": editAlphaFor("aurora-img-alpha"),
7740
+ "star-swirl-alpha": editAlphaFor("star-swirl-alpha")
7741
+ });
7652
7742
 
7653
7743
  // src/vendors/catalog/elevenlabs.ts
7654
7744
  var VOICE_CATALOG = { workflow: "elevenlabs/v1/catalog/voices" };
@@ -15237,6 +15327,7 @@ function createClient(config) {
15237
15327
 
15238
15328
  // src/generated/model-constants.ts
15239
15329
  var AsyncFlashV1 = "async-flash-v1";
15330
+ var AuroraImgAlpha = "aurora-img-alpha";
15240
15331
  var BytedanceOmnihumanV15 = "bytedance-omnihuman-v1.5";
15241
15332
  var BytedanceOmnihumanV20 = "bytedance-omnihuman-v2.0";
15242
15333
  var BytedanceVideoEnhance = "bytedance-video-enhance";
@@ -15488,6 +15579,7 @@ var Seedream47 = "seedream-4.7";
15488
15579
  var Seedream50Flash = "seedream-5.0-flash";
15489
15580
  var Seedream50Lite = "seedream-5.0-lite";
15490
15581
  var Seedream50Pro = "seedream-5.0-pro";
15582
+ var StarSwirlAlpha = "star-swirl-alpha";
15491
15583
  var TopazUpscaleImage = "topaz-upscale-image";
15492
15584
  var TopazUpscaleVideo = "topaz-upscale-video";
15493
15585
  var TypesafeEvaluate = "typesafe-evaluate";
@@ -15505,6 +15597,7 @@ var Wan30Video = "wan-3.0-video";
15505
15597
  var Wan30VideoPrime = "wan-3.0-video-prime";
15506
15598
  var Models = {
15507
15599
  AsyncFlashV1,
15600
+ AuroraImgAlpha,
15508
15601
  BytedanceOmnihumanV15,
15509
15602
  BytedanceOmnihumanV20,
15510
15603
  BytedanceVideoEnhance,
@@ -15756,6 +15849,7 @@ var Models = {
15756
15849
  Seedream50Flash,
15757
15850
  Seedream50Lite,
15758
15851
  Seedream50Pro,
15852
+ StarSwirlAlpha,
15759
15853
  TopazUpscaleImage,
15760
15854
  TopazUpscaleVideo,
15761
15855
  TypesafeEvaluate,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.53.1",
3
+ "version": "6.54.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",