重要: resolution参数值中的字母必须使用大写。支持480P、768P、1080P、2K;请勿使用480p、768p、1080p、2k。参数名仍为小写resolution,默认值为768P。
Authorization: Bearer <API_KEY>,Content-Type: application/json。resolution、ratio、content 直接放在 JSON 顶层,按下方示例调用。seconds 为 4–15 的整数,默认 4;resolution 默认 768P;ratio 默认 9:16。content 支持 text、image_url、video_url、audio_url。媒体项使用对应的 reference_image、reference_video、reference_audio 角色,地址放在对应对象的 url 中。content 的 text 项中,也可用顶层 prompt。两者同时提供且 content 已含非空文本时,不会再追加 prompt。id。GET /v1/videos/{task_id} 查询状态,task_id 填入上一步的 id。status 为 completed 时,使用 GET /v1/videos/{task_id}/content 获取视频;failed 表示任务失败。{
"model": "MiniMax-H3",
"seconds": 4,
"resolution": "2K",
"ratio": "16:9",
"content": [
{
"type": "text",
"text": "结合参考图片中的人物形象、参考视频中的动作节奏以及参考音频节奏,生成一段电影感视频"
},
{
"type": "image_url",
"role": "reference_image",
"image_url": {
"url": "https://example.com/reference.png"
}
},
{
"type": "video_url",
"role": "reference_video",
"video_url": {
"url": "https://example.com/reference.mp4"
}
},
{
"type": "audio_url",
"role": "reference_audio",
"audio_url": {
"url": "https://example.com/reference.mp3"
}
}
]
}{
"model": "MiniMax-H3",
"seconds": 4,
"resolution": "768P",
"ratio": "9:16",
"content": [
{
"type": "text",
"text": "一只小猫在晨光中奔跑,电影感镜头"
}
]
}{
"model": "MiniMax-H3",
"seconds": 10,
"resolution": "480P",
"ratio": "16:9",
"content": [
{
"type": "text",
"text": "一只小猫在晨光中奔跑,电影感镜头"
}
]
}{
"model": "MiniMax-H3",
"seconds": 10,
"resolution": "1080P",
"ratio": "16:9",
"content": [
{
"type": "text",
"text": "一只小猫在晨光中奔跑,电影感镜头"
}
]
}curl --location 'https://api.openai-hub.net/v1/videos' \
--header 'Authorization: Bearer sk-0ABIEXVjh9****Qckjy' \
--header 'Content-Type: application/json' \
--data '{
"model": "MiniMax-H3",
"seconds": 4,
"resolution": "1080P",
"ratio": "16:9",
"content": [
{
"type": "text",
"text": "结合参考图片中的人物形象、参考视频中的动作节奏以及参考音频节奏,生成一段电影感视频"
},
{
"type": "image_url",
"role": "reference_image",
"image_url": {
"url": "https://example.com/reference.png"
}
},
{
"type": "video_url",
"role": "reference_video",
"video_url": {
"url": "https://example.com/reference.mp4"
}
},
{
"type": "audio_url",
"role": "reference_audio",
"audio_url": {
"url": "https://example.com/reference.mp3"
}
}
]
}'{
"id": "task_example",
"object": "video",
"model": "MiniMax-H3",
"status": "queued",
"progress": 0,
"created_at": 1793966400
}