Create a MiniMax H3 video
Create a MiniMax H3 text-to-video or reference-image video task through CometAPI with an exact WxH size.
id for status and content requests.
POST /v1/videos uses multipart/form-data. Send scalar controls as form fields. Repeat the relevant image field when you use multiple reference images.
Choose an input mode
Use reference images
For HTTPS reference images, repeat theimages multipart field. Each value must be a publicly accessible HTTPS image URL.
For uploaded reference images, repeat the input_reference multipart field. Upload PNG or JPEG files up to 20 MB each.
A request can contain up to nine reference images across the URL and file fields. Describe the visual details that the generated video should preserve.
Set duration and size
Setseconds to an integer from 5 through 15. The default is 5 seconds.
Set size to an exact WxH value. For predictable output dimensions, choose a canonical size from the table below. Other WxH values can be normalized to the nearest supported aspect ratio and size.
Task flow
Create the task
id.Poll the task
status is completed or failed.Download the result
completed, call Download MiniMax H3 video content to save the MP4 file.Authorizations
Bearer authentication. Use your CometAPI API key.
Body
Model ID for this route. Use minimax-h3.
"minimax-h3"Text that describes the scene, motion, camera behavior, and visual details that the video should preserve.
1Requested clip duration in whole seconds. Use an integer from 5 through 15. The default is 5.
5 <= x <= 15Requested frame size in exact WxH form. For predictable output dimensions, use one of the documented canonical sizes. Other WxH inputs can be normalized to the nearest supported aspect ratio and size.
^[1-9][0-9]*x[1-9][0-9]*$"1536x672"
"1344x768"
"1024x768"
"768x768"
"768x1024"
"768x1344"
"2912x1280"
"2560x1440"
"1920x1440"
"1440x1440"
"1440x1920"
"1440x2560"
Publicly accessible HTTPS reference image URLs. Repeat the images multipart field for each URL. A request can contain up to nine reference images across images and input_reference.
1 - 9 elements^https://PNG or JPEG reference image files. Repeat the input_reference multipart field for each file. Each file can be up to 20 MB. A request can contain up to nine reference images across input_reference and images.
1 - 9 elementsResponse
Task created. Store the returned id and use it in retrieve and content requests.
Task ID. Use this value as task_id in retrieve and content requests.
"<task_id>"
Object type for the asynchronous video task.
"video"Model ID that the task uses.
"minimax-h3"Task lifecycle status. Poll until the value is completed or failed.
queued, in_progress, completed, failed Task progress as a coarse percentage.
0 <= x <= 100Task creation time as a Unix timestamp in seconds.
Compatibility alias for id. This field can be omitted from retrieve responses.
"<task_id>"
Unix timestamp returned by the platform. Use status, not this field, to decide when polling can stop.
Result expiration time as a Unix timestamp in seconds when the task provides one.
Video delivery URL. This field appears on completed tasks.
"https://<provider-cdn>/<video_id>.mp4"
Failure details. This field appears when the task fails.