## Basic model info

Model name: minimax/h3
Model description: Generate videos with MiniMax H3, a multimodal video model from MiniMax that supports text-to-video, first- and last-frame image-to-video, and reference-based video generation.


## Model inputs

- prompt (required): Text prompt for generation (string)
- first_frame_image (optional): First frame image for video generation. The output video will have the same aspect ratio as this image. (string)
- last_frame_image (optional): Last frame image for video generation. The final frame of the output video will match this image. (string)
- reference_image_urls (optional): Public URLs for up to 9 reference images. (array)
- reference_video_urls (optional): Public URLs for up to 3 reference videos, 15 seconds total. Reference video seconds are billed at the same rate as output seconds. (array)
- reference_audio_urls (optional): Public URLs for up to 3 reference audio clips. (array)
- duration (optional): Output duration in seconds. (integer)
- resolution (optional): Output resolution. (string)
- ratio (optional): Output aspect ratio. Required for text-to-video; adaptive for image-to-video. (string)


## Model output schema

{
  "type": "string",
  "title": "Output",
  "format": "uri"
}

If the input or output schema includes a format of URI, it is referring to a file.


## Example inputs and outputs

Use these example outputs to better understand the types of inputs the model accepts, and the types of outputs the model returns:

### Example (https://replicate.com/p/84bmg7pjxhrmy0czzkjbtp2knw)

#### Input

```json
{
  "ratio": "16:9",
  "prompt": "the car revs through the desert",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/pbxt/PcUGgrOiEY3uORcv9nEXXMgzi6oTwwUximPbd9YTSsnGYP9t/Screenshot%202026-08-13%20at%203.50.56%E2%80%AFPM.png",
  "reference_audio_urls": [],
  "reference_image_urls": [],
  "reference_video_urls": []
}
```

#### Output

```json
"https://replicate.delivery/xezq/7wfYoNotEtTdNKKMOxe3d5E3cWoPyJnHAcBYwVvhbY4HEeFuA/tmp1sd0fm5i.mp4"
```


### Example (https://replicate.com/p/0cykjds3r1rmr0d1cm8twa1vf0)

#### Input

```json
{
  "ratio": "16:9",
  "prompt": "Cinematic wide shot at golden hour: a lone red-sailed boat glides across a mirror-still alpine lake, snow-capped mountains reflected in the water, soft mist drifting over the surface, warm sunlight breaking through clouds, slow camera dolly forward, rich color, high detail",
  "duration": 4,
  "resolution": "768P"
}
```

#### Output

```json
"https://replicate.delivery/xezq/4pPRMHbfnh1fq0loEPXNcePyiLTOKrV18hb5ThnE2RURoC0uA/tmpwu1c_6wt.mp4"
```


### Example (https://replicate.com/p/6e993mmq1xrmt0d1m94vg5y2hc)

#### Input

```json
{
  "prompt": "Slow, steady dolly push-in toward the bed. Soft daylight shifts gently across the wall as a cloud passes. The rubber plant's leaves sway slightly in a light breeze from an open window, and the green throw ripples a little at its edge. Calm, quiet, no people.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/5EOc2C7YrgbeVC7LQHai72i4dmRr9XE8I6i20as9AbGHBedXA/tmpdztsrbes.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/JCQuR33iIfXQBS7N9dQuNozPuJghIDBreHk5QBUf3vQIL47uA/tmpcfsgf3wm.mp4"
```


### Example (https://replicate.com/p/revxjg4zc1rmy0d1m94vh2b1a4)

#### Input

```json
{
  "prompt": "The tiger slowly prowls forward through the undergrowth toward the camera, shoulders rolling with each step, then opens its eyes and looks straight into the lens. Ferns and grass blades brush against its fur and spring back. Keep the painterly illustrated style with visible brush strokes. Camera slowly pulls back to keep pace.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/GrKnCxDwCYL1NVYBFmL6A9jbJdUpGomO1kifOGnDIaDBBedXA/tmp6mrgwhfa.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/eiT4S0hRbB2dV6MfU7f7P7DYzLUisUIS6QIBNyGhdn25K47uA/tmp8hv36pnx.mp4"
```


### Example (https://replicate.com/p/r6gqmrd8csrmy0d1m94s0khjrc)

#### Input

```json
{
  "prompt": "The car cruises down the highway at golden hour. Wind streams through the open window and whips the woman's long auburn hair around her face. Her eyes stay open and bright the whole time; she smiles, laughs softly and keeps looking at the driver, who glances back at her. Sunlight flickers through passing trees, flaring across the windshield. Handheld camera from the back seat with gentle road vibration. Warm 1970s film look.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/5TKzpl8CbWpxGtuAQEGnfDAq1xCI0ew5eECdkaFwFClpE47uA/tmpaassx9ka.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/RsnsJXNnj27RLZ2rcj0isAe9Au6hf5yoUe6ZjxBTMFrQO47uA/tmp7r7mboc_.mp4"
```


