pixelkiln 0.92.2 → 0.93.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/CLI.md CHANGED
@@ -101,6 +101,25 @@ pixelkiln plan --style neon --only anvil,hammer --json --check
101
101
  `quality`, current raw output is not enough: each derived PNG must also have a
102
102
  current named approval.
103
103
 
104
+ ### `hash`
105
+
106
+ Print what a manifest asset resolves to, offline: its spec hash, the SHA-256 of
107
+ the file on disk, whether the lock entry matches both, and the lock entry
108
+ `adopt --local` would write. Needs `--only`, `--style`, or `--all`.
109
+
110
+ ```bash
111
+ pixelkiln hash --only rockfall_pile_iso
112
+ pixelkiln hash --style props --json
113
+ ```
114
+
115
+ The spec hash covers what would change the generated image: provider and its
116
+ options, generator, prompt, size, view, outline, shading, detail, seed,
117
+ palette, style traits and style-image hashes, and the generator-specific
118
+ settings. The output path, `source`, and `tags` do not feed it, so moving or
119
+ retagging a file never makes it stale. From code, `specHash` and
120
+ `resolveSpecs` are exported from the package entry point; prefer this command
121
+ to reaching into internals.
122
+
104
123
  ### `doctor`
105
124
 
106
125
  Validate the manifest, references, lockfile recovery sources, raw and quality
@@ -306,6 +325,21 @@ running `adopt` again.
306
325
  pixelkiln adopt --style cast
