> ## 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-Hailuo-02

MiniMax Hailuo 02 supports text-to-video, image-to-video, and generation from first and last frames.

### Model parameters

* Model ID: `MiniMax-Hailuo-02`
* Pricing: see the [model catalog](https://geekai.co/models?platform=minimax\&type=video) 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://docs.geekai.co/en/docs/quick_start.md)

> [!NOTE]
>
> The following video API parameters are not supported:
>
> * `negative_prompt`
> * `with_audio`
> * `size`
> * `quality`
> * `aspect_ratio`
> * `fps`
>
> See the [official Hailuo 02 API documentation](https://platform.minimaxi.com/document/text_to_video).

Use GeekAI's `image` for the first frame (Hailuo's `first_frame_image`) and `image_tail` for the last frame (Hailuo's `last_frame_image`). Both accept image URLs or Base64 image data.

Hailuo 02 accepts `resolution` values of `512P`, `768P`, and `1080P` (default: `768P`).

Hailuo 02 accepts a `duration` of 6 or 10 seconds (default: 6). At `1080P`, only 6 seconds is supported.

### Pricing

Hailuo 02 pricing depends on duration and resolution:

| Duration (`duration`) | Resolution (`resolution`) | Price (CNY per video) |
| - | - | - |
| 6 | 512P | 0.6 |
| 10 | 512P | 1 |
| 6 | 768P | 2 |
| 10 | 768P | 4 |
| 6 | 1080P | 3.5 |

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, speed-first channel with multiplier `0.8`, a `6`-second video at `768P` costs `2 x 0.8 = 1.6` CNY; at `1080P` it costs `3.5 x 0.8 = 2.8` CNY.

### 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-Hailuo-02",
    "prompt":"A man picks up a book [Pedestal up], then reads it [Static shot]"
}'
```

`[Pedestal up]` and `[Static shot]` are official camera controls. Include camera instructions in `prompt` in square brackets for precise camera movement. See the [official documentation](https://platform.minimaxi.com/document/text_to_video) for more controls.

The JSON response contains the generated media URL:

```json theme={null}
{
    "model": "MiniMax-Hailuo-02",
    "task_id": "10489e94-a6d6-4019-a48a-9d2054852a53",
    "task_status": "succeed",
    "video_result": [
        {
            "url": "https://static.geekai.co/video/2025/10/14/e140da85afc31d33462b45fe96e575ad.mp4",
            "duration": 5.875
        }
    ]
}
```

Image-to-video uses the same response format as text-to-video.

### 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-Hailuo-02",
    "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",
    "duration": 6,
    "resolution": "1080P"
}'
```

**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-Hailuo-02",
    "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": 6,
    "resolution": "1080P"
}'
```

### Asynchronous tasks

Video generation can take a while. We recommend GeekAI's asynchronous workflow.

The [video API](https://docs.geekai.co/en/api/video/generations.md) uses `async` to control asynchronous generation. The default, `false`, waits for the finished video. Set it to `true` to receive a task ID you can poll.

Follow the [asynchronous task example](https://docs.geekai.co/en/docs/video/kling/kling-video-v3-omni.md#asynchronous-tasks) to retrieve the result.


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