中文视频
提交视频生成任务
POSThttps://api.minih3.dev/v1/videos
这个接口会从你的账户扣费。 价格: 480p $0.012/秒、768p $0.015/秒、1080p 及以上 $0.03/秒,× 请求秒数
用途:提交一次视频生成任务,立刻返回任务号;成片要另外查询、下载。
计费:按你请求的 seconds × 该档每秒价计费,提交成功时扣;提交被拒(返回非 2xx)不扣;任务运行中失败会自动全额退回,用量记录里会多一条退款。
备注:
resolution只能取这个模型允许的值,写错会直接返回 400,错误信息里会列出允许值。- 素材字段名写错(例如把
images写成reference_image)不会报错,只是素材不生效。 - 提交后不能取消。
参数
| 名称 | 位置 | 类型 | 必填 | 说明 |
|---|---|---|---|---|
model | body | string | 是 | 模型 id,见 /catalog。 |
prompt | body | string | 是 | 自然语言描述,必填。多数模型 ≤20000 字符; |
seconds | body | integer | 否 | 请求秒数,按它计费;1080p 两个型号上限 10 |
resolution | body | string | 否 | 本模型允许的档位原值,例如 480p横、768p竖、480p(1:1);也可以写 768p 再传 orientation(landscape/portrait/1:1),或写像素如 1376x768。只写 768p 不传 orientation 时按竖屏。不填为 768p竖 |
images | body | array<string> | 否 | 参考图,可公开访问的 http(s) 地址;第 1 张在提示词里写作 <Picture 1> |
orientation | body | string | 否 | 和不带横竖的 resolution(如 768p)一起用 landscapeportrait1:1 |
audios | body | array<string> | 否 | 参考音频,第 1 段写作 <Audio 1> |
代码示例
curl -X POST "https://api.minih3.dev/v1/videos" \
-H "Authorization: Bearer $MINIH3_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"model": "minimax-h3-ref2va",
"prompt": "a cyclist crossing a neon-lit street in the rain, handheld, 35mm",
"seconds": 5,
"resolution": "768p横",
"images": [
"https://example.com/ref.jpg"
],
"audios": [
"https://example.com/ref.mp3"
]
}'在线试调
只存在这个浏览器标签页里(sessionStorage),直接发给 api.minih3.dev,不经过本站服务器。
填上 key 才能发送。响应
200
任务已创建
{
"id": "task_xxx",
"object": "video",
"model": "minimax-h3-ref2va",
"status": "queued",
"progress": 0,
"created_at": 1793194548
}400
错误
401
错误
403
错误
429
错误