pixelkiln 0.83.0 → 0.85.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/PROVIDERS.md +3 -3
- package/dist/cli.js +957 -611
- package/dist/cli.js.map +1 -1
- package/dist/client/gallery.css +2 -0
- package/dist/client/gallery.js +3366 -3087
- package/dist/index.cjs +876 -530
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +792 -71
- package/dist/index.d.ts +792 -71
- package/dist/index.js +783 -437
- package/dist/index.js.map +1 -1
- package/docs/MANIFEST.md +10 -6
- package/docs/REVISIONS.md +66 -15
- package/docs/SCENARIO.md +174 -7
- package/package.json +1 -1
- package/schema/manifest.schema.json +22 -0
- package/skills/pixelkiln/references/pixellab-roadmap.md +10 -0
- package/skills/pixelkiln/references/pixellab.md +6 -3
- package/skills/pixelkiln/references/revisions.md +13 -7
- package/skills/pixelkiln/references/scenario.md +8 -4
package/dist/index.d.ts
CHANGED
|
@@ -581,7 +581,7 @@ declare const GeneratorSchema: z.ZodEnum<["1dir", "map", "pixflux", "tiles", "an
|
|
|
581
581
|
type Generator = z.infer<typeof GeneratorSchema>;
|
|
582
582
|
declare const GridConfidenceSchema: z.ZodEnum<["low", "medium", "high"]>;
|
|
583
583
|
type GridConfidence = z.infer<typeof GridConfidenceSchema>;
|
|
584
|
-
declare const RevisionModeSchema: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
584
|
+
declare const RevisionModeSchema: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
585
585
|
type RevisionMode = z.infer<typeof RevisionModeSchema>;
|
|
586
586
|
/** A decoded style reference ready for a provider-specific request body. */
|
|
587
587
|
interface ResolvedStyleImage {
|
|
@@ -1343,7 +1343,7 @@ declare const RevisionDitheringSchema: z.ZodEnum<["none", "2x2", "4x4", "8x8"]>;
|
|
|
1343
1343
|
type RevisionDithering = z.infer<typeof RevisionDitheringSchema>;
|
|
1344
1344
|
declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
1345
1345
|
/** What kind of controlled change the provider workflow performs. */
|
|
1346
|
-
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
1346
|
+
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
1347
1347
|
/** Parent asset id in the same style. */
|
|
1348
1348
|
from: z.ZodString;
|
|
1349
1349
|
/** Manifest-relative black/white PNG. Required only for masked inpainting. */
|
|
@@ -1372,7 +1372,22 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1372
1372
|
* `interpolate`: required, the ending keyframe; the parent is the start.
|
|
1373
1373
|
*/
|
|
1374
1374
|
lastFrame: z.ZodOptional<z.ZodString>;
|
|
1375
|
-
/**
|
|
1375
|
+
/**
|
|
1376
|
+
* `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
|
|
1377
|
+
* Frames whose foreground drifts from the first frame beyond this are
|
|
1378
|
+
* corrected toward it; 0 corrects every frame and higher values correct
|
|
1379
|
+
* fewer. Omit for PixelLab's default.
|
|
1380
|
+
*/
|
|
1381
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
1382
|
+
/**
|
|
1383
|
+
* `animate-pixminimax` only: one noun phrase for what the parent shows.
|
|
1384
|
+
* PixelLab reads it off the image when omitted, and can decline some
|
|
1385
|
+
* images, failing the job until it is sent.
|
|
1386
|
+
*/
|
|
1387
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
1388
|
+
/** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
|
|
1389
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
1390
|
+
/** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
|
|
1376
1391
|
direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
|
|
1377
1392
|
/** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
|
|
1378
1393
|
enhancePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -1392,12 +1407,15 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1392
1407
|
* same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
|
|
1393
1408
|
*/
|
|
1394
1409
|
skeletonTemplate: z.ZodOptional<z.ZodString>;
|
|
1410
|
+
/** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
|
|
1411
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
1395
1412
|
/**
|
|
1396
|
-
* `animate-skeleton
|
|
1413
|
+
* `animate-skeleton`: what the character *looks like*, a noun
|
|
1397
1414
|
* phrase (colours, clothing, held items) — distinct from the asset's
|
|
1398
1415
|
* own `prompt`, which this mode sends as the motion's short label
|
|
1399
1416
|
* (PixelLab's `action`), the same `prompt`-as-motion convention
|
|
1400
|
-
* `animate`/`animate-pixminimax` already use.
|
|
1417
|
+
* `animate`/`animate-pixminimax` already use. `remove-background`: a
|
|
1418
|
+
* short description of the foreground, which PixelLab uses as a hint.
|
|
1401
1419
|
*/
|
|
1402
1420
|
description: z.ZodOptional<z.ZodString>;
|
|
1403
1421
|
/**
|
|
@@ -1408,7 +1426,7 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1408
1426
|
*/
|
|
1409
1427
|
engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
|
|
1410
1428
|
}, "strict", z.ZodTypeAny, {
|
|
1411
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1429
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1412
1430
|
from: string;
|
|
1413
1431
|
frames?: number | undefined;
|
|
1414
1432
|
fps?: number | undefined;
|
|
@@ -1421,12 +1439,16 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1421
1439
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
1422
1440
|
ditheringStrength?: number | undefined;
|
|
1423
1441
|
lastFrame?: string | undefined;
|
|
1442
|
+
driftThreshold?: number | undefined;
|
|
1443
|
+
subjectDescription?: string | undefined;
|
|
1444
|
+
initialPose?: string | undefined;
|
|
1424
1445
|
keypointsFile?: string | undefined;
|
|
1425
1446
|
skeletonTemplate?: string | undefined;
|
|
1447
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
1426
1448
|
description?: string | undefined;
|
|
1427
1449
|
engine?: "pro-flash" | undefined;
|
|
1428
1450
|
}, {
|
|
1429
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1451
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1430
1452
|
from: string;
|
|
1431
1453
|
frames?: number | undefined;
|
|
1432
1454
|
fps?: number | undefined;
|
|
@@ -1439,12 +1461,16 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1439
1461
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
1440
1462
|
ditheringStrength?: number | undefined;
|
|
1441
1463
|
lastFrame?: string | undefined;
|
|
1464
|
+
driftThreshold?: number | undefined;
|
|
1465
|
+
subjectDescription?: string | undefined;
|
|
1466
|
+
initialPose?: string | undefined;
|
|
1442
1467
|
keypointsFile?: string | undefined;
|
|
1443
1468
|
skeletonTemplate?: string | undefined;
|
|
1469
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
1444
1470
|
description?: string | undefined;
|
|
1445
1471
|
engine?: "pro-flash" | undefined;
|
|
1446
1472
|
}>, {
|
|
1447
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1473
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1448
1474
|
from: string;
|
|
1449
1475
|
frames?: number | undefined;
|
|
1450
1476
|
fps?: number | undefined;
|
|
@@ -1457,12 +1483,16 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1457
1483
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
1458
1484
|
ditheringStrength?: number | undefined;
|
|
1459
1485
|
lastFrame?: string | undefined;
|
|
1486
|
+
driftThreshold?: number | undefined;
|
|
1487
|
+
subjectDescription?: string | undefined;
|
|
1488
|
+
initialPose?: string | undefined;
|
|
1460
1489
|
keypointsFile?: string | undefined;
|
|
1461
1490
|
skeletonTemplate?: string | undefined;
|
|
1491
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
1462
1492
|
description?: string | undefined;
|
|
1463
1493
|
engine?: "pro-flash" | undefined;
|
|
1464
1494
|
}, {
|
|
1465
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1495
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
1466
1496
|
from: string;
|
|
1467
1497
|
frames?: number | undefined;
|
|
1468
1498
|
fps?: number | undefined;
|
|
@@ -1475,8 +1505,12 @@ declare const RevisionSchema: z.ZodEffects<z.ZodObject<{
|
|
|
1475
1505
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
1476
1506
|
ditheringStrength?: number | undefined;
|
|
1477
1507
|
lastFrame?: string | undefined;
|
|
1508
|
+
driftThreshold?: number | undefined;
|
|
1509
|
+
subjectDescription?: string | undefined;
|
|
1510
|
+
initialPose?: string | undefined;
|
|
1478
1511
|
keypointsFile?: string | undefined;
|
|
1479
1512
|
skeletonTemplate?: string | undefined;
|
|
1513
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
1480
1514
|
description?: string | undefined;
|
|
1481
1515
|
engine?: "pro-flash" | undefined;
|
|
1482
1516
|
}>;
|
|
@@ -1552,6 +1586,10 @@ interface ResolvedRevision {
|
|
|
1552
1586
|
skeleton?: SkeletonSet | null;
|
|
1553
1587
|
skeletonTemplate?: string;
|
|
1554
1588
|
description?: string;
|
|
1589
|
+
removalTask?: "simple" | "complex";
|
|
1590
|
+
driftThreshold?: number;
|
|
1591
|
+
subjectDescription?: string;
|
|
1592
|
+
initialPose?: string;
|
|
1555
1593
|
engine?: "pro-flash";
|
|
1556
1594
|
}
|
|
1557
1595
|
declare const StyleSchema: z.ZodEffects<z.ZodEffects<z.ZodObject<{
|
|
@@ -3976,7 +4014,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
3976
4014
|
/** Controlled generation derived from another asset in the same style. */
|
|
3977
4015
|
revision: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
3978
4016
|
/** What kind of controlled change the provider workflow performs. */
|
|
3979
|
-
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
4017
|
+
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
3980
4018
|
/** Parent asset id in the same style. */
|
|
3981
4019
|
from: z.ZodString;
|
|
3982
4020
|
/** Manifest-relative black/white PNG. Required only for masked inpainting. */
|
|
@@ -4005,7 +4043,22 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4005
4043
|
* `interpolate`: required, the ending keyframe; the parent is the start.
|
|
4006
4044
|
*/
|
|
4007
4045
|
lastFrame: z.ZodOptional<z.ZodString>;
|
|
4008
|
-
/**
|
|
4046
|
+
/**
|
|
4047
|
+
* `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
|
|
4048
|
+
* Frames whose foreground drifts from the first frame beyond this are
|
|
4049
|
+
* corrected toward it; 0 corrects every frame and higher values correct
|
|
4050
|
+
* fewer. Omit for PixelLab's default.
|
|
4051
|
+
*/
|
|
4052
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
4053
|
+
/**
|
|
4054
|
+
* `animate-pixminimax` only: one noun phrase for what the parent shows.
|
|
4055
|
+
* PixelLab reads it off the image when omitted, and can decline some
|
|
4056
|
+
* images, failing the job until it is sent.
|
|
4057
|
+
*/
|
|
4058
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
4059
|
+
/** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
|
|
4060
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
4061
|
+
/** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
|
|
4009
4062
|
direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
|
|
4010
4063
|
/** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
|
|
4011
4064
|
enhancePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -4025,12 +4078,15 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4025
4078
|
* same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
|
|
4026
4079
|
*/
|
|
4027
4080
|
skeletonTemplate: z.ZodOptional<z.ZodString>;
|
|
4081
|
+
/** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
|
|
4082
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
4028
4083
|
/**
|
|
4029
|
-
* `animate-skeleton
|
|
4084
|
+
* `animate-skeleton`: what the character *looks like*, a noun
|
|
4030
4085
|
* phrase (colours, clothing, held items) — distinct from the asset's
|
|
4031
4086
|
* own `prompt`, which this mode sends as the motion's short label
|
|
4032
4087
|
* (PixelLab's `action`), the same `prompt`-as-motion convention
|
|
4033
|
-
* `animate`/`animate-pixminimax` already use.
|
|
4088
|
+
* `animate`/`animate-pixminimax` already use. `remove-background`: a
|
|
4089
|
+
* short description of the foreground, which PixelLab uses as a hint.
|
|
4034
4090
|
*/
|
|
4035
4091
|
description: z.ZodOptional<z.ZodString>;
|
|
4036
4092
|
/**
|
|
@@ -4041,7 +4097,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4041
4097
|
*/
|
|
4042
4098
|
engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
|
|
4043
4099
|
}, "strict", z.ZodTypeAny, {
|
|
4044
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4100
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4045
4101
|
from: string;
|
|
4046
4102
|
frames?: number | undefined;
|
|
4047
4103
|
fps?: number | undefined;
|
|
@@ -4054,12 +4110,16 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4054
4110
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4055
4111
|
ditheringStrength?: number | undefined;
|
|
4056
4112
|
lastFrame?: string | undefined;
|
|
4113
|
+
driftThreshold?: number | undefined;
|
|
4114
|
+
subjectDescription?: string | undefined;
|
|
4115
|
+
initialPose?: string | undefined;
|
|
4057
4116
|
keypointsFile?: string | undefined;
|
|
4058
4117
|
skeletonTemplate?: string | undefined;
|
|
4118
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4059
4119
|
description?: string | undefined;
|
|
4060
4120
|
engine?: "pro-flash" | undefined;
|
|
4061
4121
|
}, {
|
|
4062
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4122
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4063
4123
|
from: string;
|
|
4064
4124
|
frames?: number | undefined;
|
|
4065
4125
|
fps?: number | undefined;
|
|
@@ -4072,12 +4132,16 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4072
4132
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4073
4133
|
ditheringStrength?: number | undefined;
|
|
4074
4134
|
lastFrame?: string | undefined;
|
|
4135
|
+
driftThreshold?: number | undefined;
|
|
4136
|
+
subjectDescription?: string | undefined;
|
|
4137
|
+
initialPose?: string | undefined;
|
|
4075
4138
|
keypointsFile?: string | undefined;
|
|
4076
4139
|
skeletonTemplate?: string | undefined;
|
|
4140
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4077
4141
|
description?: string | undefined;
|
|
4078
4142
|
engine?: "pro-flash" | undefined;
|
|
4079
4143
|
}>, {
|
|
4080
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4144
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4081
4145
|
from: string;
|
|
4082
4146
|
frames?: number | undefined;
|
|
4083
4147
|
fps?: number | undefined;
|
|
@@ -4090,12 +4154,16 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4090
4154
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4091
4155
|
ditheringStrength?: number | undefined;
|
|
4092
4156
|
lastFrame?: string | undefined;
|
|
4157
|
+
driftThreshold?: number | undefined;
|
|
4158
|
+
subjectDescription?: string | undefined;
|
|
4159
|
+
initialPose?: string | undefined;
|
|
4093
4160
|
keypointsFile?: string | undefined;
|
|
4094
4161
|
skeletonTemplate?: string | undefined;
|
|
4162
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4095
4163
|
description?: string | undefined;
|
|
4096
4164
|
engine?: "pro-flash" | undefined;
|
|
4097
4165
|
}, {
|
|
4098
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4166
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4099
4167
|
from: string;
|
|
4100
4168
|
frames?: number | undefined;
|
|
4101
4169
|
fps?: number | undefined;
|
|
@@ -4108,8 +4176,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4108
4176
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4109
4177
|
ditheringStrength?: number | undefined;
|
|
4110
4178
|
lastFrame?: string | undefined;
|
|
4179
|
+
driftThreshold?: number | undefined;
|
|
4180
|
+
subjectDescription?: string | undefined;
|
|
4181
|
+
initialPose?: string | undefined;
|
|
4111
4182
|
keypointsFile?: string | undefined;
|
|
4112
4183
|
skeletonTemplate?: string | undefined;
|
|
4184
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4113
4185
|
description?: string | undefined;
|
|
4114
4186
|
engine?: "pro-flash" | undefined;
|
|
4115
4187
|
}>>;
|
|
@@ -4584,7 +4656,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4584
4656
|
cell?: [number, number] | undefined;
|
|
4585
4657
|
source?: string | undefined;
|
|
4586
4658
|
revision?: {
|
|
4587
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4659
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4588
4660
|
from: string;
|
|
4589
4661
|
frames?: number | undefined;
|
|
4590
4662
|
fps?: number | undefined;
|
|
@@ -4597,8 +4669,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4597
4669
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4598
4670
|
ditheringStrength?: number | undefined;
|
|
4599
4671
|
lastFrame?: string | undefined;
|
|
4672
|
+
driftThreshold?: number | undefined;
|
|
4673
|
+
subjectDescription?: string | undefined;
|
|
4674
|
+
initialPose?: string | undefined;
|
|
4600
4675
|
keypointsFile?: string | undefined;
|
|
4601
4676
|
skeletonTemplate?: string | undefined;
|
|
4677
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4602
4678
|
description?: string | undefined;
|
|
4603
4679
|
engine?: "pro-flash" | undefined;
|
|
4604
4680
|
} | undefined;
|
|
@@ -4702,7 +4778,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4702
4778
|
source?: string | undefined;
|
|
4703
4779
|
sourceByStyle?: Record<string, string> | undefined;
|
|
4704
4780
|
revision?: {
|
|
4705
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4781
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4706
4782
|
from: string;
|
|
4707
4783
|
frames?: number | undefined;
|
|
4708
4784
|
fps?: number | undefined;
|
|
@@ -4715,8 +4791,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4715
4791
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4716
4792
|
ditheringStrength?: number | undefined;
|
|
4717
4793
|
lastFrame?: string | undefined;
|
|
4794
|
+
driftThreshold?: number | undefined;
|
|
4795
|
+
subjectDescription?: string | undefined;
|
|
4796
|
+
initialPose?: string | undefined;
|
|
4718
4797
|
keypointsFile?: string | undefined;
|
|
4719
4798
|
skeletonTemplate?: string | undefined;
|
|
4799
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4720
4800
|
description?: string | undefined;
|
|
4721
4801
|
engine?: "pro-flash" | undefined;
|
|
4722
4802
|
} | undefined;
|
|
@@ -4826,7 +4906,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4826
4906
|
cell?: [number, number] | undefined;
|
|
4827
4907
|
source?: string | undefined;
|
|
4828
4908
|
revision?: {
|
|
4829
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4909
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4830
4910
|
from: string;
|
|
4831
4911
|
frames?: number | undefined;
|
|
4832
4912
|
fps?: number | undefined;
|
|
@@ -4839,8 +4919,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4839
4919
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4840
4920
|
ditheringStrength?: number | undefined;
|
|
4841
4921
|
lastFrame?: string | undefined;
|
|
4922
|
+
driftThreshold?: number | undefined;
|
|
4923
|
+
subjectDescription?: string | undefined;
|
|
4924
|
+
initialPose?: string | undefined;
|
|
4842
4925
|
keypointsFile?: string | undefined;
|
|
4843
4926
|
skeletonTemplate?: string | undefined;
|
|
4927
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4844
4928
|
description?: string | undefined;
|
|
4845
4929
|
engine?: "pro-flash" | undefined;
|
|
4846
4930
|
} | undefined;
|
|
@@ -4944,7 +5028,7 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4944
5028
|
source?: string | undefined;
|
|
4945
5029
|
sourceByStyle?: Record<string, string> | undefined;
|
|
4946
5030
|
revision?: {
|
|
4947
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
5031
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
4948
5032
|
from: string;
|
|
4949
5033
|
frames?: number | undefined;
|
|
4950
5034
|
fps?: number | undefined;
|
|
@@ -4957,8 +5041,12 @@ declare const AssetSchema: z.ZodEffects<z.ZodObject<{
|
|
|
4957
5041
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
4958
5042
|
ditheringStrength?: number | undefined;
|
|
4959
5043
|
lastFrame?: string | undefined;
|
|
5044
|
+
driftThreshold?: number | undefined;
|
|
5045
|
+
subjectDescription?: string | undefined;
|
|
5046
|
+
initialPose?: string | undefined;
|
|
4960
5047
|
keypointsFile?: string | undefined;
|
|
4961
5048
|
skeletonTemplate?: string | undefined;
|
|
5049
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
4962
5050
|
description?: string | undefined;
|
|
4963
5051
|
engine?: "pro-flash" | undefined;
|
|
4964
5052
|
} | undefined;
|
|
@@ -5940,7 +6028,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
5940
6028
|
/** Controlled generation derived from another asset in the same style. */
|
|
5941
6029
|
revision: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
5942
6030
|
/** What kind of controlled change the provider workflow performs. */
|
|
5943
|
-
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
6031
|
+
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
5944
6032
|
/** Parent asset id in the same style. */
|
|
5945
6033
|
from: z.ZodString;
|
|
5946
6034
|
/** Manifest-relative black/white PNG. Required only for masked inpainting. */
|
|
@@ -5969,7 +6057,22 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
5969
6057
|
* `interpolate`: required, the ending keyframe; the parent is the start.
|
|
5970
6058
|
*/
|
|
5971
6059
|
lastFrame: z.ZodOptional<z.ZodString>;
|
|
5972
|
-
/**
|
|
6060
|
+
/**
|
|
6061
|
+
* `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
|
|
6062
|
+
* Frames whose foreground drifts from the first frame beyond this are
|
|
6063
|
+
* corrected toward it; 0 corrects every frame and higher values correct
|
|
6064
|
+
* fewer. Omit for PixelLab's default.
|
|
6065
|
+
*/
|
|
6066
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
6067
|
+
/**
|
|
6068
|
+
* `animate-pixminimax` only: one noun phrase for what the parent shows.
|
|
6069
|
+
* PixelLab reads it off the image when omitted, and can decline some
|
|
6070
|
+
* images, failing the job until it is sent.
|
|
6071
|
+
*/
|
|
6072
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
6073
|
+
/** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
|
|
6074
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
6075
|
+
/** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
|
|
5973
6076
|
direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
|
|
5974
6077
|
/** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
|
|
5975
6078
|
enhancePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -5989,12 +6092,15 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
5989
6092
|
* same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
|
|
5990
6093
|
*/
|
|
5991
6094
|
skeletonTemplate: z.ZodOptional<z.ZodString>;
|
|
6095
|
+
/** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
|
|
6096
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
5992
6097
|
/**
|
|
5993
|
-
* `animate-skeleton
|
|
6098
|
+
* `animate-skeleton`: what the character *looks like*, a noun
|
|
5994
6099
|
* phrase (colours, clothing, held items) — distinct from the asset's
|
|
5995
6100
|
* own `prompt`, which this mode sends as the motion's short label
|
|
5996
6101
|
* (PixelLab's `action`), the same `prompt`-as-motion convention
|
|
5997
|
-
* `animate`/`animate-pixminimax` already use.
|
|
6102
|
+
* `animate`/`animate-pixminimax` already use. `remove-background`: a
|
|
6103
|
+
* short description of the foreground, which PixelLab uses as a hint.
|
|
5998
6104
|
*/
|
|
5999
6105
|
description: z.ZodOptional<z.ZodString>;
|
|
6000
6106
|
/**
|
|
@@ -6005,7 +6111,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6005
6111
|
*/
|
|
6006
6112
|
engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
|
|
6007
6113
|
}, "strict", z.ZodTypeAny, {
|
|
6008
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6114
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6009
6115
|
from: string;
|
|
6010
6116
|
frames?: number | undefined;
|
|
6011
6117
|
fps?: number | undefined;
|
|
@@ -6018,12 +6124,16 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6018
6124
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6019
6125
|
ditheringStrength?: number | undefined;
|
|
6020
6126
|
lastFrame?: string | undefined;
|
|
6127
|
+
driftThreshold?: number | undefined;
|
|
6128
|
+
subjectDescription?: string | undefined;
|
|
6129
|
+
initialPose?: string | undefined;
|
|
6021
6130
|
keypointsFile?: string | undefined;
|
|
6022
6131
|
skeletonTemplate?: string | undefined;
|
|
6132
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6023
6133
|
description?: string | undefined;
|
|
6024
6134
|
engine?: "pro-flash" | undefined;
|
|
6025
6135
|
}, {
|
|
6026
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6136
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6027
6137
|
from: string;
|
|
6028
6138
|
frames?: number | undefined;
|
|
6029
6139
|
fps?: number | undefined;
|
|
@@ -6036,12 +6146,16 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6036
6146
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6037
6147
|
ditheringStrength?: number | undefined;
|
|
6038
6148
|
lastFrame?: string | undefined;
|
|
6149
|
+
driftThreshold?: number | undefined;
|
|
6150
|
+
subjectDescription?: string | undefined;
|
|
6151
|
+
initialPose?: string | undefined;
|
|
6039
6152
|
keypointsFile?: string | undefined;
|
|
6040
6153
|
skeletonTemplate?: string | undefined;
|
|
6154
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6041
6155
|
description?: string | undefined;
|
|
6042
6156
|
engine?: "pro-flash" | undefined;
|
|
6043
6157
|
}>, {
|
|
6044
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6158
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6045
6159
|
from: string;
|
|
6046
6160
|
frames?: number | undefined;
|
|
6047
6161
|
fps?: number | undefined;
|
|
@@ -6054,12 +6168,16 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6054
6168
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6055
6169
|
ditheringStrength?: number | undefined;
|
|
6056
6170
|
lastFrame?: string | undefined;
|
|
6171
|
+
driftThreshold?: number | undefined;
|
|
6172
|
+
subjectDescription?: string | undefined;
|
|
6173
|
+
initialPose?: string | undefined;
|
|
6057
6174
|
keypointsFile?: string | undefined;
|
|
6058
6175
|
skeletonTemplate?: string | undefined;
|
|
6176
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6059
6177
|
description?: string | undefined;
|
|
6060
6178
|
engine?: "pro-flash" | undefined;
|
|
6061
6179
|
}, {
|
|
6062
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6180
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6063
6181
|
from: string;
|
|
6064
6182
|
frames?: number | undefined;
|
|
6065
6183
|
fps?: number | undefined;
|
|
@@ -6072,8 +6190,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6072
6190
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6073
6191
|
ditheringStrength?: number | undefined;
|
|
6074
6192
|
lastFrame?: string | undefined;
|
|
6193
|
+
driftThreshold?: number | undefined;
|
|
6194
|
+
subjectDescription?: string | undefined;
|
|
6195
|
+
initialPose?: string | undefined;
|
|
6075
6196
|
keypointsFile?: string | undefined;
|
|
6076
6197
|
skeletonTemplate?: string | undefined;
|
|
6198
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6077
6199
|
description?: string | undefined;
|
|
6078
6200
|
engine?: "pro-flash" | undefined;
|
|
6079
6201
|
}>>;
|
|
@@ -6548,7 +6670,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6548
6670
|
cell?: [number, number] | undefined;
|
|
6549
6671
|
source?: string | undefined;
|
|
6550
6672
|
revision?: {
|
|
6551
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6673
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6552
6674
|
from: string;
|
|
6553
6675
|
frames?: number | undefined;
|
|
6554
6676
|
fps?: number | undefined;
|
|
@@ -6561,8 +6683,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6561
6683
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6562
6684
|
ditheringStrength?: number | undefined;
|
|
6563
6685
|
lastFrame?: string | undefined;
|
|
6686
|
+
driftThreshold?: number | undefined;
|
|
6687
|
+
subjectDescription?: string | undefined;
|
|
6688
|
+
initialPose?: string | undefined;
|
|
6564
6689
|
keypointsFile?: string | undefined;
|
|
6565
6690
|
skeletonTemplate?: string | undefined;
|
|
6691
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6566
6692
|
description?: string | undefined;
|
|
6567
6693
|
engine?: "pro-flash" | undefined;
|
|
6568
6694
|
} | undefined;
|
|
@@ -6666,7 +6792,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6666
6792
|
source?: string | undefined;
|
|
6667
6793
|
sourceByStyle?: Record<string, string> | undefined;
|
|
6668
6794
|
revision?: {
|
|
6669
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6795
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6670
6796
|
from: string;
|
|
6671
6797
|
frames?: number | undefined;
|
|
6672
6798
|
fps?: number | undefined;
|
|
@@ -6679,8 +6805,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6679
6805
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6680
6806
|
ditheringStrength?: number | undefined;
|
|
6681
6807
|
lastFrame?: string | undefined;
|
|
6808
|
+
driftThreshold?: number | undefined;
|
|
6809
|
+
subjectDescription?: string | undefined;
|
|
6810
|
+
initialPose?: string | undefined;
|
|
6682
6811
|
keypointsFile?: string | undefined;
|
|
6683
6812
|
skeletonTemplate?: string | undefined;
|
|
6813
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6684
6814
|
description?: string | undefined;
|
|
6685
6815
|
engine?: "pro-flash" | undefined;
|
|
6686
6816
|
} | undefined;
|
|
@@ -6790,7 +6920,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6790
6920
|
cell?: [number, number] | undefined;
|
|
6791
6921
|
source?: string | undefined;
|
|
6792
6922
|
revision?: {
|
|
6793
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6923
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6794
6924
|
from: string;
|
|
6795
6925
|
frames?: number | undefined;
|
|
6796
6926
|
fps?: number | undefined;
|
|
@@ -6803,8 +6933,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6803
6933
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6804
6934
|
ditheringStrength?: number | undefined;
|
|
6805
6935
|
lastFrame?: string | undefined;
|
|
6936
|
+
driftThreshold?: number | undefined;
|
|
6937
|
+
subjectDescription?: string | undefined;
|
|
6938
|
+
initialPose?: string | undefined;
|
|
6806
6939
|
keypointsFile?: string | undefined;
|
|
6807
6940
|
skeletonTemplate?: string | undefined;
|
|
6941
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6808
6942
|
description?: string | undefined;
|
|
6809
6943
|
engine?: "pro-flash" | undefined;
|
|
6810
6944
|
} | undefined;
|
|
@@ -6908,7 +7042,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6908
7042
|
source?: string | undefined;
|
|
6909
7043
|
sourceByStyle?: Record<string, string> | undefined;
|
|
6910
7044
|
revision?: {
|
|
6911
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
7045
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
6912
7046
|
from: string;
|
|
6913
7047
|
frames?: number | undefined;
|
|
6914
7048
|
fps?: number | undefined;
|
|
@@ -6921,8 +7055,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
6921
7055
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
6922
7056
|
ditheringStrength?: number | undefined;
|
|
6923
7057
|
lastFrame?: string | undefined;
|
|
7058
|
+
driftThreshold?: number | undefined;
|
|
7059
|
+
subjectDescription?: string | undefined;
|
|
7060
|
+
initialPose?: string | undefined;
|
|
6924
7061
|
keypointsFile?: string | undefined;
|
|
6925
7062
|
skeletonTemplate?: string | undefined;
|
|
7063
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
6926
7064
|
description?: string | undefined;
|
|
6927
7065
|
engine?: "pro-flash" | undefined;
|
|
6928
7066
|
} | undefined;
|
|
@@ -7120,7 +7258,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7120
7258
|
cell?: [number, number] | undefined;
|
|
7121
7259
|
source?: string | undefined;
|
|
7122
7260
|
revision?: {
|
|
7123
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
7261
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
7124
7262
|
from: string;
|
|
7125
7263
|
frames?: number | undefined;
|
|
7126
7264
|
fps?: number | undefined;
|
|
@@ -7133,8 +7271,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7133
7271
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
7134
7272
|
ditheringStrength?: number | undefined;
|
|
7135
7273
|
lastFrame?: string | undefined;
|
|
7274
|
+
driftThreshold?: number | undefined;
|
|
7275
|
+
subjectDescription?: string | undefined;
|
|
7276
|
+
initialPose?: string | undefined;
|
|
7136
7277
|
keypointsFile?: string | undefined;
|
|
7137
7278
|
skeletonTemplate?: string | undefined;
|
|
7279
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
7138
7280
|
description?: string | undefined;
|
|
7139
7281
|
engine?: "pro-flash" | undefined;
|
|
7140
7282
|
} | undefined;
|
|
@@ -7327,7 +7469,7 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7327
7469
|
source?: string | undefined;
|
|
7328
7470
|
sourceByStyle?: Record<string, string> | undefined;
|
|
7329
7471
|
revision?: {
|
|
7330
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
7472
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
7331
7473
|
from: string;
|
|
7332
7474
|
frames?: number | undefined;
|
|
7333
7475
|
fps?: number | undefined;
|
|
@@ -7340,8 +7482,12 @@ declare const ManifestSchema: z.ZodObject<{
|
|
|
7340
7482
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
7341
7483
|
ditheringStrength?: number | undefined;
|
|
7342
7484
|
lastFrame?: string | undefined;
|
|
7485
|
+
driftThreshold?: number | undefined;
|
|
7486
|
+
subjectDescription?: string | undefined;
|
|
7487
|
+
initialPose?: string | undefined;
|
|
7343
7488
|
keypointsFile?: string | undefined;
|
|
7344
7489
|
skeletonTemplate?: string | undefined;
|
|
7490
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
7345
7491
|
description?: string | undefined;
|
|
7346
7492
|
engine?: "pro-flash" | undefined;
|
|
7347
7493
|
} | undefined;
|
|
@@ -8637,7 +8783,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8637
8783
|
/** Controlled generation derived from another asset in the same style. */
|
|
8638
8784
|
revision: z.ZodOptional<z.ZodEffects<z.ZodObject<{
|
|
8639
8785
|
/** What kind of controlled change the provider workflow performs. */
|
|
8640
|
-
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
8786
|
+
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
8641
8787
|
/** Parent asset id in the same style. */
|
|
8642
8788
|
from: z.ZodString;
|
|
8643
8789
|
/** Manifest-relative black/white PNG. Required only for masked inpainting. */
|
|
@@ -8666,7 +8812,22 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8666
8812
|
* `interpolate`: required, the ending keyframe; the parent is the start.
|
|
8667
8813
|
*/
|
|
8668
8814
|
lastFrame: z.ZodOptional<z.ZodString>;
|
|
8669
|
-
/**
|
|
8815
|
+
/**
|
|
8816
|
+
* `animate`/`animate-pixminimax` only: colour de-flicker sensitivity.
|
|
8817
|
+
* Frames whose foreground drifts from the first frame beyond this are
|
|
8818
|
+
* corrected toward it; 0 corrects every frame and higher values correct
|
|
8819
|
+
* fewer. Omit for PixelLab's default.
|
|
8820
|
+
*/
|
|
8821
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
8822
|
+
/**
|
|
8823
|
+
* `animate-pixminimax` only: one noun phrase for what the parent shows.
|
|
8824
|
+
* PixelLab reads it off the image when omitted, and can decline some
|
|
8825
|
+
* images, failing the job until it is sent.
|
|
8826
|
+
*/
|
|
8827
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
8828
|
+
/** `animate-pixminimax` only: the pose the parent is in, read off the image by PixelLab when omitted. */
|
|
8829
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
8830
|
+
/** `animate-pixminimax` only: facing direction, one of the model's caption fields, so it also holds the sprite's facing. */
|
|
8670
8831
|
direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
|
|
8671
8832
|
/** `animate`/`animate-pixminimax` only: let PixelLab expand the action into a fuller motion description first. */
|
|
8672
8833
|
enhancePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -8686,12 +8847,15 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8686
8847
|
* same `mannequin`/`bear`/`cat`/`dog`/`horse`/`lion` vocabulary.
|
|
8687
8848
|
*/
|
|
8688
8849
|
skeletonTemplate: z.ZodOptional<z.ZodString>;
|
|
8850
|
+
/** `remove-background` only: `simple` is faster and suits flat backgrounds; `complex` handles detailed edges. PixelLab defaults to `simple`. */
|
|
8851
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
8689
8852
|
/**
|
|
8690
|
-
* `animate-skeleton
|
|
8853
|
+
* `animate-skeleton`: what the character *looks like*, a noun
|
|
8691
8854
|
* phrase (colours, clothing, held items) — distinct from the asset's
|
|
8692
8855
|
* own `prompt`, which this mode sends as the motion's short label
|
|
8693
8856
|
* (PixelLab's `action`), the same `prompt`-as-motion convention
|
|
8694
|
-
* `animate`/`animate-pixminimax` already use.
|
|
8857
|
+
* `animate`/`animate-pixminimax` already use. `remove-background`: a
|
|
8858
|
+
* short description of the foreground, which PixelLab uses as a hint.
|
|
8695
8859
|
*/
|
|
8696
8860
|
description: z.ZodOptional<z.ZodString>;
|
|
8697
8861
|
/**
|
|
@@ -8702,7 +8866,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8702
8866
|
*/
|
|
8703
8867
|
engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
|
|
8704
8868
|
}, "strict", z.ZodTypeAny, {
|
|
8705
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8869
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8706
8870
|
from: string;
|
|
8707
8871
|
frames?: number | undefined;
|
|
8708
8872
|
fps?: number | undefined;
|
|
@@ -8715,12 +8879,16 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8715
8879
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
8716
8880
|
ditheringStrength?: number | undefined;
|
|
8717
8881
|
lastFrame?: string | undefined;
|
|
8882
|
+
driftThreshold?: number | undefined;
|
|
8883
|
+
subjectDescription?: string | undefined;
|
|
8884
|
+
initialPose?: string | undefined;
|
|
8718
8885
|
keypointsFile?: string | undefined;
|
|
8719
8886
|
skeletonTemplate?: string | undefined;
|
|
8887
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
8720
8888
|
description?: string | undefined;
|
|
8721
8889
|
engine?: "pro-flash" | undefined;
|
|
8722
8890
|
}, {
|
|
8723
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8891
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8724
8892
|
from: string;
|
|
8725
8893
|
frames?: number | undefined;
|
|
8726
8894
|
fps?: number | undefined;
|
|
@@ -8733,12 +8901,16 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8733
8901
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
8734
8902
|
ditheringStrength?: number | undefined;
|
|
8735
8903
|
lastFrame?: string | undefined;
|
|
8904
|
+
driftThreshold?: number | undefined;
|
|
8905
|
+
subjectDescription?: string | undefined;
|
|
8906
|
+
initialPose?: string | undefined;
|
|
8736
8907
|
keypointsFile?: string | undefined;
|
|
8737
8908
|
skeletonTemplate?: string | undefined;
|
|
8909
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
8738
8910
|
description?: string | undefined;
|
|
8739
8911
|
engine?: "pro-flash" | undefined;
|
|
8740
8912
|
}>, {
|
|
8741
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8913
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8742
8914
|
from: string;
|
|
8743
8915
|
frames?: number | undefined;
|
|
8744
8916
|
fps?: number | undefined;
|
|
@@ -8751,12 +8923,16 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8751
8923
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
8752
8924
|
ditheringStrength?: number | undefined;
|
|
8753
8925
|
lastFrame?: string | undefined;
|
|
8926
|
+
driftThreshold?: number | undefined;
|
|
8927
|
+
subjectDescription?: string | undefined;
|
|
8928
|
+
initialPose?: string | undefined;
|
|
8754
8929
|
keypointsFile?: string | undefined;
|
|
8755
8930
|
skeletonTemplate?: string | undefined;
|
|
8931
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
8756
8932
|
description?: string | undefined;
|
|
8757
8933
|
engine?: "pro-flash" | undefined;
|
|
8758
8934
|
}, {
|
|
8759
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8935
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
8760
8936
|
from: string;
|
|
8761
8937
|
frames?: number | undefined;
|
|
8762
8938
|
fps?: number | undefined;
|
|
@@ -8769,8 +8945,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
8769
8945
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
8770
8946
|
ditheringStrength?: number | undefined;
|
|
8771
8947
|
lastFrame?: string | undefined;
|
|
8948
|
+
driftThreshold?: number | undefined;
|
|
8949
|
+
subjectDescription?: string | undefined;
|
|
8950
|
+
initialPose?: string | undefined;
|
|
8772
8951
|
keypointsFile?: string | undefined;
|
|
8773
8952
|
skeletonTemplate?: string | undefined;
|
|
8953
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
8774
8954
|
description?: string | undefined;
|
|
8775
8955
|
engine?: "pro-flash" | undefined;
|
|
8776
8956
|
}>>;
|
|
@@ -9245,7 +9425,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9245
9425
|
cell?: [number, number] | undefined;
|
|
9246
9426
|
source?: string | undefined;
|
|
9247
9427
|
revision?: {
|
|
9248
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9428
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9249
9429
|
from: string;
|
|
9250
9430
|
frames?: number | undefined;
|
|
9251
9431
|
fps?: number | undefined;
|
|
@@ -9258,8 +9438,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9258
9438
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
9259
9439
|
ditheringStrength?: number | undefined;
|
|
9260
9440
|
lastFrame?: string | undefined;
|
|
9441
|
+
driftThreshold?: number | undefined;
|
|
9442
|
+
subjectDescription?: string | undefined;
|
|
9443
|
+
initialPose?: string | undefined;
|
|
9261
9444
|
keypointsFile?: string | undefined;
|
|
9262
9445
|
skeletonTemplate?: string | undefined;
|
|
9446
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
9263
9447
|
description?: string | undefined;
|
|
9264
9448
|
engine?: "pro-flash" | undefined;
|
|
9265
9449
|
} | undefined;
|
|
@@ -9363,7 +9547,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9363
9547
|
source?: string | undefined;
|
|
9364
9548
|
sourceByStyle?: Record<string, string> | undefined;
|
|
9365
9549
|
revision?: {
|
|
9366
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9550
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9367
9551
|
from: string;
|
|
9368
9552
|
frames?: number | undefined;
|
|
9369
9553
|
fps?: number | undefined;
|
|
@@ -9376,8 +9560,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9376
9560
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
9377
9561
|
ditheringStrength?: number | undefined;
|
|
9378
9562
|
lastFrame?: string | undefined;
|
|
9563
|
+
driftThreshold?: number | undefined;
|
|
9564
|
+
subjectDescription?: string | undefined;
|
|
9565
|
+
initialPose?: string | undefined;
|
|
9379
9566
|
keypointsFile?: string | undefined;
|
|
9380
9567
|
skeletonTemplate?: string | undefined;
|
|
9568
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
9381
9569
|
description?: string | undefined;
|
|
9382
9570
|
engine?: "pro-flash" | undefined;
|
|
9383
9571
|
} | undefined;
|
|
@@ -9487,7 +9675,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9487
9675
|
cell?: [number, number] | undefined;
|
|
9488
9676
|
source?: string | undefined;
|
|
9489
9677
|
revision?: {
|
|
9490
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9678
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9491
9679
|
from: string;
|
|
9492
9680
|
frames?: number | undefined;
|
|
9493
9681
|
fps?: number | undefined;
|
|
@@ -9500,8 +9688,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9500
9688
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
9501
9689
|
ditheringStrength?: number | undefined;
|
|
9502
9690
|
lastFrame?: string | undefined;
|
|
9691
|
+
driftThreshold?: number | undefined;
|
|
9692
|
+
subjectDescription?: string | undefined;
|
|
9693
|
+
initialPose?: string | undefined;
|
|
9503
9694
|
keypointsFile?: string | undefined;
|
|
9504
9695
|
skeletonTemplate?: string | undefined;
|
|
9696
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
9505
9697
|
description?: string | undefined;
|
|
9506
9698
|
engine?: "pro-flash" | undefined;
|
|
9507
9699
|
} | undefined;
|
|
@@ -9605,7 +9797,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9605
9797
|
source?: string | undefined;
|
|
9606
9798
|
sourceByStyle?: Record<string, string> | undefined;
|
|
9607
9799
|
revision?: {
|
|
9608
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9800
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9609
9801
|
from: string;
|
|
9610
9802
|
frames?: number | undefined;
|
|
9611
9803
|
fps?: number | undefined;
|
|
@@ -9618,8 +9810,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9618
9810
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
9619
9811
|
ditheringStrength?: number | undefined;
|
|
9620
9812
|
lastFrame?: string | undefined;
|
|
9813
|
+
driftThreshold?: number | undefined;
|
|
9814
|
+
subjectDescription?: string | undefined;
|
|
9815
|
+
initialPose?: string | undefined;
|
|
9621
9816
|
keypointsFile?: string | undefined;
|
|
9622
9817
|
skeletonTemplate?: string | undefined;
|
|
9818
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
9623
9819
|
description?: string | undefined;
|
|
9624
9820
|
engine?: "pro-flash" | undefined;
|
|
9625
9821
|
} | undefined;
|
|
@@ -9901,7 +10097,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9901
10097
|
cell?: [number, number] | undefined;
|
|
9902
10098
|
source?: string | undefined;
|
|
9903
10099
|
revision?: {
|
|
9904
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10100
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
9905
10101
|
from: string;
|
|
9906
10102
|
frames?: number | undefined;
|
|
9907
10103
|
fps?: number | undefined;
|
|
@@ -9914,8 +10110,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
9914
10110
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
9915
10111
|
ditheringStrength?: number | undefined;
|
|
9916
10112
|
lastFrame?: string | undefined;
|
|
10113
|
+
driftThreshold?: number | undefined;
|
|
10114
|
+
subjectDescription?: string | undefined;
|
|
10115
|
+
initialPose?: string | undefined;
|
|
9917
10116
|
keypointsFile?: string | undefined;
|
|
9918
10117
|
skeletonTemplate?: string | undefined;
|
|
10118
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
9919
10119
|
description?: string | undefined;
|
|
9920
10120
|
engine?: "pro-flash" | undefined;
|
|
9921
10121
|
} | undefined;
|
|
@@ -10192,7 +10392,7 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
10192
10392
|
source?: string | undefined;
|
|
10193
10393
|
sourceByStyle?: Record<string, string> | undefined;
|
|
10194
10394
|
revision?: {
|
|
10195
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10395
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10196
10396
|
from: string;
|
|
10197
10397
|
frames?: number | undefined;
|
|
10198
10398
|
fps?: number | undefined;
|
|
@@ -10205,8 +10405,12 @@ declare const ManifestInputSchema: z.ZodObject<{
|
|
|
10205
10405
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
10206
10406
|
ditheringStrength?: number | undefined;
|
|
10207
10407
|
lastFrame?: string | undefined;
|
|
10408
|
+
driftThreshold?: number | undefined;
|
|
10409
|
+
subjectDescription?: string | undefined;
|
|
10410
|
+
initialPose?: string | undefined;
|
|
10208
10411
|
keypointsFile?: string | undefined;
|
|
10209
10412
|
skeletonTemplate?: string | undefined;
|
|
10413
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
10210
10414
|
description?: string | undefined;
|
|
10211
10415
|
engine?: "pro-flash" | undefined;
|
|
10212
10416
|
} | undefined;
|
|
@@ -10499,7 +10703,7 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10499
10703
|
height: z.ZodNumber;
|
|
10500
10704
|
/** Explicit parent/input lineage for a revision generation. */
|
|
10501
10705
|
revision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
10502
|
-
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
10706
|
+
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
10503
10707
|
sourceAssetId: z.ZodString;
|
|
10504
10708
|
sourceSha256: z.ZodString;
|
|
10505
10709
|
maskSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -10516,9 +10720,13 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10516
10720
|
keypointsSha256: z.ZodOptional<z.ZodString>;
|
|
10517
10721
|
skeletonTemplate: z.ZodOptional<z.ZodString>;
|
|
10518
10722
|
description: z.ZodOptional<z.ZodString>;
|
|
10723
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
10724
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
10725
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
10726
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
10519
10727
|
engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
|
|
10520
10728
|
}, "strict", z.ZodTypeAny, {
|
|
10521
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10729
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10522
10730
|
sourceAssetId: string;
|
|
10523
10731
|
sourceSha256: string;
|
|
10524
10732
|
frames?: number | undefined;
|
|
@@ -10529,7 +10737,11 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10529
10737
|
numColors?: number | undefined;
|
|
10530
10738
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
10531
10739
|
ditheringStrength?: number | undefined;
|
|
10740
|
+
driftThreshold?: number | undefined;
|
|
10741
|
+
subjectDescription?: string | undefined;
|
|
10742
|
+
initialPose?: string | undefined;
|
|
10532
10743
|
skeletonTemplate?: string | undefined;
|
|
10744
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
10533
10745
|
description?: string | undefined;
|
|
10534
10746
|
engine?: "pro-flash" | undefined;
|
|
10535
10747
|
maskSha256?: string | undefined;
|
|
@@ -10537,7 +10749,7 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10537
10749
|
lastFrameSha256?: string | undefined;
|
|
10538
10750
|
keypointsSha256?: string | undefined;
|
|
10539
10751
|
}, {
|
|
10540
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10752
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10541
10753
|
sourceAssetId: string;
|
|
10542
10754
|
sourceSha256: string;
|
|
10543
10755
|
frames?: number | undefined;
|
|
@@ -10548,7 +10760,11 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10548
10760
|
numColors?: number | undefined;
|
|
10549
10761
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
10550
10762
|
ditheringStrength?: number | undefined;
|
|
10763
|
+
driftThreshold?: number | undefined;
|
|
10764
|
+
subjectDescription?: string | undefined;
|
|
10765
|
+
initialPose?: string | undefined;
|
|
10551
10766
|
skeletonTemplate?: string | undefined;
|
|
10767
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
10552
10768
|
description?: string | undefined;
|
|
10553
10769
|
engine?: "pro-flash" | undefined;
|
|
10554
10770
|
maskSha256?: string | undefined;
|
|
@@ -10931,7 +11147,7 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10931
11147
|
tileFeature: string | null;
|
|
10932
11148
|
prompt: string;
|
|
10933
11149
|
revision: {
|
|
10934
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11150
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
10935
11151
|
sourceAssetId: string;
|
|
10936
11152
|
sourceSha256: string;
|
|
10937
11153
|
frames?: number | undefined;
|
|
@@ -10942,7 +11158,11 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
10942
11158
|
numColors?: number | undefined;
|
|
10943
11159
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
10944
11160
|
ditheringStrength?: number | undefined;
|
|
11161
|
+
driftThreshold?: number | undefined;
|
|
11162
|
+
subjectDescription?: string | undefined;
|
|
11163
|
+
initialPose?: string | undefined;
|
|
10945
11164
|
skeletonTemplate?: string | undefined;
|
|
11165
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
10946
11166
|
description?: string | undefined;
|
|
10947
11167
|
engine?: "pro-flash" | undefined;
|
|
10948
11168
|
maskSha256?: string | undefined;
|
|
@@ -11062,7 +11282,7 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
11062
11282
|
} | null | undefined;
|
|
11063
11283
|
tileFeature?: string | null | undefined;
|
|
11064
11284
|
revision?: {
|
|
11065
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11285
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11066
11286
|
sourceAssetId: string;
|
|
11067
11287
|
sourceSha256: string;
|
|
11068
11288
|
frames?: number | undefined;
|
|
@@ -11073,7 +11293,11 @@ declare const LockEntrySchema: z.ZodObject<{
|
|
|
11073
11293
|
numColors?: number | undefined;
|
|
11074
11294
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
11075
11295
|
ditheringStrength?: number | undefined;
|
|
11296
|
+
driftThreshold?: number | undefined;
|
|
11297
|
+
subjectDescription?: string | undefined;
|
|
11298
|
+
initialPose?: string | undefined;
|
|
11076
11299
|
skeletonTemplate?: string | undefined;
|
|
11300
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
11077
11301
|
description?: string | undefined;
|
|
11078
11302
|
engine?: "pro-flash" | undefined;
|
|
11079
11303
|
maskSha256?: string | undefined;
|
|
@@ -11190,7 +11414,7 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11190
11414
|
height: z.ZodNumber;
|
|
11191
11415
|
/** Explicit parent/input lineage for a revision generation. */
|
|
11192
11416
|
revision: z.ZodDefault<z.ZodNullable<z.ZodObject<{
|
|
11193
|
-
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
11417
|
+
mode: z.ZodEnum<["image-to-image", "inpaint", "outpaint", "reduce-colors", "correct-pixelart", "remove-background", "animate", "animate-pixminimax", "animate-skeleton", "interpolate", "edit-animation"]>;
|
|
11194
11418
|
sourceAssetId: z.ZodString;
|
|
11195
11419
|
sourceSha256: z.ZodString;
|
|
11196
11420
|
maskSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -11207,9 +11431,13 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11207
11431
|
keypointsSha256: z.ZodOptional<z.ZodString>;
|
|
11208
11432
|
skeletonTemplate: z.ZodOptional<z.ZodString>;
|
|
11209
11433
|
description: z.ZodOptional<z.ZodString>;
|
|
11434
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
11435
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
11436
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
11437
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
11210
11438
|
engine: z.ZodOptional<z.ZodEnum<["pro-flash"]>>;
|
|
11211
11439
|
}, "strict", z.ZodTypeAny, {
|
|
11212
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11440
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11213
11441
|
sourceAssetId: string;
|
|
11214
11442
|
sourceSha256: string;
|
|
11215
11443
|
frames?: number | undefined;
|
|
@@ -11220,7 +11448,11 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11220
11448
|
numColors?: number | undefined;
|
|
11221
11449
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
11222
11450
|
ditheringStrength?: number | undefined;
|
|
11451
|
+
driftThreshold?: number | undefined;
|
|
11452
|
+
subjectDescription?: string | undefined;
|
|
11453
|
+
initialPose?: string | undefined;
|
|
11223
11454
|
skeletonTemplate?: string | undefined;
|
|
11455
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
11224
11456
|
description?: string | undefined;
|
|
11225
11457
|
engine?: "pro-flash" | undefined;
|
|
11226
11458
|
maskSha256?: string | undefined;
|
|
@@ -11228,7 +11460,7 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11228
11460
|
lastFrameSha256?: string | undefined;
|
|
11229
11461
|
keypointsSha256?: string | undefined;
|
|
11230
11462
|
}, {
|
|
11231
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11463
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11232
11464
|
sourceAssetId: string;
|
|
11233
11465
|
sourceSha256: string;
|
|
11234
11466
|
frames?: number | undefined;
|
|
@@ -11239,7 +11471,11 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11239
11471
|
numColors?: number | undefined;
|
|
11240
11472
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
11241
11473
|
ditheringStrength?: number | undefined;
|
|
11474
|
+
driftThreshold?: number | undefined;
|
|
11475
|
+
subjectDescription?: string | undefined;
|
|
11476
|
+
initialPose?: string | undefined;
|
|
11242
11477
|
skeletonTemplate?: string | undefined;
|
|
11478
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
11243
11479
|
description?: string | undefined;
|
|
11244
11480
|
engine?: "pro-flash" | undefined;
|
|
11245
11481
|
maskSha256?: string | undefined;
|
|
@@ -11622,7 +11858,7 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11622
11858
|
tileFeature: string | null;
|
|
11623
11859
|
prompt: string;
|
|
11624
11860
|
revision: {
|
|
11625
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11861
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11626
11862
|
sourceAssetId: string;
|
|
11627
11863
|
sourceSha256: string;
|
|
11628
11864
|
frames?: number | undefined;
|
|
@@ -11633,7 +11869,11 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11633
11869
|
numColors?: number | undefined;
|
|
11634
11870
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
11635
11871
|
ditheringStrength?: number | undefined;
|
|
11872
|
+
driftThreshold?: number | undefined;
|
|
11873
|
+
subjectDescription?: string | undefined;
|
|
11874
|
+
initialPose?: string | undefined;
|
|
11636
11875
|
skeletonTemplate?: string | undefined;
|
|
11876
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
11637
11877
|
description?: string | undefined;
|
|
11638
11878
|
engine?: "pro-flash" | undefined;
|
|
11639
11879
|
maskSha256?: string | undefined;
|
|
@@ -11753,7 +11993,7 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11753
11993
|
} | null | undefined;
|
|
11754
11994
|
tileFeature?: string | null | undefined;
|
|
11755
11995
|
revision?: {
|
|
11756
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11996
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11757
11997
|
sourceAssetId: string;
|
|
11758
11998
|
sourceSha256: string;
|
|
11759
11999
|
frames?: number | undefined;
|
|
@@ -11764,7 +12004,11 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11764
12004
|
numColors?: number | undefined;
|
|
11765
12005
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
11766
12006
|
ditheringStrength?: number | undefined;
|
|
12007
|
+
driftThreshold?: number | undefined;
|
|
12008
|
+
subjectDescription?: string | undefined;
|
|
12009
|
+
initialPose?: string | undefined;
|
|
11767
12010
|
skeletonTemplate?: string | undefined;
|
|
12011
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
11768
12012
|
description?: string | undefined;
|
|
11769
12013
|
engine?: "pro-flash" | undefined;
|
|
11770
12014
|
maskSha256?: string | undefined;
|
|
@@ -11880,7 +12124,7 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11880
12124
|
tileFeature: string | null;
|
|
11881
12125
|
prompt: string;
|
|
11882
12126
|
revision: {
|
|
11883
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
12127
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
11884
12128
|
sourceAssetId: string;
|
|
11885
12129
|
sourceSha256: string;
|
|
11886
12130
|
frames?: number | undefined;
|
|
@@ -11891,7 +12135,11 @@ declare const LockSchema: z.ZodObject<{
|
|
|
11891
12135
|
numColors?: number | undefined;
|
|
11892
12136
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
11893
12137
|
ditheringStrength?: number | undefined;
|
|
12138
|
+
driftThreshold?: number | undefined;
|
|
12139
|
+
subjectDescription?: string | undefined;
|
|
12140
|
+
initialPose?: string | undefined;
|
|
11894
12141
|
skeletonTemplate?: string | undefined;
|
|
12142
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
11895
12143
|
description?: string | undefined;
|
|
11896
12144
|
engine?: "pro-flash" | undefined;
|
|
11897
12145
|
maskSha256?: string | undefined;
|
|
@@ -12014,7 +12262,7 @@ declare const LockSchema: z.ZodObject<{
|
|
|
12014
12262
|
} | null | undefined;
|
|
12015
12263
|
tileFeature?: string | null | undefined;
|
|
12016
12264
|
revision?: {
|
|
12017
|
-
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
12265
|
+
mode: "image-to-image" | "inpaint" | "outpaint" | "reduce-colors" | "correct-pixelart" | "remove-background" | "animate" | "animate-pixminimax" | "animate-skeleton" | "interpolate" | "edit-animation";
|
|
12018
12266
|
sourceAssetId: string;
|
|
12019
12267
|
sourceSha256: string;
|
|
12020
12268
|
frames?: number | undefined;
|
|
@@ -12025,7 +12273,11 @@ declare const LockSchema: z.ZodObject<{
|
|
|
12025
12273
|
numColors?: number | undefined;
|
|
12026
12274
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
12027
12275
|
ditheringStrength?: number | undefined;
|
|
12276
|
+
driftThreshold?: number | undefined;
|
|
12277
|
+
subjectDescription?: string | undefined;
|
|
12278
|
+
initialPose?: string | undefined;
|
|
12028
12279
|
skeletonTemplate?: string | undefined;
|
|
12280
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
12029
12281
|
description?: string | undefined;
|
|
12030
12282
|
engine?: "pro-flash" | undefined;
|
|
12031
12283
|
maskSha256?: string | undefined;
|
|
@@ -13530,6 +13782,26 @@ declare class PixelLabClient {
|
|
|
13530
13782
|
pngs: Buffer[];
|
|
13531
13783
|
usage: unknown;
|
|
13532
13784
|
}>;
|
|
13785
|
+
/**
|
|
13786
|
+
* `/remove-background`: a transparent PNG from one pixel-art image,
|
|
13787
|
+
* synchronously, like the rest of the Cleanup tier. The API takes at most
|
|
13788
|
+
* 400x400 worth of area, one image per call. `simple` is faster and suits
|
|
13789
|
+
* flat backgrounds; `complex` is slower and handles detailed edges. The
|
|
13790
|
+
* schema's response example is dollar-denominated (`usd: 0.01`); the
|
|
13791
|
+
* subscription cost measured 1 generation (docs/ENDPOINTS.md), and the
|
|
13792
|
+
* default `simple` task is the one measured.
|
|
13793
|
+
*/
|
|
13794
|
+
removeBackground(args: {
|
|
13795
|
+
image: Base64Image;
|
|
13796
|
+
width: number;
|
|
13797
|
+
height: number;
|
|
13798
|
+
task?: "simple" | "complex";
|
|
13799
|
+
text?: string;
|
|
13800
|
+
seed?: number;
|
|
13801
|
+
}): Promise<{
|
|
13802
|
+
png: Buffer;
|
|
13803
|
+
usage: unknown;
|
|
13804
|
+
}>;
|
|
13533
13805
|
/**
|
|
13534
13806
|
* `/unzoom`: recover native-resolution pixel art from an upscaled image (a
|
|
13535
13807
|
* 32x32 sprite saved at 512x512). Synchronous like the Cleanup tier.
|
|
@@ -13632,6 +13904,7 @@ declare class PixelLabClient {
|
|
|
13632
13904
|
seed?: number;
|
|
13633
13905
|
noBackground?: boolean;
|
|
13634
13906
|
enhancePrompt?: boolean;
|
|
13907
|
+
driftThreshold?: number;
|
|
13635
13908
|
}): Promise<{
|
|
13636
13909
|
background_job_id: string;
|
|
13637
13910
|
status: string;
|
|
@@ -13651,6 +13924,11 @@ declare class PixelLabClient {
|
|
|
13651
13924
|
noBackground?: boolean;
|
|
13652
13925
|
enhancePrompt?: boolean;
|
|
13653
13926
|
direction?: string;
|
|
13927
|
+
/** PixMiniMax's other caption fields; any left out are read off the image, which can fail the job. */
|
|
13928
|
+
view?: "side" | "low top-down" | "high top-down";
|
|
13929
|
+
subjectDescription?: string;
|
|
13930
|
+
initialPose?: string;
|
|
13931
|
+
driftThreshold?: number;
|
|
13654
13932
|
}): Promise<{
|
|
13655
13933
|
background_job_id: string;
|
|
13656
13934
|
status: string;
|
|
@@ -13676,6 +13954,8 @@ declare class PixelLabClient {
|
|
|
13676
13954
|
firstFrameKeypoints: SkeletonKeypoint[];
|
|
13677
13955
|
keypoints: SkeletonKeypoint[][];
|
|
13678
13956
|
direction: CharacterDirection;
|
|
13957
|
+
/** The camera the sprite is drawn at; PixelLab assumes `low top-down` when omitted, which poses a side-view sprite for the wrong camera. */
|
|
13958
|
+
view?: "side" | "low top-down" | "high top-down";
|
|
13679
13959
|
templateId?: string;
|
|
13680
13960
|
action?: string;
|
|
13681
13961
|
description?: string;
|
|
@@ -14075,6 +14355,19 @@ interface ScenarioOptions {
|
|
|
14075
14355
|
projectId?: string;
|
|
14076
14356
|
/** Additional model-specific JSON inputs that cannot replace PixelKiln-owned intent. */
|
|
14077
14357
|
parameters?: Record<string, unknown>;
|
|
14358
|
+
/**
|
|
14359
|
+
* The model input that takes images: a style's `styleImages` and a
|
|
14360
|
+
* revision's parent are uploaded to Scenario and sent here as asset ids.
|
|
14361
|
+
* Most image models call it `referenceImages` and take a list.
|
|
14362
|
+
*/
|
|
14363
|
+
referenceParameter?: string;
|
|
14364
|
+
/** False for a model whose reference input takes one image rather than a list. */
|
|
14365
|
+
referenceArray?: boolean;
|
|
14366
|
+
}
|
|
14367
|
+
/** What the adapter needs to put one local image into a generation request. */
|
|
14368
|
+
interface ReferenceImage {
|
|
14369
|
+
base64: string;
|
|
14370
|
+
format: "png" | "jpeg";
|
|
14078
14371
|
}
|
|
14079
14372
|
interface ScenarioQuote {
|
|
14080
14373
|
total: number;
|
|
@@ -14111,6 +14404,12 @@ declare class ScenarioClient {
|
|
|
14111
14404
|
constructor(apiKey: string | undefined, apiSecret: string | undefined, baseUrl?: string, request?: typeof fetch, retry?: RetryOptions);
|
|
14112
14405
|
quote(modelId: string, body: Record<string, unknown>, projectId?: string): Promise<ScenarioQuote>;
|
|
14113
14406
|
submit(modelId: string, body: Record<string, unknown>, projectId?: string): Promise<string>;
|
|
14407
|
+
/**
|
|
14408
|
+
* Uploads one image (POST /assets) and returns its asset id, which a model's
|
|
14409
|
+
* reference input takes. Free, and idempotent per image: the id is kept by
|
|
14410
|
+
* content hash so a rerun does not upload the same bytes again.
|
|
14411
|
+
*/
|
|
14412
|
+
uploadImage(image: ReferenceImage, projectId?: string): Promise<string>;
|
|
14114
14413
|
job(id: string, projectId?: string): Promise<ScenarioJob>;
|
|
14115
14414
|
asset(id: string, projectId?: string): Promise<ScenarioAsset>;
|
|
14116
14415
|
download(url: string): Promise<Buffer>;
|
|
@@ -14127,6 +14426,12 @@ declare class ScenarioProvider implements Provider {
|
|
|
14127
14426
|
static forOffline(): ScenarioProvider;
|
|
14128
14427
|
static forDownloads(): ScenarioProvider;
|
|
14129
14428
|
supports(generator: Generator): boolean;
|
|
14429
|
+
/**
|
|
14430
|
+
* An edit is a generation with the parent as a reference image, which the
|
|
14431
|
+
* editing models (GPT Image, Gemini, FLUX) take. Masked inpainting and the
|
|
14432
|
+
* PixelLab-specific modes have no common Scenario input.
|
|
14433
|
+
*/
|
|
14434
|
+
supportsRevision(mode: RevisionMode): boolean;
|
|
14130
14435
|
estimate(spec: ResolvedSpec): CostEstimate;
|
|
14131
14436
|
validate(spec: ResolvedSpec, styleImages: ResolvedStyleImage[]): void;
|
|
14132
14437
|
rateLimit(): RateLimit;
|
|
@@ -18983,10 +19288,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
18983
19288
|
styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
18984
19289
|
/**
|
|
18985
19290
|
* A controlled regeneration of another asset in the same manifest,
|
|
18986
|
-
* instead of a fresh generation.
|
|
18987
|
-
* `
|
|
18988
|
-
*
|
|
18989
|
-
*
|
|
19291
|
+
* instead of a fresh generation. Every mode but `outpaint` can be
|
|
19292
|
+
* created here: `inpaint` names a mask file the gallery's mask editor
|
|
19293
|
+
* wrote first, `interpolate` names an existing image as its ending
|
|
19294
|
+
* keyframe, and `animate-skeleton` names the keypoints file the gallery
|
|
19295
|
+
* wrote first.
|
|
18990
19296
|
*/
|
|
18991
19297
|
revision: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
18992
19298
|
mode: z.ZodLiteral<"image-to-image">;
|
|
@@ -19020,6 +19326,35 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19020
19326
|
numColors?: number | undefined;
|
|
19021
19327
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19022
19328
|
ditheringStrength?: number | undefined;
|
|
19329
|
+
}>, z.ZodObject<{
|
|
19330
|
+
mode: z.ZodLiteral<"inpaint">;
|
|
19331
|
+
from: z.ZodString;
|
|
19332
|
+
/** Black-and-white PNG the same size as the parent; white is repainted. */
|
|
19333
|
+
mask: z.ZodEffects<z.ZodString, string, string>;
|
|
19334
|
+
}, "strict", z.ZodTypeAny, {
|
|
19335
|
+
mask: string;
|
|
19336
|
+
mode: "inpaint";
|
|
19337
|
+
from: string;
|
|
19338
|
+
}, {
|
|
19339
|
+
mask: string;
|
|
19340
|
+
mode: "inpaint";
|
|
19341
|
+
from: string;
|
|
19342
|
+
}>, z.ZodObject<{
|
|
19343
|
+
mode: z.ZodLiteral<"interpolate">;
|
|
19344
|
+
from: z.ZodString;
|
|
19345
|
+
/** The ending keyframe: an image already in the project, the parent's size. */
|
|
19346
|
+
lastFrame: z.ZodEffects<z.ZodString, string, string>;
|
|
19347
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
19348
|
+
}, "strict", z.ZodTypeAny, {
|
|
19349
|
+
mode: "interpolate";
|
|
19350
|
+
from: string;
|
|
19351
|
+
lastFrame: string;
|
|
19352
|
+
fps?: number | undefined;
|
|
19353
|
+
}, {
|
|
19354
|
+
mode: "interpolate";
|
|
19355
|
+
from: string;
|
|
19356
|
+
lastFrame: string;
|
|
19357
|
+
fps?: number | undefined;
|
|
19023
19358
|
}>, z.ZodObject<{
|
|
19024
19359
|
mode: z.ZodLiteral<"correct-pixelart">;
|
|
19025
19360
|
from: z.ZodString;
|
|
@@ -19032,14 +19367,33 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19032
19367
|
mode: "correct-pixelart";
|
|
19033
19368
|
from: string;
|
|
19034
19369
|
strength?: number | undefined;
|
|
19370
|
+
}>, z.ZodObject<{
|
|
19371
|
+
mode: z.ZodLiteral<"remove-background">;
|
|
19372
|
+
from: z.ZodString;
|
|
19373
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
19374
|
+
/** A short description of the foreground, sent as PixelLab's text hint. */
|
|
19375
|
+
description: z.ZodOptional<z.ZodString>;
|
|
19376
|
+
}, "strict", z.ZodTypeAny, {
|
|
19377
|
+
mode: "remove-background";
|
|
19378
|
+
from: string;
|
|
19379
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
19380
|
+
description?: string | undefined;
|
|
19381
|
+
}, {
|
|
19382
|
+
mode: "remove-background";
|
|
19383
|
+
from: string;
|
|
19384
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
19385
|
+
description?: string | undefined;
|
|
19035
19386
|
}>, z.ZodObject<{
|
|
19036
19387
|
mode: z.ZodEnum<["animate", "animate-pixminimax"]>;
|
|
19037
19388
|
from: z.ZodString;
|
|
19038
19389
|
frames: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
19039
19390
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
19040
19391
|
enhancePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
19041
|
-
|
|
19392
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
19393
|
+
/** `animate-pixminimax` only; the loader refuses these on `animate`. */
|
|
19042
19394
|
direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
|
|
19395
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
19396
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
19043
19397
|
}, "strict", z.ZodTypeAny, {
|
|
19044
19398
|
mode: "animate" | "animate-pixminimax";
|
|
19045
19399
|
from: string;
|
|
@@ -19047,6 +19401,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19047
19401
|
fps?: number | undefined;
|
|
19048
19402
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19049
19403
|
enhancePrompt?: boolean | undefined;
|
|
19404
|
+
driftThreshold?: number | undefined;
|
|
19405
|
+
subjectDescription?: string | undefined;
|
|
19406
|
+
initialPose?: string | undefined;
|
|
19050
19407
|
}, {
|
|
19051
19408
|
mode: "animate" | "animate-pixminimax";
|
|
19052
19409
|
from: string;
|
|
@@ -19054,6 +19411,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19054
19411
|
fps?: number | undefined;
|
|
19055
19412
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19056
19413
|
enhancePrompt?: boolean | undefined;
|
|
19414
|
+
driftThreshold?: number | undefined;
|
|
19415
|
+
subjectDescription?: string | undefined;
|
|
19416
|
+
initialPose?: string | undefined;
|
|
19057
19417
|
}>, z.ZodObject<{
|
|
19058
19418
|
mode: z.ZodLiteral<"edit-animation">;
|
|
19059
19419
|
from: z.ZodString;
|
|
@@ -19265,10 +19625,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19265
19625
|
numColors?: number | undefined;
|
|
19266
19626
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19267
19627
|
ditheringStrength?: number | undefined;
|
|
19628
|
+
} | {
|
|
19629
|
+
mask: string;
|
|
19630
|
+
mode: "inpaint";
|
|
19631
|
+
from: string;
|
|
19632
|
+
} | {
|
|
19633
|
+
mode: "interpolate";
|
|
19634
|
+
from: string;
|
|
19635
|
+
lastFrame: string;
|
|
19636
|
+
fps?: number | undefined;
|
|
19268
19637
|
} | {
|
|
19269
19638
|
mode: "correct-pixelart";
|
|
19270
19639
|
from: string;
|
|
19271
19640
|
strength?: number | undefined;
|
|
19641
|
+
} | {
|
|
19642
|
+
mode: "remove-background";
|
|
19643
|
+
from: string;
|
|
19644
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
19645
|
+
description?: string | undefined;
|
|
19272
19646
|
} | {
|
|
19273
19647
|
mode: "animate" | "animate-pixminimax";
|
|
19274
19648
|
from: string;
|
|
@@ -19276,6 +19650,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19276
19650
|
fps?: number | undefined;
|
|
19277
19651
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19278
19652
|
enhancePrompt?: boolean | undefined;
|
|
19653
|
+
driftThreshold?: number | undefined;
|
|
19654
|
+
subjectDescription?: string | undefined;
|
|
19655
|
+
initialPose?: string | undefined;
|
|
19279
19656
|
} | {
|
|
19280
19657
|
mode: "edit-animation";
|
|
19281
19658
|
from: string;
|
|
@@ -19345,10 +19722,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19345
19722
|
numColors?: number | undefined;
|
|
19346
19723
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19347
19724
|
ditheringStrength?: number | undefined;
|
|
19725
|
+
} | {
|
|
19726
|
+
mask: string;
|
|
19727
|
+
mode: "inpaint";
|
|
19728
|
+
from: string;
|
|
19729
|
+
} | {
|
|
19730
|
+
mode: "interpolate";
|
|
19731
|
+
from: string;
|
|
19732
|
+
lastFrame: string;
|
|
19733
|
+
fps?: number | undefined;
|
|
19348
19734
|
} | {
|
|
19349
19735
|
mode: "correct-pixelart";
|
|
19350
19736
|
from: string;
|
|
19351
19737
|
strength?: number | undefined;
|
|
19738
|
+
} | {
|
|
19739
|
+
mode: "remove-background";
|
|
19740
|
+
from: string;
|
|
19741
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
19742
|
+
description?: string | undefined;
|
|
19352
19743
|
} | {
|
|
19353
19744
|
mode: "animate" | "animate-pixminimax";
|
|
19354
19745
|
from: string;
|
|
@@ -19356,6 +19747,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19356
19747
|
fps?: number | undefined;
|
|
19357
19748
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19358
19749
|
enhancePrompt?: boolean | undefined;
|
|
19750
|
+
driftThreshold?: number | undefined;
|
|
19751
|
+
subjectDescription?: string | undefined;
|
|
19752
|
+
initialPose?: string | undefined;
|
|
19359
19753
|
} | {
|
|
19360
19754
|
mode: "edit-animation";
|
|
19361
19755
|
from: string;
|
|
@@ -19425,10 +19819,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19425
19819
|
numColors?: number | undefined;
|
|
19426
19820
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19427
19821
|
ditheringStrength?: number | undefined;
|
|
19822
|
+
} | {
|
|
19823
|
+
mask: string;
|
|
19824
|
+
mode: "inpaint";
|
|
19825
|
+
from: string;
|
|
19826
|
+
} | {
|
|
19827
|
+
mode: "interpolate";
|
|
19828
|
+
from: string;
|
|
19829
|
+
lastFrame: string;
|
|
19830
|
+
fps?: number | undefined;
|
|
19428
19831
|
} | {
|
|
19429
19832
|
mode: "correct-pixelart";
|
|
19430
19833
|
from: string;
|
|
19431
19834
|
strength?: number | undefined;
|
|
19835
|
+
} | {
|
|
19836
|
+
mode: "remove-background";
|
|
19837
|
+
from: string;
|
|
19838
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
19839
|
+
description?: string | undefined;
|
|
19432
19840
|
} | {
|
|
19433
19841
|
mode: "animate" | "animate-pixminimax";
|
|
19434
19842
|
from: string;
|
|
@@ -19436,6 +19844,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19436
19844
|
fps?: number | undefined;
|
|
19437
19845
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19438
19846
|
enhancePrompt?: boolean | undefined;
|
|
19847
|
+
driftThreshold?: number | undefined;
|
|
19848
|
+
subjectDescription?: string | undefined;
|
|
19849
|
+
initialPose?: string | undefined;
|
|
19439
19850
|
} | {
|
|
19440
19851
|
mode: "edit-animation";
|
|
19441
19852
|
from: string;
|
|
@@ -19505,10 +19916,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19505
19916
|
numColors?: number | undefined;
|
|
19506
19917
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19507
19918
|
ditheringStrength?: number | undefined;
|
|
19919
|
+
} | {
|
|
19920
|
+
mask: string;
|
|
19921
|
+
mode: "inpaint";
|
|
19922
|
+
from: string;
|
|
19923
|
+
} | {
|
|
19924
|
+
mode: "interpolate";
|
|
19925
|
+
from: string;
|
|
19926
|
+
lastFrame: string;
|
|
19927
|
+
fps?: number | undefined;
|
|
19508
19928
|
} | {
|
|
19509
19929
|
mode: "correct-pixelart";
|
|
19510
19930
|
from: string;
|
|
19511
19931
|
strength?: number | undefined;
|
|
19932
|
+
} | {
|
|
19933
|
+
mode: "remove-background";
|
|
19934
|
+
from: string;
|
|
19935
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
19936
|
+
description?: string | undefined;
|
|
19512
19937
|
} | {
|
|
19513
19938
|
mode: "animate" | "animate-pixminimax";
|
|
19514
19939
|
from: string;
|
|
@@ -19516,6 +19941,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19516
19941
|
fps?: number | undefined;
|
|
19517
19942
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19518
19943
|
enhancePrompt?: boolean | undefined;
|
|
19944
|
+
driftThreshold?: number | undefined;
|
|
19945
|
+
subjectDescription?: string | undefined;
|
|
19946
|
+
initialPose?: string | undefined;
|
|
19519
19947
|
} | {
|
|
19520
19948
|
mode: "edit-animation";
|
|
19521
19949
|
from: string;
|
|
@@ -19585,10 +20013,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19585
20013
|
numColors?: number | undefined;
|
|
19586
20014
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19587
20015
|
ditheringStrength?: number | undefined;
|
|
20016
|
+
} | {
|
|
20017
|
+
mask: string;
|
|
20018
|
+
mode: "inpaint";
|
|
20019
|
+
from: string;
|
|
20020
|
+
} | {
|
|
20021
|
+
mode: "interpolate";
|
|
20022
|
+
from: string;
|
|
20023
|
+
lastFrame: string;
|
|
20024
|
+
fps?: number | undefined;
|
|
19588
20025
|
} | {
|
|
19589
20026
|
mode: "correct-pixelart";
|
|
19590
20027
|
from: string;
|
|
19591
20028
|
strength?: number | undefined;
|
|
20029
|
+
} | {
|
|
20030
|
+
mode: "remove-background";
|
|
20031
|
+
from: string;
|
|
20032
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
20033
|
+
description?: string | undefined;
|
|
19592
20034
|
} | {
|
|
19593
20035
|
mode: "animate" | "animate-pixminimax";
|
|
19594
20036
|
from: string;
|
|
@@ -19596,6 +20038,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19596
20038
|
fps?: number | undefined;
|
|
19597
20039
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19598
20040
|
enhancePrompt?: boolean | undefined;
|
|
20041
|
+
driftThreshold?: number | undefined;
|
|
20042
|
+
subjectDescription?: string | undefined;
|
|
20043
|
+
initialPose?: string | undefined;
|
|
19599
20044
|
} | {
|
|
19600
20045
|
mode: "edit-animation";
|
|
19601
20046
|
from: string;
|
|
@@ -19665,10 +20110,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19665
20110
|
numColors?: number | undefined;
|
|
19666
20111
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19667
20112
|
ditheringStrength?: number | undefined;
|
|
20113
|
+
} | {
|
|
20114
|
+
mask: string;
|
|
20115
|
+
mode: "inpaint";
|
|
20116
|
+
from: string;
|
|
20117
|
+
} | {
|
|
20118
|
+
mode: "interpolate";
|
|
20119
|
+
from: string;
|
|
20120
|
+
lastFrame: string;
|
|
20121
|
+
fps?: number | undefined;
|
|
19668
20122
|
} | {
|
|
19669
20123
|
mode: "correct-pixelart";
|
|
19670
20124
|
from: string;
|
|
19671
20125
|
strength?: number | undefined;
|
|
20126
|
+
} | {
|
|
20127
|
+
mode: "remove-background";
|
|
20128
|
+
from: string;
|
|
20129
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
20130
|
+
description?: string | undefined;
|
|
19672
20131
|
} | {
|
|
19673
20132
|
mode: "animate" | "animate-pixminimax";
|
|
19674
20133
|
from: string;
|
|
@@ -19676,6 +20135,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19676
20135
|
fps?: number | undefined;
|
|
19677
20136
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19678
20137
|
enhancePrompt?: boolean | undefined;
|
|
20138
|
+
driftThreshold?: number | undefined;
|
|
20139
|
+
subjectDescription?: string | undefined;
|
|
20140
|
+
initialPose?: string | undefined;
|
|
19679
20141
|
} | {
|
|
19680
20142
|
mode: "edit-animation";
|
|
19681
20143
|
from: string;
|
|
@@ -19754,10 +20216,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19754
20216
|
numColors?: number | undefined;
|
|
19755
20217
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19756
20218
|
ditheringStrength?: number | undefined;
|
|
20219
|
+
} | {
|
|
20220
|
+
mask: string;
|
|
20221
|
+
mode: "inpaint";
|
|
20222
|
+
from: string;
|
|
20223
|
+
} | {
|
|
20224
|
+
mode: "interpolate";
|
|
20225
|
+
from: string;
|
|
20226
|
+
lastFrame: string;
|
|
20227
|
+
fps?: number | undefined;
|
|
19757
20228
|
} | {
|
|
19758
20229
|
mode: "correct-pixelart";
|
|
19759
20230
|
from: string;
|
|
19760
20231
|
strength?: number | undefined;
|
|
20232
|
+
} | {
|
|
20233
|
+
mode: "remove-background";
|
|
20234
|
+
from: string;
|
|
20235
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
20236
|
+
description?: string | undefined;
|
|
19761
20237
|
} | {
|
|
19762
20238
|
mode: "animate" | "animate-pixminimax";
|
|
19763
20239
|
from: string;
|
|
@@ -19765,6 +20241,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19765
20241
|
fps?: number | undefined;
|
|
19766
20242
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19767
20243
|
enhancePrompt?: boolean | undefined;
|
|
20244
|
+
driftThreshold?: number | undefined;
|
|
20245
|
+
subjectDescription?: string | undefined;
|
|
20246
|
+
initialPose?: string | undefined;
|
|
19768
20247
|
} | {
|
|
19769
20248
|
mode: "edit-animation";
|
|
19770
20249
|
from: string;
|
|
@@ -19840,10 +20319,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19840
20319
|
numColors?: number | undefined;
|
|
19841
20320
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
19842
20321
|
ditheringStrength?: number | undefined;
|
|
20322
|
+
} | {
|
|
20323
|
+
mask: string;
|
|
20324
|
+
mode: "inpaint";
|
|
20325
|
+
from: string;
|
|
20326
|
+
} | {
|
|
20327
|
+
mode: "interpolate";
|
|
20328
|
+
from: string;
|
|
20329
|
+
lastFrame: string;
|
|
20330
|
+
fps?: number | undefined;
|
|
19843
20331
|
} | {
|
|
19844
20332
|
mode: "correct-pixelart";
|
|
19845
20333
|
from: string;
|
|
19846
20334
|
strength?: number | undefined;
|
|
20335
|
+
} | {
|
|
20336
|
+
mode: "remove-background";
|
|
20337
|
+
from: string;
|
|
20338
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
20339
|
+
description?: string | undefined;
|
|
19847
20340
|
} | {
|
|
19848
20341
|
mode: "animate" | "animate-pixminimax";
|
|
19849
20342
|
from: string;
|
|
@@ -19851,6 +20344,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
19851
20344
|
fps?: number | undefined;
|
|
19852
20345
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
19853
20346
|
enhancePrompt?: boolean | undefined;
|
|
20347
|
+
driftThreshold?: number | undefined;
|
|
20348
|
+
subjectDescription?: string | undefined;
|
|
20349
|
+
initialPose?: string | undefined;
|
|
19854
20350
|
} | {
|
|
19855
20351
|
mode: "edit-animation";
|
|
19856
20352
|
from: string;
|
|
@@ -20236,10 +20732,11 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20236
20732
|
styles: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
20237
20733
|
/**
|
|
20238
20734
|
* A controlled regeneration of another asset in the same manifest,
|
|
20239
|
-
* instead of a fresh generation.
|
|
20240
|
-
* `
|
|
20241
|
-
*
|
|
20242
|
-
*
|
|
20735
|
+
* instead of a fresh generation. Every mode but `outpaint` can be
|
|
20736
|
+
* created here: `inpaint` names a mask file the gallery's mask editor
|
|
20737
|
+
* wrote first, `interpolate` names an existing image as its ending
|
|
20738
|
+
* keyframe, and `animate-skeleton` names the keypoints file the gallery
|
|
20739
|
+
* wrote first.
|
|
20243
20740
|
*/
|
|
20244
20741
|
revision: z.ZodOptional<z.ZodDiscriminatedUnion<"mode", [z.ZodObject<{
|
|
20245
20742
|
mode: z.ZodLiteral<"image-to-image">;
|
|
@@ -20273,6 +20770,35 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20273
20770
|
numColors?: number | undefined;
|
|
20274
20771
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20275
20772
|
ditheringStrength?: number | undefined;
|
|
20773
|
+
}>, z.ZodObject<{
|
|
20774
|
+
mode: z.ZodLiteral<"inpaint">;
|
|
20775
|
+
from: z.ZodString;
|
|
20776
|
+
/** Black-and-white PNG the same size as the parent; white is repainted. */
|
|
20777
|
+
mask: z.ZodEffects<z.ZodString, string, string>;
|
|
20778
|
+
}, "strict", z.ZodTypeAny, {
|
|
20779
|
+
mask: string;
|
|
20780
|
+
mode: "inpaint";
|
|
20781
|
+
from: string;
|
|
20782
|
+
}, {
|
|
20783
|
+
mask: string;
|
|
20784
|
+
mode: "inpaint";
|
|
20785
|
+
from: string;
|
|
20786
|
+
}>, z.ZodObject<{
|
|
20787
|
+
mode: z.ZodLiteral<"interpolate">;
|
|
20788
|
+
from: z.ZodString;
|
|
20789
|
+
/** The ending keyframe: an image already in the project, the parent's size. */
|
|
20790
|
+
lastFrame: z.ZodEffects<z.ZodString, string, string>;
|
|
20791
|
+
fps: z.ZodOptional<z.ZodNumber>;
|
|
20792
|
+
}, "strict", z.ZodTypeAny, {
|
|
20793
|
+
mode: "interpolate";
|
|
20794
|
+
from: string;
|
|
20795
|
+
lastFrame: string;
|
|
20796
|
+
fps?: number | undefined;
|
|
20797
|
+
}, {
|
|
20798
|
+
mode: "interpolate";
|
|
20799
|
+
from: string;
|
|
20800
|
+
lastFrame: string;
|
|
20801
|
+
fps?: number | undefined;
|
|
20276
20802
|
}>, z.ZodObject<{
|
|
20277
20803
|
mode: z.ZodLiteral<"correct-pixelart">;
|
|
20278
20804
|
from: z.ZodString;
|
|
@@ -20285,14 +20811,33 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20285
20811
|
mode: "correct-pixelart";
|
|
20286
20812
|
from: string;
|
|
20287
20813
|
strength?: number | undefined;
|
|
20814
|
+
}>, z.ZodObject<{
|
|
20815
|
+
mode: z.ZodLiteral<"remove-background">;
|
|
20816
|
+
from: z.ZodString;
|
|
20817
|
+
removalTask: z.ZodOptional<z.ZodEnum<["simple", "complex"]>>;
|
|
20818
|
+
/** A short description of the foreground, sent as PixelLab's text hint. */
|
|
20819
|
+
description: z.ZodOptional<z.ZodString>;
|
|
20820
|
+
}, "strict", z.ZodTypeAny, {
|
|
20821
|
+
mode: "remove-background";
|
|
20822
|
+
from: string;
|
|
20823
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
20824
|
+
description?: string | undefined;
|
|
20825
|
+
}, {
|
|
20826
|
+
mode: "remove-background";
|
|
20827
|
+
from: string;
|
|
20828
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
20829
|
+
description?: string | undefined;
|
|
20288
20830
|
}>, z.ZodObject<{
|
|
20289
20831
|
mode: z.ZodEnum<["animate", "animate-pixminimax"]>;
|
|
20290
20832
|
from: z.ZodString;
|
|
20291
20833
|
frames: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
|
|
20292
20834
|
fps: z.ZodOptional<z.ZodNumber>;
|
|
20293
20835
|
enhancePrompt: z.ZodOptional<z.ZodBoolean>;
|
|
20294
|
-
|
|
20836
|
+
driftThreshold: z.ZodOptional<z.ZodNumber>;
|
|
20837
|
+
/** `animate-pixminimax` only; the loader refuses these on `animate`. */
|
|
20295
20838
|
direction: z.ZodOptional<z.ZodEnum<["south", "south-east", "east", "north-east", "north", "north-west", "west", "south-west"]>>;
|
|
20839
|
+
subjectDescription: z.ZodOptional<z.ZodString>;
|
|
20840
|
+
initialPose: z.ZodOptional<z.ZodString>;
|
|
20296
20841
|
}, "strict", z.ZodTypeAny, {
|
|
20297
20842
|
mode: "animate" | "animate-pixminimax";
|
|
20298
20843
|
from: string;
|
|
@@ -20300,6 +20845,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20300
20845
|
fps?: number | undefined;
|
|
20301
20846
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20302
20847
|
enhancePrompt?: boolean | undefined;
|
|
20848
|
+
driftThreshold?: number | undefined;
|
|
20849
|
+
subjectDescription?: string | undefined;
|
|
20850
|
+
initialPose?: string | undefined;
|
|
20303
20851
|
}, {
|
|
20304
20852
|
mode: "animate" | "animate-pixminimax";
|
|
20305
20853
|
from: string;
|
|
@@ -20307,6 +20855,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20307
20855
|
fps?: number | undefined;
|
|
20308
20856
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20309
20857
|
enhancePrompt?: boolean | undefined;
|
|
20858
|
+
driftThreshold?: number | undefined;
|
|
20859
|
+
subjectDescription?: string | undefined;
|
|
20860
|
+
initialPose?: string | undefined;
|
|
20310
20861
|
}>, z.ZodObject<{
|
|
20311
20862
|
mode: z.ZodLiteral<"edit-animation">;
|
|
20312
20863
|
from: z.ZodString;
|
|
@@ -20518,10 +21069,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20518
21069
|
numColors?: number | undefined;
|
|
20519
21070
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20520
21071
|
ditheringStrength?: number | undefined;
|
|
21072
|
+
} | {
|
|
21073
|
+
mask: string;
|
|
21074
|
+
mode: "inpaint";
|
|
21075
|
+
from: string;
|
|
21076
|
+
} | {
|
|
21077
|
+
mode: "interpolate";
|
|
21078
|
+
from: string;
|
|
21079
|
+
lastFrame: string;
|
|
21080
|
+
fps?: number | undefined;
|
|
20521
21081
|
} | {
|
|
20522
21082
|
mode: "correct-pixelart";
|
|
20523
21083
|
from: string;
|
|
20524
21084
|
strength?: number | undefined;
|
|
21085
|
+
} | {
|
|
21086
|
+
mode: "remove-background";
|
|
21087
|
+
from: string;
|
|
21088
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21089
|
+
description?: string | undefined;
|
|
20525
21090
|
} | {
|
|
20526
21091
|
mode: "animate" | "animate-pixminimax";
|
|
20527
21092
|
from: string;
|
|
@@ -20529,6 +21094,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20529
21094
|
fps?: number | undefined;
|
|
20530
21095
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20531
21096
|
enhancePrompt?: boolean | undefined;
|
|
21097
|
+
driftThreshold?: number | undefined;
|
|
21098
|
+
subjectDescription?: string | undefined;
|
|
21099
|
+
initialPose?: string | undefined;
|
|
20532
21100
|
} | {
|
|
20533
21101
|
mode: "edit-animation";
|
|
20534
21102
|
from: string;
|
|
@@ -20598,10 +21166,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20598
21166
|
numColors?: number | undefined;
|
|
20599
21167
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20600
21168
|
ditheringStrength?: number | undefined;
|
|
21169
|
+
} | {
|
|
21170
|
+
mask: string;
|
|
21171
|
+
mode: "inpaint";
|
|
21172
|
+
from: string;
|
|
21173
|
+
} | {
|
|
21174
|
+
mode: "interpolate";
|
|
21175
|
+
from: string;
|
|
21176
|
+
lastFrame: string;
|
|
21177
|
+
fps?: number | undefined;
|
|
20601
21178
|
} | {
|
|
20602
21179
|
mode: "correct-pixelart";
|
|
20603
21180
|
from: string;
|
|
20604
21181
|
strength?: number | undefined;
|
|
21182
|
+
} | {
|
|
21183
|
+
mode: "remove-background";
|
|
21184
|
+
from: string;
|
|
21185
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21186
|
+
description?: string | undefined;
|
|
20605
21187
|
} | {
|
|
20606
21188
|
mode: "animate" | "animate-pixminimax";
|
|
20607
21189
|
from: string;
|
|
@@ -20609,6 +21191,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20609
21191
|
fps?: number | undefined;
|
|
20610
21192
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20611
21193
|
enhancePrompt?: boolean | undefined;
|
|
21194
|
+
driftThreshold?: number | undefined;
|
|
21195
|
+
subjectDescription?: string | undefined;
|
|
21196
|
+
initialPose?: string | undefined;
|
|
20612
21197
|
} | {
|
|
20613
21198
|
mode: "edit-animation";
|
|
20614
21199
|
from: string;
|
|
@@ -20678,10 +21263,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20678
21263
|
numColors?: number | undefined;
|
|
20679
21264
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20680
21265
|
ditheringStrength?: number | undefined;
|
|
21266
|
+
} | {
|
|
21267
|
+
mask: string;
|
|
21268
|
+
mode: "inpaint";
|
|
21269
|
+
from: string;
|
|
21270
|
+
} | {
|
|
21271
|
+
mode: "interpolate";
|
|
21272
|
+
from: string;
|
|
21273
|
+
lastFrame: string;
|
|
21274
|
+
fps?: number | undefined;
|
|
20681
21275
|
} | {
|
|
20682
21276
|
mode: "correct-pixelart";
|
|
20683
21277
|
from: string;
|
|
20684
21278
|
strength?: number | undefined;
|
|
21279
|
+
} | {
|
|
21280
|
+
mode: "remove-background";
|
|
21281
|
+
from: string;
|
|
21282
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21283
|
+
description?: string | undefined;
|
|
20685
21284
|
} | {
|
|
20686
21285
|
mode: "animate" | "animate-pixminimax";
|
|
20687
21286
|
from: string;
|
|
@@ -20689,6 +21288,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20689
21288
|
fps?: number | undefined;
|
|
20690
21289
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20691
21290
|
enhancePrompt?: boolean | undefined;
|
|
21291
|
+
driftThreshold?: number | undefined;
|
|
21292
|
+
subjectDescription?: string | undefined;
|
|
21293
|
+
initialPose?: string | undefined;
|
|
20692
21294
|
} | {
|
|
20693
21295
|
mode: "edit-animation";
|
|
20694
21296
|
from: string;
|
|
@@ -20758,10 +21360,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20758
21360
|
numColors?: number | undefined;
|
|
20759
21361
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20760
21362
|
ditheringStrength?: number | undefined;
|
|
21363
|
+
} | {
|
|
21364
|
+
mask: string;
|
|
21365
|
+
mode: "inpaint";
|
|
21366
|
+
from: string;
|
|
21367
|
+
} | {
|
|
21368
|
+
mode: "interpolate";
|
|
21369
|
+
from: string;
|
|
21370
|
+
lastFrame: string;
|
|
21371
|
+
fps?: number | undefined;
|
|
20761
21372
|
} | {
|
|
20762
21373
|
mode: "correct-pixelart";
|
|
20763
21374
|
from: string;
|
|
20764
21375
|
strength?: number | undefined;
|
|
21376
|
+
} | {
|
|
21377
|
+
mode: "remove-background";
|
|
21378
|
+
from: string;
|
|
21379
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21380
|
+
description?: string | undefined;
|
|
20765
21381
|
} | {
|
|
20766
21382
|
mode: "animate" | "animate-pixminimax";
|
|
20767
21383
|
from: string;
|
|
@@ -20769,6 +21385,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20769
21385
|
fps?: number | undefined;
|
|
20770
21386
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20771
21387
|
enhancePrompt?: boolean | undefined;
|
|
21388
|
+
driftThreshold?: number | undefined;
|
|
21389
|
+
subjectDescription?: string | undefined;
|
|
21390
|
+
initialPose?: string | undefined;
|
|
20772
21391
|
} | {
|
|
20773
21392
|
mode: "edit-animation";
|
|
20774
21393
|
from: string;
|
|
@@ -20838,10 +21457,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20838
21457
|
numColors?: number | undefined;
|
|
20839
21458
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20840
21459
|
ditheringStrength?: number | undefined;
|
|
21460
|
+
} | {
|
|
21461
|
+
mask: string;
|
|
21462
|
+
mode: "inpaint";
|
|
21463
|
+
from: string;
|
|
21464
|
+
} | {
|
|
21465
|
+
mode: "interpolate";
|
|
21466
|
+
from: string;
|
|
21467
|
+
lastFrame: string;
|
|
21468
|
+
fps?: number | undefined;
|
|
20841
21469
|
} | {
|
|
20842
21470
|
mode: "correct-pixelart";
|
|
20843
21471
|
from: string;
|
|
20844
21472
|
strength?: number | undefined;
|
|
21473
|
+
} | {
|
|
21474
|
+
mode: "remove-background";
|
|
21475
|
+
from: string;
|
|
21476
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21477
|
+
description?: string | undefined;
|
|
20845
21478
|
} | {
|
|
20846
21479
|
mode: "animate" | "animate-pixminimax";
|
|
20847
21480
|
from: string;
|
|
@@ -20849,6 +21482,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20849
21482
|
fps?: number | undefined;
|
|
20850
21483
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20851
21484
|
enhancePrompt?: boolean | undefined;
|
|
21485
|
+
driftThreshold?: number | undefined;
|
|
21486
|
+
subjectDescription?: string | undefined;
|
|
21487
|
+
initialPose?: string | undefined;
|
|
20852
21488
|
} | {
|
|
20853
21489
|
mode: "edit-animation";
|
|
20854
21490
|
from: string;
|
|
@@ -20918,10 +21554,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20918
21554
|
numColors?: number | undefined;
|
|
20919
21555
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
20920
21556
|
ditheringStrength?: number | undefined;
|
|
21557
|
+
} | {
|
|
21558
|
+
mask: string;
|
|
21559
|
+
mode: "inpaint";
|
|
21560
|
+
from: string;
|
|
21561
|
+
} | {
|
|
21562
|
+
mode: "interpolate";
|
|
21563
|
+
from: string;
|
|
21564
|
+
lastFrame: string;
|
|
21565
|
+
fps?: number | undefined;
|
|
20921
21566
|
} | {
|
|
20922
21567
|
mode: "correct-pixelart";
|
|
20923
21568
|
from: string;
|
|
20924
21569
|
strength?: number | undefined;
|
|
21570
|
+
} | {
|
|
21571
|
+
mode: "remove-background";
|
|
21572
|
+
from: string;
|
|
21573
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21574
|
+
description?: string | undefined;
|
|
20925
21575
|
} | {
|
|
20926
21576
|
mode: "animate" | "animate-pixminimax";
|
|
20927
21577
|
from: string;
|
|
@@ -20929,6 +21579,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
20929
21579
|
fps?: number | undefined;
|
|
20930
21580
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
20931
21581
|
enhancePrompt?: boolean | undefined;
|
|
21582
|
+
driftThreshold?: number | undefined;
|
|
21583
|
+
subjectDescription?: string | undefined;
|
|
21584
|
+
initialPose?: string | undefined;
|
|
20932
21585
|
} | {
|
|
20933
21586
|
mode: "edit-animation";
|
|
20934
21587
|
from: string;
|
|
@@ -21002,10 +21655,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21002
21655
|
numColors?: number | undefined;
|
|
21003
21656
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
21004
21657
|
ditheringStrength?: number | undefined;
|
|
21658
|
+
} | {
|
|
21659
|
+
mask: string;
|
|
21660
|
+
mode: "inpaint";
|
|
21661
|
+
from: string;
|
|
21662
|
+
} | {
|
|
21663
|
+
mode: "interpolate";
|
|
21664
|
+
from: string;
|
|
21665
|
+
lastFrame: string;
|
|
21666
|
+
fps?: number | undefined;
|
|
21005
21667
|
} | {
|
|
21006
21668
|
mode: "correct-pixelart";
|
|
21007
21669
|
from: string;
|
|
21008
21670
|
strength?: number | undefined;
|
|
21671
|
+
} | {
|
|
21672
|
+
mode: "remove-background";
|
|
21673
|
+
from: string;
|
|
21674
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21675
|
+
description?: string | undefined;
|
|
21009
21676
|
} | {
|
|
21010
21677
|
mode: "animate" | "animate-pixminimax";
|
|
21011
21678
|
from: string;
|
|
@@ -21013,6 +21680,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21013
21680
|
fps?: number | undefined;
|
|
21014
21681
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
21015
21682
|
enhancePrompt?: boolean | undefined;
|
|
21683
|
+
driftThreshold?: number | undefined;
|
|
21684
|
+
subjectDescription?: string | undefined;
|
|
21685
|
+
initialPose?: string | undefined;
|
|
21016
21686
|
} | {
|
|
21017
21687
|
mode: "edit-animation";
|
|
21018
21688
|
from: string;
|
|
@@ -21086,10 +21756,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21086
21756
|
numColors?: number | undefined;
|
|
21087
21757
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
21088
21758
|
ditheringStrength?: number | undefined;
|
|
21759
|
+
} | {
|
|
21760
|
+
mask: string;
|
|
21761
|
+
mode: "inpaint";
|
|
21762
|
+
from: string;
|
|
21763
|
+
} | {
|
|
21764
|
+
mode: "interpolate";
|
|
21765
|
+
from: string;
|
|
21766
|
+
lastFrame: string;
|
|
21767
|
+
fps?: number | undefined;
|
|
21089
21768
|
} | {
|
|
21090
21769
|
mode: "correct-pixelart";
|
|
21091
21770
|
from: string;
|
|
21092
21771
|
strength?: number | undefined;
|
|
21772
|
+
} | {
|
|
21773
|
+
mode: "remove-background";
|
|
21774
|
+
from: string;
|
|
21775
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
21776
|
+
description?: string | undefined;
|
|
21093
21777
|
} | {
|
|
21094
21778
|
mode: "animate" | "animate-pixminimax";
|
|
21095
21779
|
from: string;
|
|
@@ -21097,6 +21781,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21097
21781
|
fps?: number | undefined;
|
|
21098
21782
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
21099
21783
|
enhancePrompt?: boolean | undefined;
|
|
21784
|
+
driftThreshold?: number | undefined;
|
|
21785
|
+
subjectDescription?: string | undefined;
|
|
21786
|
+
initialPose?: string | undefined;
|
|
21100
21787
|
} | {
|
|
21101
21788
|
mode: "edit-animation";
|
|
21102
21789
|
from: string;
|
|
@@ -21427,10 +22114,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21427
22114
|
numColors?: number | undefined;
|
|
21428
22115
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
21429
22116
|
ditheringStrength?: number | undefined;
|
|
22117
|
+
} | {
|
|
22118
|
+
mask: string;
|
|
22119
|
+
mode: "inpaint";
|
|
22120
|
+
from: string;
|
|
22121
|
+
} | {
|
|
22122
|
+
mode: "interpolate";
|
|
22123
|
+
from: string;
|
|
22124
|
+
lastFrame: string;
|
|
22125
|
+
fps?: number | undefined;
|
|
21430
22126
|
} | {
|
|
21431
22127
|
mode: "correct-pixelart";
|
|
21432
22128
|
from: string;
|
|
21433
22129
|
strength?: number | undefined;
|
|
22130
|
+
} | {
|
|
22131
|
+
mode: "remove-background";
|
|
22132
|
+
from: string;
|
|
22133
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
22134
|
+
description?: string | undefined;
|
|
21434
22135
|
} | {
|
|
21435
22136
|
mode: "animate" | "animate-pixminimax";
|
|
21436
22137
|
from: string;
|
|
@@ -21438,6 +22139,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21438
22139
|
fps?: number | undefined;
|
|
21439
22140
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
21440
22141
|
enhancePrompt?: boolean | undefined;
|
|
22142
|
+
driftThreshold?: number | undefined;
|
|
22143
|
+
subjectDescription?: string | undefined;
|
|
22144
|
+
initialPose?: string | undefined;
|
|
21441
22145
|
} | {
|
|
21442
22146
|
mode: "edit-animation";
|
|
21443
22147
|
from: string;
|
|
@@ -21578,10 +22282,24 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21578
22282
|
numColors?: number | undefined;
|
|
21579
22283
|
dithering?: "none" | "2x2" | "4x4" | "8x8" | undefined;
|
|
21580
22284
|
ditheringStrength?: number | undefined;
|
|
22285
|
+
} | {
|
|
22286
|
+
mask: string;
|
|
22287
|
+
mode: "inpaint";
|
|
22288
|
+
from: string;
|
|
22289
|
+
} | {
|
|
22290
|
+
mode: "interpolate";
|
|
22291
|
+
from: string;
|
|
22292
|
+
lastFrame: string;
|
|
22293
|
+
fps?: number | undefined;
|
|
21581
22294
|
} | {
|
|
21582
22295
|
mode: "correct-pixelart";
|
|
21583
22296
|
from: string;
|
|
21584
22297
|
strength?: number | undefined;
|
|
22298
|
+
} | {
|
|
22299
|
+
mode: "remove-background";
|
|
22300
|
+
from: string;
|
|
22301
|
+
removalTask?: "simple" | "complex" | undefined;
|
|
22302
|
+
description?: string | undefined;
|
|
21585
22303
|
} | {
|
|
21586
22304
|
mode: "animate" | "animate-pixminimax";
|
|
21587
22305
|
from: string;
|
|
@@ -21589,6 +22307,9 @@ declare const ManifestEditSchema: z.ZodDiscriminatedUnion<"action", [z.ZodObject
|
|
|
21589
22307
|
fps?: number | undefined;
|
|
21590
22308
|
direction?: "south" | "south-east" | "east" | "north-east" | "north" | "north-west" | "west" | "south-west" | undefined;
|
|
21591
22309
|
enhancePrompt?: boolean | undefined;
|
|
22310
|
+
driftThreshold?: number | undefined;
|
|
22311
|
+
subjectDescription?: string | undefined;
|
|
22312
|
+
initialPose?: string | undefined;
|
|
21592
22313
|
} | {
|
|
21593
22314
|
mode: "edit-animation";
|
|
21594
22315
|
from: string;
|