Generating
Generate an emote
Produces an emote: a player animation (a wave, a bow, a dance) played in game with /emote. This is a slow one: it is keyframed by the same builder that makes models, which takes minutes. Up to 500 characters.
cast is decided here, not read from the prompt: an emote made for one performer comes back solo however the prompt is worded. loop is the same. Change the motion afterwards with POST /packs/{pack}/assets/emote/{id}/edit.
/packs/{pack}/emotesPath parameters
packstringrequiredThe pack's slug, as returned by the packs endpoints.
Body
promptstringrequiredmax 500 charactersThe motion you want.
namestringYour label. Falls back to the prompt.
castinteger1–5default 1How many players perform it together.
loopbooleandefault falseWhether it plays on repeat until stopped.
Response · 202
Accepted. The work runs asynchronously, so poll job until it leaves generating.
idstringrequiredIts id within the pack.
typestringrequiredWhat is generating.
Options: emote
statusstringrequiredAlways generating: nothing is finished when this returns.
Options: generating, ready
packstringrequiredThe pack it was written into.
jobstringrequiredPoll this at GET /jobs/{job} until it leaves generating.
Error codes
Branch on error.code, never on the message.
invalid_request400Something in the body or query is wrong. message says what.
invalid_api_key401The key isn't one of ours, or it has been revoked.
missing_api_key401No Authorization: Bearer header was sent.
wrong_key_kind401An MCP key sent to the REST API, or an API key sent to the MCP server. Each only opens its own.
insufficient_credits402Not enough AI Credits to run this. Nothing was started or charged.
account_suspended403The account is suspended, so its keys open nothing. message says until when, if the suspension has an end date.
asset_limit_reached403The pack is at its asset limit.
forbidden403Valid key, but not permitted to do this in this pack.
plan_required403The key is valid, but its account is on Starter. The API needs a paid plan.
not_found404No such pack, asset or job.