Skip to main content
POST
MiniMax-H3 Reference to Video

Headers

Authorization
string

Body

application/json
model
enum<string>
required

Model name. Must be hailuo_h3_refs.

Available options:
hailuo_h3_refs
prompt
string
required

Text prompt describing the video. Required. Max 7000 characters. Refer to reference material by position: <Picture 1><Picture 9>, <Video 1>, <Audio 1><Audio 3>.

Maximum string length: 7000
ref_imgs
string<uri>[]
required

Reference images, 1–9 URLs. Required. JPG/PNG/WEBP, ≤10MB each, shortest side ≥300px. Array order defines the <Picture N> numbering used in the prompt.

Required array length: 1 - 9 elements
ref_videos
string<uri>[]

Reference video, 0–1 URL. Optional. Only the first 15 seconds are used. Referred to as <Video 1> in the prompt. Including one makes the request noticeably slower to render; the price is unchanged.

Required array length: 1 element
ref_audios
string<uri>[]

Reference audio, 0–3 URLs. Optional. Only the first 15 seconds of each are used. Array order defines the <Audio N> numbering used in the prompt.

Required array length: 1 - 3 elements
resolution
enum<string>
default:2K

Output resolution. This also selects the price — see the pricing table. 2K renders at 720p first and is then upscaled, so it takes longer.

Available options:
480p,
720p,
2K
duration
integer
default:5

Video duration in seconds. Any integer from 5 to 15.

Required range: 5 <= x <= 15
ratio
enum<string>
default:16:9

Aspect ratio of the output video. Unlike the hailuo_h3 model, reference-to-video always uses this value (there is no input frame to follow).

Available options:
16:9,
9:16,
1:1,
4:3,
3:4,
3:2,
2:3
custom_callback_url
string<uri>

Optional. 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.

Example:

"https://your-server.com/goenhance/callback"

Response

code
integer
required
msg
string
required
data
object
required