泽算使用文档

视频模型

三步调用

POST /v1/videos                提交任务,返回 task id
GET  /v1/videos/{id}           查询状态
GET  /v1/videos/{id}/content   下载 mp4

提交参数

参数 类型 说明
model string 视频模型名
prompt string 画面描述
seconds integer 时长 2–15 秒
size string 1280x720 或 720x1280
input_reference file 参考图,multipart,可选

模型与素材

模型 用途 素材
minimax-h3-biren-fl2av 文生视频 不需要
minimax-h3-turbo4step-biren 参考图生成 1–9 张
minimax-h3-biren-ref2av-images 纯图参考 1–2 张
minimax-h3-biren-fl2av-quality 首尾帧(精细) 首帧 + 尾帧
minimax-h3-biren-fl2av-balanced 首尾帧(均衡) 首帧 + 尾帧

示例:文生视频

curl -X POST https://token.zesuanai.com/v1/videos \
  -H "Authorization: Bearer sk-你的密钥" \
  -H "Content-Type: application/json" \
  -d '{"model":"minimax-h3-biren-fl2av","prompt":"一只小猫在草地上打滚","seconds":2,"size":"1280x720"}'

示例:首尾帧

curl -X POST https://token.zesuanai.com/v1/videos \
  -H "Authorization: Bearer sk-你的密钥" \
  -F 'model=minimax-h3-biren-fl2av-quality' \
  -F 'prompt=白天过渡到夜晚' \
  -F 'seconds=2' -F 'size=1280x720' \
  -F 'first_frame=@first.png' \
  -F 'last_frame=@last.png'

生成需要排队,建议每 3–5 秒轮询一次状态。