Measured endpoints

Tilesets: measured once per kind

Called out separately because these are the most capable endpoints for level art and they matter for game level art. pixelkiln plans a top-down set at PixelLab's own quote (Pro 15 for tiles up to 32px, 25 at 64px; standard 4, the top of its quoted 1 to 4). Every kind is measured below: Pro billed exactly its quote at 32px and 64px, and standard billed 3, under the plan.

POST /tilesets (top-down) and /tilesets-sidescroller are the current versions; /create-tileset* are the older aliases with identical schemas. pixelkiln's terrain generator (skills/pixelkiln/references/pixellab.md) calls the aliases, the sidescroller one with terrainOrientation: "sidescroller"; the reference-image/color_image knobs below are not.

They take lower_description + upper_description (+ optional transition_description). You describe two terrains and the transition between them, and get a tileset that blends them. Distinctively, they accept both color_image and per-layer reference images (lower_reference_image, upper_reference_image, transition_reference_image). They are the only family that combines palette forcing with style anchoring.

Useful knobs: tile_size, tileset_adherence / tileset_adherence_freedom (how strictly tiles must fit together), and the usual outline / shading / detail. Pro's border controls are raggedness, roundness, boundary_amplitude with boundary_seed, step_slope, and connect_diagonals; spread_x and slope_size are documented as "No effect" now and kept only so existing calls work.

lower_base_tile_id / upper_base_tile_id connect a new set to another set's terrain. GET /tilesets/{id} (observed live) has a top-level metadata.terrain_ids of { "lower": "<uuid>", "upper": "<uuid>" }: those are the base tile ids, so set A's upper id sent as set B's lower_base_tile_id makes the two share that terrain. pixelkiln records them as terrainIds when it polls a set.

Pro at 64px, edge slope, and standard sets, measured

A second round on the same showcase project billed 46 generations in all (balance 5055 to 5009), each set exactly as below:

  • lava-floor: Pro, 64px, terrainTransitionSize: 0.5, terrainRaggedness: 0.4, terrainBoundaryAmplitude: 0.15, terrainBoundarySeed: 3, prompt 1). glowing lava texture 2). dark dungeon stone floor texture 3). crumbling dungeon brick wall. Billed exactly 25 and returned 25 tiles covering 21 distinct corner combinations, which confirms that Pro switches to the tall-wall layout at 0.5, not only at 1, and that four tiles are corner twins. The third description became the brick wall dropping into the lava.
  • swamp-marsh: Pro, 32px, terrainTransitionSize: 0.25, terrainStepSlope: 1.5, terrainRaggedness: 0.8. Billed exactly 15, 16 tiles, with a ragged bank between the water and the marsh grass.
  • lake-grass and path-grass: standard, 32px. Each billed 3, under the planned 4. path-grass used connect: { upper: { of: "lake-grass", terrain: "upper" } }, sent upper_base_tile_id, and its recorded terrain_ids.upper came back identical to lake-grass's upper id. The standard sets look flatter, with a hard edge, as PixelLab's tilesets tutorial describes.

pixelkiln keeps connected sets in one style, and a style fixes terrainMode, so a standard set cannot connect to a Pro set.

Pro top-down and a connected pair, measured

October 2026, through pixelkiln gen on the website's showcase project (website/art/pixellab-0.4.130). Two Pro sets at 32px with terrainRoundness: 2 and terrainConnectDiagonals: true:

  • ocean-sand ("deep ocean water texture" to "plain smooth sand texture") billed exactly 15 generations, 16 tiles. Its metadata.terrain_ids held both a lower and an upper id, recorded as terrainIds.
  • sand-grass ("plain smooth sand texture" to "plain short grass texture") with connect: { lower: { of: "ocean-sand", terrain: "upper" } } stayed blocked until ocean-sand was downloaded, then sent ocean-sand's upper id as lower_base_tile_id and billed exactly 15.
  • Painted together on one vertex grid, the two sets join at the shared sand with matching colour. The second set's sand carries fewer pebbles, so the ring where it meets the first set's sand is visible up close. "plain smooth sand texture" still came back with pebbles in the first set.

Tiles shape options, measured

/create-tiles-pro gained elevation, step_slope, boundary_amplitude and boundary_seed for a tile_feature: "tileset" set, and roof_profile for a materials-layout building kit. Wrapped as the tiles style fields tileElevation, tileStepSlope, tileBoundaryAmplitude, tileBoundarySeed and buildingRoofProfile. Measured on 14 November 2026 (Tier 3), square_topdown tiles seen at 90°.

RequestPlannedBilledResult
16px, elevation 6250422: "elevation must be 0-2 px for a 16px tile (got 6) at a 90 degree view"
32px, elevation 6250422: "elevation must be 0-4 px for a 32px tile"
32px, elevation 4, step_slope 1, boundary_amplitude 0.2, boundary_seed 3251016 tiles, a meandering shore with a dark bank on the raised edge
  • The elevation cap follows the tile, not the schema. The schema allows 0 to 12; the API allows what fits the tile's top face and wall at its size and view: 2 px at 16px and 4 px at 32px, both at 90°. A lower view angle should allow more; that was not tried. The refusal is free and names the cap, and PixelKiln passes it through.
  • The plan over-read this set. A 32px tileset feature billed 10 against a planned 25. One data point, so the estimate is unchanged.
  • roof_profile was not run.

