Hailuo (海螺) 视频生成 API 推广短文
Hailuo(海螺 AI)是 MiniMax 的视频模型。Ace Data Cloud 提供文生视频和首帧图生视频接口。
¶ 支持的模型
| 模型 | 模式 | 说明 |
|---|---|---|
minimax-t2v |
文生视频 | 仅传 prompt 即可生成 6 秒高清视频 |
minimax-i2v |
图生视频 | 必传 first_image_url(首帧),让静态图动起来 |
| minimax-i2v-director | 图生视频导演模式 | 输入图片和镜头提示词 |
¶ 调用示例
# 文生视频
curl -X POST 'https://api.acedata.cloud/hailuo/videos' \
-H 'authorization: Bearer {YOUR_TOKEN}' \
-H 'content-type: application/json' \
-d '{
"action": "generate",
"model": "minimax-t2v",
"prompt": "a cat playing piano in a jazz bar, warm lighting"
}'
# 图生视频(首帧驱动)
curl -X POST 'https://api.acedata.cloud/hailuo/videos' \
-H 'authorization: Bearer {YOUR_TOKEN}' \
-H 'content-type: application/json' \
-d '{
"action": "generate",
"model": "minimax-i2v",
"prompt": "the character starts walking forward",
"first_image_url": "https://example.com/start.jpg"
}'
任务异步执行,通过 task_id 轮询 /hailuo/tasks 查状态,或在请求里挂 callback_url 收回调。
¶ 适用场景
- 静图营销素材活化 —— 用 minimax-i2v 把现有产品图、海报做成 6s 短视频
- 创意短片快速试错 —— prompt → 视频,生成耗时以实际任务为准
- 多语言内容 —— 提示词可尝试中文或英文,按成片效果调整
