content[] 自动识别生成方式:文生视频、关键帧生视频、参考素材视频生成、音频参考视频生成。content[] 必须恰好包含一个文本项,以及 0–12 个媒体项mm_file://、私网地址first_frame/last_frame 不得与任何 reference_* 角色混用role 时,系统将其视为 first_frame;多张图片必须显式填写角色adaptive;纯音频请求必须使用固定比例Idempotency-Key 请求头:task_idIdempotency-Key 时,每次成功创建都视为新任务content[] 中出现顺序独立编号,提示词应使用标签引用:<Picture 1>、<Picture 2>;第 1、2 段参考视频对应 <Video 1>、<Video 2>;第 1、2 段参考音频对应 <Audio 1>、<Audio 2>。Authorization: Bearer ********************{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "A cinematic view of ocean waves at sunset"
}
],
"resolution": "768P",
"duration": 5,
"ratio": "16:9"
}curl --location 'https://draw.openai-next.com/hailuo/v2/video_generation' \
--header 'Idempotency-Key: order-demo-001' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "A cinematic view of ocean waves at sunset"
}
],
"resolution": "768P",
"duration": 5,
"ratio": "16:9"
}'{
"task_id": "{task_id}"
}