Isometric tiles, measured

Measured on 18 November 2026 (Tier 3) from one manifest, website/art/pixellab-isometric: tileType: "isometric", tileView: "low top-down", outlineMode: "segmentation" on the ground and road sets. The road set was drawn twice more on 19 November 2026 with a steeper view; the first set is still the one in the repo, for the reasons below.

RequestPlannedBilledResult
tileset, 32px, grass to cobblestone251016 tiles, each 32x24; corner rules (arity 4), all 16 masks present
roads, 32px250422: "Roads need tile_size 48-96 for isometric."
roads, 48px, low top-down, segmentation251018 tiles, each 48x48; edge rules (arity 4) naming 17 of the 18; a flat 3:1 diamond
roads, 48px, high top-down, segmentation2510same shape, a 2:1 diamond, but 17 of 18 tiles carry stray fragments of grass outside the slab, above and below it
roads, 48px, high top-down, outline2510same shape, a clean 2:1 diamond and no fragments, but every tile has a dark outline, so a map of them shows the grid
building, 32px, stone hall251058 pieces, each 52x58; rule family composed, arity 8, no per-tile masks
isometricTile, 32px block, two prompts1 each1 eachtwo 32x32 blocks
  • The diamond is not the image. A 32x24 ground tile is a 32x16 diamond on rows 0 to 15 with 8 rows of side below it. A 48x48 road tile drawn from low top-down is a 48x16 diamond on rows 12 to 27 with 7 rows below, so the diamond is flatter (3:1, not 2:1) and does not start on the first row; from high top-down it is 48x24 on rows 6 to 29. The export measures the diamond from each set's alpha instead of assuming a ratio.
  • The view and the outline mode trade off in a road set. A steeper view makes a 2:1 diamond, which reads as isometric where the 3:1 one reads as top-down. With segmentation at that view, 17 of 18 tiles had stray grass triangles above and below the slab. outline has none, but each tile keeps a dark border, so a painted map shows a grid of black lines where the flat segmentation set is seamless. None of the three was clean and seamless and isometric at once. Check a road set for pixels outside the first tile's silhouette, and paint a map with it, before choosing.
  • The corner mask reads off the art. Sampling the four vertices of each of the 16 ground tiles: mask bits 3, 2, 1, 0 (NW, NE, SW, SE) are the top, right, left and bottom vertices of the diamond, which is the mapping the Godot export writes.
  • Roads take a bigger tile than the other kinds. The 32px request was refused for free, naming the 48 to 96px range.
  • A building kit is a different kind of result. It is not a mask map but a set of separate pieces under a composed rule family PixelKiln does not map, so it exports to the generic file only.

Tileset options, November 2026, measured

PixelLab replaced the sidescroller model and added options to both tileset endpoints. Measured on 14 November 2026 (Tier 3), all at 16px tiles, each bill read from the finished job.

SetRequestPlannedBilled
sidescroller, standardtransition_size 0.25, platform_thickness 0.811
sidescroller, promode: "pro", transition_size 0.251515
top-down, standardshape_style round, raggedness 0.5, shape_seed 7, side_wall_thickness 0.3, side_wall_placement 1, enhance: false, both walkable flags41
top-down, standardthe same with shape_seed 4241
top-down, standardboth of the above again with seed 123441 each
top-down, standardlower_reference_image and upper_reference_image41
sidescroller, standardlower_base_tile_id (raw request)n/a0, 422
  • The sidescroller endpoint has modes now. standard (the default) is 1 generation and about 37 s; pro is 15 and took about 40 s here. The model measured below at 3 generations is retired. terrainCost now plans 1 and 15. transition_size stops at 0.5 on both, so the 1 PixelKiln used to accept is refused.
  • A standard sidescroller set cannot connect. lower_base_tile_id without mode: "pro" answers 422: "standard draws the new top around every edge of a chained platform instead of only on top". PixelKiln refuses a connect on a standard sidescroller set before sending.
  • Standard top-down sets billed 1, five times. The earlier measurement was 3 and PixelLab quotes 1 to 4, so the plan still prices 4; over-reading is the safe direction for --budget.
  • A reference image is used nearly verbatim. Two hand-made striped 16×16 swatches became the fill of both terrains, stripes intact.
  • enhance: false is visible. With it, plain descriptions ("dark river water", "grassy meadow") gave flat, literal colors.
  • The side wall controls drew a wall. Thickness 0.3 at placement 1 put a dark rim along the bank.
  • shape_seed changes the border modestly. With the generation seed pinned, seeds 7 and 42 shared a palette and layout while all 16 tiles differed and the bank's edge wobbled differently. One comparison.
  • The walkable flags were accepted; whether a map or export reads them was not checked. They change no pixel, so PixelKiln keeps them out of the spec hash.
  • tile_strength, tileset_adherence and tileset_adherence_freedom are documented by PixelLab as having no effect on either endpoint. PixelKiln does not send them.

