使用 AceDataCloud API 通过 Hailuo(MiniMax)生成 AI 视频,适用于根据文字描述创作视频或将图片动画化为视频。支持文本‑...
Generate AI videos through AceDataCloud's Hailuo (MiniMax) API.
clawhub install @acedatacloud/hailuo. Check that the ClawHub publisher is @acedatacloud.Bearer ; a platform-... management token is not a service API key./hailuo/videos and /hailuo/tasks. Advanced workflows below may call additional routes.ACEDATACLOUD_API_TOKEN=your_api_key_here in ~/.openclaw/.env, then restart the Gateway and start a new session. For a direct terminal test, run export ACEDATACLOUD_API_TOKEN="your_api_key_here" in that shell. Never put the key in a prompt or commit an .env file.Illustrated key setup, first run, and troubleshooting · Token details
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 via
POST /hailuo/taskswith{"id": "..."}.
ModelTypeBest Forminimax-t2vText-to-VideoCreating video from text descriptionminimax-i2vImage-to-VideoAnimating a still imageminimax-i2v-directorImage-to-Video (Director)Precise control over animation from image
json
POST /hailuo/videos
{
"action": "generate",
"prompt": "a time-lapse of flowers blooming in a meadow",
"model": "minimax-t2v"
}
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"
}
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"
}
ParameterRequiredValuesDescriptionactionYes"generate"Action typepromptYesstringVideo descriptionmodelYes"minimax-t2v", "minimax-i2v", "minimax-i2v-director"Modelfirst_image_urlFor i2vstringSource image URL (required for image-to-video)callback_urlNostringAsync callback URL
first_image_url is required for minimax-i2v and minimax-i2v-director modelsminimax-i2v-director) provides finer camera/motion control than standard i2vaction field currently only supports "generate" — no extend or edit