Skip to main content
This guide makes one 5-second video with Viggle H3 from a text prompt. It needs no input files, so you can run it as soon as you have a key. Every other capability follows the same four steps.
**New accounts get 100 free credits ($1.00).** This example costs 10 credits ($0.10). Free credits land in your personal wallet; a key created under an organization spends the organization’s credits instead. See Pricing.
1

Get an API key

Create a key in the Viggle Dashboard. Keys start with sk-. Keep it in a server-side environment variable and never ship it in browser or mobile code.
2

Submit a job

POST /v1/videos with a prompt and a quality starts a Viggle H3 job. Send the body as multipart/form-data. The call returns right away with a vid_ ID and status: "queued".
3

Poll until it finishes

Read GET /v1/videos/{video_id} every 5 seconds. Stop when status is ready, failed or cancelled. A failed job carries an error object and is refunded.
4

Download the video

When the job is ready, download video_url. The link lasts one hour and every read returns a fresh one. The file is deleted 24 hours after the job finishes, so store your own copy.

Complete script

Each script runs the four steps and saves video.mp4. The cURL version needs jq; Node.js needs version 20 or later; Python needs requests.
The defaults give a 768p, 16:9 video with native audio and enhance on, which costs 2 credits per second: 10 credits ($0.10) for 5 seconds. quality=high costs the same and takes longer. Generate video lists every parameter and rate.
If something goes wrong, read error.code first. A missing or wrong key answers 401 UNAUTHENTICATED. If your balance is too low, a Viggle H3 job is still accepted and then ends failed with INSUFFICIENT_CREDITS. See Errors.

Try another capability

The same submit, poll and download loop works everywhere. Only the endpoint, the inputs and the ID prefix change.

Replace people in a video

Viggle Remake swaps up to 10 people in your clip and keeps the camera and timing.

Put a character on a motion video

Video Remix (JST-1): one image plus a dance or motion clip, with optional alpha output.

Animate a first frame

Viggle H3 from a still image, keeping its look.

Upscale a video 2x

FlashVSR doubles the resolution of any clip.

Create a rigged 3D character

JST-2 turns one image into a .vsplat character.

Turn video or text into 3D motion

JST-2 exports GLB or FBX on Mixamo and MetaHuman rigs.

Build a 3D scene

An explorable .spz scene from a prompt or a panorama.

Generate images

1–6 PNGs from a prompt and optional reference images.