### Example (https://replicate.com/p/jyh2wqxhj9rmy0d1m94tegra2m)

#### Input

```json
{
  "prompt": "Static high-angle camera. The cyclist actively pedals the red bicycle across the crosswalk: his legs push the pedals around in clear, continuous circular strokes, knees rising and falling, the cranks and wheels visibly turning as the bike rolls forward through the shaft of golden sunset light. His long shadow on the stripes shows the legs pumping too. The pedestrian in yellow keeps walking up and out of the light. Strong contrast, cinematic street photography look.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/LKJVZSHgZt7SA9ZfyiJUbGcKl5Q2ByUyTxFDNMtRfCRIC8dXA/tmpswhc37rk.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/8HbGwlRVM0LxB9yCsvMw1jvQSeJ43esueDJ75hFHtvdYL47uA/tmpwux0z302.mp4"
```


### Example (https://replicate.com/p/56vqfpdt55rmr0d1m94t8hnvf8)

#### Input

```json
{
  "prompt": "The subway car rocks gently as it moves, fluorescent lights flickering, passing tunnel lights sweeping across the windows. The woman holds her glance over her shoulder, then turns to the man and smiles; he looks down at her and grins. Passengers in the background sway. Handheld 35mm film camera feel, soft grain.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/ZRsqq4Vn8w5WPhxAbkpxx0wvFqpf498jQe6Jzz4kBWvrC8dXA/tmpdd5_9ux3.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/6hi3fFCGazRIZCBDzDNXG3ADc2xjbpeKY8HyR5ezLOobM47uA/tmp6n99q6b8.mp4"
```


### Example (https://replicate.com/p/zx94c9e1rnrmt0d1m94rrrvsrw)

#### Input

```json
{
  "prompt": "Rain streams down the diner window, droplets running and merging. Blurry headlights pass outside. The neon sign flickers once. The woman slowly lifts her coffee mug, takes a sip, and sets it down, gazing out at the rain. Steam curls from the mug. Very slow push-in. Moody teal and red film look.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/2r7wZ9Pj2yYDGJKsZo8jBCT0fIGIZo0ixo1FIVHeRDZrC8dXA/tmphk1i9ddj.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/Mx5AOKV0uz5JPZx4TfNEffkiDaPuydRWQ3XbfY0IfG3fgBfuLA/tmp6soiyvtv.mp4"
```


### Example (https://replicate.com/p/a1gwzzy945rmy0d1m94rqn3hmw)

#### Input

```json
{
  "prompt": "The four horses gallop left to right across the meadow at full speed, manes and tails flying, hooves kicking up dust. The camera pans smoothly with them so the background streaks into horizontal motion blur. Black and white, grainy monochrome film.",
  "duration": 5,
  "resolution": "2K",
  "first_frame_image": "https://replicate.delivery/xezq/kAprjAfi04XfkE9hBdee3ndfJXOgYJPO03jMxFqbOmr4Rgv7C/tmpwxhgyt6z.png"
}
```

#### Output

```json
"https://replicate.delivery/xezq/N9ip1ZCi29pQNVD8dPQsGHhoCaXE0QfPSfF5htj1V5bRG8dXA/tmp_tigvgsh.mp4"
```


## Model readme

> # MiniMax H3
> 
> MiniMax H3 is a multimodal video generation model from MiniMax. It can generate videos from text prompts, animate a first or last frame, and use reference images, videos, or audio to guide the result.
> 
> ## What it does
> 
> - **Text-to-video:** describe a scene and generate a video from scratch.
> - **Image-to-video:** provide a first frame, a last frame, or both to control the start and end of the video.
> - **Reference generation:** provide reference images, videos, or audio to guide character, motion, camera, style, voice, or editing rhythm.
> 
> The model supports 4–15 second videos at 768P or 2K resolution.
> 
> ## Inputs
> 
> - `prompt`: the text prompt describing the video.
> - `first_frame_image`: optional first frame image. When provided, the output uses the input image aspect ratio.
> - `last_frame_image`: optional last frame image.
> - `reference_image_urls`: optional public URLs for reference images.
> - `reference_video_urls`: optional public URLs for reference videos.
> - `reference_audio_urls`: optional public URLs for reference audio clips.
> - `duration`: output duration in seconds, from 4 to 15.
> - `resolution`: `768P` or `2K`.
> - `ratio`: output aspect ratio for text-to-video. Use a concrete ratio like `16:9`; image-to-video uses `adaptive`.
> 
> ## Billing
> 
> MiniMax H3 is billed per second of generated video. 768P outputs cost $0.08 per second, and 2K outputs cost $0.13 per second.
> 
> Reference videos are billed per second at the same rate as the output. For example, a 5-second 768P video made with a 6-second reference video costs 11 × $0.08 = $0.88.

