pixelkiln 0.99.0 → 0.101.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
@@ -86,8 +86,8 @@ not probed.
86
86
  | `GET /balance` | `doctor`, `gen` balance reads, gallery | Measured live | Free. Count is at `subscription.generations` ([Reproducing these numbers](#reproducing-these-numbers)). | Only the subscription shape is documented; a credit-only account's reply is not recorded. | Low |
87
87
  | `GET /pro-flash/cost` | Pro Flash estimates for `character` and `imageProFlash` | Measured live | Free quote. For `operation=character`: image 5 up to 96px, 6 to 208px, 9 above, plus rotations; two live jobs (7 and 2) billed exactly the quote ([Characters, measured](#characters-measured)). | Quotes for `create`, `edit` and `inpaint` are recorded from PixelLab's MCP `get_pro_flash_capabilities`, not from this route (roadmap, "Pro Flash for plain image create, edit, and inpaint"). | Low |
88
88
  | `GET /background-jobs/{id}` | every job poll; where the billed amount is read | Measured live | `usage` at the top level and again at `last_response.billing_usage`; confirmed for a `map` object (1), a standard character base (1) and the skeleton jobs ([Limits and billing](#limits-and-billing)). | Jobs are deleted 8 hours after finishing, so a bill not read in time is lost (the v3 base bill was). | Low |
89
- | `POST /create-image-pixflux` | `pixflux` | Measured live | 1 generation, PNG inline, about 10 s; `color_image` is a hard palette lock (130 badges, 65 of 65 in each set) ([Single-image generators, measured](#single-image-generators-measured)). Ran in `benchmarks/provider-environments/pixellab`. | None recorded. | Low |
90
- | `POST /map-objects` (+ `GET /map-objects/{id}`, falling back to `GET /objects`) | `map` | Measured live | 1 generation, job about 30 s; the job record expires after 8 hours but the image survives ([Object lifecycle](#object-lifecycle)). `color_image` returns 500. | The `scene` field (`background_image` + inpainting): "Unverified until a real call is billed" ([GENERATORS.md](./GENERATORS.md), `map`). | Low |
89
+ | `POST /create-image-pixflux` | `pixflux` | Measured live | 1 generation, PNG inline, about 10 s; `color_image` is a hard palette lock (130 badges, 65 of 65 in each set) ([Single-image generators, measured](#single-image-generators-measured)). Ran in `benchmarks/provider-environments/pixellab`. `init_image` with `init_image_strength` 30, 100, 300 and 800 each billed the usual 1 (November 2026; see [Init images](#init-images-measured)). | None recorded. | Low |
90
+ | `POST /map-objects` (+ `GET /map-objects/{id}`, falling back to `GET /objects`) | `map` | Measured live | 1 generation, job about 30 s; the job record expires after 8 hours but the image survives ([Object lifecycle](#object-lifecycle)). `color_image` returns 500. `init_image` at the same four strengths billed 1 each (November 2026; see [Init images](#init-images-measured)). | The `scene` field (`background_image` + inpainting): "Unverified until a real call is billed" ([GENERATORS.md](./GENERATORS.md), `map`). | Low |
91
91
  | `POST /generate-image-v2` | `imagePro` | Measured live | A 64×64 call billed 10 (40 before the cut) and 10 again with `target_palette`; the completed job was read and a candidate downloaded through `gen` ([October 2026 Pro price cut](#october-2026-pro-price-cut), [Target palette](#target-palette-target_palette)). | Canvases above 65536px² (15 and 25 tiers) are priced from the shared Pro ladder, not measured here; `reference_images` and `style_image` are unmodeled. | High |
92
92
  | `POST /create-image-pro-flash` | `imageProFlash` | Measured live | A 32×32 still with a four-colour `target_palette` billed 5, in only those colours (November 2026; [GENERATORS.md](./GENERATORS.md#target-palette)). | Larger canvases (quote 9 at 256px) and the style-image path were never billed. | Medium |
93
93
  | `POST /edit-image-pro-flash` | revision `engine: "pro-flash"`, `image-to-image` | Mock only | Quote 5 at 64px, provisional, from MCP (roadmap, "Pro Flash for plain image create, edit, and inpaint"). | Never billed; completed-job shape never read live; the `reference` edit method is unmodeled. | Medium |
@@ -116,10 +116,10 @@ not probed.
116
116
  | `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
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
- | `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 |
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)). 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
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
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
- | `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 |
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. `init_image` is sent but mock only. | 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 |
125
125
  | `POST /ui-assets/states` | `pixelkiln ui states` | Measured live | One 86×38 element in 2 states quoted and billed 10; about a minute. State images differ in size from their element. | The 15 and 25 tiers, several elements in one call, and `target_palette` are mock only. | High |
@@ -218,6 +218,33 @@ set the row to Run live, not measured rather than leaving it Mock only.
218
218
 
219
219
  ---
220
220
 
221
+ ## Init images, measured
222
+
223
+ `init_image` and `init_image_strength` (1 to 999, default 300) on
224
+ `/create-image-pixflux`, `/map-objects` and `/create-isometric-tile`, wrapped
225
+ as an asset's `initImage` and `initImageStrength`
226
+ ([manifest reference](./MANIFEST.md#starting-from-an-image)). Measured on 14
227
+ November 2026 (Tier 3): a 64×64 knight as the starting image, the prompt "a
228
+ knight in golden armor with a red cape", `seed` 77, on both `pixflux` and
229
+ `map`. Ten calls, each billed 1 generation, the same as without an init image.
230
+
231
+ | `init_image_strength` | Result, the same on both generators |
232
+ |---|---|
233
+ | none sent (no init image) | a gold knight with a red cape |
234
+ | 30 | a new gold knight; the starting image sets only scale and placement |
235
+ | 100 | the starting silhouette and armor with gold trim and a red cape |
236
+ | 300 (the default) | the starting image lightly redrawn; the prompt's colors absent |
237
+ | 800 | the starting image, all but unchanged |
238
+
239
+ - The default holds far harder than a "300 of 999" suggests: at 300 the prompt
240
+ changed nothing visible. A restyle that keeps the shape wants about 100.
241
+ - The starting image and the output were both 64×64. Whether a different size
242
+ is accepted, scaled or refused was not tried.
243
+ - `/create-isometric-tile` takes the same two fields; PixelKiln sends them, with
244
+ mocked tests only.
245
+
246
+ ---
247
+
221
248
  ## Single-image generators, measured
222
249
 
223
250
  The endpoints that produce one standalone image. This is the decision that
@@ -879,6 +906,30 @@ October 2026, through `pixelkiln gen` on the website's showcase project
879
906
  ring where it meets the first set's sand is visible up close. "plain smooth
880
907
  sand texture" still came back with pebbles in the first set.
881
908
 
909
+ ### Tiles shape options, measured
910
+
911
+ `/create-tiles-pro` gained `elevation`, `step_slope`, `boundary_amplitude` and
912
+ `boundary_seed` for a `tile_feature: "tileset"` set, and `roof_profile` for a
913
+ materials-layout building kit. Wrapped as the `tiles` style fields
914
+ `tileElevation`, `tileStepSlope`, `tileBoundaryAmplitude`, `tileBoundarySeed`
915
+ and `buildingRoofProfile`. Measured on 14 November 2026 (Tier 3),
916
+ `square_topdown` tiles seen at 90°.
917
+
918
+ | Request | Planned | Billed | Result |
919
+ |---|---|---|---|
920
+ | 16px, `elevation` 6 | 25 | 0 | **422**: "elevation must be 0-2 px for a 16px tile (got 6) at a 90 degree view" |
921
+ | 32px, `elevation` 6 | 25 | 0 | **422**: "elevation must be 0-4 px for a 32px tile" |
922
+ | 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 |
923
+
924
+ - **The elevation cap follows the tile, not the schema.** The schema allows 0
925
+ to 12; the API allows what fits the tile's top face and wall at its size and
926
+ view: 2 px at 16px and 4 px at 32px, both at 90°. A lower view angle should
927
+ allow more; that was not tried. The refusal is free and names the cap, and
928
+ PixelKiln passes it through.
929
+ - **The plan over-read this set.** A 32px `tileset` feature billed 10 against a
930
+ planned 25. One data point, so the estimate is unchanged.
931
+ - `roof_profile` was not run.
932
+
882
933
  ### Tileset options, November 2026, measured
883
934
 
884
935
  PixelLab replaced the sidescroller model and added options to both tileset
package/docs/MANIFEST.md CHANGED
@@ -70,6 +70,8 @@ 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
+ | `initImage` | string | `pixflux`, `map` and `isometricTile` styles: a PNG to start the drawing from, relative to the manifest. See [Starting from an image](#starting-from-an-image). |
74
+ | `initImageStrength` | integer 1–999, default 300 | With `initImage`: how strongly the starting image holds. About 100 blends it with the prompt; 300 and up mostly returns it. |
73
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). |
74
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). |
75
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). |
@@ -145,6 +147,11 @@ One asset using the fields most projects reach for:
145
147
  | `tileType` | enum | `hex`, `hex_pointy`, `isometric`, `oblique`, `octagon`, or `square_topdown`. |
146
148
  | `tileView` | enum | `top-down`, `high top-down`, `low top-down`, or `side`. |
147
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`. |
148
155
  | `outlineMode` | enum | `outline` or `segmentation`; segmentation avoids quilted ground seams. |
149
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. |
150
157
  | `terrainMode` | `standard` | `terrain` only. `standard` or `pro`. |
@@ -526,6 +533,43 @@ their own page: [Characters](./CHARACTERS.md) and
526
533
  }
527
534
  ```
528
535
 
536
+ ## Starting from an image
537
+
538
+ A `pixflux`, `map` or `isometricTile` asset can start from a PNG instead of
539
+ from nothing:
540
+
541
+ ```json
542
+ "gold_knight": {
543
+ "prompt": "a knight in golden armor with a red cape",
544
+ "initImage": "art/knight.png",
545
+ "initImageStrength": 100
546
+ }
547
+ ```
548
+
549
+ PixelLab reworks the image toward the prompt. `initImageStrength` (1 to 999)
550
+ sets how strongly the starting image holds, and its default of 300 holds much
551
+ harder than the number suggests. Measured on a 64x64 knight with the prompt
552
+ above (November 2026, the same on `pixflux` and `map`):
553
+
554
+ | Strength | Result |
555
+ |---|---|
556
+ | 30 | The prompt wins: a new gold knight at about the same scale and placement. |
557
+ | 100 | A blend: the original silhouette and armor, with gold trim and a red cape. |
558
+ | 300 (default) | The starting image, lightly redrawn. No gold, no red. |
559
+ | 800 | The starting image, all but unchanged. |
560
+
561
+ So to restyle a sprite while keeping its shape, set about 100; leave the
562
+ default only when you want a faithful redraw. For a controlled edit of an
563
+ existing asset, with a parent the plan tracks, a
564
+ [revision](./REVISIONS.md) is the better tool; `initImage` is for a loose
565
+ starting file.
566
+
567
+ The file is hashed into the asset's identity, with the strength when it is
568
+ set, so replacing it marks the asset stale and renaming it does not. A missing
569
+ file is a manifest error, and a file changed between `plan` and `gen` is
570
+ refused at submit. It costs nothing extra: each of these billed the
571
+ generator's usual 1 generation.
572
+
529
573
  ## Controlled revisions
530
574
 
531
575
  ```jsonc
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.99.0",
3
+ "version": "0.101.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -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": [
@@ -1926,6 +1978,15 @@
1926
1978
  "type": "string",
1927
1979
  "minLength": 1
1928
1980
  },
1981
+ "initImage": {
1982
+ "type": "string",
1983
+ "minLength": 1
1984
+ },
1985
+ "initImageStrength": {
1986
+ "type": "integer",
1987
+ "minimum": 1,
1988
+ "maximum": 999
1989
+ },
1929
1990
  "terrainReferences": {
1930
1991
  "type": "object",
1931
1992
  "properties": {
@@ -261,6 +261,32 @@
261
261
  "minimum": 5,
262
262
  "maximum": 90
263
263
  },
264
+ "buildingRoofProfile": {
265
+ "type": "string",
266
+ "enum": [
267
+ "gable",
268
+ "round"
269
+ ]
270
+ },
271
+ "tileElevation": {
272
+ "type": "integer",
273
+ "minimum": 0,
274
+ "maximum": 12
275
+ },
276
+ "tileStepSlope": {
277
+ "type": "number",
278
+ "minimum": 0,
279
+ "maximum": 2
280
+ },
281
+ "tileBoundaryAmplitude": {
282
+ "type": "number",
283
+ "minimum": 0,
284
+ "maximum": 0.3
285
+ },
286
+ "tileBoundarySeed": {
287
+ "type": "integer",
288
+ "minimum": 0
289
+ },
264
290
  "outlineMode": {
265
291
  "type": "string",
266
292
  "enum": [