307
326
  ```
308
327
 
328
+ `adopt --local` is the keyless path for art made somewhere else (the PixelLab
329
+ MCP, another tool, by hand). It never contacts a provider and needs no key: it
330
+ hashes each selected asset's file, takes the spec hash from the manifest, and
331
+ writes a lock entry marked `imported`, so `plan` reports the asset ok instead
332
+ of untracked. `--source <name>` (default `external`) and `--note <text>` are
333
+ recorded on the entry; `--object-id <id>` records the provider's object id for
334
+ one asset. Entries already in the lockfile are skipped unless `--force`;
335
+ `--dry-run` and `--json` show what would be written. Characters and effects
336
+ are not imported this way.
337
+
338
+ ```bash
339
+ pixelkiln adopt --local --only rockfall_pile_iso --source mcp --note "imageProFlash, box-downscaled"
340
+ pixelkiln adopt --local --style props --dry-run
341
+ ```
342
+
309
343
  ### `accept`
310
344
 
311
345
  Re-baseline intact existing art after prompt/style prose changes. Artwork bytes
@@ -896,6 +930,19 @@ itself and records dimensions, palette, transparency, partial alpha, edge
896
930
  density and contrast, isolated-pixel ratio, and the PNG hash. A linked
897
931
  refinement record must be current and own the image.
898
932
 
933
+ To refresh specific cases after redrawing their art, use
934
+ `quality snapshot --only <id,...>` with the same `--inputs` and `--out`. It
935
+ re-measures only those cases with every metric the current version writes, keeps
936
+ their reviewed tolerances, and leaves every other case as it was; `--dry-run`
937
+ prints the before and after of each metric without writing. Do not edit the
938
+ baseline by hand: a missing metric makes `check` fail and name the case to
939
+ re-snapshot.
940
+
941
+ ```bash
942
+ pixelkiln quality snapshot --inputs config/quality-inputs.json \
943
+ --out quality/pixelkiln.quality.json --only rockfall_pile_iso --dry-run
944
+ ```
945
+
899
946
  `snapshot` leaves a different existing baseline untouched unless `--force` is
900
947
  explicit. `check` exits nonzero for missing files, dimension or metric drift,
901
948
  new colors, soft or partial-alpha edges, excessive isolated pixels, exact-hash
@@ -1240,7 +1287,7 @@ Print the package version. `-v` is an alias.
1240
1287
  | `--only id1,id2` | most workflows | Restrict asset ids; repeatable. An `animation.directions` shorthand id selects every loop and mirror it expands into. |
1241
1288
  | `--budget <n\|provider=n>` | submit/gen/gallery | Refuse work above this cost. Repeat `provider=n` for every provider in a mixed run; do not mix keyed and unkeyed forms. For `gallery`, the session ceiling that enables generation from the page. |
1242
1289
  | `--force` | gen/fetch/derived commands/recipe install/quality snapshot | Regenerate current work, replace a changed or untracked fetch destination, rebuild current quality-profile output, take ownership of modified/unowned derived output, replace changed recipe files, or replace a changed quality baseline. A refinement rebuild resets approval. |
1243
- | `--dry-run` | supported mutating commands | Inspect without spending or mutating provider state. |
1290
+ | `--dry-run` | supported mutating commands, adopt --local, quality snapshot --only | Inspect without spending or mutating provider state. |
1244
1291
  | `--json` | plan/doctor/audit/cache/status/gallery/salvage/refine/recipe/quality/unzoom/pixelate/normal-map/vfx/font | Machine-readable stdout where supported. For `gallery`, prints the snapshot instead of serving it. |
1245
1292
  | `--check` | plan/audit/cache | Exit nonzero when selected state is unsafe. |
1246
1293
  | `--yes`, `-y` | confirmed operations | Skip an interactive confirmation. For `refine approve`, it records an already-completed human review; it does not replace one. |
@@ -1259,6 +1306,9 @@ Print the package version. `-v` is an alias.
1259
1306
  | `--generator <name>` | init | Generator assigned to the scaffolded style. |
1260
1307
  | `--name <name>` | init/font/vfx | Project name for the scaffolded manifest, the generated font's family name, or the effect's name in My effects. |
1261
1308
  | `--write-prompts` | adopt | Recover provider prompts into the manifest. |
1309
+ | `--local` | adopt | Record local files as `imported` lock entries offline, with no provider key. |
1310
+ | `--source <name>` | adopt --local | Where the art came from (`mcp`, `hand`, a tool name); default `external`. |
1311
+ | `--object-id <id>` | adopt --local | The provider object id of the single asset being imported. |
1262
1312
  | `--port <n>` | pick/salvage/gallery | Local review or gallery server port; otherwise chooses a free port. |
1263
1313
  | `--out <path>` | pack/export/refine/recipe install/quality snapshot/unzoom/pixelate/normal-map/vfx/font | Output base override, final native PNG for path-mode refine, exact recipe destination, quality baseline path, the unzoomed, pixelated, or normal-map PNG, the effect's `<base>.png`/`.gif`/`.json`/`.vfx.json`, or the font's `<base>.ttf`/`<base>.png`. Export requires one selected tileset. |
1264
1314
  | `--inputs <path>` | pack/quality snapshot | JSON input array; requires `--out`. Quality cases use `{ id, path, record?, tolerances? }`. |
package/docs/ENDPOINTS.md CHANGED
@@ -62,7 +62,9 @@ more than planned or finishes in a shape PixelKiln cannot read.
62
62
  14 are mock only (`objectPro` base, state and `pro` animation, `1dir`, Pro
63
63
  `terrain`, `uiAsset`, `uiElement`, Pro and Pro Flash character bases, states,
64
64
  portraits, outfit transfer, `interpolate`, `edit-animation`), and their rows
65
- say so.
65
+ say so. Since then `objectPro` base, `uiElement`, `interpolate` and
66
+ `edit-animation` have each run live (November 2026), but without a palette, so
67
+ the palette claim on them is still mock only.
66
68
 
67
69
  **Free acceptance probe** (November 2026): for 13 of those 14 routes, a request
68
70
  carrying only a valid four-colour `target_palette` and none of the required
@@ -95,13 +97,13 @@ not probed.
95
97
  | `POST /correct-pixelart` | revision `correct-pixelart` | Measured live | 0.1 generations at 32×32 ([Cleanup tier, measured](#cleanup-tier-measured)). | Larger canvases and multi-frame sets, as above. | Low |
96
98
  | `POST /unzoom` | `pixelkiln unzoom` | Unknown | "Cost unmeasured; PixelLab's MCP tool description claims 0.1" ([Cleanup tier, measured](#cleanup-tier-measured)). Nothing records a live run. | Everything. | Low |
97
99
  | `POST /normal-map` | revision `normal-map`, `pixelkiln normal-map` | Measured live | An 8-frame 1304×26 strip and a 64×64 revision each billed 0.5; the map comes back the input's size with matching alpha ([Normal map](#normal-map-post-normal-map-measured-once), October 2026). | The `directx` convention; strips near the 32-frame limit. | Low |
98
- | `POST /generate-ui-v2` | `uiElement` | Schema only | Documented 10 to 25; "no call has been billed yet" ([GENERATORS.md](./GENERATORS.md#uielement)). Planned on the 10/15/25 ladder. `target_palette` sent, mock only. | The price, and the completed-job shape (`pollUiElement` reads it defensively); the concept-image path. | High |
100
+ | `POST /generate-ui-v2` | `uiElement` | Measured live | A 32×32 call billed 10 and the review page showed 64 candidates at 32×32 (November 2026, Tier 3; the plan said 1 candidate and now follows `uiElementCandidateCount`). Planned on the 10/15/25 ladder ([GENERATORS.md](./GENERATORS.md#uielement)). `target_palette` sent, mock only. | Other sizes (the 15 and 25 tiers and the other candidate bands, which come from PixelLab's published grid), and the concept-image path. | High |
99
101
  | `POST /create-1-direction-object` (+ `GET /objects/{id}`) | `1dir` | Measured live | A 32px, 3-description `batch` billed 20 (the pre-cut floor) and `item_descriptions[0]` owned slot 0 ([Candidates](#candidates)); candidate counts follow size. `target_palette` sent, mock only. | No bill since the October 2026 cut (10 / 15 / 25 is PixelLab's published ladder); tiers above the floor under `item_descriptions`. | High |
100
102
  | `POST /objects/{id}/select-frames` | `1dir` and `batch` pick | Run live, not measured | Promoted three candidates in the live batch run ([Candidates](#candidates)); `indices` is plural. | Its cost was not recorded. | Low |
101
103
  | `GET /objects?limit=&offset=` | `adopt`, `salvage` | Measured live | Free; a March 2026 sprite still resolved four months on ([Object lifecycle](#object-lifecycle)). | None recorded. | Low |
102
- | `POST /create-object-pro-flash` | `objectPro` base | Mock only | Assumed to price like `character` pro-flash: 6 at 64px, 1 from a `reference` ([GENERATORS.md](./GENERATORS.md#objectpro), "Cost is not independently measured"). `target_palette` sent, mock only. | Price, completed-job shape, 8-direction output. | Medium |
103
- | `POST /objects/{id}/states` | `objectPro` state | Mock only | Same assumption. `target_palette` sent, mock only. | Price and shape. | Medium |
104
- | `POST /objects/{id}/animations` | `objectPro` animation (`v3`, `pro`) | Mock only | Same assumption; `pro` mode is documented 10 to 25 per direction. `target_palette` sent on `pro` only, mock only. | Price, shape, per-direction billing. | High |
104
+ | `POST /create-object-pro-flash` | `objectPro` base | Measured live | A 32px base billed 6 and returned 8 files at 32×32 (the rotations), matching the plan, which prices it like `character` pro-flash (November 2026, Tier 3; [GENERATORS.md](./GENERATORS.md#objectpro)). `target_palette` sent, mock only. | Other sizes and the 1-generation `reference` path. | Medium |
105
+ | `POST /objects/{id}/states` | `objectPro` state | Mock only | Assumed to price like `character` pro-flash; the base ran live, this route did not. `target_palette` sent, mock only. | Price and shape. | Medium |
106
+ | `POST /objects/{id}/animations` | `objectPro` animation (`v3`, `pro`) | Mock only | Same assumption as the state row; `pro` mode is documented 10 to 25 per direction. `target_palette` sent on `pro` only, mock only. | Price, shape, per-direction billing. | High |
105
107
  | `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 |
