---
title: MiniMax H3 Max API
description: "Tokenlio MiniMax H3 Max video API: 5–15 seconds, 480p to 1080p, first and last frames, image, video and audio references, with full parameters and examples."
outline: [2, 3]
---

# MiniMax H3 Max

**5–15 seconds · 480p, 768p or 1080p · audio track included · first and last frames · image, video and audio references**

MiniMax H3 Max is the higher-resolution variant in the H3 family. It shares the request shape of MiniMax H3 but starts at 5 seconds instead of 4, adds `480p` and `1080p`, and defaults to `768p`. Output is always an MP4 file with an audio track.

Three endpoints cover the whole flow:

- **Create** — `POST https://api.tokenlio.ai/v1/videos/generations`, returns **202** with a task ID.
- **Query** — `GET https://api.tokenlio.ai/v1/tasks/{id}`, returns status, assets and error details.
- **Download** — `GET https://api.tokenlio.ai/v1/tasks/{id}/content`, returns a **307** redirect to the video file.

Authentication, task states, polling, private download links, billing and shared error codes are described in the [video tasks guide](/api/videos). This page documents the parameters and behavior specific to MiniMax H3 Max.

::: tip Before you start
1. Sign in to the Tokenlio console and create a Workspace **model-routing API Key**.
2. Copy the published MiniMax H3 Max API model ID from the [model catalog](https://api.tokenlio.ai/marketplace) and replace `example/minimax-h3-max` in the examples.
3. H3 Max is a different model ID from MiniMax H3: switching models also means re-checking `duration`, `resolution` and current prices.
:::

## Choosing a resolution

`768p` is the default and the usual starting point. `480p` produces the cheapest draft for checking composition and motion; `1080p` is the final-delivery size when the clip will be shown on a large screen. Each resolution has its own reference price, so check the reference rates in your console before switching — a longer clip at `1080p` costs more than the same clip at `480p`.

At `1080p` the `watermark` field must be omitted entirely, even as `false`. This model does not accept that field at its highest resolution.

## Quick request

```bash
curl https://api.tokenlio.ai/v1/videos/generations \
  -H "Authorization: Bearer $TOKENLIO_API_KEY" \
  -H 'Content-Type: application/json' \
  --data '{"model":"example/minimax-h3-max","prompt":"A slow aerial shot of a quiet coastline at sunrise","duration":5,"resolution":"768p","size":"16:9"}'
```

```json [Request body]
{
  "model": "example/minimax-h3-max",
  "prompt": "A slow aerial shot of a quiet coastline at sunrise",
  "duration": 5,
  "resolution": "768p",
  "size": "16:9"
}
```

A **202** response with an `id` means the task was accepted:

```json
{
  "id": "dfc68868-d388-4d83-a173-d44e47a8bec7",
  "model": "example/minimax-h3-max",
  "status": "queued",
  "assets": []
}
```

Save the `id` and poll `GET /v1/tasks/{id}`; when `status=succeeded`, download from `assets[].url`.

## Request parameters

| Parameter | Type | Required / default | Meaning |
| --- | --- | --- | --- |
| `model` | string | Required | Exact API model ID copied from the catalog; a display name is rejected |
| `prompt` | string | Required | Up to 7,000 characters; required even when reference materials are supplied |
| `duration` | integer | **Required, no default** | 5–15 integer seconds |
| `resolution` | string | `768p` | `480p`, `768p` or `1080p` |
| `size` | string | `16:9` for text-only, `adaptive` with inputs | `16:9`, `9:16`, `1:1`, `4:3`, `3:4`, `21:9`, `adaptive`; frames always use `adaptive` |
| `watermark` | boolean | Omit | Request a visible AI-generated watermark; must be omitted at `1080p` |
| `image_urls` | string[] | Optional | Up to 9 reference images |
| `image_with_roles` | object[] | Optional | Objects with `url` and `role`; cannot be combined with `image_urls` |
| `video_urls` | string[] | Optional | Up to 3 reference videos |
| `audio_urls` | string[] | Optional | Up to 3 reference audio clips; an image or video must also be supplied |
| `expected_pricing_revision` | string | Optional known price version; not a prerequisite for first creation |

### What the fields do

`duration` and `resolution` decide both the generated clip and its cost, so choose values within the supported limits when creating a task. The minimum is 5 seconds, one second longer than MiniMax H3.

`size` sets the aspect ratio. For text-only requests it defaults to `16:9`, and `adaptive` also falls back to `16:9`. With input materials the default becomes `adaptive`; a frame pair forces `adaptive`.

### Fields this model does not take

Output format is fixed to MP4 with an audio track, so `generate_audio`, `return_last_frame`, `seed`, `output_format` and `omni_reference_task_type` do not apply to this model and should not be sent. Use real JSON integers and booleans — never strings such as `"5"` and never `null`.

## Text to video

```json
{
  "model": "example/minimax-h3-max",
  "prompt": "Rain falling on a neon-lit street at night, the camera slowly pushing forward while puddles reflect the light",
  "duration": 10,
  "resolution": "1080p",
  "size": "9:16"
}
```

Describe subject, motion, camera movement and lighting in the prompt; the platform forwards the text unchanged. Vertical output simply uses `size: "9:16"`; there is no separate orientation option.

## First and last frames

Use the `image_with_roles` array with roles `first_frame` and `last_frame`; at most one of each. Frame inputs cannot be mixed with reference images, videos or audio, and `size` is always `adaptive`.

```json
{
  "model": "example/minimax-h3-max",
  "prompt": "Move smoothly from the opening landscape to the final sunset, keeping the horizon steady",
  "duration": 6,
  "resolution": "768p",
  "size": "adaptive",
  "image_with_roles": [
    {"url": "https://YOUR_PUBLIC_CDN/first.png", "role": "first_frame"},
    {"url": "https://YOUR_PUBLIC_CDN/last.png", "role": "last_frame"}
  ]
}
```

A single first frame is a normal image-to-video request: send only that object and omit `last_frame`. Both frames should describe compatible scenes; wildly different subjects usually produce an unstable transition.

## Multimodal references

Reference materials guide the subject, camera work and sound without pinning the exact scenes. Combine at most 9 images, 3 videos and 3 audio clips in one request; the same URL cannot be reused.

```json
{
  "model": "example/minimax-h3-max",
  "prompt": "Use the portrait in the first image as the main character, follow the camera movement of the reference video, and use the audio as background music",
  "duration": 8,
  "resolution": "768p",
  "size": "16:9",
  "image_urls": ["https://YOUR_PUBLIC_CDN/character.jpg"],
  "video_urls": ["https://YOUR_PUBLIC_CDN/camera.mp4"],
  "audio_urls": ["https://YOUR_PUBLIC_CDN/music.mp3"]
}
```

Audio must be paired with at least one image or video, so a musical prompt should also send a still image. Reference videos affect both the result and the measured input duration.

## Input requirements

| Input | Requirement |
| --- | --- |
| Images | Up to 9; JPEG, PNG or WebP; stable public HTTPS URL |
| Videos | Up to 3, each 2–15 s and 15 s combined; MP4 or MOV with H.264/H.265; ≤50 MB each; sides 256–5,760 px; aspect ratio 0.4–2.5; 23.976–60 FPS |
| Audio | Up to 3; WAV or MP3 |

Reference videos are measured when the task is created: a clip outside these limits fails the request instead of being silently trimmed, so check duration and resolution before submitting. Input URLs must be directly reachable over HTTPS — no redirects, credentials, private addresses or fragments.

## Billing and reference rates

Reference rates are shown in the console; they are not a pre-charge or a spending cap. Final actual charges appear as `charged_amount` in task/call records after successful delivery and settlement. Failed, timed-out (`TASK_TIMEOUT`) or undelivered tasks are not charged, and polling/downloads are not new generation calls.

`max_charge_amount` is not accepted for actual-cost models. `expected_pricing_revision` is optional: send it only when you already hold a valid pricing version. Review current catalog terms rather than blindly resending a changed-price request.


## Errors specific to this model

Shared status codes are listed in the [video tasks guide](/api/videos#errors). Within `400 VIDEO_REQUEST_INVALID` and `400 VIDEO_ASSET_INVALID`, the usual causes are:

| Symptom | Cause |
| --- | --- |
| `unsupported model resolution` | `resolution` is not `480p`, `768p` or `1080p`, or the value belongs to another model |
| `watermark must be omitted for 1080P` | `watermark` was sent with `resolution: "1080p"` |
| `a prompt and a duration within this model's range are required` | `prompt` is empty, or `duration` is below 5, above 15, or not an integer |
| `unsupported input counts or mixed generation modes` | More than 9 images, 3 videos or 3 audio clips, or frames mixed with reference materials, or audio without image/video |
| `unique bounded asset identifiers are required` | The same input URL appears twice, or a URL contains whitespace |
| `unsupported video size` | `size` is outside the documented list |
| `VIDEO_ASSET_INVALID` | An input URL is unreachable, or a reference video falls outside the measured limits |

A `409 VIDEO_PRICE_CHANGED` means the pricing version changed: check the current catalog terms and decide again. Do not retry creation blindly, and do not recreate a task that already returned an ID — query it instead.

## Next steps

- [Video tasks: creation, polling, downloads and errors](/api/videos)
- [Choose a model and compare durations](/api/videos#choose-a-model)
- [MiniMax H3: 4–15 seconds, native 2K](/api/videos/minimax-h3)
