Basics
- Base URL:
https://apis.viggle.ai/v1. REST over HTTPS, JSON responses. - Auth:
Authorization: Bearer $VIGGLE_API_KEYon every request. Keys start withsk-. Server-side only. Missing or bad key:401 UNAUTHENTICATED. - Billing: credits, 1 credit = $0.01. New personal accounts get 100 free credits. Reads, lists, exports and deletes are free. Failed and cancelled jobs are refunded automatically. Balance:
GET /v1/creditsreturns{"balance": number}. - There is no official SDK. Use plain HTTP (
fetch,requests,curl). - There are no webhooks. Poll.
The job model
POSTcreates a job and returns{"id": "...", "status": "queued", ...}right away.- Poll the matching
GETevery 3–5 s untilstatusisready,failedorcancelled. Treat any other status as in progress. - On
ready, download the output URL immediately and store your own copy. - On
failed, readerror.code,error.retryableanderror.remediation.action(retryornone). For a 3D character or motion, the failure is invsplat.errororglb.error; the top-levelerrorstaysnull.
char_) and motions (mot_) are reusable assets. 2D ones are owned by the account; type=vsplat characters, type=glb and text-generated motions, and every /export are owned by the API key that created them (other keys get 404). Every other ID is a job owned by the API key that created it (scenes excepted: account-owned).
Endpoints and prices
Full parameters:
https://docs.viggle.ai/v1/api-reference/overview.
Top mistakes
- Accidentally switching
POST /v1/videosto Remake. Anydriving_video*orcharacter_image*field turns the request into Viggle Remake, a different model and price. To animate a still with Viggle H3, sendfirst_frame_imageorfirst_frame_image_url(and optionallylast_frame_image*), notcharacter_image. Never sendqualityon a Remake request: it is rejected. A Remake request without a driving video is rejected with400too. - Sending urlencoded or JSON to Viggle H3.
POST /v1/videosfor H3 requiresmultipart/form-data. In Pythonrequests, pass fields throughfiles={"prompt": (None, "...")};data=alone sends urlencoded and fails with400. - Treating
200 queuedas paid. Viggle H3, upscale, 3D characters, 3D motion from video and motion from text are accepted even if the balance is too low, then endfailedwithINSUFFICIENT_CREDITS. Remake, renders, images, scenes, 2D characters and motion template imports answer402at submit instead. - Caching output URLs. H3, Remake, upscale, image and export URLs last 1 hour and are re-signed on every read; scene URLs last 3 hours. Read the job again for a fresh URL.
- Downloading too late. All job results are deleted 24 hours after the job finishes (3D exports of characters and motions stay until you delete the asset). The job record stays readable afterwards, with null URLs, so download as soon as a job is
ready. - Using snake_case on scenes.
/v1/scenes/*bodies and responses are camelCase:sessionId,panoramaUri,referenceBatchIds,queuePosition,createdAt. Unknown fields are rejected. One running task persessionId(a second answers409). - Assuming one character per render. Video Remix supports several: map each person (track ID) of a multi-person motion to a character with
character_mapping(a JSON object sent as a string). Billing counts one character per mapping entry. Remake takes up to 10 character images. - Reading renders from
/v1/renders/{id}. That GET does not exist (405). Read every video job, renders included, withGET /v1/videos/{id}. - Expecting to cancel everything. Only renders can be cancelled:
DELETE /v1/renders/{render_id}(refunds). Other jobs run to completion. - Expecting lists to be complete.
GET /v1/videosomits upscales.GET /v1/charactersandGET /v1/motionscap at 100 and skip 3D-only characters, 3D-only motions and text motions. Store the IDs you create. - Retrying blindly. Retry only when
error.retryableistrue, with exponential backoff.429 RATE_LIMITEDis a brief credit-system contention on Remake, images and scenes, not a quota; there is no per-account rate limit. UseIdempotency-KeyonPOST /v1/rendersto make submits safe to repeat. - Using one key’s job ID with another key. Jobs are visible only to the key that created them (
404otherwise).
Limits worth knowing
- Any input video: at most 100 MiB, 0.5–600 s, at least 64×64, even dimensions.
- H3:
duration_s5–15; up to 6 reference images and 1 reference video; references can’t be combined with frames. - Remake: driving video 5–16 s (
normal,planner) or 5–60 s (agent); up to 10 images, uploads 20 MiB each;https://URLs only; output 768p. - Images: up to 8 reference images; prompt up to 4,000 characters.
- Text-to-motion:
textup to 400 bytes;duration_seconds3–60; unknown JSON fields rejected.