curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-h3-max-image-to-video",
"prompt": "焦点从前景的拉面碗缓缓转移到背景人物,热气持续从碗中升起并随空气自然飘散。镜头轻微前推,保持人物身份和餐厅环境一致。",
"image_start": "https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png",
"duration": 5,
"quality": "768p"
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "minimax-h3-max-image-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": false,
"estimated_time": 165,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 44.2,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: minimax-h3-max-image-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}Minimax H3 Max Image-to-Video 图生视频
image_start和image_end至少传一个;支持仅首帧、仅尾帧或首尾帧- 输出时长支持
5–15秒,分辨率支持480p与768p(默认) - 模型会根据输入图像自动适配输出视频的宽高比,无需传入
aspect_ratio - 异步处理模式,使用返回的任务 ID 进行查询
- 生成的视频链接有效期为 24 小时,请尽快保存
curl --request POST \
--url https://api.evolink.ai/v1/videos/generations \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "minimax-h3-max-image-to-video",
"prompt": "焦点从前景的拉面碗缓缓转移到背景人物,热气持续从碗中升起并随空气自然飘散。镜头轻微前推,保持人物身份和餐厅环境一致。",
"image_start": "https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png",
"duration": 5,
"quality": "768p"
}
'{
"created": 1761313744,
"id": "task-unified-1774857405-abc123",
"model": "minimax-h3-max-image-to-video",
"object": "video.generation.task",
"progress": 0,
"status": "pending",
"task_info": {
"can_cancel": false,
"estimated_time": 165,
"video_duration": 5
},
"type": "video",
"usage": {
"billing_rule": "per_second",
"credits_reserved": 44.2,
"user_group": "default"
}
}{
"error": {
"code": "invalid_request",
"message": "Invalid request parameters",
"type": "invalid_request_error"
}
}{
"error": {
"code": "unauthorized",
"message": "Invalid or expired token",
"type": "authentication_error"
}
}{
"error": {
"code": "insufficient_quota",
"message": "Insufficient quota. Please top up your account.",
"type": "insufficient_quota"
}
}{
"error": {
"code": "model_access_denied",
"message": "Token does not have access to model: minimax-h3-max-image-to-video",
"type": "invalid_request_error"
}
}{
"error": {
"code": "rate_limit_exceeded",
"message": "Too many requests, please try again later",
"type": "rate_limit_error"
}
}{
"error": {
"code": "internal_error",
"message": "Internal server error",
"type": "api_error"
}
}授权
##所有接口均需要使用Bearer Token进行认证##
获取 API Key:
访问 API Key 管理页面 获取您的 API Key
使用时在请求头中添加:
Authorization: Bearer YOUR_API_KEY
请求体
视频生成模型名称
minimax-h3-max-image-to-video "minimax-h3-max-image-to-video"
描述输入图片如何运动、镜头如何变化以及期望生成的视频内容。
提示词要求:
- 必填且不能为空
- 支持中文和英文
- 最长
7000字符(中文和英文均按字符计) - 提示词过长时,模型可能忽略部分细节
输入限制:
- 本模型使用
image_start和/或image_end接收首尾帧 - 不支持
video_urls、audio_urls;传入这些字段会返回参数错误
1 - 7000"焦点从前景的拉面碗缓缓转移到背景人物,热气持续从碗中升起并自然飘散。镜头轻微前推,保持人物身份和餐厅环境一致。"
首帧图片的 HTTP(S) URL。
组合规则:
image_start与image_end至少传入一个- 仅传
image_start:首帧图生视频 - 同时传入两者:首尾帧图生视频
- 首帧最多
1张,本字段为单个 URL
图片要求:
- 支持格式:JPG、JPEG、PNG、WEBP、HEIC、HEIF
- 单张大小:不超过
30MB - 图片宽度和高度:均为
256–5760px - 宽高比(宽/高):
0.4–2.5 - URL 必须使用 HTTP(S),且可由服务端直接访问
- 整个 JSON 请求体大小不超过
64MB;不接受 Base64 或mm_file://输入
"https://cdn.hailuoai.com/prod/hailuo_demo/testsets/H3_AA_I2VA/gallery/sr_v17_variants_seed42_43_20260724/inputs/4a3a90bf9100_KDmcbkhzYo5sjjxr9FqcVmWVnzb.png"
尾帧图片的 HTTP(S) URL。
组合规则:
image_end与image_start至少传入一个- 仅传
image_end:尾帧图生视频,模型生成自然运动并在该画面结束 - 同时传入两者:首尾帧图生视频
- 尾帧最多
1张,本字段为单个 URL
图片要求:
- 支持格式:JPG、JPEG、PNG、WEBP、HEIC、HEIF
- 单张大小:不超过
30MB - 图片宽度和高度:均为
256–5760px - 宽高比(宽/高):
0.4–2.5 - URL 必须使用 HTTP(S),且可由服务端直接访问
- 整个 JSON 请求体大小不超过
64MB;不接受 Base64 或mm_file://输入
"https://images.unsplash.com/photo-1515003197210-e0cd71810b5f?auto=format&fit=crop&w=1920&q=85"
输出视频时长(秒),默认为 5 秒。
取值限制:
- 仅支持
5–15之间的整数,包括5和15 - 不支持小数、数字字符串、
auto或-1 - 输出时长与计费直接相关
5 <= x <= 155
输出视频分辨率,默认为 768p。
可选值:
480p768p:默认值
注意:
- 不传该参数时按
768p出片 - 输出码率、帧率、视频编码和音频编码由平台决定,当前不提供对应请求参数
480p, 768p "768p"
任务完成后的 HTTPS 回调地址
回调时机:
- 任务完成(completed)或失败(failed)时触发
- 在计费确认完成后发送
安全限制:
- 仅支持 HTTPS 协议
- 禁止回调到内网 IP 地址(127.0.0.1、10.x.x.x、172.16-31.x.x、192.168.x.x 等)
- URL 长度不超过
2048字符
回调机制:
- 超时时间:
10秒 - 失败后最多重试
3次(分别在失败后1/2/4秒重试) - 回调响应体格式与任务查询接口返回格式一致
- 返回 2xx 状态码视为成功,其他状态码触发重试
^https://"https://your-domain.com/webhooks/video-task-completed"
响应
视频生成任务创建成功
任务创建时间戳
1761313744
任务ID
"task-unified-1774857405-abc123"
实际使用的模型名称
"minimax-h3-max-image-to-video"
任务的具体类型
video.generation.task 任务进度百分比 (0-100)
0 <= x <= 1000
任务状态
pending, processing, completed, failed "pending"
视频任务详细信息
Show child attributes
Show child attributes
任务的输出类型
text, image, audio, video "video"
使用量和计费信息
Show child attributes
Show child attributes