@picsart/ai-sdk 6.45.0 → 6.46.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 +7 -0
  2. package/index.js +41 -1
  3. package/package.json +1 -1
package/index.d.ts CHANGED
@@ -141,6 +141,12 @@ type ModelInputById = {
141
141
  turboMode?: boolean;
142
142
  seed?: number;
143
143
  };
144
+ "bytedance-omnihuman-v2.0": {
145
+ prompt?: string;
146
+ imageUrls: [string, ...string[]];
147
+ audioUrl: string;
148
+ enableWatermark?: boolean;
149
+ };
144
150
  "bytedance-video-enhance": {
145
151
  videoUrl: string;
146
152
  quality?: "standard" | "professional";
@@ -3558,6 +3564,7 @@ declare function createClient(config: ClientConfig): AiClient;
3558
3564
  declare const Models: {
3559
3565
  readonly AsyncFlashV1: "async-flash-v1";
3560
3566
  readonly BytedanceOmnihumanV15: "bytedance-omnihuman-v1.5";
3567
+ readonly BytedanceOmnihumanV20: "bytedance-omnihuman-v2.0";
3561
3568
  readonly BytedanceVideoEnhance: "bytedance-video-enhance";
3562
3569
  readonly BytedanceVideoUpscaler: "bytedance-video-upscaler";
3563
3570
  readonly CaptionsaiVideoCaptions: "captionsai-video-captions";
package/index.js CHANGED
@@ -3009,6 +3009,37 @@ var { MODELS: MODELS6 } = defineModels("bytedance", [
3009
3009
  ...p.range("seed", -1, 2147483647, -1)
3010
3010
  }
3011
3011
  },
3012
+ {
3013
+ id: "bytedance-omnihuman-v2.0",
3014
+ name: "ByteDance OmniHuman 2.0",
3015
+ addedAt: "2026-10-16",
3016
+ workflow: "bytedance/omnihuman/v2.0",
3017
+ // Pricing key of the direct BytePlus Vision AI integration. The catalog `id`
3018
+ // keeps its `v2.0` spelling for stability, so the backend key is spelled out.
3019
+ // Priced per second of output video (equal to the driving audio length).
3020
+ modelId: "bytedance-omnihuman-2.0",
3021
+ // Output video length equals the driving audio (4..300s), so wall time scales
3022
+ // with the clip. Representative mid-length figure, mirroring v1.5 — not a ceiling.
3023
+ estimatedTime: 250,
3024
+ mode: "video",
3025
+ inputType: "i2v",
3026
+ release: "preview",
3027
+ description: "Animate one or more subjects with realistic body movement driven by audio.",
3028
+ features: [
3029
+ feat("Image Input", "input"),
3030
+ feat("Audio Input", "audio"),
3031
+ feat("Multi-Subject", "quality")
3032
+ ],
3033
+ paramConfig: {
3034
+ // Optional prompt steers scene/movement/camera, NOT lip-sync (the audio does).
3035
+ ...params.prompt({ required: false }),
3036
+ // v2.0 takes an array of source images (person, pet or character).
3037
+ ...params.imageInput(4, "Source Image(s)", true),
3038
+ ...params.audioInput("Audio Track", true),
3039
+ // Vendor default is watermark-on; pass false for an un-watermarked result.
3040
+ ...p.boolean("enableWatermark", true, "Watermark")
3041
+ }
3042
+ },
3012
3043
  {
3013
3044
  id: "bytedance-video-enhance",
3014
3045
  name: "ByteDance Video Enhance",
@@ -3070,9 +3101,16 @@ var buildBytedanceOmniHumanPayload = (input) => ({
3070
3101
  ...input.turboMode ? { turbo_mode: true } : {},
3071
3102
  ...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {}
3072
3103
  });
3104
+ var buildBytedanceOmniHumanV2Payload = (input) => ({
3105
+ image_urls: input.imageUrls,
3106
+ audio_url: input.audioUrl,
3107
+ enable_watermark: input.enableWatermark,
3108
+ ...input.prompt ? { prompt: input.prompt } : {}
3109
+ });
3073
3110
  registerPayloads(MODELS6, {
3074
3111
  "bytedance-video-enhance": buildBytedanceVideoEnhancePayload,
3075
- "bytedance-omnihuman-v1.5": buildBytedanceOmniHumanPayload
3112
+ "bytedance-omnihuman-v1.5": buildBytedanceOmniHumanPayload,
3113
+ "bytedance-omnihuman-v2.0": buildBytedanceOmniHumanV2Payload
3076
3114
  });
3077
3115
 
3078
3116
  // src/vendors/catalog/videography.ts
@@ -15222,6 +15260,7 @@ function createClient(config) {
15222
15260
  // src/generated/model-constants.ts
15223
15261
  var AsyncFlashV1 = "async-flash-v1";
15224
15262
  var BytedanceOmnihumanV15 = "bytedance-omnihuman-v1.5";
15263
+ var BytedanceOmnihumanV20 = "bytedance-omnihuman-v2.0";
15225
15264
  var BytedanceVideoEnhance = "bytedance-video-enhance";
15226
15265
  var BytedanceVideoUpscaler = "bytedance-video-upscaler";
15227
15266
  var CaptionsaiVideoCaptions = "captionsai-video-captions";
@@ -15495,6 +15534,7 @@ var Wan30VideoPrime = "wan-3.0-video-prime";
15495
15534
  var Models = {
15496
15535
  AsyncFlashV1,
15497
15536
  BytedanceOmnihumanV15,
15537
+ BytedanceOmnihumanV20,
15498
15538
  BytedanceVideoEnhance,
15499
15539
  BytedanceVideoUpscaler,
15500
15540
  CaptionsaiVideoCaptions,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@picsart/ai-sdk",
3
- "version": "6.45.0",
3
+ "version": "6.46.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",