pixelkiln 0.97.0 → 0.98.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/docs/ENDPOINTS.md CHANGED
@@ -117,8 +117,8 @@ not probed.
117
117
  | `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
118
  | `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
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 |
120
- | `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. | Pro below 32px; standard above 32px; a standard set cannot connect to a Pro set. | High |
121
- | `POST /create-tileset-sidescroller` | `terrain`, `terrainOrientation: "sidescroller"` | Measured live | One 16px set at transition 0.25 billed 3; 16 tiles; `usage` is null on the `GET`, so the bill comes from the job ([Tilesets: measured once per kind](#tilesets-measured-once-per-kind)). | 32px tiles and other transition sizes (tile counts assumed 16); the call returned `metadata.transition_size: 0.0` for 0.25. | Low |
120
+ | `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
+ | `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
122
  | `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. | Low |
123
123
  | `POST /create-ui-asset` (+ `GET /ui-assets/{id}`) | `uiAsset` | Measured live | One 256×192 call billed 20, the low end of the quoted 20 to 40; the plan prices 40 ([UI panels](#ui-panels-one-endpoint-schema-documented-cost-unverified), September 2026). | A second size; `pixelkiln plan` over-reads. | High |
124
124
  | `POST /ui-assets/{id}/split` | `pixelkiln ui split` | Measured live | Free; a 256×192 template split into the 3 elements its `split_preview` listed. A second split is refused client-side ([UI split, states and 9-slice](#ui-split-states-and-9-slice-measured)). | Custom `boxes` are mock only. | Low |
@@ -852,8 +852,60 @@ October 2026, through `pixelkiln gen` on the website's showcase project
852
852
  ring where it meets the first set's sand is visible up close. "plain smooth
853
853
  sand texture" still came back with pebbles in the first set.
854
854
 
855
+ ### Tileset options, November 2026, measured
856
+
857
+ PixelLab replaced the sidescroller model and added options to both tileset
858
+ endpoints. Measured on 14 November 2026 (Tier 3), all at 16px tiles, each bill
859
+ read from the finished job.
860
+
861
+ | Set | Request | Planned | Billed |
862
+ |---|---|---|---|
863
+ | sidescroller, standard | `transition_size` 0.25, `platform_thickness` 0.8 | 1 | 1 |
864
+ | sidescroller, pro | `mode: "pro"`, `transition_size` 0.25 | 15 | 15 |
865
+ | top-down, standard | `shape_style` round, `raggedness` 0.5, `shape_seed` 7, `side_wall_thickness` 0.3, `side_wall_placement` 1, `enhance: false`, both walkable flags | 4 | 1 |
866
+ | top-down, standard | the same with `shape_seed` 42 | 4 | 1 |
867
+ | top-down, standard | both of the above again with `seed` 1234 | 4 | 1 each |
868
+ | top-down, standard | `lower_reference_image` and `upper_reference_image` | 4 | 1 |
869
+ | sidescroller, standard | `lower_base_tile_id` (raw request) | n/a | 0, **422** |
870
+
871
+ - **The sidescroller endpoint has modes now.** `standard` (the default) is
872
+ 1 generation and about 37 s; `pro` is 15 and took about 40 s here. The model
873
+ measured below at 3 generations is retired. `terrainCost` now plans 1 and
874
+ 15. `transition_size` stops at 0.5 on both, so the `1` PixelKiln used to
875
+ accept is refused.
876
+ - **A standard sidescroller set cannot connect.** `lower_base_tile_id` without
877
+ `mode: "pro"` answers `422`: "standard draws the new top around every edge of
878
+ a chained platform instead of only on top". PixelKiln refuses a `connect` on
879
+ a standard sidescroller set before sending.
880
+ - **Standard top-down sets billed 1, five times.** The earlier measurement was
881
+ 3 and PixelLab quotes 1 to 4, so the plan still prices 4; over-reading is
882
+ the safe direction for `--budget`.
883
+ - **A reference image is used nearly verbatim.** Two hand-made striped 16×16
884
+ swatches became the fill of both terrains, stripes intact.
885
+ - **`enhance: false` is visible.** With it, plain descriptions ("dark river
886
+ water", "grassy meadow") gave flat, literal colors.
887
+ - **The side wall controls drew a wall.** Thickness 0.3 at placement 1 put a
888
+ dark rim along the bank.
889
+ - **`shape_seed` changes the border modestly.** With the generation `seed`
890
+ pinned, seeds 7 and 42 shared a palette and layout while all 16 tiles
891
+ differed and the bank's edge wobbled differently. One comparison.
892
+ - The walkable flags were accepted; whether a map or export reads them was not
893
+ checked. They change no pixel, so PixelKiln keeps them out of the spec hash.
894
+ - `tile_strength`, `tileset_adherence` and `tileset_adherence_freedom` are
895
+ documented by PixelLab as having no effect on either endpoint. PixelKiln
896
+ does not send them.
897
+
898
+ Not measured: 32px sets, a sidescroller's `transition_reference_image`
899
+ (standard) and `lower_reference_image` (pro), `transition_reference_image` on a
900
+ top-down set, and any of these options on a top-down pro set, which ignores
901
+ the standard-only ones.
902
+
855
903
  ### Sidescroller, measured
856
904
 
905
+ **Superseded in November 2026**: the model this section measured is retired;
906
+ see [Tileset options, November 2026](#tileset-options-november-2026-measured)
907
+ for current prices. The response shape below still holds.
908
+
857
909
  One `POST /create-tileset-sidescroller` call, 16px tiles,
858
910
  `transition_size: 0.25`, `lower_description` "mossy stone bricks texture",
859
911
  `transition_description` "green grass texture", billed **exactly 3
@@ -12,8 +12,8 @@ account; [ENDPOINTS.md](./ENDPOINTS.md) contains the detailed experiments.
12
12
  | Exact fixed palette | `pixflux`, or `imagePro` for a larger or non-square canvas | 1 generation (`imagePro`: 10–25) | 1 inline image (`imagePro`: 1–64 by size) |
13
13
  | Candidate variety, richer rendering, future rotation/animation | `1dir` | 10–25 generations | 4–64 by size |
14
14
  | Ground tiles or connectable structural sets | `tiles` | 10–25 generations | variations or complete set |
15
- | Two-terrain Wang tileset for elevation (grass to water, floor to cliff), or a sidescroller platform set | `terrain` | Pro 15 at 32px and sidescroller 3, Pro 25 at 64px, standard 3 (all measured; standard plans at 4) | 16 or 25 tiles |
16
- | Platform tileset for a sidescroller (stone body, grass top) | `terrain`, `terrainOrientation: "sidescroller"` | 3 generations | 16 tiles |
15
+ | Two-terrain Wang tileset for elevation (grass to water, floor to cliff), or a sidescroller platform set | `terrain` | Pro 15 at 32px, Pro 25 at 64px, standard 1 to 3 (plans at 4); sidescroller 1 on standard, 15 on pro (all measured) | 16 or 25 tiles |
16
+ | Platform tileset for a sidescroller (stone body, grass top) | `terrain`, `terrainOrientation: "sidescroller"` | 1 generation on standard, 15 with `terrainMode: "pro"` | 16 tiles |
17
17
  | A single elevation tile — a raised mesa, a cliff block | `isometricTile` | 1 generation | 1 |
18
18
  | Larger or non-square scene or background, up to 792 wide and 688 tall | `imagePro` | 10–25 generations by canvas | 1–64 by size |
19
19
  | Controlled pose/expression sequence in ComfyUI | `frames` | 0 `free` provider units | one atomic ordered set |
package/docs/MANIFEST.md CHANGED
@@ -70,6 +70,7 @@ not merely a label edit.
70
70
  | `portrait` | object | `character` styles: a bust of a base or state's south sprite, `{ "of": "<asset>", "size": 64 }`; `size` is 16, 32, 48, 64 (default), 128, or 160. See [Portraits](./CHARACTERS.md#portraits). |
71
71
  | `outfit` | object | `character` styles: an existing loop's frames re-clothed from an outfit image, `{ "of": "<loop asset>", "reference": "<image>" }`, with optional `additionalInstructions`. See [Outfit transfer](./CHARACTERS.md#outfit-transfer). |
72
72
  | `mirror` | string | Another asset of the same style flipped left to right, made locally at no cost. See [Mirrors](./CHARACTERS.md#mirrors). |
73
+ | `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). |
73
74
  | `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). |
74
75
  | `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). |
75
76
  | `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). |
@@ -157,6 +158,12 @@ One asset using the fields most projects reach for:
157
158
  | `terrainBoundarySeed` | `0` | `terrain`, with `terrainBoundaryAmplitude`. Which meander, an integer. |
158
159
  | `terrainStepSlope` | `0` | `terrain`, `pro` at `terrainTransitionSize` 0.25 only. 0 a cliff to 2 a gentle slope. |
159
160
  | `terrainConnectDiagonals` | `false` | `terrain`, `pro` only. Join the diagonal tiles' upper corners into one area. |
161
+ | `terrainShapeSeed` | `0` | `terrain`, standard, top-down. Which ragged border `terrainRaggedness` draws, 0–99; another number gives a different edge. |
162
+ | `terrainSideWallThickness` | | `terrain`, standard, top-down, `terrainTransitionSize` above 0. How thick the wall reads on the rim and the front face, 0–1. |
163
+ | `terrainSideWallPlacement` | `0` | `terrain`, standard, top-down, `terrainTransitionSize` above 0. 0 sticks the wall out past the terrain, 1 carves it in so the shape stays put. |
164
+ | `terrainEnhance` | `true` | `terrain`, standard. PixelLab rewrites the terrain descriptions and picks base colors first; `false` uses your wording as written. |
165
+ | `terrainPlatformThickness` | | `terrain`, a standard sidescroller set. Platform body thickness, 0 thin to 1 thick; left out, PixelLab fits it to the top layer. |
166
+ | `terrainLowerWalkable` / `terrainUpperWalkable` | | `terrain`, top-down. Whether each terrain can be walked on, stored with the set for PixelLab's maps and engine exports. Sent when the set is generated; they change no pixel, so changing one later does not make the set stale. |
160
167
  | `terrainSpreadX` / `terrainSlopeSize` | | Deprecated: PixelLab ignores both. Still accepted. Changing any `terrain*` field marks the set stale: the older ones (mode, transition size, view, shape style, raggedness, these two) and the descriptions as sent are recorded per lock entry as `terrainSettings` rather than hashed, compared as written (an explicit default counts as a change), and absent on sets generated before that record existed, which stay current. |
161
168
  | `mode` | `standard` | `character` only. `standard`, `v3`, `pro`, or `pro-flash`; see [Characters](./CHARACTERS.md). |
162
169
  | `directions` | `8` | `character` only. `4` or `8`; every engine but `standard` draws 8. |
package/docs/PIXELLAB.md CHANGED
@@ -71,7 +71,7 @@ unapproved files. See [Manifest quality profiles](./MANIFEST.md#quality-profiles
71
71
  | `pixflux` | You need a closed palette or a full-bleed background | 1 generation |
72
72
  | `1dir` | You need references or several candidates for human review | 10 to 25 generations |
73
73
  | `tiles` | You need ground variations or a connected structural set | 10 to 25 generations |
74
- | `terrain` | You need a two-terrain Wang tileset (grass to water, floor to cliff), sets that share a terrain, or a sidescroller platform set | Pro 15 at 32px, 25 at 64px, standard 3, sidescroller 3 (all measured; standard plans at 4) |
74
+ | `terrain` | You need a two-terrain Wang tileset (grass to water, floor to cliff), sets that share a terrain, or a sidescroller platform set | Pro 15 at 32px, 25 at 64px, standard 1 to 3, sidescroller 1 on standard and 15 on pro (all measured; standard plans at 4) |
75
75
  | `isometricTile` | You need one standalone isometric tile, 16 to 64px | 1 generation (measured once) |
76
76
  | `imagePro` | You need a larger or non-square scene, up to 792 wide and 688 tall, optionally held to the style's `palette` | 10 to 25 generations |
77
77
  | `imageProFlash` | You need a still on the Pro Flash model, optionally styled from one image, 16 to 256px | 5 to 9 generations (provisional quote) |
package/docs/TILES.md CHANGED
@@ -35,6 +35,35 @@ Provider keys can contain gaps when a set includes stamp-only images. Output
35
35
  roles therefore retain the original numeric key (`tile-07`) rather than being
36
36
  renumbered by array position.
37
37
 
38
+ ### Terrain reference images
39
+
40
+ A `terrain` asset can hand PixelLab a PNG for each terrain instead of leaving
41
+ its look to the description alone:
42
+
43
+ ```json
44
+ "cave": {
45
+ "prompt": "1). teal slime pool 2). purple crystal floor",
46
+ "terrainReferences": { "lower": "refs/slime.png", "upper": "refs/crystal.png" }
47
+ }
48
+ ```
49
+
50
+ Paths are relative to the manifest. Each file is hashed into the asset's
51
+ identity, so replacing a reference marks the set stale and renaming it does
52
+ not. A missing file is a manifest error, and a file changed between `plan` and
53
+ `gen` is refused at submit so the request always matches what was priced.
54
+
55
+ **A reference is used almost as the texture itself.** Two hand-made 16x16
56
+ striped swatches came back as the fill of both terrains, stripes intact, with
57
+ PixelLab drawing only the border between them (November 2026, a standard 16px
58
+ set, billed 1). Give it a tile you would be happy to see repeated, not a mood
59
+ board.
60
+
61
+ A top-down set takes `lower`, `upper` and `transition`. A sidescroller set
62
+ takes one, and which one depends on its mode: `transition` (the surface
63
+ layer's texture) on standard, `lower` (the platform body to keep) on pro. Each
64
+ must be a square PNG of the tile size, and `upper` is refused, since a
65
+ sidescroller's upper terrain is empty air.
66
+
38
67
  ### The `terrain` generator's shape
39
68
 
40
69
  `terrain` (`/create-tileset`, or `/create-tileset-sidescroller` for a
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.97.0",
3
+ "version": "0.98.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -256,6 +256,35 @@
256
256
  "terrainConnectDiagonals": {
257
257
  "type": "boolean"
258
258
  },
259
+ "terrainShapeSeed": {
260
+ "type": "integer",
261
+ "minimum": 0,
262
+ "maximum": 99
263
+ },
264
+ "terrainSideWallThickness": {
265
+ "type": "number",
266
+ "minimum": 0,
267
+ "maximum": 1
268
+ },
269
+ "terrainSideWallPlacement": {
270
+ "type": "number",
271
+ "minimum": 0,
272
+ "maximum": 1
273
+ },
274
+ "terrainEnhance": {
275
+ "type": "boolean"
276
+ },
277
+ "terrainPlatformThickness": {
278
+ "type": "number",
279
+ "minimum": 0,
280
+ "maximum": 1
281
+ },
282
+ "terrainLowerWalkable": {
283
+ "type": "boolean"
284
+ },
285
+ "terrainUpperWalkable": {
286
+ "type": "boolean"
287
+ },
259
288
  "terrainTransitionSize": {
260
289
  "type": "number",
261
290
  "minimum": 0,
@@ -754,6 +783,35 @@
754
783
  "terrainConnectDiagonals": {
755
784
  "type": "boolean"
756
785
  },
786
+ "terrainShapeSeed": {
787
+ "type": "integer",
788
+ "minimum": 0,
789
+ "maximum": 99
790
+ },
791
+ "terrainSideWallThickness": {
792
+ "type": "number",
793
+ "minimum": 0,
794
+ "maximum": 1
795
+ },
796
+ "terrainSideWallPlacement": {
797
+ "type": "number",
798
+ "minimum": 0,
799
+ "maximum": 1
800
+ },
801
+ "terrainEnhance": {
802
+ "type": "boolean"
803
+ },
804
+ "terrainPlatformThickness": {
805
+ "type": "number",
806
+ "minimum": 0,
807
+ "maximum": 1
808
+ },
809
+ "terrainLowerWalkable": {
810
+ "type": "boolean"
811
+ },
812
+ "terrainUpperWalkable": {
813
+ "type": "boolean"
814
+ },
757
815
  "terrainTransitionSize": {
758
816
  "type": "number",
759
817
  "minimum": 0,
@@ -1825,6 +1883,24 @@
1825
1883
  "type": "string",
1826
1884
  "minLength": 1
1827
1885
  },
1886
+ "terrainReferences": {
1887
+ "type": "object",
1888
+ "properties": {
1889
+ "lower": {
1890
+ "type": "string",
1891
+ "minLength": 1
1892
+ },
1893
+ "upper": {
1894
+ "type": "string",
1895
+ "minLength": 1
1896
+ },
1897
+ "transition": {
1898
+ "type": "string",
1899
+ "minLength": 1
1900
+ }
1901
+ },
1902
+ "additionalProperties": false
1903
+ },
1828
1904
  "derive": {
1829
1905
  "type": "object",
1830
1906
  "properties": {
@@ -331,6 +331,35 @@
331
331
  "terrainConnectDiagonals": {
332
332
  "type": "boolean"
333
333
  },
334
+ "terrainShapeSeed": {
335
+ "type": "integer",
336
+ "minimum": 0,
337
+ "maximum": 99
338
+ },
339
+ "terrainSideWallThickness": {
340
+ "type": "number",
341
+ "minimum": 0,
342
+ "maximum": 1
343
+ },
344
+ "terrainSideWallPlacement": {
345
+ "type": "number",
346
+ "minimum": 0,
347
+ "maximum": 1
348
+ },
349
+ "terrainEnhance": {
350
+ "type": "boolean"
351
+ },
352
+ "terrainPlatformThickness": {
353
+ "type": "number",
354
+ "minimum": 0,
355
+ "maximum": 1
356
+ },
357
+ "terrainLowerWalkable": {
358
+ "type": "boolean"
359
+ },
360
+ "terrainUpperWalkable": {
361
+ "type": "boolean"
362
+ },
334
363
  "terrainTransitionSize": {
335
364
  "type": "number",
336
365
  "minimum": 0,
@@ -24,7 +24,7 @@ providers, or before any PixelLab account operation.
24
24
  | `pixflux` | Closed palettes or full-bleed backgrounds up to 400×400 | 1 generation |
25
25
  | `1dir` | Reference-guided work or several candidates | 10–25 generations |
26
26
  | `tiles` | Ground variations or connected structures | 10–25 generations |
27
- | `terrain` | A two-terrain Wang tileset for elevation (grass-to-water, floor-to-cliff), or a sidescroller platform set | Sidescroller **3**, measured. Pro **15** at 32px, measured (a connected second set also billed 15). Pro **25** at 64px and standard **3** measured too; standard plans at 4, the top of PixelLab's quoted 1–4 |
27
+ | `terrain` | A two-terrain Wang tileset for elevation (grass-to-water, floor-to-cliff), or a sidescroller platform set | Sidescroller **1** on standard and **15** with `terrainMode: "pro"`, measured (3 before PixelLab replaced that model in November 2026). Pro **15** at 32px, measured (a connected second set also billed 15). Pro **25** at 64px and standard **3** measured too; standard plans at 4, the top of PixelLab's quoted 1–4 |
28
28
  | `imagePro` | A larger or non-square background/scene, or real style transfer; takes the style `palette` as a hard constraint | **10–25 generations** by canvas (64px billed 10; a flat 40 before October 2026) |
29
29
  | `character` | A character in 4 or 8 directions, its poses (`state`), its loops (`animation`), bust `portrait`s, and `outfit` transfers onto a loop | 1 per standard base, 6 per pro-flash base at 64px (1 from a `reference`), 10–25 per pose or portrait (20–40 before the October 2026 cut), 1 per template loop per direction (2–4 as `skeleton-v3`), 20 per outfit (measured once, before the cut) |
30
30
  | `objectPro` | A prop, creature, or vehicle that needs rotations, states, or loops but has no character rig | 6 per base (billed 6 at 32px, November 2026; 1 from a `reference`, unmeasured); states and animations assumed to match `character` pro-flash |