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

# MiniMax-Hailuo-02

> 使用 MiniMax-Hailuo-02 生成视频

## 说明

MiniMax-Hailuo-02 视频生成模型，采用异步任务机制，提交后通过 task\_id 查询结果。

## 请求示例

```bash theme={null}
curl https://api.qclawrouter.com/v1/video/generations \
  -H "Authorization: Bearer sk-your-api-key" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "minimax-hailuo-02",
    "prompt": "A cat playing in the garden"
  }'
```

## 返回示例

```json theme={null}
{
  "task_id": "task_xxx",
  "status": "pending",
  "created_at": 1677652288
}
```

<Note>
  视频生成为异步任务，提交成功后使用返回的 task\_id 轮询结果，详见[获取视频任务状态](/docs/cn/api-reference/task/get-video-task)。
</Note>

## Webhook 回调

如需任务完成后自动通知，在请求中加入 `callback_url` 参数：

```json theme={null}
{
  "model": "minimax-hailuo-02",
  "prompt": "A cat playing in the garden",
  "callback_url": "https://your-server.com/webhook"
}
```
