MiniMax H3 Max
https://api.hiapi.ai /v1/tasks Image, video, and audio models are called through the Unified Async API POST /v1/tasks endpoint; only the input fields differ (see input parameters below).
Model summary
| Model name | minimax-h3-max |
|---|---|
| Type | Text-to-video and image-to-video |
| Endpoint | POST /v1/tasks |
| Pricing | View live pricing |
Generate videos from text, or use images to guide the opening and ending frames. Supports 480P and 768P output with a duration of 5–15 seconds.
Production guidance
- Use callback.url for terminal notifications and deduplicate by taskId.
- Keep polling tasks that are still processing; avoid duplicate submissions.
Best suited for
Describe the scene, action, and camera movement to generate a video.
Set an image as the opening frame and describe movement in the prompt. You can also guide the ending with an image.
Request parameters
model string required Use minimax-h3-max.
input object required Video generation parameters.
prompt string required Describe the scene, character actions, camera movement, and sound, using up to 7,000 characters.
duration integer optional Length of the generated video, from 5 to 15 whole seconds.
resolution enum optional Resolution of the generated video.
aspect_ratio enum optional Width-to-height ratio of the generated video. When a first or last frame is supplied, the image determines the ratio.
first_frame_image string optional The image to use as the first frame of the video.
last_frame_image string optional The image to use as the last frame of the video.
callback object optional Callback configuration for terminal task notifications.
url string required HTTPS URL that receives task notifications.
when enum optional Notify when the task reaches a terminal state.
Example requests
Describe a paper boat drifting after the rain to generate a landscape video.
{
"model": "minimax-h3-max",
"input": {
"prompt": "After a morning rain, a red paper boat drifts through shallow water beneath a stone bridge. A low camera tracks smoothly beside it, small ripples spread across the water, and birds sing softly in the distance. No text or subtitles.",
"duration": 5,
"resolution": "768P",
"aspect_ratio": "16:9"
}
}Supply a last-frame image URL to guide the final composition.
{
"model": "minimax-h3-max",
"input": {
"prompt": "The camera slowly pushes forward and ends in the supplied last-frame composition.",
"duration": 5,
"resolution": "768P",
"last_frame_image": "https://example.com/end.jpg"
}
}Getting the result
- Authenticate with Authorization: Bearer YOUR_HIAPI_API_KEY and save the returned taskId.
- Poll GET /v1/tasks/{taskId}, or set callback.url to receive a terminal notification.
- Keep polling queued or processing tasks without submitting duplicates. On success, read the video URL from output[].url.
- Handle failures using the returned error. Deduplicate callbacks by taskId.
FAQ
How do I generate landscape or portrait videos?
For text-only generation, choose aspect_ratio, such as 16:9 for landscape or 9:16 for portrait. When using frame images, prepare images with the ratio you want; the image determines the video ratio.
Can I supply reference videos, reference audio, or other controls?
This API does not accept reference videos, reference audio, mode, watermark, or seed. Use the fields listed in the parameter table.