106
108
  | `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 |
107
109
  | `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 |
@@ -123,12 +125,12 @@ not probed.
123
125
  | `POST /characters/{id}/portrait` | `character` portrait attach | Measured live | Free (`usage.generations: 0`); the reply holds the only copy of the stored URL ([Characters, measured](#characters-measured)). | None recorded. | Low |
124
126
  | `POST /transfer-outfit-v2` | `character` outfit | Measured live | A 2-frame 92×92 job billed 20 (before the cut); frames return inline in `last_response.quantized_images` ([Characters, measured](#characters-measured)). `target_palette` sent, mock only. | Other frame counts (2 to 16) and canvases; the price after the cut. | High |
125
127
  | `GET /characters/{id}`, `GET /characters?limit=&offset=` | `adopt`, `fetch --refresh`, `salvage` | Measured live | Free; carries no `usage`; image URLs carry `?t=<updated_at>` ([Object lifecycle](#object-lifecycle)). | None recorded. | Low |
126
- | `POST /animate-with-text-v3` | revision `animate` | Schema only | Request fields from the OpenAPI document; the completed-job shape is a guess ([REVISIONS.md](./REVISIONS.md#animation-and-interpolation)). Cost borrows `character`'s v3 formula. | Price, completed shape, frame-list field. | High |
127
- | `POST /animate-pixminimax` | revision `animate-pixminimax` | Schema only | Same as above. PixelLab's MCP now prices it by time (64×64 at 4 / 8 / 16 / 40 frames: 1 / 1 / 2 / 6); the placeholder gives 1 / 1 / 1 / 3 ([roadmap](../skills/pixelkiln/references/pixellab-roadmap.md), "Generated effects with PixMiniMax"). | Price, completed shape, and whether the input frame is in the output. | High |
128
+ | `POST /animate-with-text-v3` | revision `animate` | Measured live | A 64×64, 4-frame call billed 1 and returned 5 frames at 64×64 (the input frame plus 4); the plan, which borrows `character`'s v3 formula, said 1 (November 2026, Tier 3; [REVISIONS.md](./REVISIONS.md#animation-and-interpolation)). | Other sizes and frame counts (up to 16 frames at 256px reads 16 by the borrowed formula). | Medium |
129
+ | `POST /animate-pixminimax` | revision `animate-pixminimax` | Measured live | 64×64 at 8 frames billed 1 and returned 9 frames at 64×64 (the input frame plus 8); at 16 frames billed 2 and returned 17. The plan said 1 for the 16-frame call because its old placeholder under-read; it now follows PixelLab's published table (64×64 at 4 / 8 / 16 / 40 frames: 1 / 1 / 2 / 6), see `pixMiniMaxCost` (November 2026, Tier 3; [roadmap](../skills/pixelkiln/references/pixellab-roadmap.md), "Generated effects with PixMiniMax"). | 40 frames and other sizes are unbilled (the table is PixelLab's, not a bill); `enhance_prompt`'s 0.05 is the schema's number. | Medium |
128
130
  | `POST /animate-with-skeleton-v3` | revision `animate-skeleton` | Measured live | 8 frames at 64×64 billed 3 and returned 8 frames at 64×64; `description` and `action` are both required, and sent with neither the endpoint returns 422 ([Skeleton-driven motion, measured](#skeleton-driven-motion-measured), October 2026). | Other frame counts (3 = 2 and 15 = 4 are PixelLab's anchors, unbilled). | Low |
129
131
  | `POST /estimate-skeleton` | `pixelkiln estimate-skeleton`, gallery pose helper | Run live, not measured | Ran on a 64×64 sprite before the 8-frame revision ([REVISIONS.md](./REVISIONS.md#skeleton-driven-animation)). | Its cost; the reply's `usage` is typed `unknown`. | Low |
130
- | `POST /interpolation-v2` | revision `interpolate` | Schema only | No usage example in the schema; price borrows the 10/15/25 Pro tiers ([REVISIONS.md](./REVISIONS.md#interpolate-between-two-keyframes)). `target_palette` sent, mock only. | Price, completed shape. | High |
131
- | `POST /edit-animation-v2` | revision `edit-animation` | Schema only | Same; priced on the packed frame grid (four 32×32 frames price as 64×64). `target_palette` sent, mock only. | Price, completed shape. | High |
132
+ | `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 |
133
+ | `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 |
132
134
  | `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 |
133
135
  | `POST /vfx`, 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 |
134
136
  | 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 |
@@ -145,29 +147,29 @@ The High and Medium rows that are Mock only, Schema only or Run live, not
145
147
  measured, most exposed first. A live run of the top ones also settles the most
146
148
  uncertainty per generation.
147
149
 
148
- 1. **`/animate-pixminimax`** (Schema only). The estimate under-reads long
149
- clips (a 40-frame 64×64 clip costs 6, the placeholder says 3), so `--budget`
150
- can be set too low, and the completed shape is a guess.
151
- 2. **`/interpolation-v2` and `/edit-animation-v2`** (Schema only). Priced from
152
- borrowed 10/15/25 tiers with no usage example; a whole frame set goes in one
153
- call, so a miss is a full Pro tier, and the finished job is read defensively.
154
- 3. **`/animate-with-text-v3`** (Schema only). Up to 16 generations a call by
155
- PixelKiln's own formula, billed per animation, completed shape guessed.
156
- 4. **`/objects/{id}/animations`, `/create-object-pro-flash`, `/objects/{id}/states`**
157
- (Mock only). `objectPro` assumes `character` pro-flash prices; its `pro`
158
- animations are 10 to 25 per direction.
159
- 5. **`/generate-ui-v2`** (Schema only). 10 to 25, never billed, shape read
160
- defensively.
161
- 6. **`/animate-character` template and v3** (Run live, not measured). One job
150
+ 1. **`/objects/{id}/animations`, `/objects/{id}/states`** (Mock only).
151
+ `objectPro` assumes `character` pro-flash prices; the base ran live and
152
+ matched (6 at 32px), but its `pro` animations are 10 to 25 per direction.
153
+ 2. **`/animate-character` template and v3** (Run live, not measured). One job
162
154
  per direction, so an 8-direction loop is eight bills no one has recorded.
163
- 7. **`/create-character-state`** (Run live, not measured). One rough bill
155
+ 3. **`/create-character-state`** (Run live, not measured). One rough bill
164
156
  (about 22) taken beside other jobs and before the cut.
165
- 8. **`/vfx` with a sprite, the pro artist, a change or a game pack** (Mock
157
+ 4. **`/vfx` with a sprite, the pro artist, a change or a game pack** (Mock
166
158
  only). Up to 28 generations a call, and plans reserve twice the quote.
167
- 9. **`/edit-image-pro-flash`, `/inpaint-image-pro-flash`** (Mock only). 5 to 6
159
+ 5. **`/edit-image-pro-flash`, `/inpaint-image-pro-flash`** (Mock only). 5 to 6
168
160
  per call on provisional quotes, no completed response seen.
169
- 10. **`/create-character-v3`** (Run live, not measured). 2 at 64px, up to 9 at
170
- 256px, and the one recorded bill was an unreadable zero.
161
+ 6. **`/create-character-v3`** (Run live, not measured). 2 at 64px, up to 9 at
162
+ 256px, and the one recorded bill was an unreadable zero.
163
+
164
+ Measured in November 2026 and no longer on this list: `/animate-pixminimax`,
165
+ `/animate-with-text-v3`, `/interpolation-v2`, `/edit-animation-v2`,
166
+ `/generate-ui-v2` and the `objectPro` base. Their remaining exposure is the
167
+ sizes and frame counts the row says were not billed. Two of the planners were
168
+ wrong: `interpolate` and `edit-animation` over-read 2.5× (25 planned, 10 billed)
169
+ and `animate-pixminimax` under-read a 16-frame clip (1 planned, 2 billed). Both
170
+ are now calibrated to those bills, and the PixMiniMax planner follows PixelLab's
171
+ published points at 4, 8, 16 and 40 frames, which the 40-frame point has not
172
+ been billed against.
171
173
 
172
174
  Also worth a second look because they are measured on an old price list: the
173
175
  `1dir`, `/portrait-character-pro`, `/transfer-outfit-v2` and `/edit-images-v2`
@@ -1068,15 +1070,15 @@ Listed so the gaps are known rather than assumed away:
1068
1070
  across every frame of a set) are wired the same way, as the `interpolate`
1069
1071
  and `edit-animation` modes; see
1070
1072
  [Interpolate between two keyframes](./REVISIONS.md#interpolate-between-two-keyframes).
1071
- All four are schema-only for the *request* (live OpenAPI document, not an
1072
- observed call); the *completed job* response shape is a genuine unknown —
1073
- no usage example exists for either endpoint at all, only the generic
1074
- background-job one — so `pollAnimateRevision` checks several plausible
1075
- field names defensively rather than assume one. Cost borrows `character`'s
1076
- own measured v3-loop formula as a placeholder, for the same reason
1077
- `objectPro` borrowed `character` pro-flash's; `interpolate` and
1078
- `edit-animation` borrow the 10/15/25 Pro canvas tiers instead, since
1079
- neither schema carries a usage example.
1073
+ All four ran live in November 2026 (Tier 3): 64×64 PixMiniMax at 8 and 16
1074
+ frames billed 1 and 2, `animate-with-text-v3` at 4 frames billed 1,
1075
+ `interpolate` billed 10, and `edit-animation` of a 9-frame set billed 10.
1076
+ Every completed job was read correctly. PixMiniMax returned the frame count
1077
+ plus the input frame (9 and 17 frames); `interpolate` returned 14 frames at
1078
+ the default count. Cost: `animate` borrows `character`'s measured v3-loop
1079
+ formula; `animate-pixminimax` follows PixelLab's published table, which the
1080
+ borrowed formula under-read; `interpolate` and `edit-animation` price the
1081
+ canvas on the 10/15/25 Pro ladder (the planner had read them as 25).
1080
1082
  - `/generate-font-pro` (+ `GET /generate-font-pro/{job_id}`) — an 80-glyph
1081
1083
  atlas PNG plus a `.ttf` from a style description, `weight`
1082
1084
  (`Bold`/`Regular`), and `glyph_px` (8/16/32/64). Documented at 15
@@ -19,9 +19,9 @@ account; [ENDPOINTS.md](./ENDPOINTS.md) contains the detailed experiments.
19
19
  | Controlled pose/expression sequence in ComfyUI | `frames` | 0 `free` provider units | one atomic ordered set |
20
20
  | Animated GIF or spritesheet from Retro Diffusion | `animation` | $0.07–$0.25 per animation (published price) | 1 GIF or PNG sheet |
21
21
  | A character facing 4 or 8 directions, its poses, and its animations | `character` | 1 per base (standard), 10–25 per pose or portrait, 1 per template loop (2–4 as `skeleton-v3`), 20 per outfit (measured once) | one set of directions, one ordered loop, or one portrait |
22
- | A prop, creature, or vehicle with rotations, states, or loops but no character rig | `objectPro` | about 6 per base at 64px (unmeasured) | one set of directions, or one ordered loop |
22
+ | A prop, creature, or vehicle with rotations, states, or loops but no character rig | `objectPro` | 6 per base (measured at 32px; about 6 at 64px) | one set of directions, or one ordered loop |
23
23
  | UI chrome — panels, buttons, health bars, toolbars | `uiAsset` | 20 generations (measured once, at 256x192) | 1 composited image |
24
- | One UI element from a description, 16px and up, optionally guided by a concept image | `uiElement` | 10–25 generations (unmeasured) | 1 image |
24
+ | One UI element from a description, 16px and up, optionally guided by a concept image | `uiElement` | 10–25 generations (a 32×32 call billed 10) | 1 image |
25
25
  | A styled still on the Pro Flash model, or the south sprite a Pro Flash character will rotate | `imageProFlash` | 5–9 generations (PixelLab's provisional quote) | 1 image |
26
26
  | An animated effect (spell, hit, explosion, aura), on its own or around a sprite | `vfx` | free from presets and parts; 1–28 when described to PixelLab's artist (lite measured at 1; plans at twice the quote) | one ordered frame set |
27
27
 
@@ -288,11 +288,13 @@ and regenerating the parent makes the child stale.
288
288
  | portrait | portrait-character-pro | 10–25 by `size` (16px billed exactly 20 live, before the October 2026 cut) |
289
289
  | outfit | transfer-outfit-v2 | 20 (a 2-frame, 92×92 job billed exactly this live; not yet measured at other frame counts or canvases) |
290
290
 
291
- The 20–40 tiers are PixelLab's; the tier is resolved from the canvas when
292
- the job runs and reserved against the floor, so `plan` reports the tier the
293
- canvas lands in. `plan` prices a 64px state at 40 (the 1dir tier for that
294
- many pixels); one live 64px state in September 2026 moved the balance by
295
- about 22, so the estimate reads high, which is the safe side for a budget.
291
+ The 10–25 tiers are PixelLab's (20–40 before its October 2026 cut); the tier
292
+ is resolved from the canvas when the job runs and reserved against the floor,
293
+ so `plan` reports the tier the canvas lands in. `plan` prices a 64px state at
294
+ 25 (the 1dir tier for that many pixels); one live 64px state in September
295
+ 2026, before the cut, moved the balance by about 22 against the then 20–40
296
+ tiers, so there is no bill on the new list, and the estimate is read as high,
297
+ which is the safe side for a budget.
296
298
  `poll` now reads what a job like this actually billed and records it
297
299
  alongside the estimate as `billed`; `pixelkiln history`, `plan --json`, and
298
300
  the gallery show both when they differ, though `gen`'s wave budget still
@@ -351,12 +353,13 @@ ignored, since none of them reach the API for an object.
351
353
  restricted to the fields above (no `template`/`subject`, since neither
352
354
  applies). See [Working with a cast](./CHARACTERS.md#working-with-a-cast).
353
355
 
354
- **Cost is not independently measured.** `objectProCost()` assumes
355
- `/create-object-pro-flash`/its state/its animation price identically to
356
+ **Cost: the base is measured, the rest is assumed.** `objectProCost()` prices
357
+ `/create-object-pro-flash`/its state/its animation identically to
356
358
  `character`'s own measured pro-flash formula (`proFlashCharacterCost`),
357
- since the request bodies are near-identical minus `template_id` — treat it
358
- as a working assumption, not a confirmed number, until checked against a
359
- live account.
359
+ since the request bodies are near-identical minus `template_id`. A 32px base
360
+ billed exactly 6 live (November 2026, Tier 3) and returned 8 files at 32×32,
361
+ matching the plan. The state route, the `pro` animation and other sizes
362
+ are still mock only; treat them as a working assumption.
360
363
 
361
364
  Adoption (`pixelkiln adopt`) has not been extended for `objectPro`'s own
362
365
  `<object id>#<animation group id>` remote-id scheme yet, unlike `character`'s
@@ -440,12 +443,13 @@ plain `revision` (image-to-image) of the base panel, which already carries
440
443
  this for every other generator.
441
444
 
442
445
  **Cost: confirmed live at one data point — 20 generations for a 256x192
443
- canvas**, the low end of the `create_ui_asset` MCP tool's "20–40
444
- generations" claim. PixelKiln still estimates with the same canvas-tier
445
- formula as `1dir`/`tiles`, which predicts the 40 ceiling for every valid
446
- `uiAsset` size (its 192px floor is already past that formula's top tier) —
447
- the measured call proves the formula wrong here, since it billed the floor
448
- price at an area well above where `1dir`/`tiles` would bill the ceiling.
446
+ canvas**, the low end of the `create_ui_asset` MCP tool's then "20–40
447
+ generations" claim (before PixelLab's October 2026 cut to 10–25). PixelKiln
448
+ still estimates with the same canvas-tier formula as `1dir`/`tiles`, which
449
+ predicts the 25 ceiling for every valid `uiAsset` size (its 192px floor is
450
+ already past that formula's top tier) — the measured call proves the
451
+ formula wrong here, since it billed the floor price at an area well above
452
+ where `1dir`/`tiles` would bill the ceiling.
449
453
  Left as an over-read for `--budget` until a second size is measured; see
450
454
  [ENDPOINTS.md](./ENDPOINTS.md) for the full writeup.
451
455
 
@@ -529,15 +533,20 @@ to 16×16, which suits icons and small widgets:
529
533
  - `uiColorPalette` is sent as `color_palette`, the same free-text hint
530
534
  `uiAsset` takes. PixelLab removes the background by default; set
531
535
  `noBackground: false` on the style to keep it.
532
- - One call is expected to return one image, recorded straight away. If the
533
- endpoint ever returns several, they go to candidate review like
534
- `imagePro`'s.
535
-
536
- **Unmeasured.** The schema carries no usage example and no call has been
537
- billed yet. The plan prices it on the same 10/15/25 canvas tiers as
538
- `1dir`/`tiles`, the safe over-read for a Pro endpoint, and the completed
539
- job's shape is read defensively (`pollUiElement` names the keys it got if
540
- the shape is not the documented `images` list).
536
+ - A small element returns many candidates (64 at 32×32, measured), which go
537
+ to candidate review like `imagePro`'s; a call that returns one image is
538
+ recorded straight away.
539
+
540
+ **Cost: measured once.** A 32×32 call billed 10 live (November 2026, Tier 3)
541
+ and the review page showed **64 candidates** at 32×32, which the plan said as
542
+ 1 until it followed the `/generate-image-v2` size tiers (`uiElementCandidateCount`:
543
+ 64 up to 32px, 49 at 33–35, 36 at 36–41, 25 at 42–50, 16 at 51–64, 9 at
544
+ 65–84, 16 at 85, 4 at 86–170, 1 above). Only the 32px point is a bill; the
545
+ other bands are PixelLab's published grid. A size with more than one candidate
546
+ goes to review. The plan prices the canvas on the 10/15/25 tiers as
547
+ `1dir`/`tiles` do; other sizes are unbilled, and the completed job's shape
548
+ is still read defensively (`pollUiElement` names the keys it got if the shape
549
+ is not the documented `images` list).
541
550
 
542
551
  ## `vfx`
543
552
 
package/docs/PIXELLAB.md CHANGED
@@ -77,9 +77,9 @@ unapproved files. See [Manifest quality profiles](./MANIFEST.md#quality-profiles
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) |
78
78
  | `vfx` | You need an animated effect (spell, hit, explosion, aura), on its own or around a sprite | free from presets and parts; 1 to 28 when described to PixelLab's artist (lite measured at 1) |
79
79
  | `character` | You need a character in 4 or 8 directions, with states, loops, portraits, or outfits | See [Characters](./CHARACTERS.md) |
80
- | `objectPro` | You need a prop or creature with rotations, states, or loops but no character rig | about 6 at 64px (unmeasured) |
80
+ | `objectPro` | You need a prop or creature with rotations, states, or loops but no character rig | 6 per base (measured at 32px) |
81
81
  | `uiAsset` | You need a UI panel composited from pieces and named elements, 192px and up | 20 generations (measured once) |
82
- | `uiElement` | You need one UI element from a description, 16px and up | 10 to 25 generations (unmeasured) |
82
+ | `uiElement` | You need one UI element from a description, 16px and up | 10 to 25 generations (a 32×32 call billed 10) |
83
83
 
84
84
  `map` accepts these values:
85
85
 
package/docs/REVISIONS.md CHANGED
@@ -400,17 +400,20 @@ review** first (`pixelkiln pick`), not straight to downloadable output; there
400
400
  is no per-candidate choice to make (it is one ordered set, previewed as a
401
401
  loop), just accept or reject the whole thing.
402
402
 
403
- **Neither endpoint's completed-job response shape has been exercised against
404
- a live account.** The request fields above come from PixelLab's live OpenAPI
405
- document; the shape of a *finished* job (which key holds the frame list, and
406
- whether it's hosted URLs or inline base64) is an informed guess checked
407
- against several plausible shapes (see `pollAnimateRevision` in
408
- `src/providers/pixellab.ts`), the same defensive posture `pollRevision`
409
- already takes for `image-to-image`/`inpaint`. Cost is likewise unmeasured:
410
- `estimate()` borrows `character`'s own measured v3-loop formula
403
+ **Both endpoints ran live in November 2026 (Tier 3), and every completed job
404
+ was read correctly.** A 64×64 `animate` of 4 frames billed 1 and returned 5
405
+ frames at 64×64; a 64×64 `animate-pixminimax` billed 1 at 8 frames (9 frames
406
+ back) and 2 at 16 frames (17 back). PixelLab includes the input frame in the
407
+ set, so a set holds the requested count plus one. `pollAnimateRevision` still
408
+ checks several plausible field names defensively rather than assume one.
409
+ Cost: `animate` borrows `character`'s measured v3-loop formula
411
410
  (`ceil(width × height × frames / 65536)`, since the request shapes are
412
- near-identical) as a placeholder, plus `enhancePrompt`'s own documented
413
- +0.05-generation surcharge, which is a real schema number rather than a guess.
411
+ near-identical), which matched the one bill; `animate-pixminimax` follows
412
+ PixelLab's published table (64×64 at 4 / 8 / 16 / 40 frames costs 1 / 1 / 2 /
413
+ 6), because that formula read the 16-frame clip as 1 against a bill of 2 (see
414
+ `pixMiniMaxCost`; 40 frames is the published number, not a bill). Both add
415
+ `enhancePrompt`'s documented +0.05-generation surcharge. Other sizes and
416
+ frame counts are unbilled.
414
417
 
415
418
  ### Interpolate between two keyframes
416
419
 
@@ -468,10 +471,12 @@ time.
468
471
 
469
472
  `interpolate` and `edit-animation` land in candidate review like `animate`,
470
473
  take `fps` (defaulting to the parent's own rate when it has one, else 8), and
471
- reject `strength`. Neither has been exercised against a live account: request
472
- fields come from PixelLab's live OpenAPI document, the completed job is read
473
- by the same defensive frame-list lookup `animate` uses, and cost is an
474
- estimate (see [PixelLab](#pixellab) below).
474
+ reject `strength`. Both ran live in November 2026 (Tier 3) and the completed
475
+ job was read correctly by the same frame-list lookup `animate` uses: a 64×64
476
+ `interpolate` with a `lastFrame` keyframe billed 10 and returned 14 frames at
477
+ 64×64, and an `edit-animation` of a 9-frame 64×64 set billed 10. The plan
478
+ now prices them at those 10 (it used to read 25). Larger canvases are
479
+ unbilled (see [PixelLab](#pixellab) below).
475
480
 
476
481
  ComfyUI supports none of the four frame-set modes: its revision path always
477
482
  writes a single output image, and an animation is a frame set — a structural
@@ -698,25 +703,24 @@ further — there is nothing to ask.
698
703
  image; a whole member set is still one call, but whether its price stays
699
704
  flat is unmeasured.
700
705
  - `interpolate` (`/interpolation-v2`) and `edit-animation`
701
- (`/edit-animation-v2`) are both documented "Pro" endpoints with no usage
702
- example in the schema and no live measurement. `estimate()` borrows the
703
- same 10/15/25 canvas tiers the other unmeasured Pro edits use, sized on the
704
- keyframe for `interpolate` and on the packed frame grid for
705
- `edit-animation` (four 32×32 frames price as a 64×64 canvas, the 10 tier).
706
- Over-reading is the safe direction for `--budget`; expect a live bill at or
707
- below the plan.
706
+ (`/edit-animation-v2`) are "Pro" endpoints and bill on the 10/15/25 canvas
707
+ ladder (`proTierCost`: 10 up to 65536px², 15 up to 102400px², 25 above).
708
+ `estimate()` sizes the canvas on the keyframe for `interpolate` and on the
709
+ packed frame grid for `edit-animation` (nine 64×64 frames pack into
710
+ 192×192). Measured live in November 2026: a 64×64 `interpolate` and a
711
+ 9-frame 64×64 `edit-animation` each billed 10, where the plan used to say
712
+ 25. Larger canvases are unbilled and follow the same ladder; over-reading
713
+ is the safe direction for `--budget`.
708
714
  - `animate` calls `/animate-with-text-v3`, `animate-pixminimax` calls
709
715
  `/animate-pixminimax` — both real async background jobs, unlike the two
710
716
  Cleanup-tier modes above, since they generate new frames rather than
711
717
  transform the source. Both take at most 256 pixels per side; `animate`
712
718
  additionally caps at 16 frames (`animate-pixminimax` allows up to 40). See
713
719
  [Animation and interpolation](#animation-and-interpolation) above for the
714
- full field list, the frame-set output shape, and its own (still unmeasured)
715
- cost caveat — unlike the Cleanup tier above, neither `animate` nor
716
- `animate-pixminimax` has been exercised against a live account yet, and the
717
- request/response shapes come from PixelLab's live OpenAPI document, not an
718
- observed call. Treat the exact field names as provisional until a real
719
- call confirms them.
720
+ full field list, the frame-set output shape, and the live bills: both ran
721
+ live in November 2026 (64×64 `animate` at 4 frames billed 1; `animate-pixminimax`
722
+ at 8 and 16 frames billed 1 and 2), and the completed jobs were read
723
+ correctly.
720
724
  - `animate-skeleton` calls `/animate-with-skeleton-v3`, also a real async
721
725
  background job, at most 256 pixels per side and 3-15 frames (the frame
722
726
  count comes from `keypointsFile`, not a manifest field). See
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelkiln",
3
- "version": "0.92.2",
3
+ "version": "0.93.0",
4
4
  "description": "Manifest-driven pixel-art generation, review, recovery, and packaging with deterministic provenance.",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -46,7 +46,8 @@ Two engine-specific data points worth the same treatment:
46
46
  pro engine at the same canvas ("even at 256×256, we can generate eight
47
47
  animation frames, which we didn't have before even with the pro tools") —
48
48
  consistent with pixelkiln's documented `character` cost model, where v3
49
- scales `ceil(size²×8/65536)` and pro sits in the flat 20–40 tier regardless.
49
+ scales `ceil(size²×8/65536)` and pro sits in the flat 10–25 tier regardless (20–40 before PixelLab's
50
+ October 2026 cut).
50
51
  Prefer v3 over pro for a loop unless pro's quality is specifically needed.
51
52
  - `portrait-character-pro` (not part of this adapter) renders sizes 128 and
52
53
  160 at "2K" internal resolution versus "1K" for 16–64, at a measured cost
@@ -153,11 +153,11 @@ and which tutorial(s) demonstrated real (not hypothetical) demand for it.
153
153
  rotation, states, or animation for a plain object. Closed by the
154
154
  `objectPro` generator; see `pixellab.md`. It reuses `character`'s own
155
155
  `asset.state`/`asset.animation` authoring shapes and mirror handling
156
- rather than inventing parallel ones. **Cost is not independently
157
- measured**: assumed identical to `character` pro-flash's own measured
158
- formula, since the request bodies are near-identical minus `template_id` —
159
- a real assumption pending a live check, not a confirmed number the way
160
- `isometricTile`'s now is. Batch "pack" generation (N distinct objects from
156
+ rather than inventing parallel ones. **The base is measured**: a 32px
157
+ base billed 6 and returned 8 files (November 2026), matching `character`
158
+ pro-flash's formula, which the estimate assumes since the request bodies
159
+ are near-identical minus `template_id`. States and `pro` animations remain
160
+ that assumption pending a live check. Batch "pack" generation (N distinct objects from
161
161
  one call) is covered on `1dir` by its `batch` field — see below.
162
162
  - **Pixel correction** (`/correct-pixelart`, a dedicated cleanup pass distinct
163
163
  from `image-to-pixelart` — the latter is documented, docs/ENDPOINTS.md, as
@@ -209,17 +209,21 @@ and which tutorial(s) demonstrated real (not hypothetical) demand for it.
209
209
  `pixellab.md`. `lastFrame` covers both the "pin an ending pose" and the
210
210
  "chain from a prior animation's final frame" cases — it is just a
211
211
  manifest-relative image, which can be any earlier asset's own generated
212
- output file. **Neither endpoint's cost or completed-response shape is
213
- measured against a live account** — cost borrows `character`'s own
214
- measured v3-loop formula, and the frame list is extracted defensively from
215
- several plausible field names rather than one confirmed shape, the way
216
- `pollRevision` already handles `image-to-image`/`inpaint`. The dedicated
212
+ output file. **Both ran live in November 2026**: `animate` at 64×64 and 4 frames
213
+ billed 1 (5 frames back, input included), `animate-pixminimax` billed 1 at 8
214
+ frames and 2 at 16 (9 and 17 frames back), and the completed jobs were read
215
+ correctly. `animate`'s cost borrows `character`'s measured v3-loop formula;
216
+ `animate-pixminimax` follows PixelLab's published table. The frame list is
217
+ still extracted defensively from several plausible field names. The dedicated
217
218
  **Interpolate** endpoint (`/interpolation-v2`, a separate "Pro" two-keyframe
218
219
  tool distinct from `last_frame` pinning on the animate endpoints above) is
219
220
  now wrapped too, as the `interpolate` revision mode (parent = start
220
221
  keyframe, required `lastFrame` = end keyframe), alongside
221
222
  `/edit-animation-v2` as `edit-animation` (one text edit across a whole
222
- frame set). Both unmeasured, both borrowing the 10/15/25 Pro canvas tiers.
223
+ frame set). Both ran live in November 2026 and billed 10 each (a 64×64
224
+ `interpolate` returning 14 frames; an `edit-animation` of a 9-frame 64×64
225
+ set), on the 10/15/25 Pro canvas tiers; the planner used to read them as 25
226
+ and is calibrated. Larger canvases are unbilled.
223
227
  Real demonstrated demand for Interpolate: "Level Up Your Game: Custom
224
228
  Sprite Animation Tutorial" used it
225
229
  repeatedly, in Aseprite via PixelLab's own extension, as the fix for an
@@ -284,7 +288,8 @@ and which tutorial(s) demonstrated real (not hypothetical) demand for it.
284
288
  `/generate-ui-v2` ("Generate UI (Pro)": one element from a description,
285
289
  16px and up, with an optional concept image and palette hint), found on a
286
290
  later full read of the path list and now wrapped as the `uiElement`
287
- generator; see `docs/GENERATORS.md#uielement`. Unmeasured. **Splitting into individual elements and
291
+ generator; see `docs/GENERATORS.md#uielement`. A 32×32 call billed 10 and
292
+ returned 64 candidates (November 2026). **Splitting into individual elements and
288
293
  nine-slice are not buildable at all**: `GET /ui-assets/{id}` returns one
289
294
  flat composited image with no per-piece sub-image or bounding-box data in
290
295
  its response schema, regardless of how many `pieces` the request declared.
@@ -303,10 +308,11 @@ and which tutorial(s) demonstrated real (not hypothetical) demand for it.
303
308
  this one. **Cost confirmed live, and it overturned the borrowed
304
309
  formula**: a real 256x192 call against a Tier 2 account billed exactly 20
305
310
  generations (balance 4979.8 → 4959.8), the low end of the `create_ui_asset`
306
- MCP tool description's "20-40 generations" claim. No dedicated cost branch
311
+ MCP tool description's then "20-40 generations" claim (10-25 since the
312
+ October 2026 cut). No dedicated cost branch
307
313
  exists, so `uiAsset` still falls through to the same canvas-tier formula
308
314
  `1dir`/`tiles` use, which — given this generator's 192px floor — always
309
- predicts the 40 ceiling; the measured call billed the floor price at an
315
+ predicts the 25 ceiling; the measured call billed the floor price at an
310
316
  area well past where that formula would bill the ceiling, so it does not
311
317
  actually describe `uiAsset`'s pricing. Left unpatched from one data point:
312
318
  over-reading stays the safe `--budget` direction, but a real call likely
@@ -542,15 +548,17 @@ missing:
542
548
  - **Trimming a loop's repeated frame.** The video deletes the last frame of
543
549
  a fireball loop because it repeats the first. `animate_image_pixminimax`
544
550
  says `get_image` returns `frame_count + 1` images with index 0 the input
545
- unchanged. pixelkiln's frame extraction for this mode is unexercised live,
546
- so whether the input frame lands in the set is unknown. There is no
547
- manifest way to drop a frame either way.
548
- - **The cost estimate under-reads long clips.** The MCP tool now prices
549
- PixMiniMax by generation time: 64×64 at 4, 8, 16, and 40 frames costs 1, 1,
550
- 2, and 6 generations. pixelkiln's placeholder,
551
- `ceil(width × height × frames / 65536)`, gives 1, 1, 1, and 3 for the same
552
- clips. Unlike every other unmeasured estimate here, this one under-reads,
553
- so `--budget` can be too low.
551
+ unchanged. Confirmed live (November 2026): an 8-frame clip came back as 9
552
+ frames and a 16-frame clip as 17, with pixelkiln's frame extraction reading
553
+ all of them, so the input frame is in the set. There is no manifest way to
554
+ drop a frame.
555
+ - **The cost estimate used to under-read long clips (fixed).** The MCP tool
556
+ prices PixMiniMax by generation time: 64×64 at 4, 8, 16, and 40 frames costs
557
+ 1, 1, 2, and 6 generations. pixelkiln's old placeholder,
558
+ `ceil(width × height × frames / 65536)`, gave 1, 1, 1, and 3, and a live
559
+ 16-frame clip billed 2 against a plan of 1. The estimate (`pixMiniMaxCost`)
560
+ now follows the published points and extrapolates above them; the 40-frame
561
+ point has not been billed.
554
562
  - **Joining two clips.** The video joins two orb animations end to end in
555
563
  Aseprite. pixelkiln has no frame-set concatenation; `lastFrame` can pin a
556
564
  clip's ending to another clip's frame file, but the two sets stay separate.