curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "hailuo_h3",
"prompt": "A boy playing basketball by the sea",
"duration": 5,
"ratio": "16:9"
}
'{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 5.82
}
}MiniMax-H3
MiniMax-H3 text-to-video and image-to-video, with optional audio-driven lip sync.
Pass image_url for a first frame, optionally with image_end_url for a last frame. For reference-driven generation use the hailuo_h3_refs model instead — first/last frames and reference assets are mutually exclusive.
Pricing — billed per second, by resolution:
| Resolution | Tokens / sec | USD / sec |
|---|---|---|
| 480p | 1.5 | $0.03 |
| 720p | 3 | $0.06 |
| 2K | 4.5 | $0.09 |
All resolutions support 5–15 seconds.
Audio-driven lip sync — pass audio_url (optionally with audio_start) and the characters sing or speak along with your audio. The model generates only the picture; the video’s soundtrack is your audio clip, and the video lasts exactly duration seconds as long as the audio covers it. It works with text-to-video, a first frame, or first + last frames. For a music video, generate each shot from its storyboard frames with the same song audio_url and the shot’s start time as audio_start, then join the shots in order. Billed the same as without audio.
Returns an img_uuid; poll GET /api/v1/jobs/detail (or use custom_callback_url) to get the generated video.
curl --request POST \
--url https://api.goenhance.ai/api/v1/videos/generations \
--header 'Content-Type: application/json' \
--data '
{
"model": "hailuo_h3",
"prompt": "A boy playing basketball by the sea",
"duration": 5,
"ratio": "16:9"
}
'{
"code": 0,
"msg": "Success",
"data": {
"img_uuid": "c12b656c-747a-44fd-9c80-add79b0c52d5",
"cost": 5.82
}
}Headers
Body
Model name. Must be hailuo_h3.
hailuo_h3 Text prompt describing the video. Required. Max 7000 characters.
7000Optional first-frame image. JPG/PNG/WEBP, ≤10MB, shortest side ≥300px. When provided, runs image-to-video and the output ratio follows the image.
Optional last-frame image (same limits as image_url). Must be used together with image_url.
Output resolution. This also selects the generation backend and the price — see the pricing table below.
480p, 720p, 2K Video duration in seconds. Any integer from 5 to 15.
5 <= x <= 15Aspect ratio. Text-to-video only; ignored when image_url is provided (the ratio then follows the input image).
21:9, 16:9, 4:3, 1:1, 3:4, 9:16 Optional. Drives the video with this audio: the characters lip-sync to it, and the output's soundtrack is the audio clip from audio_start to audio_start + duration. Pass the whole song or speech track; it does not need to be pre-cut. MP3/WAV/M4A/AAC/FLAC/OGG, ≤50MB. Works with text-to-video, image-to-video and first/last frame. No extra charge.
Optional. Where to start reading audio_url, in seconds (decimals allowed). Must be used together with audio_url. The audio left after audio_start must cover duration: a shortfall of less than one second is accepted (the video then ends with the audio); anything more is rejected before tokens are charged.
x >= 0Optional. A publicly accessible HTTPS URL. When the task status changes (processing / success / failed), GoEnhance sends a POST request to this URL. The request body is identical to the response of GET /api/v1/jobs/detail. If your server does not respond with HTTP 200, the notification is retried up to 3 times, with a 3-second timeout per attempt.
"https://your-server.com/goenhance/callback"
