@picsart/ai-sdk 3.29.1 → 3.30.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 +4 -0
  2. package/index.js +8 -8
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -405,11 +405,14 @@ type ModelInputById = {
405
405
  imageUrls: [string, ...string[]];
406
406
  resolution?: "4k" | "1080p" | "720p";
407
407
  aspectRatio?: "16:9" | "9:16";
408
+ voiceId: string;
408
409
  prompt: string;
409
410
  };
410
411
  "heygen-video-avatar": {
412
+ videoId: string;
411
413
  resolution?: "4k" | "1080p" | "720p";
412
414
  aspectRatio?: "16:9" | "9:16";
415
+ voiceId: string;
413
416
  prompt: string;
414
417
  };
415
418
  "hunyuan-v3": {
@@ -1299,6 +1302,7 @@ type ModelInputById = {
1299
1302
  };
1300
1303
  "sora-2-extend": {
1301
1304
  prompt: string;
1305
+ videoId?: string;
1302
1306
  duration?: 4 | 8 | 12 | 16 | 20;
1303
1307
  };
1304
1308
  "sora-2-pro": {
package/index.js CHANGED
@@ -6525,14 +6525,14 @@ var { MODELS: MODELS25 } = defineModels("heygen", [
6525
6525
  id: "heygen-video-avatar",
6526
6526
  modelId: "heygen-avatar-iv",
6527
6527
  addedAt: "2026-03-17",
6528
- // disabled 2026-05-08: backend/catalog mismatch.
6529
- // heygen/v1/video/generate uses Avatar IV mode but heygen/v1/avatars/list
6530
- // returns 1287 Avatar III avatars (all preview URLs are /avatar/v3/), so
6531
- // every avatar from the list is rejected with "This video avatar does not
6532
- // support Avatar IV video generation". Talking Photo (i2v) path is
6533
- // unaffected. Re-enable once backend exposes an Avatar IV catalog OR
6534
- // downgrades the worker to Avatar III mode.
6535
- disabled: true,
6528
+ // Disabled 2026-05-08 because the avatar list carried no way to tell an
6529
+ // Avatar IV-compatible avatar from an incompatible one, so picks were
6530
+ // rejected at submit. The worker now serves `heygen/v1/avatars/list` from
6531
+ // HeyGen v3 looks filtered by `supported_api_engines`, so every id it offers
6532
+ // is one the engine accepts. Kept at `preview` until that runs on
6533
+ // production — the tag is opt-in, so only stage surfaces asking for it will
6534
+ // list the model.
6535
+ release: "preview",
6536
6536
  name: "HeyGen Video Avatar",
6537
6537
  workflow: "heygen/v1/video/generate",
6538
6538
  buildPayload: buildHeyGenVideoAvatarPayload,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "3.29.1",
3
+ "version": "3.30.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",