Not measured: 32px sets, a sidescroller's transition_reference_image (standard) and lower_reference_image (pro), transition_reference_image on a top-down set, and any of these options on a top-down pro set, which ignores the standard-only ones.

Sidescroller, measured

Superseded in November 2026: the model this section measured is retired; see Tileset options, November 2026 for current prices. The response shape below still holds.

One POST /create-tileset-sidescroller call, 16px tiles, transition_size: 0.25, lower_description "mossy stone bricks texture", transition_description "green grass texture", billed exactly 3 generations (balance 5107 to 5104). PixelLab's MCP tool quotes 2 or 3.

  • The body has no mode, view, upper_description, or shape controls. tile_size is 16 or 32 only, transition_size one of 0, 0.25, 0.5, 1. lower_base_tile_id is the only connection field.
  • Submit answers { tileset_id, background_job_id, status: "processing" }, with usage: null.
  • GET /tilesets/{id} (and /tilesets-sidescroller/{id}) returns the top-down shape: 16 tiles named wang_0 to wang_15, each with corners and pattern_4x4, images base64 inline. But tileset.terrain_types is ["central", "background"] while every corner still says "lower" (the platform) or "upper" (empty, transparent air; the all-upper tile is blank). pixelkiln records ["lower", "upper"] so its corner masks work.
  • metadata.terrain_ids has lower only, and metadata.view is "side". metadata.transition_size came back 0.0 although 0.25 was sent.
  • usage is null on the GET, so the billed amount comes from GET /background-jobs/{background_job_id} (usage.generations: 3.0).

A trimmed copy of that response is test/fixtures/tileset/sidescroller-get.json.

create-tiles-pro is a different shape, a single description plus style_images, tile_view, building_* fields for structures.

Its style_images is a fourth convention, and not the one two lines up: TilesProStyleImage is flat, with all three fields required.

// create-tiles-pro
{ "style_images": [ { "base64": "...", "width": 32, "height": 32 } ] }

Sending generate-with-style-v2's nested {image: {...}} here is rejected as an extra field. Passing style images at all makes the endpoint ignore tile_type and tile_view and copy the reference's tile geometry instead. That is the only way to land new art on an existing sheet's ground plane.

GET /tiles-pro/{id} carries no status field. It answers 423 while the set is still drawing and 200 with storage_urls when it is done, so the HTTP code is the status. Cost is reported at submit time and lands on the same canvas tiers as 1dir (10/15/25 since the October 2026 cut, 20/25/40 before; a 4-tile 16px set billed 10), but the canvas is tile size x variation count, not one sprite. A small tile in a large set still reaches the top tier.

All response shapes used by the client are validated at runtime. The TypeScript interfaces alone are not trusted at the HTTP boundary: missing ids, invalid object geometry, malformed tile URL maps, or balance fields with changed types produce an Invalid PixelLab response error before pipeline state is updated.

outline_mode defaults to outline, which draws a dark border around every tile. For ground tiles that is wrong: laid on a grid the borders read as quilting, with a seam at every cell edge. segmentation omits them and the same set tiles seamlessly, measured on a fairway-to-rough terrain set, where it was the difference between usable and unusable.

tile_feature and style_images are mutually exclusive. The API says "Connectable features (roads/tileset/building) cannot be combined with style tiles". So the geometry-anchoring trick above is unavailable for a connectable set, and its tiles land on whatever ground plane the view angle implies (measured: 32x24 with the diamond midline at y=7, against a 32x32 sheet wanting y=15).

tile_feature turns it from independent variations into a connectable set: roads (18-configuration path set), tileset (16-tile Wang corner set for a terrain transition; describe it as the transition, not one terrain), and building (floor/wall/doorway kit). These are sliced by index, so the returned order is load-bearing. They are structural multi-output results, not candidates to choose between: PixelKiln persists every URL in numeric order and labels the downloaded outputs tile-00, tile-01, … .

The completed response also carries tile_rules for connectable sets. Its placement contract is rule_type (edge, corner, or outline), arity (4 for square/isometric edges or corners, 6 for hex edges), connectivity (same/other), two terrain labels, and a tiles map of provider tile key to bitmask. Four-edge masks use N/E/S/W as bits 0/1/2/3. Four-corner masks use NW/NE/SW/SE as bits 3/2/1/0. Tiles absent from that map are stamp-only. PixelKiln stores the complete object in providerMetadata.pixellab.tileRules; exporters normalize the documented subset but retain the raw object in the generic file.

Given that color_image is honoured on pixflux but silently ignored on resize, verify the palette actually holds on a single tileset before committing to a set.