> ## Documentation Index
> Fetch the complete documentation index at: https://docs.viggle.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# How V1 works

> The three ideas behind every Viggle API endpoint: jobs, reusable assets and artifacts, plus which endpoint reads back each ID.

Every V1 capability is built from three things. Once you know them, every endpoint reads the same way.

* Jobs. A `POST` starts asynchronous work and returns an ID, usually with `status: "queued"` (a scene task may already be `processing`). You read it back until it reaches `ready`, `failed` or `cancelled`.
* Reusable assets. Characters and motions are created once and used many times: in Video Remix renders, and as the source of 3D exports.
* Artifacts. A ready job or asset gives you files: MP4s, PNGs, `.vsplat`, GLB or FBX, and `.spz`. You download them from short-lived URLs.

```mermaid theme={null}
flowchart LR
  A[Your inputs<br/>prompt, image, video] -->|POST| J[Job<br/>vid_ anim_ render_ vsr_ img_ scn_]
  A -->|POST| S[Reusable asset<br/>char_ mot_]
  S -->|used by| J
  J -->|ready| F[Artifacts<br/>MP4, PNG, .spz]
  S -->|export| G[3D artifacts<br/>.vsplat, GLB, FBX]
```

## Jobs

A job is one piece of work: a video, an image set, an upscale, a scene task. Submitting it reserves credits and returns right away. Generation happens in the background, so you either poll the job or, for renders only, watch it over Server-Sent Events. A job that fails is refunded. [Task lifecycle](https://docs.viggle.ai/v1/concepts/task-lifecycle.md) covers statuses, polling and errors.

Jobs belong to the API key that created them, except scene tasks, which belong to the account. See [Authentication](https://docs.viggle.ai/v1/authentication.md#what-a-key-can-see).

## Reusable assets

A character (`char_`) is a person or creature built from one image. A motion (`mot_`) is movement taken from a video, or generated from text. Both are assets: they keep their ID. A 2D character or motion belongs to your account and can be used by any of its keys; a 3D-only asset and every 3D export stay with the key that created them.

* For Video Remix, save a character and a motion once, then reference them by ID in as many renders as you like instead of uploading the same files again. See [Reusable characters and motions](https://docs.viggle.ai/v1/video/reusable-characters-and-motions.md).
* For 3D, the `type` you create an asset with decides whether JST-2 also builds a 3D version: `vsplat` for a character, `glb` for a motion, or `all` for both 2D and 3D. The 3D files come from the asset's export endpoint. See [3D characters](https://docs.viggle.ai/v1/3d/characters.md) and [3D motion](https://docs.viggle.ai/v1/3d/motion.md).

An `image` or `motion_video` you send straight to `POST /v1/renders` is a one-time input. It does not create an asset.

## Artifacts

Artifacts are the files you came for. They are served from URLs that expire, so download them and keep your own copy.

| Artifact | Where it appears | URL lifetime |
| - | - | - |
| MP4 from Viggle H3, Viggle Remake or upscale | `video_url` on `GET /v1/videos/{video_id}` | 1 hour, re-signed on every read |
| MP4 and alpha MP4 from Video Remix | `video_url`, `alpha_url` on `GET /v1/videos/{render_id}` | CDN URL; use `GET /v1/renders/{render_id}/download` for a redirect |
| PNGs from Viggle Image | `images[].url` on `GET /v1/images/{image_id}` | 1 hour, re-signed on every read |
| `.vsplat`, GLB, FBX | The character or motion export endpoint | 1 hour, re-signed on every call |
| `.spz`, panorama, preview | `result` on `GET /v1/scenes/{task_id}` | 3 hours |

Job results are deleted 24 hours after the job finishes. 3D exports stay until you delete the asset. [Limits and retention](https://docs.viggle.ai/v1/concepts/limits-and-retention.md) has the details.

## IDs and where to read them back

IDs are typed by prefix. Store them exactly as returned, and never use an ID from one family where another is expected.

| Prefix | What it is | Created by | Read it back with |
| - | - | - | - |
| `char_` | Character asset | `POST /v1/characters` | [`GET /v1/characters/{character_id}`](https://docs.viggle.ai/v1/api-reference/characters/get-a-character); 3D file from [`/export`](https://docs.viggle.ai/v1/api-reference/characters/export-a-3d-character) |
| `mot_` | Motion asset | `POST /v1/motions`, `POST /v1/motions/import` | [`GET /v1/motions/{motion_id}`](https://docs.viggle.ai/v1/api-reference/motions/get-a-motion); 3D files from [`/export`](https://docs.viggle.ai/v1/api-reference/motions/export-a-3d-motion) |
| `render_` | Video Remix render | `POST /v1/renders` | [`GET /v1/videos/{video_id}`](https://docs.viggle.ai/v1/api-reference/videos/get-a-video), or watch with [`/v1/renders/{render_id}/events`](https://docs.viggle.ai/v1/api-reference/renders/watch-a-render) |
| `vid_` | Viggle H3 video | `POST /v1/videos` | [`GET /v1/videos/{video_id}`](https://docs.viggle.ai/v1/api-reference/videos/get-a-video) |
| `anim_` | Viggle Remake video | `POST /v1/videos` with a driving video | [`GET /v1/videos/{video_id}`](https://docs.viggle.ai/v1/api-reference/videos/get-a-video) |
| `vsr_` | FlashVSR upscale | `POST /v1/videos/super-resolution` | [`GET /v1/videos/{video_id}`](https://docs.viggle.ai/v1/api-reference/videos/get-a-video) |
| `img_` | Viggle Image job | `POST /v1/images` | [`GET /v1/images/{image_id}`](https://docs.viggle.ai/v1/api-reference/images/get-an-image-job) |
| `scn_` | Scene task | `POST /v1/scenes/*` | [`GET /v1/scenes/{task_id}`](https://docs.viggle.ai/v1/api-reference/scenes/get-a-scene-task). The ID embeds your `sessionId`; keep it whole |

`GET /v1/renders/{render_id}` does not exist: read renders through `GET /v1/videos/{video_id}`.

> [!NOTE]
>
> **Lists don't show everything.** [`GET /v1/videos`](https://docs.viggle.ai/v1/api-reference/videos/list-videos) merges renders, Viggle H3 and Viggle Remake videos, but not upscales. `GET /v1/characters` and `GET /v1/motions` return up to 100 assets and skip 3D-only characters (`type=vsplat`), 3D-only motions (`type=glb`) and motions generated from text. Keep the IDs you get back from create calls.

## Next steps

> [card] [Task lifecycle](https://docs.viggle.ai/v1/concepts/task-lifecycle.md)
>
> Statuses, polling, cancelling and failures.

> [card] [Limits and retention](https://docs.viggle.ai/v1/concepts/limits-and-retention.md)
>
> File sizes, durations and how long results stay.

> [card] [Models](https://docs.viggle.ai/v1/models.md)
>
> What each model is best at.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.