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

# Generate video with Viggle H3

> Text, first-frame, first-and-last-frame and reference-to-video generation with native audio, on one endpoint.

Viggle H3 is Viggle's tuned version of MiniMax H3. It generates a 5–15 second MP4 with native audio from a prompt, optionally anchored on frames or guided by reference media. All four modes use `POST /v1/videos`, cost the same and return a `vid_` job.

## Pick a mode

The fields you send choose the mode. You never pass a mode name.

| Mode | Send | Use it for |
| - | - | - |
| [Text to video](https://docs.viggle.ai/v1/video/text-to-video.md) | `prompt` only | A shot described in words |
| [First frame to video](https://docs.viggle.ai/v1/video/first-frame-to-video.md) | `prompt` + `first_frame_image` or `first_frame_image_url` | Animating a still, keeping its look |
| [First and last frame to video](https://docs.viggle.ai/v1/video/first-last-frame-to-video.md) | `prompt` + a first frame + `last_frame_image` or `last_frame_image_url` | A move between two known poses or shots |
| [Reference to video](https://docs.viggle.ai/v1/video/reference-to-video.md) | `prompt` + up to 1 reference video and up to 6 reference images | Carrying a subject or style into a new shot |

> [!NOTE]
>
> `POST /v1/videos` also runs [Viggle Remake](https://docs.viggle.ai/v1/video/remake.md). Sending a `driving_video` or any `character_image` field switches the request to Remake, which is a different model with its own price.

## Common parameters

Send `multipart/form-data`. Frame and reference files go in the same form, or pass public URLs.

| Parameter | Required | Default | Values |
| - | - | - | - |
| `prompt` | Yes | | What should happen in the video |
| `quality` | Yes | | `low` (faster) or `high` (higher fidelity), same price. Or [`ultrafast`](#ultrafast), the fastest tier, with its own limits and price |
| `duration_s` | No | `5` | 5–15 seconds |
| `resolution` | No | `768p` | `480p`, `768p`, `1080p`, `2k`, `4k`, case-insensitive |
| `aspect_ratio` | No | `16:9` | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9` |
| `enhance` | No | `true` | Rewrites the prompt with a planning pass before generating |
| `seed` | No | random | Integer ≥ 0 |
| `watermark` | No | `false` | Burns in a Viggle watermark |

Every parameter, limit and error is in the [API reference](https://docs.viggle.ai/v1/api-reference/overview.md).

## Price

You pay per second of video, rounded up to a whole second. With `quality` `low` or `high`, the rate depends only on `resolution` and `enhance`; the mode doesn't change it. `ultrafast` has [its own price](#ultrafast).

| `resolution` | Per second | With `enhance` (default) |
| - | - | - |
| `480p`, `768p` | \$0.01 | \$0.02 |
| `1080p` | \$0.02 | \$0.03 |
| `2k` | \$0.03 | \$0.04 |
| `4k` | \$0.05 | \$0.06 |

A 5-second video at the defaults (768p, enhance on) costs 10 credits (\$0.10). The same video with `enhance=false` costs 5 credits.

> [!WARNING]
>
> If your balance cannot cover a Viggle H3 job, the request is still accepted with `status: "queued"`, and the job then ends `failed` with `error.code: "INSUFFICIENT_CREDITS"`. Check `GET /v1/credits` before large batches.

## Ultrafast

`quality=ultrafast` is the fastest tier. It works in all four modes, with these differences from `low` and `high`:

| | With `quality=ultrafast` |
| - | - |
| `resolution` | `480p` or `768p` only. Any other value returns `400` |
| `enhance` | Not applied and not billed |
| `watermark` | Not supported. `watermark=true` returns `400` |
| Reference video | 2–15 seconds, counted in whole seconds |

You pay per second of output, rounded up, and every second of reference video at the same rate. The first 5 reference images are free; each image after that costs extra. The total is rounded up to a whole credit.

| `resolution` | Per second (output and reference video) | Each reference image after the fifth |
| - | - | - |
| `480p` | 2.2 credits (\$0.022) | 1.1 credits (\$0.011) |
| `768p` | 3 credits (\$0.03) | 1.5 credits (\$0.015) |

A 5-second video at 768p costs 15 credits ($0.15), and a 6-second video at 480p costs 14 credits ($0.14). A 5-second video at 768p with a 4.2-second reference video is billed for 5 + 5 seconds: 30 credits (\$0.30).

If the tier is temporarily unavailable, the request returns `503` and nothing is charged. Retry later, or use `low` or `high`.

## Get the result

The create call answers right away:

```json theme={null}
{ "id": "vid_7d3f0b8e-2c41-4f6a-9b1e-5a2c8d4e6f10", "status": "queued", "progress": null, "created_at": "2026-11-20T09:12:03Z" }
```

Read `GET /v1/videos/{video_id}` every 3–5 seconds until `status` is `ready`, then download `video_url`. The link is valid for one hour, and every read returns a fresh one. The video is deleted 24 hours after the job finishes, so store it yourself. [Task lifecycle](https://docs.viggle.ai/v1/concepts/task-lifecycle.md) covers statuses and failures.

## Start with a mode

> [card] [Text to video](https://docs.viggle.ai/v1/video/text-to-video.md)
>
> No input files. The fastest way to see H3 work.

> [card] [First frame to video](https://docs.viggle.ai/v1/video/first-frame-to-video.md)
>
> Animate a still and keep its composition.

> [card] [First and last frame to video](https://docs.viggle.ai/v1/video/first-last-frame-to-video.md)
>
> Control where the shot starts and ends.

> [card] [Reference to video](https://docs.viggle.ai/v1/video/reference-to-video.md)
>
> Bring a subject or style from your own media.


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