# MiniMax H3 Max Reference to Video API

> MiniMax H3 Max by MiniMax generates a 5-15 second video with native audio at 480P or 768P that keeps subjects, motion, and voice consistent with reference images, videos, and audio.

Source: https://www.sandbase.ai/models/minimax/h3-max/reference-to-video
API reference: https://www.sandbase.ai/models/minimax/h3-max/reference-to-video/docs

## Facts

- Provider: MiniMax
- Type: Video model
- Model ID: `minimax/h3-max/reference-to-video`
- Price: From $0.40 per run
- Capabilities: reference to video
- Billing: pay per use from one SandBase balance; no provider account or subscription needed

## Call it

- Unified Run API: `POST https://api.sandbase.ai/v1/run`

```bash
curl -X POST https://api.sandbase.ai/v1/run \
  -H "Authorization: Bearer $SANDBASE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "model": "minimax/h3-max/reference-to-video",
  "images": [
    "https://static.sandbase.ai/examples/minimax/mirrored/example_inputs/hailuo23/pro_i2v_in.jpg"
  ],
  "prompt": "Image 1 is the female protagonist. Image 2 is her small dog. Keep the woman and dog consistent with their respective reference images while they walk together through a sunlit garden.",
  "duration": 5,
  "resolution": "768P",
  "prompt_expansion_mode": "balanced"
}'
```

The response returns a run id; poll `GET https://api.sandbase.ai/v1/run/{id}` until the status is `completed` or `failed`.

## FAQ

### How do I call MiniMax H3 Max Reference to Video through SandBase?

Create a SandBase API key, then send requests with the model ID "minimax/h3-max/reference-to-video" to Unified Run API (/v1/run) at https://api.sandbase.ai. The request examples on this page show the exact payload.

### Do I need a separate MiniMax account?

No. One SandBase API key and balance gives you access to MiniMax H3 Max Reference to Video and the other models in the catalog; you do not need to sign up with MiniMax separately.

## README

### MiniMax H3 Max Reference to Video

MiniMax H3 Max reference-to-video: images, videos, and audio references keep subjects, motion, and voice consistent in a 5–15 second clip.

#### Fields

| Field | Type | Default | Notes |
|---|---|---|---|
| `prompt` | string, required | — | Up to 50,000 characters. |
| `aspect_ratio` | `21:9` / `16:9` / `4:3` / `1:1` / `3:4` / `9:16` | — | Output frame shape. |
| `resolution` | `480P` / `768P` | `768P` | Sets the per-second rate. |
| `duration` | integer 5–15 | 5 | Output length in seconds. |
| `images` | image URL[] (≤9) | — | Reference images, Image 1, Image 2, … |
| `prompt_expansion_mode` | `balanced` / `quality` | `balanced` | `balanced` rewrites the prompt lightly; `quality` expands it more for richer detail. |
| `videos` | video URL[] (≤3) | — | Reference clips, Video 1, … |
| `audios` | audio URL[] (≤3) | — | Reference audio, Audio 1, … |

#### Billing

You pay for output seconds: $0.08 at 768P and $0.05 at 480P. Very large reference sets (over 4,096 reference tokens) add $0.02 per 1,000 extra tokens.

| Output | 768P | 480P |
|---|---|---|
| 5s (default) | $0.40 | $0.25 |
| 10s | $0.80 | $0.50 |
| 15s | $1.20 | $0.75 |

Failed runs are not charged.

#### Prompting

- Describe subject, action, camera, and sound in order.
- Quote dialogue and name the speaker.

#### Limits

- Clips are 5–15 seconds.

#### Also on SandBase

Other MiniMax H3 Max endpoints: `minimax/h3-max/text-to-video`, `minimax/h3-max/image-to-video`, `minimax/h3/reference-to-video` (2K).
