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

# Reference to Video

> Generate 4–15 second videos with generated stereo audio from reference images, videos and audio using MiniMax H3.

## Models

| Model | Resolutions | Duration | Max references (image / video / audio) | Prompt length |
| - | - | - | - | - |
| `minimax-h3/reference-to-video` | 768P, 2K | 4–15 s | 9 / 3 / 3 | 7000 |

At least one reference image or reference video is required; reference audio alone is not enough.
MiniMax H3 videos always include generated stereo audio; there is no option to turn it off.

> [!NOTE]
>
> This endpoint only accepts `minimax-h3/reference-to-video`. Any other `model` returns a `400` "Invalid route" error.

## Body Parameters

**model** `string` *required*

Model to use: `minimax-h3/reference-to-video`.

**input** `object` *required*

Input parameters for the generation.

**properties**

**prompt** `string` *required*

Video description. Maximum length: 7000 characters.

**reference\_image\_urls** `string[]`

Reference image URLs (public HTTP(S)), up to 9. The first 5 are free; each additional image is billed.
At least one of `reference_image_urls` and `reference_video_urls` is required.

**reference\_video\_urls** `string[]`

Reference video URLs (public HTTP(S)), up to 3 clips and up to 15 seconds in total.
Reference videos are billed per second of their length.

**reference\_audio\_urls** `string[]`

Reference audio URLs (public HTTP(S)), up to 3. Must be used together with a reference image or video.

**aspect\_ratio** `string`

Output aspect ratio: `adaptive`, `21:9`, `16:9`, `4:3`, `1:1`, `3:4`, `9:16`.

**duration** `integer` (default: 6)

Output duration in seconds, integer from `4` to `15`.

**resolution** `string` (default: 2K)

Output resolution: `768P` or `2K`.

**webhookUrl** `string`

URL to receive a webhook when the task completes.

**metadata** `object`

Custom key-value metadata to attach to the task.

## Pricing

| Item | `768P` | `2K` |
| - | -: | -: |
| Output video (audio included) | \$0.08/sec | \$0.13/sec |
| Reference video (per second of reference length) | \$0.08/sec | \$0.13/sec |
| Reference image, 6th and beyond | \$0.04/image | \$0.04/image |

The first 5 reference images are free. Reference videos are billed at the output per-second rate of the
selected resolution, for the length of the reference clips.

Because the length of the reference videos is only known after generation, a request with `reference_video_urls`
is pre-deducted for `duration` (default 6) + 15 seconds. Completed tasks are settled from actual usage and the
unused part of the pre-deduction is refunded. The final charge never exceeds the pre-deduction. Failed tasks are refunded.

For example, a 6-second `2K` request with 7 reference images and one reference video pre-deducts
\$0.13 × (6 + 15) + 2 × \$0.04 = \$2.81; if the reference video is 5 seconds long, the final charge is
\$0.13 × (6 + 5) + 2 × \$0.04 = \$1.51.

Prices are in USD and current as of November 23, 2026.

## Example

```bash theme={null}
curl -X POST https://api.modelhunter.ai/api/v1/minimax/reference-to-video \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-h3/reference-to-video",
    "input": {
      "prompt": "The character from the reference image dances to the music in the reference clip",
      "reference_image_urls": ["https://cdn.example.com/character.png"],
      "reference_video_urls": ["https://cdn.example.com/dance.mp4"],
      "reference_audio_urls": ["https://cdn.example.com/music.mp3"],
      "aspect_ratio": "adaptive",
      "duration": 8,
      "resolution": "768P"
    },
    "metadata": {
      "project": "launch-video"
    }
  }'
```

```json 202 theme={null}
{
  "success": true,
  "data": {
    "id": "task_abc123",
    "status": "pending",
    "type": "reference-to-video",
    "provider": "minimax",
    "model": "minimax-h3/reference-to-video",
    "created_at": "2026-11-23T10:00:00Z",
    "estimated_seconds": 300
  }
}
```

```json 400 theme={null}
{
  "success": false,
  "error": {
    "code": "VALIDATION_ERROR",
    "message": "input.reference_image_urls or input.reference_video_urls is required"
  }
}
```


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