@picsart/ai-sdk 6.45.0 → 6.47.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 +7 -0
- package/index.js +40 -1
- 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,36 @@ 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
|
+
description: "Animate one or more subjects with realistic body movement driven by audio.",
|
|
3027
|
+
features: [
|
|
3028
|
+
feat("Image Input", "input"),
|
|
3029
|
+
feat("Audio Input", "audio"),
|
|
3030
|
+
feat("Multi-Subject", "quality")
|
|
3031
|
+
],
|
|
3032
|
+
paramConfig: {
|
|
3033
|
+
// Optional prompt steers scene/movement/camera, NOT lip-sync (the audio does).
|
|
3034
|
+
...params.prompt({ required: false }),
|
|
3035
|
+
// v2.0 takes an array of source images (person, pet or character).
|
|
3036
|
+
...params.imageInput(4, "Source Image(s)", true),
|
|
3037
|
+
...params.audioInput("Audio Track", true),
|
|
3038
|
+
// Vendor default is watermark-on; pass false for an un-watermarked result.
|
|
3039
|
+
...p.boolean("enableWatermark", true, "Watermark")
|
|
3040
|
+
}
|
|
3041
|
+
},
|
|
3012
3042
|
{
|
|
3013
3043
|
id: "bytedance-video-enhance",
|
|
3014
3044
|
name: "ByteDance Video Enhance",
|
|
@@ -3070,9 +3100,16 @@ var buildBytedanceOmniHumanPayload = (input) => ({
|
|
|
3070
3100
|
...input.turboMode ? { turbo_mode: true } : {},
|
|
3071
3101
|
...input.seed != null && input.seed !== -1 ? { seed: input.seed } : {}
|
|
3072
3102
|
});
|
|
3103
|
+
var buildBytedanceOmniHumanV2Payload = (input) => ({
|
|
3104
|
+
image_urls: input.imageUrls,
|
|
3105
|
+
audio_url: input.audioUrl,
|
|
3106
|
+
enable_watermark: input.enableWatermark,
|
|
3107
|
+
...input.prompt ? { prompt: input.prompt } : {}
|
|
3108
|
+
});
|
|
3073
3109
|
registerPayloads(MODELS6, {
|
|
3074
3110
|
"bytedance-video-enhance": buildBytedanceVideoEnhancePayload,
|
|
3075
|
-
"bytedance-omnihuman-v1.5": buildBytedanceOmniHumanPayload
|
|
3111
|
+
"bytedance-omnihuman-v1.5": buildBytedanceOmniHumanPayload,
|
|
3112
|
+
"bytedance-omnihuman-v2.0": buildBytedanceOmniHumanV2Payload
|
|
3076
3113
|
});
|
|
3077
3114
|
|
|
3078
3115
|
// src/vendors/catalog/videography.ts
|
|
@@ -15222,6 +15259,7 @@ function createClient(config) {
|
|
|
15222
15259
|
// src/generated/model-constants.ts
|
|
15223
15260
|
var AsyncFlashV1 = "async-flash-v1";
|
|
15224
15261
|
var BytedanceOmnihumanV15 = "bytedance-omnihuman-v1.5";
|
|
15262
|
+
var BytedanceOmnihumanV20 = "bytedance-omnihuman-v2.0";
|
|
15225
15263
|
var BytedanceVideoEnhance = "bytedance-video-enhance";
|
|
15226
15264
|
var BytedanceVideoUpscaler = "bytedance-video-upscaler";
|
|
15227
15265
|
var CaptionsaiVideoCaptions = "captionsai-video-captions";
|
|
@@ -15495,6 +15533,7 @@ var Wan30VideoPrime = "wan-3.0-video-prime";
|
|
|
15495
15533
|
var Models = {
|
|
15496
15534
|
AsyncFlashV1,
|
|
15497
15535
|
BytedanceOmnihumanV15,
|
|
15536
|
+
BytedanceOmnihumanV20,
|
|
15498
15537
|
BytedanceVideoEnhance,
|
|
15499
15538
|
BytedanceVideoUpscaler,
|
|
15500
15539
|
CaptionsaiVideoCaptions,
|