Skip to main content
Every generation in the Viggle API is a job. The POST returns an ID right away, usually with status: "queued" (a scene task may already be processing); the work happens in the background. You read the job back until it reaches a terminal status, then download the result.

Statuses

Which jobs can reach cancelled:
  • Video Remix renders, when you cancel them with DELETE /v1/renders/{render_id}.
  • Viggle H3, Viggle Remake, upscale and scene jobs, only if Viggle stops them. You can’t cancel these yourself.
  • Images, characters and motions never show cancelled.
Characters and motions can also report pending: created, not yet queued. Treat it like queued. Treat any status you don’t recognise as still in progress, and stop only on ready, failed or cancelled.

Poll for the result

Read the job every 3–5 seconds while it is queued or processing.
Download as soon as a job is ready. Every result is deleted 24 hours after the job finishes; the job record stays readable, with null URLs. See Limits and retention.

Watch a render live

Video Remix renders also stream their lifecycle over Server-Sent Events at GET /v1/renders/{render_id}/events. Every other job is poll-only.
  • The first event is snapshot, with the render’s current state.
  • A status change arrives as an event named after the new status (processing, ready, failed, cancelled). Other changes arrive as progress.
  • A heartbeat event arrives every 12 seconds.
  • The stream closes after a terminal status.
The stream keeps no history. If the connection drops, reconnect and treat the new snapshot as the current state; Last-Event-ID is not used. You can always fall back to GET /v1/videos/{render_id}. See Watch a render.

Cancel a render

DELETE /v1/renders/{render_id} cancels a render that is still queued or processing and releases its credit reservation. It answers 200 with the render object. A render that has already finished is returned unchanged. This is the only cancel operation in the API.
See Cancel a render.

When a job fails

A 200 from a status endpoint can describe a failed job. Its error field uses the same shape as HTTP errors:
  • code tells you what happened. Program against it, not against message.
  • retryable is true for temporary failures: PROCESSING_FAILED, INTERNAL_ERROR, SERVICE_BUSY, ALL_WORKERS_BUSY, WORKER_STOPPED and TASK_FAILED. Submit the same request again.
  • remediation.action is retry when the job is retryable and none otherwise. For none, change the input first: for example, CONTENT_POLICY_VIOLATION fails again with the same prompt or media, and INSUFFICIENT_CREDITS needs more credits.
For a 3D character or motion, the failure is on the 3D part: read vsplat.error or glb.error. The top-level error stays null. Errors lists every code.

Refunds

You never pay for a job that doesn’t finish. A failed or cancelled job has its whole reservation released automatically; there is nothing to claim. A retry is a new job with its own reservation, so a failed attempt is never charged twice. See Pricing.

Retry a submit safely

If a POST times out before you get an ID, you can’t tell whether the job was created.
  • Video Remix: send an Idempotency-Key header (1–255 characters) on POST /v1/renders. Repeating the request with the same key and body within 24 hours returns the original render instead of a new one. The same key with a different body answers 409 IDEMPOTENCY_KEY_REUSED. Keys are scoped to your API key, and the JSON form of the endpoint requires one.
  • Characters and motions: for type=vsplat characters, type=glb motions and motions from text, a task_id you choose must be unique. Reusing one answers 409 ID_ALREADY_EXISTS, so you know the first attempt went through. It does not return the original asset. render and all assets ignore task_id, so a retry creates a new asset.
  • Everything else has no idempotency key. Before resubmitting, check GET /v1/videos or your logs (with X-Request-Id) for the job.

Next steps

Errors

Every code and what to do about it.

Limits and retention

How long results, URLs and job records last.

How V1 works

Which endpoint reads back which ID.