curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax/hailuo-02/pro/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"resolution": "768P"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}MiniMax / Hailuo
Hailuo 02 Pro 文生视频
使用 Hailuo 02 Pro 根据文本创建短场景,可选提示词优化来完善片段的视觉方向。
POST
/
api
/
generate
/
submit
curl --request POST \
--url https://api.vidgo.ai/api/generate/submit \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax/hailuo-02/pro/text-to-video",
"input": {
"prompt": "A quiet forest under soft morning light, with natural detail.",
"resolution": "768P"
}
}
'{
"code": 200,
"data": {
"task_id": "task-unified-example",
"status": "running",
"created_time": "2026-09-10T08:00:00"
}
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}Request timeout{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}{
"detail": "<string>"
}- 提交后会返回
task_id。如果提供了callback_url,当任务状态变为finished或failed时,系统会向callback_url发送 POST 请求。 - 无论是否提供
callback_url,都可以通过统一的查询任务状态接口获取结果。
模型
- minimax/hailuo-02/pro/text-to-video - 根据文本提示词生成视频场景。
功能
- 根据文本提示词生成视频场景。
输出选项
resolution:可选。可选值:512P、768P。默认值:768P。
高级参数
model 和可选的 callback_url 放在请求根级。所有工作流程参数(包括输出选项)都放在 input 中。
只发送该工作流程支持的 input 字段。不支持的 input 字段会在扣除积分前被拒绝。
提示词
prompt:必填。描述场景和期望的动作。未规定提示词最大长度。- 校验前会去除首尾空白;结果不能为空。
提示词优化
prompt_optimizer:可选。控制自动提示词优化。使用true或false。
计费因素
按次计费,使用 Pro 模型档位。两种支持的分辨率费率相同。 提交时扣除积分,任务失败时退还。授权
使用 VIDGO_API_KEY。
请求体
application/json