
November 28, 202612 min read
In September this blog said PixelLab’s UI panels had no split, no states and no 9-slice anywhere in the public API. By November 14 all three were there, and so was most of what else PixelLab had added since.
The last PixelKiln post before this series ended on a sentence that aged badly. The delete_ui_asset MCP tool hinted at “split elements + their states”, I wrote, but “nothing in the public REST surface actually reaches it.” On November 14, PixelLab’s REST API had endpoints to split a panel, draw its states and store 9-slice insets, and PixelKiln wrapped all three the same day.
That day shipped 11 releases, 0.97.0 through 0.104.1, from 15 pull requests (#303 to #317). PixelKiln is a CLI that turns a JSON manifest into pixel art, with a lockfile, a budget check before anything is spent, and a ledger in docs/ENDPOINTS.md of what each PixelLab endpoint really bills.
This batch makes one argument. A wrapper is only as true as its last measured call. PixelLab had added music, lip-sync, UI states and asset upkeep, and changed two prices under PixelKiln’s feet. One old bug turned out to be PixelKiln charging for style edits it never sent. Every change below shipped with a bill read off a real account, and that is how the stale parts were found.
This is part 4 of seven posts on what shipped in PixelKiln between 0.60.1 and 0.150.0. Part 3, Measured prices and assets PixelKiln didn’t make, covered 0.89.4 to 0.96.1, and part 5, Paperdoll characters in PixelKiln, comes next.
The September post was right about the API it searched and wrong about where it was heading. 0.97.0 reaches these endpoints through the same REST API as everything else, at api.pixellab.ai/v2, with no MCP bridge. They did not exist when the ledger’s uiAsset section was written, and that section now says so instead of being quietly rewritten.
pixelkiln ui works by PixelLab id, outside the manifest. Besides the three commands below, ui show prints what a split would cut and ui pull downloads every image with a ui.json record of boxes, sizes and hashes.
pixelkiln ui split --id <template id>
pixelkiln ui nine-slice --id <element id> --insets 8,8,6,6
pixelkiln ui states --id <template or element id> --state "hover=brighter, a soft glow on the rim" --state "pressed=pushed in: darker, the face one pixel lower"
Measured against a 256×192 template the uiAsset generator made in September, the split and the 9-slice were free. The split returned three elements, and two states on the 86×38 one were quoted and billed 10 generations. The surprise was size. Hover came back 85×46 and pressed 82×42, because PixelLab crops each state to its own outline and a glow grows the image. A game has to anchor states by their centre, so ui pull records every size.
The price only arrives with PixelLab’s reply. The tier depends on a grid PixelKiln can’t reproduce in advance, so ui states shows the three possible prices (10, 15 and 25), checks --budget against 25, and asks before sending.

hover and pressed from one ui states call. 10 generations.PixelLab added audio, and 0.97.0 wraps it as two standalone commands. pixelkiln music writes two MP3 takes and a .music.json record of the request, song ids, hashes and bill. pixelkiln sfx writes one WAV and a .sfx.json. Neither touches the lockfile.
Here is what the live runs billed. A 1-second sound effect cost 1 generation and a 3-second one 2. A song billed 10 at both 30 and 60 seconds, and a loop of the 60-second song billed 4. A loop needs 36 seconds of music between intro and ending, and PixelLab refuses a shorter song with a 422 its docs don’t mention, so PixelKiln refuses that --loop before sending.
There is no picture for a song. The docs site serves one real take, a 30-second “calm chiptune town theme” at 100 BPM, from one 10-generation request. Vocals and lengths above 60 seconds are covered by mocked tests only.
pixelkiln asset wraps the upkeep PixelLab’s website does to an asset. asset import stores your own PNG as a 1-direction object, free. asset expand draws the seven missing directions, and --keep or --discard settles the review. asset canvas, asset mirror and asset export (zip, spritesheet, .aseprite or GIF) are all free.
Expansion billed 10 generations both times it was run, and the ledger records two catches. The bill lands when the review is ready, not when it is kept, so discarding refunds nothing. And the new directions are drawn to the canvas, not matched to the original. A 16×20 icon on a 48×48 canvas came back as seven large drawings beside one small icon. A 64×64 sprite that filled its canvas came back consistent. pixelate --pro joined the same release, at 20 generations for a 256×256 render.

asset expand, 10 generations.0.102.0 extended the same command with free imports of your own Wang sheet (--kind tileset) or tile PNGs (--kind tiles), and asset save, which writes edited pixels back over a stored asset. An ambiguous sheet is refused until --size is given, because a 16px sheet sent without one was cut into sixteen wrong 32px tiles. Every save writes what it replaced to pixelkiln-undo/ first.
pixelkiln talk (0.102.0) splits lip-sync into one paid step and two free ones. talk visemes draws a portrait’s mouth positions into a strip and a .talk.json record. A 64px face with seven positions billed 3 generations, PixelLab’s published price. After that, talk gif lip-syncs any line to a GIF, and talk plan prints which cell to show and for how long, for an engine that draws the mouth itself. Both billed 0.

talk visemes on a 64px portrait, 3 generations. Shown at 2x.The free line below is “Fire once. Ship every sprite with receipts.”, 35 frames over 3.75 seconds. Two findings went into the docs. The bill isn’t on the vocal-animation reply but on GET /background-jobs/{job}, so the command reads it there. And a portrait needs a visible mouth. A mouthless robot gave seven frames that barely differ.

talk gif on the strip above. Free. Shown at 4x from the 64×64 original.PixelLab’s VFX artist builds an effect around every frame of an animated sprite, and PixelKiln had only sent it stills. Since 0.102.0, pixelkiln vfx --sprite takes a GIF or a PNG strip with --sprite-frames (2 to 32), and a manifest vfx block takes spriteFrames and spriteFps. A strip wider than 1,024px gets a free 422 the spec doesn’t state, so PixelKiln checks first.
Lite adds a flat 1 generation for animation. Pro figures are quotes from cancelled jobs, not bills. Four lite effects quoted at 2 billed 2, 2, 2 and 4, the first bill above its quote in the ledger, landing exactly on the 2x ceiling plans already reserve.

--sprite-frames 8 --sprite-fps 10, lite. 2 generations, shown at 4x.0.98.0 and 0.99.0 are corrections as much as features. PixelLab replaced its sidescroller tileset model, and pixelkiln plan still priced every sidescroller set at the retired model’s 3 generations. A standard set now bills 1 and a pro set 15, picked with terrainMode. The same release adds terrainReferences, a PNG per terrain that PixelLab uses nearly verbatim.

Normal maps moved the other way. PixelLab made a lite mode the default, so a map that billed 0.5 generations now bills 0.1, while PixelKiln still priced 0.5 and sent none of the new controls. pixelkiln normal-map and the normal-map revision now take --mode, --kind, --strength and four shape controls. strength is capped at 2, which PixelLab’s schema doesn’t say.

0.101.0 found a schema range the API doesn’t honor. tileElevation came to the tiles generator documented as 0 to 12, but the API caps it at 2px for 16px tiles and 4px for 32px tiles seen straight down. Both refusals were free.
0.100.0 lets pixflux, map and isometricTile start from a PNG through an asset’s initImage, with initImageStrength from 1 to 999 and PixelLab’s default at 300. The file is hashed by content, and one changed between plan and gen is refused at submit, so the request always matches what was priced.
Ten live calls on pixflux and map, 1 generation each, gave the same ladder on both. At 30 the prompt wins. At 100 you get the starting silhouette in the prompt’s gold and red. At the default 300 the starting image is only lightly redrawn, so the docs now recommend about 100 for a restyle.

initImageStrength 30, 100, 300 and 800. 1 generation each.The worst finding of the day was PixelKiln’s own. A pixflux style’s outline, shading and detail were hashed into each asset but never sent to PixelLab. Editing one marked the asset stale, re-billed it, and returned an image that ignored the edit. Every other generator already sent them. 0.102.1 fixed it, and a live run of one prompt and seed three ways returned three different images, so PixelLab does act on the fields.
The same bug sat in view, fixed in 0.102.2 and sent only when a style states one. Then 0.103.0 added textGuidanceScale and 0.104.0 added direction, isometric and backgroundRemoval, the last fields the endpoint takes that PixelKiln didn’t send. Across 98 specs in the repo’s 17 manifests, every hash matched main.

direction: "east", isometric: true, and backgroundRemoval: "complex". 1 generation each.One sample each, so these are observations. isometric turned the knight to a three-quarter stance, and direction was weak, as PixelLab says. Two smaller loose ends came out of the same day. One 16×16 test image is stuck in the account’s gallery because the REST API has no route to delete it. And PR #305 asked for the site’s audio clips to be played before merging, since they had only been checked as valid files of the right length.
Most of these releases are PixelKiln catching up with a provider that kept shipping. The stale sidescroller price, the 0.5 normal map and the September sentence about UI states were all true once. The pixflux bug had no excuse. It had the same cure as the rest. Send the request, read the bill, and write down what came back.
The 15 and 25 tiers of ui states and every pro VFX price still rest on mocks or quotes. If you have run ui states on a big template with several elements, I’d like to know whether it landed on 15 or 25, and how far the state images drifted from their element’s size.
Discussion
Comments are powered by Disqus. Sign in once, comment anywhere.
