curl --request POST \
--url https://www.anyfast.com.cn/minimax/v2/video_generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "电影感航拍镜头,清晨的云海缓慢掠过雪山,光线柔和"
}
],
"resolution": "768P",
"duration": 6,
"ratio": "16:9",
"aigc_watermark": false
}
'{
"task_id": "1234567890"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}MiniMax
MiniMax-H3 创建视频任务
使用文本、图片、视频或音频参考素材创建 MiniMax-H3 视频生成任务。
POST
/
minimax
/
v2
/
video_generation
curl --request POST \
--url https://www.anyfast.com.cn/minimax/v2/video_generation \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"model": "MiniMax-H3",
"content": [
{
"type": "text",
"text": "电影感航拍镜头,清晨的云海缓慢掠过雪山,光线柔和"
}
],
"resolution": "768P",
"duration": 6,
"ratio": "16:9",
"aigc_watermark": false
}
'{
"task_id": "1234567890"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>"
},
"message": "<string>"
}Authorizations
使用 Bearer YOUR_API_KEY 格式传入 AnyFast API Key。
Body
application/json
模型 ID,固定为 MiniMax-H3。
Available options:
MiniMax-H3 Example:
"MiniMax-H3"
提示词与媒体输入列表,合计最多 12 项。必须且只能包含一个非空 text 项。
首帧/尾帧模式不能与参考图片、参考视频或参考音频模式混用。
Required array length:
1 - 12 elements- 文本提示词
- 图片输入
- 参考视频输入
- 参考音频输入
Show child attributes
Show child attributes
输出视频分辨率。
Available options:
768P, 2K Example:
"768P"
输出视频时长,单位为秒。
Required range:
4 <= x <= 15Example:
6
输出宽高比。纯文本生成视频时不能使用 adaptive,必须指定明确比例;
图生视频或参考素材模式可以使用 adaptive。
Available options:
adaptive, 21:9, 16:9, 4:3, 1:1, 3:4, 9:16 Example:
"16:9"
接收任务状态通知的 HTTPS 回调地址。
Example:
"https://example.com/webhooks/minimax"
是否在输出视频中添加 AIGC 水印。
Example:
false
Response
任务创建成功
视频生成任务 ID,用于后续查询。
Example:
"1234567890"