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

# MiniMax-H3

MiniMax H3 understands text, images, video, and sound together and generates video with native stereo audio, up to 15 seconds long at 2K resolution.

Early trials found H3 effective at following instructions, rendering text and brand information, and transferring motion between videos (V2V Motion Transfer). Its controlled multimodal generation and editing suit advertising, branding, e-commerce, product design, UI/UX, and games.

### Model parameters

* Model ID: `MiniMax-H3`
* Pricing: see the [model details page](https://geekai.co/models/MiniMax-H3) for current rates.
* Endpoint: `https://geekai.co/api/v1/videos/generations`
* Parameters: [Video API reference](https://docs.geekai.co/en/api/video/generations.md)
* Authentication: [Get an API key](https://geekai.co/user/api_keys)

> [!NOTE]
>
> The following video API parameters are not supported:
>
> * `negative_prompt`
> * `with_audio` (H3 includes audio by default)
> * `fps`
> * `quality`
> * `size`
>
> See the [official MiniMax H3 API documentation](https://platform.minimaxi.com/docs/api-reference/video-generation-v2-create).

GeekAI uses its standard video parameters for prompts, frames, and image, video, and audio references. They map to the official API as follows:

* `prompt`: Chinese or English text prompt, up to 7,000 characters.
* `image`: first frame image, as a URL or Base64 image data.
* `image_tail`: last frame image, as a URL or Base64 image data.
* `images`: array of up to nine reference images as URLs or Base64 image data.
* `video`: up to three reference videos, URLs only. Pass multiple references as an array.
* `audio`: up to three audio references, URLs only. Pass multiple clips as an array. Include a reference image or video; audio alone is not supported.

MiniMax H3 accepts `resolution` values of `768P` or `2K` (default: `768P`).

H3 accepts a `duration` of 4–15 seconds (default: 5 seconds).

MiniMax H3 supports the following `aspect_ratio` values:

* `1:1`
* `16:9`
* `4:3`
* `3:4`
* `9:16`
* `21:9`
* `adaptive`: adaptive

Text-to-video does not support `adaptive`. First-and-last-frame generation uses only `adaptive` (default); other settings have no effect. Reference generation supports all listed values.

Control watermarking with `watermark`. `watermark` accepts `true` or `false`; the default, `false`, produces no watermark.

### Pricing

MiniMax H3 pricing depends on duration and resolution:

| Resolution (`resolution`) | Price (CNY per second) |
| - | - |
| 768P | 0.5 |
| 2K | 0.8 |

Additional charges:

* The first five reference images are free. Each additional image costs 0.2 CNY.
* Reference video duration is added to output duration and billed at the same rate.

For [discounted GeekAI channels](https://docs.geekai.co/en/docs/model_price.md), multiply the listed rate by the channel multiplier. On the high-availability Pro channel with multiplier `0.8`, a `6`-second video at `768P` costs `0.5 x 6 x 0.8 = 2.4` CNY; at `2K` it costs `0.8 x 6 x 0.8 = 3.84` CNY. The discount also applies to additional charges.

### Text to video

Describe the video in text:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"MiniMax-H3",
    "prompt": "A kitten yawns at the camera",
    "async": true
}'
```

The JSON response contains a task ID. Poll the [video result endpoint](https://docs.geekai.co/en/api/video/result.md) until the status is `succeed`, then retrieve the video URL from the response.

### Image to video

**First frame**

Pass one image in `image` to generate a video starting from that frame:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"MiniMax-H3",
    "prompt":"A mouse runs up to the camera, smiles and winks",
    "image":"https://cdn.hailuoai.com/prod/2024-09-18-16/user/multi_chat_file/9c0b5c14-ee88-4a5b-b503-4f626f018639.jpeg",
    "async": true
}'
```

**First and last frames**

Pass the first and last frame images in `image` and `image_tail`:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model":"MiniMax-H3",
    "prompt":"Show a little girl growing up",
    "image":"https://filecdn.minimax.chat/public/fe9d04da-f60e-444d-a2e0-18ae743add33.jpeg",
    "image_tail":"https://filecdn.minimax.chat/public/97b7cd08-764e-4b8b-a7bf-87a0bd898575.jpeg",
    "duration": 8,
    "async": true
}'
```

### Reference to video

MiniMax H3 generates video using reference images, videos, and audio together.

**Reference images**

Pass one or more reference images in `images`:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "MiniMax-H3",
    "prompt": "The boy in glasses and a blue T-shirt from @Image1 and the corgi from @Image2 sit on the lawn from @Image3, in 3D cartoon style",
    "images": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seelite_ref_1.png",
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seelite_ref_2.png",
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/seelite_ref_3.png"
    ],
    "async": true
}'
```

**Multimodal references**

Combine up to nine reference images, three videos, and three audio clips in one request:

```bash theme={null}
curl --location --request POST 'https://geekai.co/api/v1/videos/generations' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer $GEEKAI_API_KEY' \
--data '{
    "model": "MiniMax-H3",
    "prompt": "Use video 1’s first-person framing and audio 1 as the music throughout. Make a first-person ad for GeekAI’s limited-edition Apple of Peace fruit tea. Begin with image 1: your hand picks a dew-covered Aksu red apple with a crisp tapping sound. At 2–4 seconds, cut to your hand dropping apple pieces, ice and tea into a shaker. Shake hard; sync the clinking ice and shaker to a lively drumbeat. Voice-over: ‘Freshly cut, freshly shaken.’ At 4–6 seconds, show the layered tea pouring into a clear cup, your hand piping milk foam on top and attaching a pink label. Move in on the layers of foam and tea. At 6–8 seconds, lift the cup from image 2 toward the viewer, label clearly visible. Voice-over: ‘Take a refreshing sip.’ Freeze on image 2. Use the same female voice throughout.",
    "images": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic1.jpg",
        "https://ark-project.tos-cn-beijing.volces.com/doc_image/r2v_tea_pic2.jpg"
    ],
    "video": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_video/r2v_tea_video1.mp4"
    ],
    "audio": [
        "https://ark-project.tos-cn-beijing.volces.com/doc_audio/r2v_tea_audio1.mp3"
    ],
    "aspect_ratio": "16:9",
    "duration": 10,
    "async": true
}'
```

> [!NOTE]
>
> Supported multimodal input combinations:
>
> * Text
> * Text + image
> * Text + video
> * Text + image + audio
> * Text + image + video
> * Text + video + audio
> * Text + image + video + audio
>
> Audio alone is not supported. Include an image or video, or the request will fail.


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