@picsart/ai-sdk 5.5.1 → 5.6.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 +34 -0
- package/index.js +88 -0
- package/package.json +1 -1
package/index.d.ts
CHANGED
|
@@ -1258,6 +1258,37 @@ type ModelInputById = {
|
|
|
1258
1258
|
generateAudio?: boolean;
|
|
1259
1259
|
videoUrls: [string, ...string[]];
|
|
1260
1260
|
};
|
|
1261
|
+
"seedance-2.0-without-moderation": {
|
|
1262
|
+
prompt: string;
|
|
1263
|
+
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1264
|
+
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1265
|
+
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1266
|
+
generateAudio?: boolean;
|
|
1267
|
+
returnLastFrame?: boolean;
|
|
1268
|
+
imageUrls?: string[];
|
|
1269
|
+
videoUrls?: string[];
|
|
1270
|
+
audioUrls?: string[];
|
|
1271
|
+
startFrame?: string;
|
|
1272
|
+
endFrame?: string;
|
|
1273
|
+
};
|
|
1274
|
+
"seedance-2.0-without-moderation-video-edit": {
|
|
1275
|
+
prompt: string;
|
|
1276
|
+
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1277
|
+
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1278
|
+
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1279
|
+
generateAudio?: boolean;
|
|
1280
|
+
returnLastFrame?: boolean;
|
|
1281
|
+
videoUrl: string;
|
|
1282
|
+
imageUrls?: string[];
|
|
1283
|
+
};
|
|
1284
|
+
"seedance-2.0-without-moderation-video-extend": {
|
|
1285
|
+
prompt: string;
|
|
1286
|
+
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
1287
|
+
resolution?: "480p" | "720p" | "1080p" | "4k";
|
|
1288
|
+
duration?: 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15;
|
|
1289
|
+
generateAudio?: boolean;
|
|
1290
|
+
videoUrls: [string, ...string[]];
|
|
1291
|
+
};
|
|
1261
1292
|
"seedance-2.5": {
|
|
1262
1293
|
prompt: string;
|
|
1263
1294
|
aspectRatio?: "16:9" | "9:16" | "1:1" | "4:3" | "3:4" | "21:9" | "adaptive";
|
|
@@ -2548,6 +2579,9 @@ declare const Models: {
|
|
|
2548
2579
|
readonly Seedance20MiniVideoExtend: "seedance-2.0-mini-video-extend";
|
|
2549
2580
|
readonly Seedance20VideoEdit: "seedance-2.0-video-edit";
|
|
2550
2581
|
readonly Seedance20VideoExtend: "seedance-2.0-video-extend";
|
|
2582
|
+
readonly Seedance20WithoutModeration: "seedance-2.0-without-moderation";
|
|
2583
|
+
readonly Seedance20WithoutModerationVideoEdit: "seedance-2.0-without-moderation-video-edit";
|
|
2584
|
+
readonly Seedance20WithoutModerationVideoExtend: "seedance-2.0-without-moderation-video-extend";
|
|
2551
2585
|
readonly Seedance25: "seedance-2.5";
|
|
2552
2586
|
readonly Seedance25VideoEdit: "seedance-2.5-video-edit";
|
|
2553
2587
|
readonly Seedance25VideoExtend: "seedance-2.5-video-extend";
|
package/index.js
CHANGED
|
@@ -4201,6 +4201,40 @@ var { MODELS: MODELS12 } = defineModels("seedance", [
|
|
|
4201
4201
|
...params.endFrame()
|
|
4202
4202
|
}
|
|
4203
4203
|
},
|
|
4204
|
+
{
|
|
4205
|
+
// Same model as seedance-2.0 on a vendor endpoint with moderation
|
|
4206
|
+
// disabled — full capability parity, bills under the seedance-2.0
|
|
4207
|
+
// pricing key (hence the shared modelId).
|
|
4208
|
+
id: "seedance-2.0-without-moderation",
|
|
4209
|
+
name: "Seedance 2.0 Without Moderation",
|
|
4210
|
+
modelId: "seedance-2.0",
|
|
4211
|
+
addedAt: "2026-08-17",
|
|
4212
|
+
release: "preview",
|
|
4213
|
+
workflow: "seedance",
|
|
4214
|
+
buildPayload: buildSeedance20PayloadFor("seedance_2_0_without_moderation"),
|
|
4215
|
+
constraints: seedance20Constraints,
|
|
4216
|
+
estimatedTime: 15,
|
|
4217
|
+
mode: "video",
|
|
4218
|
+
inputType: "t2v",
|
|
4219
|
+
badge: ["new", "premium", "hot"],
|
|
4220
|
+
description: "Seedance 2.0 with vendor moderation disabled \u2014 cinematic video with optional audio and reference image. Up to 4K.",
|
|
4221
|
+
features: [feat("Reference Image", "frame"), feat("Start/End Frame", "frame"), feat("Audio", "audio"), feat("4K", "resolution"), feat("4-15 sec", "duration")],
|
|
4222
|
+
paramConfig: {
|
|
4223
|
+
...params.prompt(),
|
|
4224
|
+
...params.aspectRatio(SEEDANCE_AR),
|
|
4225
|
+
...params.resolution(["480p", "720p", "1080p", "4k"], "720p"),
|
|
4226
|
+
...params.duration(SEEDANCE_V2_DURATIONS, 10),
|
|
4227
|
+
...params.generateAudio(),
|
|
4228
|
+
...params.returnLastFrame(),
|
|
4229
|
+
// Reference roles map directly to backend `reference_*` content entries.
|
|
4230
|
+
// start/end frame stay on their own named slots.
|
|
4231
|
+
...params.imageInput(9, "Reference Images", false, "reference", SEEDANCE_MIN_PIXELS),
|
|
4232
|
+
...params.videoInputs(3, "Reference Videos", false, SEEDANCE_MIN_PIXELS),
|
|
4233
|
+
...params.audioInputs(3, "Reference Audios"),
|
|
4234
|
+
...params.startFrame(),
|
|
4235
|
+
...params.endFrame()
|
|
4236
|
+
}
|
|
4237
|
+
},
|
|
4204
4238
|
{
|
|
4205
4239
|
id: "seedance-2.0-fast",
|
|
4206
4240
|
name: "Seedance 2.0 Fast",
|
|
@@ -4285,6 +4319,31 @@ var { MODELS: MODELS12 } = defineModels("seedance", [
|
|
|
4285
4319
|
...params.imageInput(9, "Reference Images")
|
|
4286
4320
|
}
|
|
4287
4321
|
},
|
|
4322
|
+
{
|
|
4323
|
+
id: "seedance-2.0-without-moderation-video-edit",
|
|
4324
|
+
name: "Seedance 2.0 Without Moderation Video Edit",
|
|
4325
|
+
modelId: "seedance-2.0",
|
|
4326
|
+
addedAt: "2026-08-17",
|
|
4327
|
+
release: "preview",
|
|
4328
|
+
workflow: "seedance",
|
|
4329
|
+
buildPayload: buildSeedance20VideoEditPayloadFor("seedance_2_0_without_moderation"),
|
|
4330
|
+
estimatedTime: 77,
|
|
4331
|
+
mode: "video",
|
|
4332
|
+
inputType: "v2v",
|
|
4333
|
+
badge: ["new", "premium", "hot"],
|
|
4334
|
+
description: "Moderation-free video edit \u2014 replace subjects, add or remove objects, restyle scenes with reference images.",
|
|
4335
|
+
features: [feat("Video Input", "input"), feat("Multi-Image Input", "input"), feat("Audio", "audio"), feat("4K", "resolution"), feat("4-15 sec", "duration")],
|
|
4336
|
+
paramConfig: {
|
|
4337
|
+
...params.prompt(),
|
|
4338
|
+
...params.aspectRatio(SEEDANCE_AR),
|
|
4339
|
+
...params.resolution(["480p", "720p", "1080p", "4k"], "720p"),
|
|
4340
|
+
...params.duration(SEEDANCE_V2_DURATIONS, 5),
|
|
4341
|
+
...params.generateAudio(),
|
|
4342
|
+
...params.returnLastFrame(),
|
|
4343
|
+
...params.videoInput("Source Video"),
|
|
4344
|
+
...params.imageInput(9, "Reference Images")
|
|
4345
|
+
}
|
|
4346
|
+
},
|
|
4288
4347
|
{
|
|
4289
4348
|
id: "seedance-2.0-fast-video-edit",
|
|
4290
4349
|
name: "Seedance 2.0 Fast Video Edit",
|
|
@@ -4355,6 +4414,29 @@ var { MODELS: MODELS12 } = defineModels("seedance", [
|
|
|
4355
4414
|
...params.videoInputs(3, "Source Videos", true)
|
|
4356
4415
|
}
|
|
4357
4416
|
},
|
|
4417
|
+
{
|
|
4418
|
+
id: "seedance-2.0-without-moderation-video-extend",
|
|
4419
|
+
name: "Seedance 2.0 Without Moderation Video Extend",
|
|
4420
|
+
modelId: "seedance-2.0",
|
|
4421
|
+
addedAt: "2026-08-17",
|
|
4422
|
+
release: "preview",
|
|
4423
|
+
workflow: "seedance",
|
|
4424
|
+
buildPayload: buildSeedance20VideoExtendPayloadFor("seedance_2_0_without_moderation"),
|
|
4425
|
+
estimatedTime: 400,
|
|
4426
|
+
mode: "video",
|
|
4427
|
+
inputType: "v2v",
|
|
4428
|
+
badge: ["new", "premium", "hot"],
|
|
4429
|
+
description: "Moderation-free: stitch up to 3 clips into one continuous, extended video.",
|
|
4430
|
+
features: [feat("Multi-Video Input", "input"), feat("Audio", "audio"), feat("4K", "resolution"), feat("4-15 sec", "duration")],
|
|
4431
|
+
paramConfig: {
|
|
4432
|
+
...params.prompt(),
|
|
4433
|
+
...params.aspectRatio(SEEDANCE_AR),
|
|
4434
|
+
...params.resolution(["480p", "720p", "1080p", "4k"], "720p"),
|
|
4435
|
+
...params.duration(SEEDANCE_V2_DURATIONS, 15),
|
|
4436
|
+
...params.generateAudio(),
|
|
4437
|
+
...params.videoInputs(3, "Source Videos", true)
|
|
4438
|
+
}
|
|
4439
|
+
},
|
|
4358
4440
|
{
|
|
4359
4441
|
id: "seedance-2.0-fast-video-extend",
|
|
4360
4442
|
name: "Seedance 2.0 Fast Video Extend",
|
|
@@ -10696,6 +10778,9 @@ var Seedance20MiniVideoEdit = "seedance-2.0-mini-video-edit";
|
|
|
10696
10778
|
var Seedance20MiniVideoExtend = "seedance-2.0-mini-video-extend";
|
|
10697
10779
|
var Seedance20VideoEdit = "seedance-2.0-video-edit";
|
|
10698
10780
|
var Seedance20VideoExtend = "seedance-2.0-video-extend";
|
|
10781
|
+
var Seedance20WithoutModeration = "seedance-2.0-without-moderation";
|
|
10782
|
+
var Seedance20WithoutModerationVideoEdit = "seedance-2.0-without-moderation-video-edit";
|
|
10783
|
+
var Seedance20WithoutModerationVideoExtend = "seedance-2.0-without-moderation-video-extend";
|
|
10699
10784
|
var Seedance25 = "seedance-2.5";
|
|
10700
10785
|
var Seedance25VideoEdit = "seedance-2.5-video-edit";
|
|
10701
10786
|
var Seedance25VideoExtend = "seedance-2.5-video-extend";
|
|
@@ -10899,6 +10984,9 @@ var Models = {
|
|
|
10899
10984
|
Seedance20MiniVideoExtend,
|
|
10900
10985
|
Seedance20VideoEdit,
|
|
10901
10986
|
Seedance20VideoExtend,
|
|
10987
|
+
Seedance20WithoutModeration,
|
|
10988
|
+
Seedance20WithoutModerationVideoEdit,
|
|
10989
|
+
Seedance20WithoutModerationVideoExtend,
|
|
10902
10990
|
Seedance25,
|
|
10903
10991
|
Seedance25VideoEdit,
|
|
10904
10992
|
Seedance25VideoExtend,
|