First/Last Frame Video Generation
POST
/minimax/v1/video_generation
|
- First/Last Frame Video Generation
- MiniMax official API
- Official docs: First/Last Frame Video Generation
Authorizations
bearer
Type
HTTP (bearer)
Request Body
application/json
model
string
Required
模型名称。仅支持 MiniMax-Hailuo-02(注意:首尾帧生Success能不支持 512P 分辨率)
last_frame_image
string
Required
视频的结束帧图片。支持公网 URL 或 Base64 编码的 Data URL(data:image/jpeg;base64,...)。格式:JPG/JPEG/PNG/WebP,体积 < 20MB,短边 > 300px,长宽比 2:5 至 5:2 之间
first_frame_image
string
Required
视频的起始帧图片。支持公网 URL 或 Base64 编码的 Data URL。格式要求同 last_frame_image。⚠️ 生成视频尺寸遵循首帧图片,首尾帧尺寸不一致时会按首帧裁剪尾帧
prompt
string
Required
视频的文本描述,最大 2000 字符。
duration
integer
Required
视频时长(秒)。可用值:6 或 10(10秒仅支持 768P)
resolution
string
Required
视频分辨率。可选值:768P(Default,支持 6s/10s), 1080P(仅支持 6s
prompt_optimizer
boolean
Whether to automatically optimize the prompt. Set to false for more precise control.
callback_url
string
接收任务状态更新通知的回调 URL。配置后会收到任务状态变更的异步通知
aigc_watermark
boolean
Whether to add an AIGC watermark to the generated video.
Responses
Success
application/json
object
task_id
string
Required
base_resp
object
Required