pixelkiln 0.100.0 → 0.102.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/README.md +1 -1
- package/dist/cli.js +1166 -191
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +517 -16
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +946 -59
- package/dist/index.d.ts +946 -59
- package/dist/index.js +510 -27
- package/dist/index.js.map +1 -1
- package/docs/CLI.md +147 -8
- package/docs/ENDPOINTS.md +175 -8
- package/docs/GENERATORS.md +32 -2
- package/docs/MANIFEST.md +6 -1
- package/package.json +1 -1
- package/schema/manifest.schema.json +62 -0
- package/schema/recipe.schema.json +26 -0
- package/skills/pixelkiln/references/pixellab.md +11 -3
package/docs/CLI.md
CHANGED
|
@@ -1227,6 +1227,7 @@ client such as Claude Code. Then pull the result into the project with
|
|
|
1227
1227
|
```bash
|
|
1228
1228
|
pixelkiln vfx --description "a blue lightning strike that leaves sparks" --out fx/zap
|
|
1229
1229
|
pixelkiln vfx --description "a green healing aura" --artist pro --sprite sprites/hero.png --out fx/heal
|
|
1230
|
+
pixelkiln vfx --description "a fiery trail behind the robot as it walks" --sprite sprites/walk.png --sprite-frames 8 --out fx/trail
|
|
1230
1231
|
pixelkiln vfx --description "make it red and faster" --effect <effect id> --out fx/zap --force
|
|
1231
1232
|
```
|
|
1232
1233
|
|
|
@@ -1237,9 +1238,17 @@ and needs no MCP.
|
|
|
1237
1238
|
|
|
1238
1239
|
- `--artist lite` (the default) or `--artist pro`, the stronger artist for
|
|
1239
1240
|
detailed effects.
|
|
1240
|
-
- `--sprite` must be a local PNG up to 512×512; the artist
|
|
1241
|
-
a URL or a `character:` reference. `--preset`,
|
|
1242
|
-
`--fps` are refused with `--description`.
|
|
1241
|
+
- `--sprite` must be a local PNG or GIF up to 512×512 a frame; the artist
|
|
1242
|
+
takes pixels, not a URL or a `character:` reference. `--preset`,
|
|
1243
|
+
`--recipe`, `--part`, and `--fps` are refused with `--description`.
|
|
1244
|
+
- **An animated sprite.** Pass a GIF, or a horizontal PNG strip with
|
|
1245
|
+
`--sprite-frames <n>` (2 to 32 equal frames), and the effect is built
|
|
1246
|
+
around every frame, with the sprite's own frame count. `--sprite-fps <n>`
|
|
1247
|
+
sets how fast the sprite plays (PixelLab uses a GIF's own timing, else
|
|
1248
|
+
12). A strip must divide evenly into its frames and be at most 1,024
|
|
1249
|
+
pixels wide, which PixelLab enforces and the command checks first; send a
|
|
1250
|
+
longer animation as a GIF. `--sprite-frames` is refused with a GIF, which
|
|
1251
|
+
brings its own frames.
|
|
1243
1252
|
- `--effect <id>` changes that saved effect in place, with `--description`
|
|
1244
1253
|
saying what to change. When `<base>.vfx.json` is that effect's record from
|
|
1245
1254
|
an earlier run, its `conversation` is sent too, which PixelLab prices as a
|
|
@@ -1248,7 +1257,9 @@ and needs no MCP.
|
|
|
1248
1257
|
quote when the effect runs long. Its table: lite 1 generation (3 with a
|
|
1249
1258
|
sprite over 128 px, 5 over 256 px; a change 1–2), pro 6 (8 with a sprite,
|
|
1250
1259
|
14 over 128 px, 28 over 256 px; a change 4–8). The command prints the quote
|
|
1251
|
-
and the twice-the-quote ceiling and asks first.
|
|
1260
|
+
and the twice-the-quote ceiling and asks first. An animated sprite adds 1
|
|
1261
|
+
to the lite quote and 1, 2 or 5 to the pro quote by size tier
|
|
1262
|
+
([measured](./ENDPOINTS.md#vfx-animated-sprites-measured)). `--budget <n>` refuses when
|
|
1252
1263
|
`n` is below the ceiling, `--yes` skips the question, and `--dry-run` sends
|
|
1253
1264
|
nothing. A change prices the saved effect's sprite at the top tier unless
|
|
1254
1265
|
you pass `--sprite`, since its size is not known here.
|
|
@@ -1293,6 +1304,9 @@ an image, so there is nothing for the lockfile's provenance model to hold.
|
|
|
1293
1304
|
|
|
1294
1305
|
```bash
|
|
1295
1306
|
pixelkiln asset import --from art/knight.png --name knight
|
|
1307
|
+
pixelkiln asset import --kind tileset --from art/meadow-sheet.png --size 16 --lower grass --upper stone
|
|
1308
|
+
pixelkiln asset import --kind tiles --from art/floor-tiles/ --tile-type square_topdown --size 32
|
|
1309
|
+
pixelkiln asset save --target object:<object id>:south --from art/knight-edited.png
|
|
1296
1310
|
pixelkiln asset expand --id <object id> --direction south
|
|
1297
1311
|
pixelkiln asset review --id <object id> --out review/
|
|
1298
1312
|
pixelkiln asset expand --id <object id> --keep
|
|
@@ -1303,10 +1317,55 @@ pixelkiln asset export --id <id> --format aseprite --out art/knight
|
|
|
1303
1317
|
|
|
1304
1318
|
Upkeep for an object or character that already exists on PixelLab, by its
|
|
1305
1319
|
PixelLab id (a lock entry's `objectId`). `--kind` is `object` (the default) or
|
|
1306
|
-
`character
|
|
1320
|
+
`character`; `asset import` also takes `tileset` and `tiles`. Everything
|
|
1321
|
+
except `expand` is free.
|
|
1307
1322
|
|
|
1308
1323
|
- `asset import` stores your own PNG as a completed 1-direction object, exactly
|
|
1309
1324
|
as drawn. PNG only, at most 256x256. It prints the new object's id.
|
|
1325
|
+
- `asset import --kind tileset` stores a Wang sheet you drew as a completed
|
|
1326
|
+
tileset, cut into its 16 (or 25) tiles with new ids, so it works in maps
|
|
1327
|
+
and chaining like a generated one. The sheet must be in one of PixelLab's
|
|
1328
|
+
two layouts: 4 tiles wide (what a tileset download gives) or 8 wide (its
|
|
1329
|
+
native sheet), square or twice as tall, with 16, 24, 32, 48 or 64px tiles.
|
|
1330
|
+
`--mode sidescroller` imports a platform set instead of a top-down one.
|
|
1331
|
+
`--lower`, `--upper` and `--transition` describe the terrains and `--name`
|
|
1332
|
+
names the set.
|
|
1333
|
+
**Give `--size` when the sheet reads two ways.** A 128, 192 or 256px-wide
|
|
1334
|
+
sheet is both a 4-wide sheet and an 8-wide one at half the tile size, and
|
|
1335
|
+
PixelLab takes the 4-wide reading unless told: a 16px native sheet sent
|
|
1336
|
+
without a size came back as sixteen 32px tiles, each a quarter of the
|
|
1337
|
+
sheet. The command refuses such a sheet until `--size` says which.
|
|
1338
|
+
- `asset import --kind tiles` stores 1 to 32 tile PNGs as one tile group,
|
|
1339
|
+
ready for maps. `--from` is one PNG or a directory, whose PNGs are sent in
|
|
1340
|
+
name order (`tile-2` before `tile-10`). `--tile-type` is `square_topdown`,
|
|
1341
|
+
`isometric`, `oblique`, `hex`, `hex_pointy` or `octagon`, and `--size` is
|
|
1342
|
+
the tiles' width, 16 to 256. Every tile is that wide; square and octagon
|
|
1343
|
+
tiles are exactly that tall, isometric and hex tiles half to twice it, and
|
|
1344
|
+
oblique tiles one to twice it. A tile of the wrong size is refused before
|
|
1345
|
+
anything is sent. `--description` says what the tiles are. The view the
|
|
1346
|
+
tiles are drawn in is left at PixelLab's default, low top-down.
|
|
1347
|
+
- `asset save` writes edited pixels back into something PixelLab already
|
|
1348
|
+
stores, so its website, maps, exports and game projects show your edit.
|
|
1349
|
+
`--target` says where:
|
|
1350
|
+
|
|
1351
|
+
| Target | What it replaces |
|
|
1352
|
+
|---|---|
|
|
1353
|
+
| `character:<id>:<direction>` | One rotation of a character. |
|
|
1354
|
+
| `object:<id>` or `object:<id>:<direction>` | An object's image, or one rotation of an 8-direction object. |
|
|
1355
|
+
| either, with `:<animation group id>` added | One direction of an animation. |
|
|
1356
|
+
| `gallery:<id>` | A gallery image. |
|
|
1357
|
+
| `gallery:new` | Nothing: the image is added to the gallery. `--name` and `--description` label it. |
|
|
1358
|
+
| `tileset:<id>` | A tileset's whole sheet, in the 4-wide layout. |
|
|
1359
|
+
|
|
1360
|
+
`--from` is a PNG, an animated GIF, or a directory of PNG frames sent in
|
|
1361
|
+
name order. The image must match what it replaces in size and frame count;
|
|
1362
|
+
PixelLab refuses otherwise and names the size it wants. Pad or crop with
|
|
1363
|
+
transparent pixels, never rescale.
|
|
1364
|
+
**Every save can be undone.** The pixels it replaced are written to
|
|
1365
|
+
`--out <dir>`, or to `pixelkiln-undo/<target>-<time>/` when you give none,
|
|
1366
|
+
and the command prints the line that saves them back. The command asks
|
|
1367
|
+
before replacing anything (`--yes` skips the question, `--dry-run` sends
|
|
1368
|
+
nothing). A save that changes no pixel writes nothing.
|
|
1310
1369
|
- `asset expand` draws the 7 missing directions of a 1-direction object.
|
|
1311
1370
|
`--direction` says which way its image faces now; that image is kept
|
|
1312
1371
|
unchanged as that direction. `--description` guides the new angles. It costs
|
|
@@ -1466,6 +1525,73 @@ yet: the lockfile's outputs are images, and audio has no palette, size or
|
|
|
1466
1525
|
candidates for a style to share. The record beside each file carries the
|
|
1467
1526
|
provenance instead.
|
|
1468
1527
|
|
|
1528
|
+
### `talk`
|
|
1529
|
+
|
|
1530
|
+
```bash
|
|
1531
|
+
pixelkiln talk visemes --from art/smith-portrait.png --out talk/smith
|
|
1532
|
+
pixelkiln talk gif --from talk/smith.talk.json --text "Fire once." --out talk/hello
|
|
1533
|
+
pixelkiln talk plan --from talk/smith.talk.json --text "Fire once." --out talk/hello
|
|
1534
|
+
```
|
|
1535
|
+
|
|
1536
|
+
A talking portrait. PixelLab draws the portrait's mouth positions once, which
|
|
1537
|
+
costs generations, and then lip-syncs any line of text to them for free.
|
|
1538
|
+
|
|
1539
|
+
**`talk visemes`** draws one expression's mouth positions (`/vocal-animation`)
|
|
1540
|
+
and writes `<out>.visemes.png`, a strip with one cell per position, and
|
|
1541
|
+
`<out>.talk.json`, a record of the order, the cell size, the engine, the mood
|
|
1542
|
+
and what was billed.
|
|
1543
|
+
|
|
1544
|
+
- `--from <png>` is a portrait up to 256x256. Nothing is stored on PixelLab.
|
|
1545
|
+
`--id <character id>` uses a character's stored portrait instead and saves
|
|
1546
|
+
the set onto the character; the strip written is then the character's whole
|
|
1547
|
+
grid, one row per expression.
|
|
1548
|
+
- `--visemes` is 3, 5, 7 (the default) or 12. PixelLab suggests 3 for tiny
|
|
1549
|
+
portraits and 12 for large close-ups. Every expression on one character
|
|
1550
|
+
must use the same count.
|
|
1551
|
+
- `--mood` is `neutral` (the default), `happy`, `angry`, `sad` or `surprised`,
|
|
1552
|
+
held on the face throughout. Run the command once per expression.
|
|
1553
|
+
- `--engine v3` (the default) or `pixminimax`, a beta engine that keeps the
|
|
1554
|
+
eyes, brows and head still while the mouth moves. `--seed` repeats a run.
|
|
1555
|
+
- **Cost.** For 7 positions PixelLab publishes 3 generations with
|
|
1556
|
+
`pixminimax` at any size, and with `v3` 3 at 64px, 6 at 128px and 24 at
|
|
1557
|
+
256px. Two 64px sets billed 3 each with `pixminimax` and one billed 3 with
|
|
1558
|
+
`v3` (November 2026). Other counts are scaled by count/7, which is an
|
|
1559
|
+
estimate, and a character's stored portrait is priced at 256px because its
|
|
1560
|
+
size is not known here. The command prints the price and asks first
|
|
1561
|
+
(`--yes`, `--budget`, `--dry-run`).
|
|
1562
|
+
- **Give the portrait a visible mouth.** A robot with no mouth came back
|
|
1563
|
+
with seven frames that barely differ. A face with a closed mouth came back
|
|
1564
|
+
with seven distinct shapes.
|
|
1565
|
+
- The background is removed from the frames. With `v3` the eyes and brows can
|
|
1566
|
+
change between positions as well as the mouth.
|
|
1567
|
+
|
|
1568
|
+
**`talk gif`** lip-syncs `--text` (up to 500 characters, any language in the
|
|
1569
|
+
latin alphabet) to a GIF at `--out`. Free, and it answers at once.
|
|
1570
|
+
|
|
1571
|
+
- `--from <record.talk.json>` sends that record's mouth positions. `--id
|
|
1572
|
+
<character id>` uses the positions stored on a character, and `--mood`
|
|
1573
|
+
picks among its expressions.
|
|
1574
|
+
- `--frame-ms` is the time per mouth position (20 to 500, default 90) and
|
|
1575
|
+
`--hold-ms` the pause on the closed mouth at the end (default 600), so a
|
|
1576
|
+
looping GIF has a beat between takes. A GIF stores delays in steps of 10
|
|
1577
|
+
ms, so the command prints the timing actually encoded.
|
|
1578
|
+
|
|
1579
|
+
**`talk plan`** prints the frame-by-frame plan for a line instead of
|
|
1580
|
+
rendering it (`/lip-sync`): which cell of the strip to show, for how long,
|
|
1581
|
+
and how many characters of the text have been spoken by the end of each
|
|
1582
|
+
frame, which drives a karaoke-style highlight. Free. Use it when a game
|
|
1583
|
+
engine draws the mouth itself.
|
|
1584
|
+
|
|
1585
|
+
- `--from <record.talk.json>`, `--id <character id>`, or `--visemes <n>` to
|
|
1586
|
+
plan against a bare preset with no art. With `--out` the plan is written as
|
|
1587
|
+
JSON; without it, it is printed.
|
|
1588
|
+
- Each frame is `{ viseme, column, durationMs, textOffset }`. `column` is the
|
|
1589
|
+
cell of the strip, `row` the expression's row in a character's grid, and
|
|
1590
|
+
`cell` the size of one cell. Timings are exact, unlike a GIF's.
|
|
1591
|
+
|
|
1592
|
+
Like audio, a talking portrait is not a manifest generator: the output is a
|
|
1593
|
+
strip and a record, and the lines are free to make at any time.
|
|
1594
|
+
|
|
1469
1595
|
### `estimate-skeleton`
|
|
1470
1596
|
|
|
1471
1597
|
```bash
|
|
@@ -1525,7 +1651,7 @@ Print the package version. `-v` is an alias.
|
|
|
1525
1651
|
| `--manifest <path>` | manifest commands | Manifest path; defaults to `pixelkiln.manifest.json`. |
|
|
1526
1652
|
| `--frames <n>` | `estimate-skeleton`/normal-map | Frames to scaffold after the estimated pose, 3–15; default 4. For normal-map, the equal frames in the `--from` strip, 1–32; default 1. |
|
|
1527
1653
|
| `--convention <c>` | normal-map | `opengl` (green up, the default) or `directx` (green down, for Unreal). |
|
|
1528
|
-
| `--mode <
|
|
1654
|
+
| `--mode <mode>` | normal-map/asset import | normal-map: `lite` (the default, 0.1 generation) or `pro` (0.5). asset import `--kind tileset`: `topdown` (the default) or `sidescroller`. |
|
|
1529
1655
|
| `--strength <n>` | normal-map | How far every pixel tilts away from the viewer, 0–2. |
|
|
1530
1656
|
| `--outline-rounding <n>` | normal-map | How much the outline rounds off, 0–3. |
|
|
1531
1657
|
| `--part-shapes <n>` | normal-map | How much the sprite's 3D parts add, 0–2. |
|
|
@@ -1595,8 +1721,21 @@ Print the package version. `-v` is an alias.
|
|
|
1595
1721
|
| `--part <name>` | vfx | Add a part; repeatable, applied in order. `pixelkiln vfx parts` lists them. |
|
|
1596
1722
|
| `--sprite <ref>` | vfx | Build the effect around a sprite: a local PNG/JPEG, a URL, or `character:<id>:<direction>`. |
|
|
1597
1723
|
| `--fps <n>` | vfx | Frame rate, 1–60. |
|
|
1598
|
-
| `--
|
|
1599
|
-
| `--
|
|
1724
|
+
| `--sprite-frames <n>` | vfx | With `--description`: `--sprite` is a horizontal PNG strip of `n` equal frames (2 to 32). |
|
|
1725
|
+
| `--sprite-fps <n>` | vfx | With `--description`: how fast an animated `--sprite` plays, 1 to 60. PixelLab's default is a GIF's own timing, else 12. |
|
|
1726
|
+
| `--kind <kind>` | asset/normal-map | asset: `object` (the default) or `character`; `asset import` also takes `tileset` and `tiles`. normal-map: what the picture is, `character`, `object`, `topdown`, `side`, `iso`, or `ui`. |
|
|
1727
|
+
| `--size <WxH>` | asset canvas/import | asset canvas: the new canvas, in multiples of 4. asset import `--kind tileset` or `tiles`: the tile size in pixels, e.g. `--size 32`. |
|
|
1728
|
+
| `--text <line>` | talk gif/plan | The line of dialogue to lip-sync, up to 500 characters. |
|
|
1729
|
+
| `--mood <mood>` | talk | `neutral` (the default), `happy`, `angry`, `sad` or `surprised`. For gif and plan it picks among a character's stored expressions. |
|
|
1730
|
+
| `--visemes <n>` | talk visemes/plan | How many mouth positions: 3, 5, 7 (the default) or 12. |
|
|
1731
|
+
| `--engine <engine>` | talk visemes | `v3` (the default) or `pixminimax`. |
|
|
1732
|
+
| `--frame-ms <n>` | talk gif/plan | Milliseconds per mouth position (default 90). |
|
|
1733
|
+
| `--hold-ms <n>` | talk gif/plan | Pause on the closed mouth at the end (default 600). |
|
|
1734
|
+
| `--target <target>` | asset save | Where the pixels go: `character:<id>:<direction>`, `object:<id>[:<direction>]`, either with `:<animation group id>`, `gallery:<id>`, `gallery:new`, or `tileset:<id>`. |
|
|
1735
|
+
| `--tile-type <type>` | asset import | With `--kind tiles`: `square_topdown`, `isometric`, `oblique`, `hex`, `hex_pointy` or `octagon`. |
|
|
1736
|
+
| `--lower <text>` | asset import | With `--kind tileset`: the lower terrain (a sidescroller's platform). |
|
|
1737
|
+
| `--upper <text>` | asset import | With `--kind tileset`: the upper terrain. Top-down only. |
|
|
1738
|
+
| `--transition <text>` | asset import | With `--kind tileset`: the strip between the terrains, if the sheet has one. |
|
|
1600
1739
|
| `--animation <id>` | asset mirror/export | An animation group id. |
|
|
1601
1740
|
| `--direction <dir>` | asset mirror/expand/export | The direction to flip, the way an object faces before expansion, or a GIF's direction. |
|
|
1602
1741
|
| `--keep` | asset expand | Keep the reviewed directions; the object becomes 8-direction. |
|
package/docs/ENDPOINTS.md
CHANGED
|
@@ -95,6 +95,12 @@ not probed.
|
|
|
95
95
|
| `POST /image-to-pixelart-pro-flash` | `pixelkiln pixelate` | Measured live | A 256×256 and a 384×384 render each billed 6; the image is `last_response.images[0]`; the result is opaque on a near-white field ([Image to Pixel Art Pro Flash, measured](#image-to-pixel-art-pro-flash-measured)). | Whether 6 is flat above 384px or with a larger source. | Medium |
|
|
96
96
|
| `POST /image-to-pixelart-pro` | `pixelkiln pixelate --pro` | Measured live | One 256×256 render billed 20; 42 s; the image is `last_response.image` (not a list) with a `quantized_image` beside it ([Asset upkeep and the Pro converter](#asset-upkeep-and-the-pro-converter-measured)). | `target_palette`, `description`, and other source sizes are mock only. | High |
|
|
97
97
|
| `POST /objects/import` | `pixelkiln asset import` | Measured live | Free; a 32×32 and a 64×64 PNG each became a completed 1-direction object. | Refusal of a JPEG or an oversize PNG is client-side only. | Low |
|
|
98
|
+
| `POST /tilesets/import` | `pixelkiln asset import --kind tileset` | Measured live | Free; a 16px 8-wide sheet imported with its tile size came back as 16 tiles pixel-identical to the source. Without the size it was cut into 32px tiles ([Free imports and saving back](#free-imports-and-saving-back-measured)). | A 4-wide sheet, a tall (transition) sheet, and a sidescroller import. | Low |
|
|
99
|
+
| `POST /tiles-pro/import` | `pixelkiln asset import --kind tiles` | Measured live | Free; three and four 16px square tiles each became one tile group; wrong-size frames refused with a 422 naming the size. | Every tile type but `square_topdown` through the command; `tile_view`, angle and depth are not sent. | Low |
|
|
100
|
+
| `POST /save-to-asset` | `pixelkiln asset save` | Measured live | Free; a gallery image was added, replaced, saved unchanged and restored from `previous_frames`. A wrong-size image and an unknown target were refused with 422s. | Character, object, animation and tileset targets with an accepted save; the 409 and the 500 that carries `previous_frames` (mock only). | Medium |
|
|
101
|
+
| `POST /vocal-animation` (+ `GET /vocal-animation/{job}`) | `pixelkiln talk visemes` | Measured live | Three 64×64 portraits at 7 positions each billed 3: two with `pixminimax`, one with `v3` ([Talking portraits](#talking-portraits-measured)). The bill is on `GET /background-jobs/{job}`, not on the vocal-animation reply. | The character form (`character_id`, `grid_url`), counts other than 7, portraits above 64px, and moods other than neutral and happy. | Medium |
|
|
102
|
+
| `POST /talking-gif` | `pixelkiln talk gif` | Measured live | Free; a 43-character line returned a 64×64 GIF of 35 frames, 3.75 s. An incomplete set and a 501-character line were refused with 422s. | The character form. | Low |
|
|
103
|
+
| `POST /lip-sync` | `pixelkiln talk plan` | Measured live | Free; a plan against the 7-position and 3-position presets, with `frame_ms` and `hold_ms` honoured. | The character form (`grid_url`, `row`). | Low |
|
|
98
104
|
| `POST /objects/{id}/expand-rotations` (+ `select-frames`, `dismiss-review`) | `pixelkiln asset expand`, `asset review` | Measured live | Two expansions each quoted and billed 10, at the review stage; one kept, one discarded. | The 15 and 25 tiers; a `description`-less call. | High |
|
|
99
105
|
| `POST /{objects,characters}/{id}/canvas` | `pixelkiln asset canvas` | Measured live | Free on an object; a cropping size refused with a 400 that names the art's bounds. | The character route is mock only. | Low |
|
|
100
106
|
| `POST /{objects,characters}/{id}/animations/{group}/mirror` | `pixelkiln asset mirror` | Mock only | Wrapped from the OpenAPI schema; needs an animated asset to run. | Everything. Free, so the exposure is a wrong request shape. | Low |
|
|
@@ -116,7 +122,7 @@ not probed.
|
|
|
116
122
|
| `PATCH /objects/{id}/tags`, `PATCH /characters/{id}/tags` | tagging in `fetch`, `adopt`, `salvage` | Unknown | Only the negative is documented: pixflux, pixen and bitforge results "cannot be tagged" ([Object lifecycle](#object-lifecycle)). | A recorded live call. | Low |
|
|
117
123
|
| `DELETE /objects/{id}`, `POST /objects/{id}/dismiss-review`, `DELETE /characters/{id}` | `salvage`, account cleanup | Unknown | Not discussed in the docs. | A recorded live call. | Low |
|
|
118
124
|
| `DELETE /characters/{id}/animations` | replacing a loop's direction | Unknown | "Deleting one direction of a shared group has not been run live" ([Skeleton-driven motion, measured](#skeleton-driven-motion-measured)). | Whether the rest of the group keeps its motion. | Low |
|
|
119
|
-
| `POST /create-tiles-pro` (+ `GET /tiles-pro/{id}`) | `tiles` | Measured live | One numbered description, 4 tiles at 16px, with a Game Boy `target_palette`, billed 10, every candidate in the palette (November 2026). `GET` has no `status`: 423 while drawing ([Tilesets: measured once per kind](#tilesets-measured-once-per-kind)). | `tile_feature` sets (`roads`, `tileset`, `building`) and `tile_rules`; large tile-size × variation canvases that reach the top tier. | High |
|
|
125
|
+
| `POST /create-tiles-pro` (+ `GET /tiles-pro/{id}`) | `tiles` | Measured live | One numbered description, 4 tiles at 16px, with a Game Boy `target_palette`, billed 10, every candidate in the palette (November 2026). `GET` has no `status`: 423 while drawing ([Tilesets: measured once per kind](#tilesets-measured-once-per-kind)). November 2026: a 32px `tileset` feature with `elevation` 4, `step_slope` 1 and `boundary_amplitude` 0.2 billed 10 (planned 25) and returned 16 tiles; `elevation` 6 was refused at 16px and 32px ([Tiles shape options](#tiles-shape-options-measured)). | `tile_feature` sets (`roads`, `tileset`, `building`) and `tile_rules`; large tile-size × variation canvases that reach the top tier. `roof_profile` is mock only. | High |
|
|
120
126
|
| `POST /create-tileset` (+ `GET /tilesets/{id}`) | `terrain`, top-down | Measured live | Pro 32px billed 15 (three sets, one connected through `lower_base_tile_id`, one with edge slope); Pro 64px billed 25 and returned 25 tiles at transition 0.5; standard sets billed 3 each (planned 4), one connected through `upper_base_tile_id` ([Tilesets: measured once per kind](#tilesets-measured-once-per-kind), October 2026). `target_palette` on Pro, mock only. In November 2026 five standard 16px sets billed 1 each, with `shape_seed`, side walls, `enhance: false`, walkable flags, and reference images ([Tileset options, November 2026](#tileset-options-november-2026-measured)). | Pro below 32px; standard above 32px; a standard set cannot connect to a Pro set. | High |
|
|
121
127
|
| `POST /create-tileset-sidescroller` | `terrain`, `terrainOrientation: "sidescroller"` | Measured live | Since November 2026: a standard 16px set billed 1 and a pro 16px set billed 15; 16 tiles each; a standard request with `lower_base_tile_id` is refused with a 422. The older model billed 3 ([Tileset options, November 2026](#tileset-options-november-2026-measured)). | `lower_reference_image` (pro) and `transition_reference_image` (standard) are mock only; 32px. | High |
|
|
122
128
|
| `POST /create-isometric-tile` (+ `GET /isometric-tiles/{id}`) | `isometricTile` | Measured live | One 32px `block` billed 1 generation, not the schema's `usd: 0.02` example ([Standalone isometric tile](#standalone-isometric-tile-schema-documented-cost-measured-once)). | Other sizes and shapes; flat pricing across 16 to 64px is an assumption. `init_image` is sent but mock only. | Low |
|
|
@@ -148,7 +154,8 @@ not probed.
|
|
|
148
154
|
| `POST /interpolation-v2` | revision `interpolate` | Measured live | A 64×64 start sprite with a `lastFrame` keyframe and the default frame count billed 10 and returned 14 frames at 64×64 (November 2026, Tier 3; [REVISIONS.md](./REVISIONS.md#interpolate-between-two-keyframes)). The planner said 25, a 2.5× over-read, and now prices the canvas on the 10/15/25 ladder. `target_palette` sent, mock only. | Canvases above 65536px² (15 and 25 tiers, unbilled) and other frame counts. | High |
|
|
149
155
|
| `POST /edit-animation-v2` | revision `edit-animation` | Measured live | One text edit of a 9-frame 64×64 set billed 10 and the edited set was accepted into review (November 2026, Tier 3). The planner said 25 and now prices the packed grid (nine 64×64 frames: 192×192) on the same ladder. `target_palette` sent, mock only. | Larger sets and canvases, where the packed grid crosses 65536px² (unbilled, assumed to follow the ladder). | High |
|
|
150
156
|
| `POST /vfx`, lite artist, no sprite | `pixelkiln vfx --description`, `vfx` block `description` | Measured live | One effect billed 1 (balance 5104 to 5103); 163×26, 8 frames, sheet and atlas cut into 8 correct frames ([VFX artist](#vfx-artist-post-vfx-measured-once), October 2026). | The `files` shape (list or map) is undocumented; PixelKiln reads three. | Low |
|
|
151
|
-
| `POST /vfx`,
|
|
157
|
+
| `POST /vfx`, lite artist, animated sprite | `pixelkiln vfx --description --sprite-frames`, `vfx` block `spriteFrames` | Measured live | Four effects around a 108px walk cycle (4-, 8- and 12-frame, strip and GIF) were each quoted 2 and billed 2, 2, 2 and 4, the last at the 2× ceiling ([Animated sprites](#vfx-animated-sprites-measured), November 2026). | Pro bills; a still sprite's bill. | Low |
|
|
158
|
+
| `POST /vfx`, still sprite, pro artist, `effect_id` change or `game_pack` | same | Mock only | Quoted from the OpenAPI table: pro 6 (8 with a sprite), 14 and 28 for larger sprites; plans count twice the quote ([VFX artist](#vfx-artist-post-vfx-measured-once)). | Every variant above. | High |
|
|
152
159
|
| MCP `tools/call` `vfx_workbench` at `api.pixellab.ai/mcp` | `pixelkiln vfx`, `vfx` block `preset` or `recipe` | Measured live | Free on a subscription; same recipe re-rendered byte-identical; exports a sheet, GIF, atlas and optional game pack ([VFX workbench (MCP only), measured](#vfx-workbench-mcp-only-measured), October 2026). | "Busy, retry" is the only recorded error; sprites by asset are not wired. | Low |
|
|
153
160
|
| `POST /create-image-pixen`, `/create-image-bitforge` | none | Not wrapped | Each 1 generation; bitforge returned blobs for a simple prompt ([Single-image generators, measured](#single-image-generators-measured)). | n/a | n/a |
|
|
154
161
|
| `POST /rotate`, `/resize`, `/image-to-pixelart` | none | Not wrapped | Each 1 generation; all three break a locked palette ([Post-processing utilities, measured](#post-processing-utilities-measured)). | n/a | n/a |
|
|
@@ -170,7 +177,7 @@ uncertainty per generation.
|
|
|
170
177
|
per direction, so an 8-direction loop is eight bills no one has recorded.
|
|
171
178
|
3. **`/create-character-state`** (Run live, not measured). One rough bill
|
|
172
179
|
(about 22) taken beside other jobs and before the cut.
|
|
173
|
-
4. **`/vfx` with a sprite, the pro artist, a change or a game pack** (Mock
|
|
180
|
+
4. **`/vfx` with a still sprite, the pro artist, a change or a game pack** (Mock
|
|
174
181
|
only). Up to 28 generations a call, and plans reserve twice the quote.
|
|
175
182
|
5. **`/edit-image-pro-flash`, `/inpaint-image-pro-flash`** (Mock only). 5 to 6
|
|
176
183
|
per call on provisional quotes, no completed response seen.
|
|
@@ -568,6 +575,92 @@ answers while an asset is generating. PixelLab also added
|
|
|
568
575
|
|
|
569
576
|
---
|
|
570
577
|
|
|
578
|
+
### Free imports and saving back, measured
|
|
579
|
+
|
|
580
|
+
Wrapped as `pixelkiln asset import --kind tileset`, `--kind tiles` and
|
|
581
|
+
`pixelkiln asset save`. Measured on 14 November 2026 (Tier 3). Every call
|
|
582
|
+
was free: the balance did not move.
|
|
583
|
+
|
|
584
|
+
- **`POST /tilesets/import` reads an ambiguous sheet the wrong way unless
|
|
585
|
+
told.** A stored 16px tileset was rebuilt as its 8-wide native sheet
|
|
586
|
+
(128×128) from the tiles' `original_position` and sent back. With no
|
|
587
|
+
`tile_size` it was accepted (201) and cut into sixteen **32px** tiles, none
|
|
588
|
+
matching the source. With `tile_size` `{ "width": 16, "height": 16 }` it
|
|
589
|
+
came back as 16 tiles, each pixel-identical to the source tile with the
|
|
590
|
+
same corners. PixelKiln therefore refuses a 128, 192 or 256px-wide sheet
|
|
591
|
+
until `--size` says which reading is meant.
|
|
592
|
+
- `tile_size` is an object. A bare `16` is a 422.
|
|
593
|
+
- A 50×50 sheet was refused with a 422 listing the sizes: a compact sheet of
|
|
594
|
+
64, 96, 128, 192 or 256px square for 16, 24, 32, 48 or 64px tiles, "plus
|
|
595
|
+
double-height ×2 for transitions", or a native 8-wide sheet. The request
|
|
596
|
+
schema's `tile_size` has no 48, so PixelKiln sends none for a 48px sheet.
|
|
597
|
+
- **`POST /tiles-pro/import`** took three 16×16 PNGs as `square_topdown`
|
|
598
|
+
tiles of size 16 and returned a `tile_id`; `GET /tiles-pro/{id}` then
|
|
599
|
+
listed three stored tiles. The same frames at `tile_size` 32 were refused:
|
|
600
|
+
"Each frame must be 32×32px; got 16×16px". As `isometric` tiles of size 16
|
|
601
|
+
they were accepted, since an isometric tile may be half to twice its width
|
|
602
|
+
tall.
|
|
603
|
+
- **`POST /save-to-asset`** with `gallery:new` returned `action: "added"`
|
|
604
|
+
and the new `gallery:<id>`. Saving a different 16×16 image to that id
|
|
605
|
+
returned `saved`, `changed_pixels: 64` and one `previous_frames` PNG;
|
|
606
|
+
saving the same image again returned `unchanged` with no previous frames;
|
|
607
|
+
saving the previous frame back restored it (`saved`, 64 pixels).
|
|
608
|
+
- A 20×16 image sent to the 16×16 gallery image was refused with a 422 that
|
|
609
|
+
names both sizes. An unknown object id was a 422, not the documented 404.
|
|
610
|
+
- **A tileset takes its 4-wide sheet.** Saving the 128×128 native sheet to
|
|
611
|
+
the 16px tileset it was imported from was refused: "image is 128x128;
|
|
612
|
+
tileset:… is 64x64". `GET /tilesets/{id}` returns the tiles one by one and
|
|
613
|
+
a null `sheet`, so the 4-wide sheet has to come from PixelLab's download
|
|
614
|
+
or be assembled; no accepted tileset save was made.
|
|
615
|
+
|
|
616
|
+
The two test tilesets and three test tile groups were deleted. The test
|
|
617
|
+
gallery image was left in the account; the REST API has no route to remove
|
|
618
|
+
a gallery image.
|
|
619
|
+
|
|
620
|
+
### Talking portraits, measured
|
|
621
|
+
|
|
622
|
+
Wrapped as `pixelkiln talk` ([CLI reference](./CLI.md#talk)). Measured on 14
|
|
623
|
+
November 2026 (Tier 3).
|
|
624
|
+
|
|
625
|
+
| Call | Request | Billed | Result |
|
|
626
|
+
|---|---|---|---|
|
|
627
|
+
| `/vocal-animation` | 64×64 robot portrait, 7 positions, `pixminimax`, neutral | 3 | 7 frames of 64×64, in about 40 s |
|
|
628
|
+
| `/vocal-animation` | the same portrait, `pixminimax`, happy, via `talk visemes` | 3 | 7 frames that barely differ |
|
|
629
|
+
| `/vocal-animation` | 64×64 face portrait, `v3`, neutral, via `talk visemes` | 3 | 7 distinct mouth shapes |
|
|
630
|
+
| `/talking-gif` | a 43-character line, each set above | 0 | 64×64, 35 frames, 3.75 s |
|
|
631
|
+
| `/lip-sync` | "Fire once.", `viseme_count` 7 | 0 | 9 frames, 1,410 ms |
|
|
632
|
+
|
|
633
|
+
- All three paid calls billed PixelLab's published 3 generations for 7
|
|
634
|
+
positions at 64px. The `v3` prices at 128px (6) and 256px (24), and every
|
|
635
|
+
count but 7, are unmeasured; PixelKiln scales other counts by count/7 as
|
|
636
|
+
an estimate.
|
|
637
|
+
- **The bill is not on the vocal-animation reply.** `GET
|
|
638
|
+
/vocal-animation/{job}` returned `usage: null` when completed. `GET
|
|
639
|
+
/background-jobs/{job}` for the same id carried `usage` with 3
|
|
640
|
+
generations, so `talk visemes` reads it there.
|
|
641
|
+
- The stateless (`portrait`) job returned `visemes` as a map whose key order
|
|
642
|
+
is not the column order. `completed_visemes` listed them in the order
|
|
643
|
+
`/lip-sync` reports as `viseme_order` (`rest`, `closed`, `small_open`,
|
|
644
|
+
`medium_open`, `wide_open`, `round`, `teeth`), and PixelKiln writes the
|
|
645
|
+
strip in that order.
|
|
646
|
+
- **A portrait needs a mouth.** The robot has none. One run drew small
|
|
647
|
+
mouths onto it and the next returned seven frames with no visible
|
|
648
|
+
difference. The face portrait, drawn with its mouth closed, returned seven
|
|
649
|
+
clearly different shapes. With `v3` the eyes and brows changed between
|
|
650
|
+
positions too, and the portrait's background was removed.
|
|
651
|
+
- `/talking-gif` refuses a partial set with a 422 that lists each preset's
|
|
652
|
+
ids: 3 is `open`, `rest`, `round`; 5 adds `smile` and `teeth`; 12 is
|
|
653
|
+
`closed`, `hiss`, `jaw_drop`, `medium_open`, `pucker`, `rest`,
|
|
654
|
+
`round_small`, `small_open`, `smile`, `teeth`, `tongue`, `wide_open`.
|
|
655
|
+
- `/lip-sync` with `frame_ms` 50 and `hold_ms` 0 returned 9 frames in 450
|
|
656
|
+
ms: exactly 50 ms each. With neither `character_id` nor `viseme_count` it
|
|
657
|
+
is a 422.
|
|
658
|
+
|
|
659
|
+
Not measured: anything through a character (`character_id`), since no
|
|
660
|
+
character with a stored portrait was at hand. That path, including cutting
|
|
661
|
+
one expression's row out of the stored grid, rests on the OpenAPI schema and
|
|
662
|
+
mocks. `DELETE /characters/{id}/vocal-animation/{mood}` is not wrapped.
|
|
663
|
+
|
|
571
664
|
## UI split, states and 9-slice, measured
|
|
572
665
|
|
|
573
666
|
Wrapped as the standalone `pixelkiln ui` command ([CLI reference](./CLI.md#ui)).
|
|
@@ -739,7 +832,8 @@ pack remain unmeasured.
|
|
|
739
832
|
**Request** (`VfxRequest`): `description` (required, up to 8000 characters;
|
|
740
833
|
with `effect_id`, what to change), `sprite` (optional base64 PNG or GIF, up
|
|
741
834
|
to 512×512 per frame; an animation is a GIF or a horizontal strip of
|
|
742
|
-
`sprite_frames`, 1–32
|
|
835
|
+
`sprite_frames`, 1–32; PixelKiln sends both, see
|
|
836
|
+
[Animated sprites](#vfx-animated-sprites-measured)), `sprite_fps` (1–60), `artist` (`lite`, the default,
|
|
743
837
|
or `pro`), `effect_id` (change a saved effect in place; it keeps its own
|
|
744
838
|
sprite), `conversation` (from a previous result, with its `effect_id`:
|
|
745
839
|
priced as a change), `name` (up to 80 characters), and `game_pack`.
|
|
@@ -771,14 +865,63 @@ quote), never more than twice the quote.
|
|
|
771
865
|
| sprite up to 256 px | 3 (change 2) | 14 (change 5) |
|
|
772
866
|
| sprite up to 512 px | 5 (change 2) | 28 (change 8) |
|
|
773
867
|
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
a job can bill, and the lock records
|
|
777
|
-
from the finished job's `usage`.
|
|
868
|
+
PixelLab says an animated sprite adds "a little per frame"; the quotes it
|
|
869
|
+
gave are [below](#vfx-animated-sprites-measured). Plans and `--budget` count
|
|
870
|
+
twice the quote, the most a job can bill, and the lock records
|
|
871
|
+
`quotedGenerations` beside the bill read from the finished job's `usage`.
|
|
778
872
|
|
|
779
873
|
Wired up as `pixelkiln vfx --description` ([CLI](./CLI.md#described-effects-paid))
|
|
780
874
|
and as a `vfx` block's `description` ([GENERATORS.md](./GENERATORS.md#described-effects-the-paid-vfx-artist)).
|
|
781
875
|
|
|
876
|
+
### VFX animated sprites, measured
|
|
877
|
+
|
|
878
|
+
November 2026, Tier 3 account. The sprite was a 108×108 robot walk cycle,
|
|
879
|
+
sent as a PNG strip with `sprite_frames` or as a GIF.
|
|
880
|
+
|
|
881
|
+
**Quotes.** `quoted_generations` was read from the 202 for each request
|
|
882
|
+
below, and every job except the four billed ones was cancelled at once with
|
|
883
|
+
`DELETE /background-jobs/{id}`. A cancelled job reported a bill of 0.
|
|
884
|
+
|
|
885
|
+
| Frame size | Frames | lite | pro |
|
|
886
|
+
|---|---|---|---|
|
|
887
|
+
| 108px (128 tier) | 1 | 1 | not asked |
|
|
888
|
+
| 108px | 2, 3, 4, 8, 12, 16, 24, 32 | 2 | 9 (asked at 4, 12 and 32) |
|
|
889
|
+
| 200px (256 tier) | 1 | 3 | not asked |
|
|
890
|
+
| 200px | 2, 4, 32 | 4 | 15 at 2 and 8, 16 at 32 |
|
|
891
|
+
| 400px (512 tier) | 2, 32 | 6 | 29 at 2 and 4, 30 at 8, 31 at 16, 33 at 32 |
|
|
892
|
+
|
|
893
|
+
So lite adds a flat 1 for an animated sprite. Pro adds 1 at the smallest
|
|
894
|
+
tier and more with size and frame count, up to 2 and 5 at 32 frames, the
|
|
895
|
+
most a sprite may hold. PixelKiln prices pro at those 32-frame figures, so
|
|
896
|
+
a shorter pro animation is quoted at or under the plan. The frames in each
|
|
897
|
+
tier were padded copies of the same walk, so the tier boundaries themselves
|
|
898
|
+
(128 and 256) were not probed.
|
|
899
|
+
|
|
900
|
+
**A strip has a width limit the spec does not state.** A PNG strip wider
|
|
901
|
+
than 1,024 pixels is refused with a free 422 ("exceeds the pixel tools
|
|
902
|
+
budget (max side 1024px…)"), even at 12 frames of 108px. The same frames as
|
|
903
|
+
a GIF are accepted up to 32. PixelKiln refuses a wider strip before sending
|
|
904
|
+
and suggests a GIF.
|
|
905
|
+
|
|
906
|
+
**Bills.** Four lite effects were delivered, each quoted 2:
|
|
907
|
+
|
|
908
|
+
| Sprite | Result | Billed |
|
|
909
|
+
|---|---|---|
|
|
910
|
+
| 4-frame strip | 89×97, 12 frames at 12 fps | 4 |
|
|
911
|
+
| 8-frame strip | 130×130, 8 frames at 12 fps | 2 |
|
|
912
|
+
| 12-frame GIF, via `pixelkiln vfx` | 108×108, 12 frames at 12 fps | 2 |
|
|
913
|
+
| 8-frame strip, `sprite_fps` 10, via `pixelkiln vfx` | 160×120, 8 frames at 10 fps, plus a normal map | 2 |
|
|
914
|
+
|
|
915
|
+
The 4 is the first bill above its quote recorded here, and it sits exactly
|
|
916
|
+
at the twice-the-quote ceiling that plans reserve. In three of four the
|
|
917
|
+
effect kept the sprite's frame count, and `sprite_fps` 10 came back as 10
|
|
918
|
+
fps. The 4-frame walk came back as 12 frames. Both effects made through the
|
|
919
|
+
command were looked at: the trail and the aura follow the robot's steps.
|
|
920
|
+
|
|
921
|
+
Not measured: any pro bill, an animated sprite with an `effect_id` change,
|
|
922
|
+
and the manifest path against the live API (it shares the request code with
|
|
923
|
+
the command and is covered by mocks).
|
|
924
|
+
|
|
782
925
|
---
|
|
783
926
|
|
|
784
927
|
## Normal map (`POST /normal-map`), measured once
|
|
@@ -906,6 +1049,30 @@ October 2026, through `pixelkiln gen` on the website's showcase project
|
|
|
906
1049
|
ring where it meets the first set's sand is visible up close. "plain smooth
|
|
907
1050
|
sand texture" still came back with pebbles in the first set.
|
|
908
1051
|
|
|
1052
|
+
### Tiles shape options, measured
|
|
1053
|
+
|
|
1054
|
+
`/create-tiles-pro` gained `elevation`, `step_slope`, `boundary_amplitude` and
|
|
1055
|
+
`boundary_seed` for a `tile_feature: "tileset"` set, and `roof_profile` for a
|
|
1056
|
+
materials-layout building kit. Wrapped as the `tiles` style fields
|
|
1057
|
+
`tileElevation`, `tileStepSlope`, `tileBoundaryAmplitude`, `tileBoundarySeed`
|
|
1058
|
+
and `buildingRoofProfile`. Measured on 14 November 2026 (Tier 3),
|
|
1059
|
+
`square_topdown` tiles seen at 90°.
|
|
1060
|
+
|
|
1061
|
+
| Request | Planned | Billed | Result |
|
|
1062
|
+
|---|---|---|---|
|
|
1063
|
+
| 16px, `elevation` 6 | 25 | 0 | **422**: "elevation must be 0-2 px for a 16px tile (got 6) at a 90 degree view" |
|
|
1064
|
+
| 32px, `elevation` 6 | 25 | 0 | **422**: "elevation must be 0-4 px for a 32px tile" |
|
|
1065
|
+
| 32px, `elevation` 4, `step_slope` 1, `boundary_amplitude` 0.2, `boundary_seed` 3 | 25 | 10 | 16 tiles, a meandering shore with a dark bank on the raised edge |
|
|
1066
|
+
|
|
1067
|
+
- **The elevation cap follows the tile, not the schema.** The schema allows 0
|
|
1068
|
+
to 12; the API allows what fits the tile's top face and wall at its size and
|
|
1069
|
+
view: 2 px at 16px and 4 px at 32px, both at 90°. A lower view angle should
|
|
1070
|
+
allow more; that was not tried. The refusal is free and names the cap, and
|
|
1071
|
+
PixelKiln passes it through.
|
|
1072
|
+
- **The plan over-read this set.** A 32px `tileset` feature billed 10 against a
|
|
1073
|
+
planned 25. One data point, so the estimate is unchanged.
|
|
1074
|
+
- `roof_profile` was not run.
|
|
1075
|
+
|
|
909
1076
|
### Tileset options, November 2026, measured
|
|
910
1077
|
|
|
911
1078
|
PixelLab replaced the sidescroller model and added options to both tileset
|
package/docs/GENERATORS.md
CHANGED
|
@@ -662,6 +662,35 @@ each time.
|
|
|
662
662
|
character's own output file instead. JPEG is refused too.
|
|
663
663
|
- `name` is capped at 80 characters, and the default is cut to fit.
|
|
664
664
|
|
|
665
|
+
#### Animated sprites
|
|
666
|
+
|
|
667
|
+
Give the artist a walk cycle and the effect follows it frame by frame:
|
|
668
|
+
|
|
669
|
+
```jsonc
|
|
670
|
+
"walk.trail": {
|
|
671
|
+
"vfx": {
|
|
672
|
+
"description": "a fiery orange trail that streams behind the robot as it walks",
|
|
673
|
+
"sprite": "art/chars/robot-walk.png",
|
|
674
|
+
"spriteFrames": 8,
|
|
675
|
+
"spriteFps": 10
|
|
676
|
+
}
|
|
677
|
+
}
|
|
678
|
+
```
|
|
679
|
+
|
|
680
|
+
- `spriteFrames` (2 to 32) says the sprite PNG is a horizontal strip of that
|
|
681
|
+
many equal frames. The strip must divide evenly, each frame may be up to
|
|
682
|
+
512×512, and the whole strip at most 1,024 pixels wide; a strip that
|
|
683
|
+
breaks a rule is refused when the manifest is resolved, once the file
|
|
684
|
+
exists. `spriteFrames: 1` is a still and changes nothing.
|
|
685
|
+
- `spriteFps` (1 to 60) is how fast the strip plays. PixelLab's default is
|
|
686
|
+
12. It needs `spriteFrames` of 2 or more.
|
|
687
|
+
- Both need a `description` and a `sprite`. A manifest takes a PNG strip
|
|
688
|
+
only; to send a GIF, use `pixelkiln vfx --description`.
|
|
689
|
+
- The plan sizes the sprite by one frame, not the strip, and adds the
|
|
690
|
+
animated extra: 1 for lite, and 1, 2 or 5 for pro by size tier.
|
|
691
|
+
- Both fields are part of the asset's identity when set. An effect without
|
|
692
|
+
them keeps the identity it had.
|
|
693
|
+
|
|
665
694
|
**Cost.** PixelLab quotes each job when it is submitted and bills on
|
|
666
695
|
delivery: the quote, or more when the effect ran long, never more than twice
|
|
667
696
|
the quote. The quote comes from this table (generations):
|
|
@@ -676,8 +705,9 @@ the quote. The quote comes from this table (generations):
|
|
|
676
705
|
a budget is never overrun. A sprite that is another asset's output not drawn
|
|
677
706
|
yet is priced at the 512 px tier until it exists. The lock records PixelLab's
|
|
678
707
|
own quote (`quotedGenerations`) and the bill read from the finished job.
|
|
679
|
-
|
|
680
|
-
|
|
708
|
+
The table is PixelLab's published one. Measured so far: a lite effect with
|
|
709
|
+
no sprite billed 1, and lite effects around an animated sprite were quoted 2
|
|
710
|
+
and billed 2, 2, 2 and 4 ([ENDPOINTS.md](./ENDPOINTS.md#vfx-animated-sprites-measured)).
|
|
681
711
|
|
|
682
712
|
**Outputs and identity.** The artist's spritesheet is cut into the same
|
|
683
713
|
ordered frame set as the workbench's, with its fps and loop flag. The lock
|
package/docs/MANIFEST.md
CHANGED
|
@@ -75,7 +75,7 @@ not merely a label edit.
|
|
|
75
75
|
| `terrainReferences` | object | `terrain` styles: a PNG per terrain to take that terrain's look from, `{ "lower": "refs/water.png", "upper": "refs/sand.png", "transition": "refs/foam.png" }`, paths relative to the manifest. See [Terrain reference images](./TILES.md#terrain-reference-images). |
|
|
76
76
|
| `derive` | object | Made from existing pixels by one local transform, at no cost, with no provider. See [Derived and external assets](#derived-and-external-assets). |
|
|
77
77
|
| `external` | object | Built by a script or tool outside pixelkiln; pixelkiln records and tracks the file but never builds it. See [Derived and external assets](#derived-and-external-assets). |
|
|
78
|
-
| `vfx` | object | `vfx` styles, PixelLab only: the effect to render. `{ "preset": "explosion", "parts": [{ "name": "scorch_mark" }], "sprite": "art/chars/hero.png", "fps": 12 }`; start from one `preset` or one `recipe` (a recipe JSON or a `.vfx.json` record), with optional `parts`, `sprite`, `fps`, and `name`. Or give a `description` (with optional `artist`: `lite` or `pro`, a local PNG `sprite`, and `name`) for PixelLab's paid VFX artist instead; it excludes `preset`, `recipe`, `parts`, and `fps`. Replaces `prompt` as the required field. See [`vfx`](./GENERATORS.md#vfx) and [Described effects](./GENERATORS.md#described-effects-the-paid-vfx-artist). |
|
|
78
|
+
| `vfx` | object | `vfx` styles, PixelLab only: the effect to render. `{ "preset": "explosion", "parts": [{ "name": "scorch_mark" }], "sprite": "art/chars/hero.png", "fps": 12 }`; start from one `preset` or one `recipe` (a recipe JSON or a `.vfx.json` record), with optional `parts`, `sprite`, `fps`, and `name`. Or give a `description` (with optional `artist`: `lite` or `pro`, a local PNG `sprite`, `spriteFrames` and `spriteFps` when that PNG is an animation strip, and `name`) for PixelLab's paid VFX artist instead; it excludes `preset`, `recipe`, `parts`, and `fps`. Replaces `prompt` as the required field. See [`vfx`](./GENERATORS.md#vfx) and [Described effects](./GENERATORS.md#described-effects-the-paid-vfx-artist). |
|
|
79
79
|
| `scene` | object | `map` styles, PixelLab only: draw this object into a scene image, in its style. `{ "image": "scene.png", "placement": { "oval": 0.3 } }`; `placement` is `oval` or `rectangle` (a fraction, 0.05–0.95) or `mask` (a PNG the size of the scene). See [Drawing into a scene](./GENERATORS.md#drawing-into-a-scene). |
|
|
80
80
|
| `connect` | object | `terrain` styles, PixelLab only: share a terrain with another set in the same style, keyed by this set's own side. `{ "lower": { "of": "coast", "terrain": "upper" } }` makes this set's lower terrain `coast`'s upper. The other set generates first; regenerating it makes this one stale. A sidescroller set connects only `lower`. Cycles are rejected. |
|
|
81
81
|
| `batch` | object | `1dir` styles: rides along on another `1dir` asset's `item_descriptions` submission instead of generating on its own — `{ "of": "<leader asset id>", "index": <1-based slot> }`. See [`1dir`](./GENERATORS.md#1dir). |
|
|
@@ -147,6 +147,11 @@ One asset using the fields most projects reach for:
|
|
|
147
147
|
| `tileType` | enum | `hex`, `hex_pointy`, `isometric`, `oblique`, `octagon`, or `square_topdown`. |
|
|
148
148
|
| `tileView` | enum | `top-down`, `high top-down`, `low top-down`, or `side`. |
|
|
149
149
|
| `tileFeature` | enum | Connectable `roads`, `tileset`, or `building` structural set. |
|
|
150
|
+
| `tileElevation` | `0` | `tiles`, `tileFeature: "tileset"` on square_topdown, isometric or oblique tiles. Plateau height in pixels: raises the first terrain with a cliff face down to the second. Up to 12, but the API caps it by tile size and view: 2 px for a 16px tile seen straight down, 4 px at 32px. |
|
|
151
|
+
| `tileStepSlope` | `0` | `tiles`, with `tileElevation` above 0. How far the drop spreads: 0 a cliff, 2 a gentle slope. |
|
|
152
|
+
| `tileBoundaryAmplitude` | `0` | `tiles`, `tileFeature: "tileset"`. How far the border between the terrains meanders, 0–0.3. |
|
|
153
|
+
| `tileBoundarySeed` | `0` | `tiles`, with `tileBoundaryAmplitude`. Which meander, an integer. |
|
|
154
|
+
| `buildingRoofProfile` | `gable` | `tiles`, `tileFeature: "building"` with `buildingLayout: "materials"`. Roof edge shape: `gable` (straight) or `round`. |
|
|
150
155
|
| `outlineMode` | enum | `outline` or `segmentation`; segmentation avoids quilted ground seams. |
|
|
151
156
|
| `terrainOrientation` | `top-down` | `terrain` only. `sidescroller` makes a platform set: prompt `1). <platform body> 2). <top layer>`, 16 or 32px, no mode, view, or shape controls. |
|
|
152
157
|
| `terrainMode` | `standard` | `terrain` only. `standard` or `pro`. |
|
package/package.json
CHANGED
|
@@ -186,6 +186,32 @@
|
|
|
186
186
|
"minimum": 5,
|
|
187
187
|
"maximum": 90
|
|
188
188
|
},
|
|
189
|
+
"buildingRoofProfile": {
|
|
190
|
+
"type": "string",
|
|
191
|
+
"enum": [
|
|
192
|
+
"gable",
|
|
193
|
+
"round"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
"tileElevation": {
|
|
197
|
+
"type": "integer",
|
|
198
|
+
"minimum": 0,
|
|
199
|
+
"maximum": 12
|
|
200
|
+
},
|
|
201
|
+
"tileStepSlope": {
|
|
202
|
+
"type": "number",
|
|
203
|
+
"minimum": 0,
|
|
204
|
+
"maximum": 2
|
|
205
|
+
},
|
|
206
|
+
"tileBoundaryAmplitude": {
|
|
207
|
+
"type": "number",
|
|
208
|
+
"minimum": 0,
|
|
209
|
+
"maximum": 0.3
|
|
210
|
+
},
|
|
211
|
+
"tileBoundarySeed": {
|
|
212
|
+
"type": "integer",
|
|
213
|
+
"minimum": 0
|
|
214
|
+
},
|
|
189
215
|
"outlineMode": {
|
|
190
216
|
"type": "string",
|
|
191
217
|
"enum": [
|
|
@@ -713,6 +739,32 @@
|
|
|
713
739
|
"minimum": 5,
|
|
714
740
|
"maximum": 90
|
|
715
741
|
},
|
|
742
|
+
"buildingRoofProfile": {
|
|
743
|
+
"type": "string",
|
|
744
|
+
"enum": [
|
|
745
|
+
"gable",
|
|
746
|
+
"round"
|
|
747
|
+
]
|
|
748
|
+
},
|
|
749
|
+
"tileElevation": {
|
|
750
|
+
"type": "integer",
|
|
751
|
+
"minimum": 0,
|
|
752
|
+
"maximum": 12
|
|
753
|
+
},
|
|
754
|
+
"tileStepSlope": {
|
|
755
|
+
"type": "number",
|
|
756
|
+
"minimum": 0,
|
|
757
|
+
"maximum": 2
|
|
758
|
+
},
|
|
759
|
+
"tileBoundaryAmplitude": {
|
|
760
|
+
"type": "number",
|
|
761
|
+
"minimum": 0,
|
|
762
|
+
"maximum": 0.3
|
|
763
|
+
},
|
|
764
|
+
"tileBoundarySeed": {
|
|
765
|
+
"type": "integer",
|
|
766
|
+
"minimum": 0
|
|
767
|
+
},
|
|
716
768
|
"outlineMode": {
|
|
717
769
|
"type": "string",
|
|
718
770
|
"enum": [
|
|
@@ -1788,6 +1840,16 @@
|
|
|
1788
1840
|
"lite",
|
|
1789
1841
|
"pro"
|
|
1790
1842
|
]
|
|
1843
|
+
},
|
|
1844
|
+
"spriteFrames": {
|
|
1845
|
+
"type": "integer",
|
|
1846
|
+
"minimum": 1,
|
|
1847
|
+
"maximum": 32
|
|
1848
|
+
},
|
|
1849
|
+
"spriteFps": {
|
|
1850
|
+
"type": "integer",
|
|
1851
|
+
"minimum": 1,
|
|
1852
|
+
"maximum": 60
|
|
1791
1853
|
}
|
|
1792
1854
|
},
|
|
1793
1855
|
"additionalProperties": false
|