hailuo-video
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseHailuo Video Generation
Hailuo视频生成
Generate AI videos through AceDataCloud's Hailuo (MiniMax) API.
Setup: See authentication for token setup.
通过AceDataCloud的Hailuo(MiniMax)API生成AI视频。
设置: 请查看身份验证了解令牌设置。
Quick Start
快速开始
bash
curl -X POST https://api.acedata.cloud/hailuo/videos \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action": "generate", "prompt": "a dolphin jumping through ocean waves at golden hour", "model": "minimax-t2v"}'Async: See async task polling. Poll viawithPOST /hailuo/tasks.{"id": "..."}
bash
curl -X POST https://api.acedata.cloud/hailuo/videos \
-H "Authorization: Bearer $ACEDATACLOUD_API_TOKEN" \
-H "Content-Type: application/json" \
-d '{"action": "generate", "prompt": "黄昏时分海豚跃过海浪", "model": "minimax-t2v"}'异步处理: 请查看异步任务轮询。通过并携带POST /hailuo/tasks进行轮询。{"id": "..."}
Models
模型
| Model | Type | Best For |
|---|---|---|
| Text-to-Video | Creating video from text description |
| Image-to-Video | Animating a still image |
| Image-to-Video (Director) | Precise control over animation from image |
| 模型 | 类型 | 适用场景 |
|---|---|---|
| 文本转视频 | 根据文本描述创建视频 |
| 图片转视频 | 将静态图片动效化 |
| 图片转视频(导演模式) | 对图片动效实现精准控制 |
Workflows
工作流程
1. Text-to-Video
1. 文本转视频
json
POST /hailuo/videos
{
"action": "generate",
"prompt": "a time-lapse of flowers blooming in a meadow",
"model": "minimax-t2v"
}json
POST /hailuo/videos
{
"action": "generate",
"prompt": "草地上花朵绽放的延时摄影",
"model": "minimax-t2v"
}2. Image-to-Video
2. 图片转视频
Animate a still image into a video clip.
json
POST /hailuo/videos
{
"action": "generate",
"prompt": "gentle wind blows through the scene",
"model": "minimax-i2v",
"first_image_url": "https://example.com/landscape.jpg"
}将静态图片转换为视频片段。
json
POST /hailuo/videos
{
"action": "generate",
"prompt": "微风吹过场景",
"model": "minimax-i2v",
"first_image_url": "https://example.com/landscape.jpg"
}3. Image-to-Video (Director Mode)
3. 图片转视频(导演模式)
More precise control over the animation.
json
POST /hailuo/videos
{
"action": "generate",
"prompt": "camera slowly zooms in while leaves fall gently",
"model": "minimax-i2v-director",
"first_image_url": "https://example.com/scene.jpg"
}对动效实现更精准的控制。
json
POST /hailuo/videos
{
"action": "generate",
"prompt": "镜头缓慢拉近,树叶轻轻飘落",
"model": "minimax-i2v-director",
"first_image_url": "https://example.com/scene.jpg"
}Parameters
参数说明
| Parameter | Required | Values | Description |
|---|---|---|---|
| Yes | | Action type |
| Yes | string | Video description |
| Yes | | Model |
| For i2v | string | Source image URL (required for image-to-video) |
| No | string | Async callback URL |
| 参数 | 是否必填 | 取值 | 描述 |
|---|---|---|---|
| 是 | | 操作类型 |
| 是 | 字符串 | 视频描述 |
| 是 | | 模型 |
| 图片转视频必填 | 字符串 | 源图片URL(图片转视频时必填) |
| 否 | 字符串 | 异步回调URL |
Gotchas
注意事项
- is required for
first_image_urlandminimax-i2vmodelsminimax-i2v-director - Director mode () provides finer camera/motion control than standard i2v
minimax-i2v-director - The field currently only supports
action— no extend or edit"generate" - Flat pricing per generation regardless of model
- 使用和
minimax-i2v模型时,minimax-i2v-director为必填项first_image_url - 导演模式()比普通图片转视频模式提供更精细的镜头/动效控制
minimax-i2v-director - 当前字段仅支持
action,暂不支持扩展或编辑操作"generate" - 无论使用哪种模型,每次生成均采用统一定价