Video Generation
MiniMax H3 text, frame-guided, and multi-reference video generation
The MiniMax H3 (Hailuo-03) endpoint supports text-to-video, first-frame image-to-video, first-and-last-frame video, and multi-reference video generation through POST /v1/videos. The interface is async: on success it returns a video task object with status=queued; poll the Query Result endpoint with the returned id until status becomes completed, then retrieve the final video through the content endpoint.
Billing model
This endpoint is billed under the model specified by the model field (MiniMax-H3), deducted from your account balance. Add the model on the channel first (select channel type MiniMax).
Supported model and parameters
- Model:
MiniMax-H3(Hailuo-03); - Text: every request needs non-empty text, supplied as top-level
promptor atype=textitem inmetadata.content; - Duration
seconds: an integer from 4 to 15 (default 5); - Resolution: set
size, top-levelresolution, ormetadata.resolutionto768Por2K(default768P). Pixel dimensions such as1280x720are not accepted assize; - Aspect ratio: use
metadata.ratiowith21:9,16:9,4:3,1:1,3:4,9:16, oradaptive. Text-only requests default to16:9; requests with an image or video default toadaptive; - Other integrated fields:
metadata.callback_urlandmetadata.aigc_watermark.
Supported input modes
- Text-to-video: provide only
prompt; - First-frame guidance: provide
input_reference/image, oneimagesentry, ormetadata.first_frame_image; - First-and-last-frame guidance: provide two
imagesentries (first, then last), or usemetadata.first_frame_imageandmetadata.last_frame_image; - Multi-reference generation: use
metadata.contentwithreference_image,reference_video, andreference_audioitems. Up to 9 input images, 3 reference videos, and 3 reference audio items are accepted; - Frame images cannot be mixed with reference media.
metadata.contentis the complete multimodal content array; if it already contains a text item, top-levelpromptis not appended.
Authorization
BearerAuth
使用 Bearer Token 认证
In: header
模型名称
文本提示词。若 metadata.content 已含非空 text 项,可省略
视频时长(秒),默认 5
54 <= value <= 15输出分辨率,不是像素尺寸
"768P""768P" | "2K"size 的等价分辨率字段
"768P" | "2K"首帧图片 URL
首帧图片 URL
帧图片 URL。第一个为首帧,第二个为尾帧
items <= 2Response Body
application/json
curl -X POST "https://www.omwai.xyz/v1/videos" \ -H "Content-Type: application/json" \ -d '{ "model": "MiniMax-H3", "prompt": "A calico cat playing piano on a stage", "seconds": 5, "size": "768P", "metadata": { "ratio": "16:9" } }'{
"id": "string",
"object": "video",
"model": "MiniMax-H3",
"status": "queued",
"progress": 100,
"created_at": 0,
"completed_at": 0
}Async flow
POST /v1/videossubmits and returns anidwithstatus=queued;- Use that
idastask_idwhen pollingGET /v1/videos/{task_id}; - When
status=completed, retrieve the video viaGET /v1/videos/{task_id}/content.
How is this guide?
Last updated on