> ## 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.

# Limits and retention

> Media limits per capability, concurrency and 429 behaviour, how long results, URLs and job records last, and upload windows.

This page collects the numbers you need when you build on the Viggle API: what each endpoint accepts, how much you can run at once, and how long you have to collect your results.

## Media limits

### Video

| Capability | Inputs | Limits |
| - | - | - |
| [Viggle H3](https://docs.viggle.ai/v1/video/generate-video) | `prompt`, frames, references | `duration_s` 5–15. Frame and reference images up to 20 MiB as uploads, 30 MiB by URL or `data:` URI. Up to 6 reference images and 1 reference video. References can't be combined with frames, and a last frame needs a first frame. `quality=ultrafast`: `480p` or `768p` only, no `watermark`, reference video 2–15 s |
| [Viggle Remake](https://docs.viggle.ai/v1/video/remake.md) | Driving video, character images | Driving video 5–16 s for `normal` and `planner` (checked exactly, so 16.2 s is rejected), 5–60 s for `agent` (whole seconds, so 60.9 s counts as 60). Up to 10 character images; uploads up to 20 MiB each (image URLs aren't size-checked by the API). URLs must be `https://`. JSON bodies up to 1 MiB |
| [Video Remix](https://docs.viggle.ai/v1/video/video-remix) | Character image, motion video | Character image upload up to 20 MiB (an `image_url` isn't size-checked by the API). Motion video as below |
| [Upscale](https://docs.viggle.ai/v1/video/upscale.md) | One video | As below. Output is always 2x |

Every input video (H3 reference, Remake driving video, Video Remix motion, upscale source, 3D motion source) must be:

* at most 100 MiB
* 0.5–600 seconds long, unless the capability sets a narrower range
* at least 64×64 pixels, with even width and height
* a decodable video file in a common container (MP4, MOV or WebM recommended)

### 3D and images

| Capability | Limits |
| - | - |
| [3D characters](https://docs.viggle.ai/v1/3d/characters.md) | One image; uploads up to 20 MiB (an `image_url` isn't size-checked by the API). `enhance_prompt` up to 1,000 characters |
| [3D motion](https://docs.viggle.ai/v1/3d/motion.md) | From video: the video limits above. From text: `text` up to 400 bytes, `duration_seconds` 3–60 (default 5), `guidance_scale` 0–30. Unknown JSON fields are rejected |
| [3D scenes](https://docs.viggle.ai/v1/3d/scenes.md) | JSON bodies up to 1 MiB; multipart bodies up to 81 MiB in total. `sessionId` 1–128 characters of `A-Z a-z 0-9 _ -`. Panorama file up to 50 MiB (JPEG, PNG, WebP). `prompt` up to 1,000 characters. Up to 8 reference images (files up to 10 MiB each). `referenceBatchIds`: 1–35. One running task per `sessionId`; a second answers `409` |
| [Viggle Image](https://docs.viggle.ai/v1/image/viggle-image.md) | `prompt` up to 4,000 characters. `n` 1–6. Up to 8 reference images, up to 24 MiB each, with a long-to-short side ratio of at most 8. Jobs time out after 15 minutes of running |

Input images can be JPEG, PNG, WebP, GIF, BMP, TIFF or HEIC. Images with a long edge of 3840 px or more, or a short edge of 2160 px or more, are scaled down to fit 1920×1080 (1080×1920 for portrait images), keeping their shape. Media URLs must be public `http(s)` addresses; Viggle Remake requires `https://`.

## Concurrency and 429

There is no per-account rate limit and no per-account cap on jobs in flight. Submit as many jobs as you need; they wait in a queue when capacity is busy. Viggle H3 and Viggle Remake report `queue_position` and `estimated_wait_seconds` on `GET /v1/videos/{video_id}`, and scene tasks report `queuePosition`.

Capacity is shared across all customers, so wait times grow under heavy load. A create call can also be refused for a moment while the credit system is busy:

| Endpoint | Busy answer |
| - | - |
| Viggle Remake, Viggle Image, scenes | `429 RATE_LIMITED`, `retryable: true` |
| Video Remix | `500 INTERNAL_ERROR`, `retryable: true` |
| 2D characters (`type=render`), motion template import | `400 INVALID_REQUEST` |

Retry these with exponential backoff, including the `400` from those two endpoints when the request itself is valid (for example 1 s, 2 s, 4 s, up to about 30 s). A `503 SERVICE_BUSY` is also retryable. See [Errors](https://docs.viggle.ai/v1/production/errors.md).

## Default job time limits

A job that runs past its limit ends `failed` and is refunded. A limit counts from when the job starts running; time spent queued doesn't count. These are the current defaults:

| Job | Limit |
| - | - |
| Viggle H3, Viggle Remake | 2 hours |
| Viggle Image | 15 minutes |
| 3D characters, 3D motion from video, motion from text | 15 minutes |
| Video Remix | Failed if it is still processing after 1 hour |

Set your polling timeout above these limits, with headroom for time in the queue. A 20-minute client timeout can give up on an H3 or Remake job that is still queued.

## Retention

Results are deleted 24 hours after the job finishes. Download what you need and keep your own copy.

| What | How long it stays | After that |
| - | - | - |
| Video results: Viggle H3, Viggle Remake, Video Remix, upscale | 24 hours after the job finishes | `GET /v1/videos/{video_id}` still answers, with `video_url` and `alpha_url` set to `null`. `GET /v1/renders/{render_id}/download` answers `404 RESULT_EXPIRED` |
| Viggle Image results | 24 hours after the job finishes | `GET /v1/images/{image_id}` still answers, with each `images[].url` set to `null` |
| Character and motion assets, including 3D exports | Until you delete the asset | Files are removed after a grace period once you delete the asset. The API answers `404` immediately |
| Source images and videos you upload to create a character or motion | 1 hour after processing | The asset stays usable in Video Remix if you leave `mode` unset and keep the `model` it was created with. A render that needs the original source answers `400`. See [Reusable characters and motions](https://docs.viggle.ai/v1/video/reusable-characters-and-motions.md#manage-saved-assets) |

## URL lifetime

| URL | Valid for |
| - | - |
| Viggle H3, Viggle Remake and upscale `video_url` | 1 hour, re-signed on every `GET /v1/videos/{video_id}` |
| Viggle Image `images[].url` | 1 hour, re-signed on every `GET /v1/images/{image_id}` |
| Character and motion export URLs (`vsplat_url`, `mixamo_url`, `metahuman_url`, `metahuman_body_url`) | 1 hour, re-signed on every export call |
| Scene `result` downloads | 3 hours |
| Video Remix `video_url` and `alpha_url` | A CDN URL rather than a 1-hour signed link. `GET /v1/renders/{render_id}/download` redirects to it |
| Upload URLs from `POST /v1/renders/prepare` | 1 hour |

Don't cache a URL. When you need it again, read the job or call the export endpoint again for a fresh one. An expired signed URL is rejected by the storage host, not by the API.

## Job record lifetime

How long you can read a job back is not the same for every capability.

| Job | Readable for |
| - | - |
| Viggle H3 (`vid_`), Viggle Remake (`anim_`), upscale (`vsr_`), Viggle Image (`img_`) | Stays readable after the result is deleted, with null URLs |
| Characters (`char_`), motions (`mot_`) | Until you delete them |
| Video Remix drafts from `renders/prepare` | 1 hour |
| Render `Idempotency-Key` | 24 hours, per API key |

## Upload windows

* Multipart uploads have 10 minutes to arrive. Each file has to meet its own limit above.
* Other requests must arrive within 30 seconds.
* An upload that is cut off answers `408 UPLOAD_TIMEOUT`, which is retryable.
* For large Video Remix inputs, `POST /v1/renders/prepare` gives you upload URLs (valid 1 hour) so files go straight to storage. See [Prepare a render](https://docs.viggle.ai/v1/api-reference/renders/prepare-a-render.md).

## Next steps

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

> [card] [Errors](https://docs.viggle.ai/v1/production/errors.md)
>
> Every code and what to do about it.

> [card] [Pricing](https://docs.viggle.ai/v1/pricing.md)
>
> What each operation costs.


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