CLI reference › PixelLab utilities

estimate-skeleton

PixelLab only. Derives an 18-joint skeleton from an image via /estimate-skeleton. The image must be square at 16, 32, 64, 128, or 256 pixels, the sizes the endpoint takes; anything else is refused before the call. Same category as balance: a direct, un-budgeted account call outside the manifest/plan/lock pipeline — no manifest is read beyond locating .env.local, and nothing is written to a lockfile.

pixelkiln estimate-skeleton <image> [--out keypoints.json] [--frames 4] [--force]
pixelkiln estimate-skeleton <image> --custom [--description <text>] [--action <text>] [--direction south] [--view <camera>] [--out rig.json] [--frames 1]

The output is a whole keypoints file, the shape an animate-skeleton revision's keypointsFile must be (see Controlled asset revisions): the estimated pose as firstFrameKeypoints, and --frames copies of it (3–15, default 4) as the frames to move into the motion. It prints, or writes to --out; --out refuses to replace an existing file, which is usually hand edits, unless --force is given.

--custom calls PixelLab's /estimate-custom-skeleton (beta) instead, which builds a rig for whatever is in the picture: a staff, a cape, a hat, a tail, wings. --description says what the sprite is and --action what it will be animated doing, so the parts that move get joints; given "a wizard holding a staff" and "swinging the staff", it hung a three-joint staff from the wrist. --direction is the way the sprite faces (default south) and --view its camera (side, low top-down or high top-down). The image may be any size up to 256x256. It is a background job of about a minute, waited on here, and costs 1 generation. The file it writes also holds the rig (each joint's name, parent, side, and the humanoid joint it stands for, if any) and its kind (person, four-legged or other); its poses name the rig's joints, and --frames may be 1. See Skeletons and rigging.