Skip to main content
JST-2 produces 3D skeletal animation two ways: it captures the movement of a person in a video, or it generates a movement from a text prompt. Either way you get a Motion (mot_) that you export as GLB or FBX, rigged for Mixamo, MetaHuman or a Viggle 3D character. Use it to animate game characters, previs shots or splat characters without a mocap suit.

Pick a source

All three create a Motion. Only the first two produce 3D files.
A Motion generated from text, or created from video with type=glb, is 3D only. It cannot drive a Video Remix. To reuse a video’s motion in Video Remix as well, create it with type=all.

Parameters

From video

Send multipart/form-data (a JSON body also works).

From text

Send application/json. Unknown fields are rejected with 400. Every field is in the API reference: create a motion and import a motion template.

Price

  • From video: ceil(source seconds) × 5 credits. A 10.1-second clip bills as 11 seconds: 55 credits ($0.55). type=all costs the same, because the 2D motion is free. enable_smoothing, target_fps and render_mp4 don’t change it.
  • From text: 10 credits ($0.10) per request, whatever duration_seconds you ask for.
  • Template import: 1 credit per second of the template, not rounded, minimum 1. A 7.5-second template costs 7.5 credits ($0.075).
A failed motion is refunded.
Capture from video and text-to-motion are accepted even when your balance cannot cover them. The Motion is queued, then ends failed with glb.error.code: "INSUFFICIENT_CREDITS". Template import checks the balance up front and answers 402 INSUFFICIENT_CREDITS.

Generate, wait and export

This script generates a 5-second motion from text, polls every 5 seconds, then saves the MetaHuman body rig as GLB. It needs no input files.
To capture motion from a video instead, change only the create call. Poll and export are the same:

Get the result

Poll GET /v1/motions/{motion_id} until status is ready or failed. A failure’s reason is in glb.error, not the top-level error. A ready Motion lists glb.skeletons: ["mixamo", "metahuman"]. Then call GET /v1/motions/{motion_id}/export with download_type=glb or fbx. The format applies to all three rigs, which come back together: If you created the Motion with render_mp4=true, the export also returns mp4_url, an MP4 preview of the Mixamo animation, whatever download_type you ask for. Otherwise mp4_url is null. There is no rig for a character created with joint_set=expression (119 joints); create characters with body or full to play these clips. Both formats are generated up front, so switching download_type never waits. Each link lasts one hour and every export call signs a fresh one. The files are part of the Motion and stay available until you delete it (DELETE /v1/motions/{motion_id}, 204 with an empty body). A motion from text or type=glb, and the export of any motion, is visible only to the API key that created it; other keys get 404 MOTION_NOT_FOUND. Export what you need before you rotate that key. Motions from text or type=glb don’t appear in GET /v1/motions; keep their IDs.

Import a motion template

POST /v1/motions/import copies a Viggle motion template into a Motion you own, ready for Video Remix. Find template IDs on viggle.ai: an official template from the Viggle template catalog, or a template made in the Viggle app (its ID may start with 3s; send it as copied). The API has no endpoint that lists templates. A multi-person template keeps one track per person, so each can get its own character through character_mapping in a Video Remix render.
An unknown template answers 404. A template that has not finished person tracking answers 400. Poll GET /v1/motions/{motion_id} for the name and status.

Next steps

3D characters

Rigged .vsplat characters to play these clips on.

Unity quickstart

Import the FBX and drive a splat character.

API reference

Every field of create, import and export.