Post-process

Auto-rig & Animate

POST/v1/assets/{id}/animate

Auto-rig a humanoid — or, with PB Animation, a four-legged or any other character — and, optionally, retarget a preset clip onto it. No manual weight painting.

Async returns an id — poll or webhookTypical ~2–4 minCost varies by engine

The {id} in the path is the source model. The result — a rigged and, for -rig-animate, animated mesh — is written to a new asset.

Parameters

ParameterDescription
engineOPTIONAL
string
Which rig engine — e.g. tripo-rig-animate, tripo-rig, meshy-rig-animate, meshy-rig, pb-rig, pb-rig-animate, pb-retarget. The -rig engines rig only; the -rig-animate engines rig and apply a preset clip; the -retarget engines play a clip on an asset the same engine already rigged (the {id} is that rigged asset). The tripo3-rig · tripo3-rig-animate · tripo3-retarget engines rig with Tripo’s newer v3.0 rig model: humanoids only, and 11 motions (GET /v1/animations?engine=tripo3) — the tripo-* engines keep Tripo’s full motion library. Omit for the default (tripo-rig). List and credit cost: GET /v1/models?category=animate.
presetOPTIONAL
string
Animation preset id for the -rig-animate and -retarget engines (e.g. walk), up to 64 characters. Pick it from GET /v1/animations for the same engine — the engine prefix is added for you, and one carrying another engine's prefix (preset:, meshy:, pb:) returns 400. PB engines take only the ids GET /v1/animations?engine=pb lists — any other returns 400. pb-rig-animate and pb-retarget need one; pb-rig rigs only and takes none. To rig only, use a -rig engine — a Tripo or Meshy -rig-animate engine without a preset rigs only too, but at the -rig-animate price.
bodyOPTIONAL
string
PB Animation only — what you are rigging: humanoid (default), quadruped (four-legged) or other. Taken by pb-rig and pb-rig-animate, which make a new rig. Any other engine returns 400: Tripo and Meshy rig humanoids only, and pb-retarget keeps the body the source was rigged with. For now quadruped and other are rig-only — use pb-rig (see PB Animation).
licenseOPTIONAL
string
Usage rights for the result. Defaults to private (all-rights-reserved).
callbackUrlOPTIONAL
string
Push the finished asset to your server instead of polling — see Webhooks.
Source must be riggable Auto-rig needs a clear humanoid or animal form. Props, scenery and abstract shapes fail with 400 and error.code 13008.

Request

request
curl -X POST https://api.picoberry.ai/v1/assets/019…/animate \
  -H "Authorization: Bearer pb_live_xxx" -H "Content-Type: application/json" \
  -d '{"engine":"tripo-rig-animate","preset":"walk"}'
requests.post(f"{BASE}/v1/assets/{id}/animate", headers=headers,
    json={"engine": "tripo-rig-animate", "preset": "walk"})
await fetch(`${BASE}/v1/assets/${id}/animate`, { method: "POST",
  headers: { ...headers, "Content-Type": "application/json" },
  body: JSON.stringify({ engine: "tripo-rig-animate", preset: "walk" }) });

PB Animation

PicoBerry's own rigger names the bones for the body you pick with body, so it rigs more than humanoids:

PB motions come from GET /v1/animations?engine=pb — the same list as on picoberry.ai. A motion that isn't on it returns 400 before any credits are spent.

four-legged rig
curl -X POST https://api.picoberry.ai/v1/assets/019…/animate \
  -H "Authorization: Bearer pb_live_xxx" -H "Content-Type: application/json" \
  -d '{"engine":"pb-rig","body":"quadruped"}'
requests.post(f"{BASE}/v1/assets/{id}/animate", headers=headers,
    json={"engine": "pb-rig", "body": "quadruped"})
await fetch(`${BASE}/v1/assets/${id}/animate`, { method: "POST",
  headers: { ...headers, "Content-Type": "application/json" },
  body: JSON.stringify({ engine: "pb-rig", body: "quadruped" }) });

Animation presets

GET/v1/animations?engine=tripo|meshy|pb

List the preset clips available for an engine. Presets are engine-specific — a Tripo preset won't run on a Meshy or PB engine, so always pick from the same engine you animate with.

request
curl "https://api.picoberry.ai/v1/animations?engine=tripo" \
  -H "Authorization: Bearer pb_live_xxx"
requests.get("https://api.picoberry.ai/v1/animations", headers=headers,
    params={"engine": "tripo"})
await fetch(`${BASE}/v1/animations?engine=tripo`, { headers });
response · 200
{ "success": true, "data": [
  { "id": "walk", "name": "Walk", "category": "Movement" },
  { "id": "run", "name": "Run", "category": "Movement" },
  { "id": "slash", "name": "Slash", "category": "Combat" }
] }

Each preset carries an id (pass it as preset on /animate), a display name, and a category — Movement, Combat, Emotion, Dance, Sports, Daily, or Gesture.

With engine=pb you get PB Animation's motions — the same list picoberry.ai shows, so motions it hides are left out here too — each with a body: the rig the motion plays on. Every motion listed is humanoid for now, as four-legged motions aren't available yet. PB motions have categories of their own (Walk, Run, Knight, Dance …).

response · 200 · engine=pb
{ "success": true, "data": [
  { "id": "walk", "name": "Walk", "category": "Movement", "engine": "pb", "body": "humanoid" },
  { "id": "run", "name": "Run", "category": "Movement", "engine": "pb", "body": "humanoid" }
] }

Response

response · 200
{ "success": true, "data": { "id": "019…", "taskStatus": 0 } }

Poll GET /v1/assets/{id} until taskStatus is 2; the finished files.model carries the rig and any baked clip. See Async & polling.

Presets are engine-specific A Tripo preset will not run on a Meshy or PB engine, nor the other way round. Pick presets from the same engine you animate with.