Create a motion
The request body carries one of two shapes and the Content-Type
selects between them.
multipart/form-data supplies the source video either as an
uploaded file or as motion_video_url. type selects what gets
produced from it: render (default, unchanged from before type
existed) is the render-ready 2D motion and has no separate
preprocessing charge; glb additionally extracts a 3D skeletal
animation and costs 5 credits per second of source video, rounded
up; all produces both and is billed for both.
application/json generates the 3D animation from a text prompt
instead of a video — there is no render-ready 2D counterpart for a
text-generated motion, so this shape always produces type: glb
only. This replaces the old POST /v1/animations/generate, and
costs a flat 10 credits regardless of duration_seconds.
Insufficient credits: a 3D (glb) extraction or a text-generated
motion is accepted and then fails with INSUFFICIENT_CREDITS.
render motions are shared across the account. A glb or
text-generated motion, and every motion export, is visible only to
the API key that created it; other keys get 404 MOTION_NOT_FOUND.
Either shape lands on the same resource: poll
GET /v1/motions/{motion_id} until status is ready, then fetch
the glb’s download URL, if any, from
GET /v1/motions/{motion_id}/export.
Authorizations
Headers
Body
Supply the source video as exactly one of motion_video,
motion_video_url, or the backward-compatible video_url alias.
type selects what gets produced from it — see
createMotion. The fields below type apply only when it is
glb or all.
This is the complete public contract; staged paths, output locations,
extraction templates, character PKLs, joint configuration, and
tracking masks are service-managed.
Client-supplied task ID for type=glb. For type=all, the
service keys the companion extraction with the Motion ID.
Reusing an ID answers 409 ID_ALREADY_EXISTS; it does not replay
the original response. 1–200 characters: letters, digits, _,
. and -, starting with a letter or digit.
1 - 200^[A-Za-z0-9][A-Za-z0-9_.-]*$Response
Motion queued.
A character or motion asset. Both resources share one wire shape.
progress and error are always null, including on a failed
asset: read status to detect failure, and vsplat.error or
glb.error for extraction failures.
type reflects what was requested at creation. For characters it is
render, vsplat, or all; for motions it is render, glb,
or all. Assets created before type existed report render.
vsplat and glb carry that extraction's own status — never
download URLs, which come from GET /v1/characters/{character_id}/export
or GET /v1/motions/{motion_id}/export instead — and are null unless
type requested that extraction. On an all asset, the top-level
status only reaches ready once both the 2D render and the 3D
extraction have; if either fails, the top-level status is failed
while the sub-object's own status still shows which one it was.