Skip to main content
Video Remix puts a character on a motion. You send one character image and one motion video (a dance, a meme, a performance), and JST-1 renders that character doing the same moves. Output is an MP4, with an optional alpha video for compositing. Use it for character dances, meme templates and mascot videos where the motion comes from an existing clip. To replace the people inside a video while keeping its scene, use Viggle Remake instead. The API resource is a render: you create it with POST /v1/renders, its ID starts with render_, and you read it back with GET /v1/videos/{render_id}.

What you send

One character source and one motion source, as multipart/form-data.

Media limits

A saved Character or Motion keeps working after its uploaded source is deleted (1 hour after processing), as long as you leave mode unset and render with the same model it was created with. See Manage saved assets.

Price

$0.01 (1 credit) per character, per second of finished video, with a minimum of 0.5 credit ($0.005) per render.
A 10-second render of one character costs 10 credits ($0.10). Mapping 3 people in the same 10-second motion costs 30 credits ($0.30).
  • At create, the service reserves the motion’s measured length × characters, or 10 seconds when the length isn’t known yet. If your balance can’t cover it, the request fails with 402 INSUFFICIENT_CREDITS.
  • When the render is ready, the charge is settled to the finished length.
  • A failed or cancelled render is refunded in full.

Make your first render

Export VIGGLE_API_KEY and run one of these as-is. They use a sample character image and a 6.88-second sample dance hosted by Viggle, so the render costs about 6.88 credits ($0.07). Each script polls every 5 seconds and prints the video URL. The cURL version needs jq.
To upload local files instead, send [email protected] and [email protected] in place of the URL fields. To resend a request safely after a network error, add an Idempotency-Key header. For 24 hours, a second request with the same key never starts a second render. With saved IDs (character_id, motion_id) or a draft, it returns the original render. With uploaded files or URLs, it answers 409 IDEMPOTENCY_KEY_REUSED instead; find the original in GET /v1/videos.

Track, download and cancel

When the render is ready, video_url holds the finished MP4 (and alpha_url the alpha video, for transparent). These are CDN links, not one-hour signed links. Results are deleted 24 hours after the render finishes: after that the URLs read null and download answers 404 RESULT_EXPIRED. Only the API key that created a render can read, download or cancel it.

Watch with Server-Sent Events

Instead of polling, hold one connection open:
The first event is a snapshot of the current state. After that you get an event named after each status change (queued, processing, ready, failed, cancelled), progress events when progress or stage moves, and a heartbeat every 12 seconds. The stream closes after a terminal status. Each event’s data is JSON with status, stage, progress, video_url, alpha_url and error.
The stream does not replay missed events, and Last-Event-ID is ignored. If the connection drops, reconnect: you get a fresh snapshot of the current state.

Direct upload vs draft

There are two ways to submit a render. Both cost the same and produce the same render.

Draft flow

1

Prepare

Describe each input. kind is upload (with filename, content_type and bytes, plus an optional sha256), url (an https:// URL), or asset (a saved char_ or mot_ ID). To use a Viggle motion template, import it first and pass the mot_ ID as an asset. Prepare is free.
The response has a draft_id and one upload plan per upload input:
2

Upload

PUT the exact bytes to each uploads[].url with its required_headers, before expires_at (one hour). Upload limits are the same as direct: 20 MiB for the character, 100 MiB for the motion.
3

Create

Send the draft_id as JSON with an Idempotency-Key. The service checks that each upload arrived with the declared size (and sha256, if you gave one), then starts the render.
It answers 202 with a render_ ID. Track it like any other render.
A draft lasts one hour. Prepare also takes an optional output object: background_mode (original, green, white or transparent). Only the source aspect ratio is supported.

Multi-person renders

A Motion imported from a multi-person Viggle template keeps one track per person, keyed by that person’s UUID in the template. Send character_mapping to choose which saved Character replaces each person:
  • Keys are the Motion’s track IDs. An unknown key is rejected with 400, and the error message lists the valid keys.
  • Values are Character IDs you own that are ready.
  • character_id (or image / image_url) is still required. People you leave out of the mapping are rendered with it.
  • Each mapping entry counts as one character in the price.

Use a Viggle motion template

Viggle motion templates are ready-made motions, including multi-person ones. 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 render can’t take a template ID directly: import the template once with POST /v1/motions/import and {"template_id": "..."}. You get a reusable mot_ ID to pass as motion_id (or as an asset in a draft), which is also what multi-person renders need. Importing costs 1 credit per second of the template, at least 1 credit. See Import a motion template.

Next steps

Reusable characters and motions

Save a character or motion once and render it many times.

Transparent output

Get an alpha video for compositing, or a solid background.

Create a render (API reference)

Every field for POST /v1/renders.

Prepare a render (API reference)

The draft request and upload plans.