Hailuo 03 API
MiniMax H3 (Hailuo-03) API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.
MiniMax H3 (Hailuo-03) API documentation
Integrate MiniMax H3 (Hailuo-03) with your VezAPI key. The operations below share the same authentication and account balance.
https://api.vezapi.comSend Authorization: Bearer YOUR_VEZAPI_KEY. Use a unique Idempotency-Key for each submission; reuse it only when checking the same request.
MiniMax H3 Image-to-Video
/api/v1/jobs/createTaskModel IDs: minimax-h3/image-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The name of the model used for the generation task. Used for MiniMax H3 image-to-video. Values: Default: |
callBackUrloptional | string | The callback URL after the task is completed. |
inputrequired | object | |
input.promptrequired | string | Video generation prompt, length is between 1 and 7000 characters.
|
input.first_frame_urloptional | string | First frame image URL. Note: Either first_frame_url or last_frame_url must be provided. Publicly accessible HTTP(S) URL; supports JPG, JPEG, PNG, WEBP, HEIC, HEIF formats; single image size not exceeding 30 MB, image side length between 256 and 5760 pixels, aspect ratio between 0.4 and 2.5. |
input.last_frame_urloptional | string | Last frame image URL. Note: Either first_frame_url or last_frame_url must be provided. Image restrictions are the same as first_frame_url. |
input.durationrequired | integer | Generated video duration, supporting integer values from 4 to 15 seconds. Values: Default:
|
input.resolutionoptional | string | Video resolution. Values: Default: |
Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "minimax-h3/image-to-video",
"callBackUrl": "https://example.com/input.png",
"input": {
"prompt": "Let the character in the scene turn around naturally and smile, camera slowly pushing forward",
"first_frame_url": "https://example.com/input.png",
"last_frame_url": "https://example.com/input.png",
"duration": 6
}
}'Responses and errors
HTTP 200
success
| Parameter | Type | Description & constraints |
|---|---|---|
codeoptional | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). Values: |
msgoptional | string | Response message, error description upon failure |
datarequired | object | |
data.taskIdrequired | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
MiniMax H3 Reference-to-Video
/api/v1/jobs/createTaskModel IDs: minimax-h3/reference-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The name of the model used for the generation task. Used for MiniMax H3 reference-to-video. Values: Default: |
callBackUrloptional | string | The callback URL after the task is completed. |
inputrequired | object | |
input.promptrequired | string | Video generation prompt, length is between 1 and 7000 characters.
|
input.reference_image_urlsoptional | array | Array of reference image URLs. Supports up to 9 images. Publicly accessible HTTP(S) URL; supported image formats include JPG, JPEG, PNG, WEBP, HEIC, and HEIF; a single image size cannot exceed 30 MB; the side length of the image must be between 256 and 5760 pixels, and the aspect ratio must be between 0.4 and 2.5. Provide at least one of reference_image_urls or reference_video_urls.
|
input.reference_video_urlsoptional | array | Array of reference video URLs. Supports up to 3 videos. Supports MP4, MOV; video encoding supports H.264, H.265; a single file size cannot exceed 50 MB; the duration of a single segment is 2 to 15 seconds, and the total duration of all reference videos cannot exceed 15 seconds; the video side length must be between 256 and 5760 pixels, the aspect ratio must be between 0.4 and 2.5, and the frame rate must be between 23.976 and 60. Provide at least one of reference_image_urls or reference_video_urls.
|
input.reference_audio_urlsoptional | array | Array of reference audio URLs. Supports up to 3 audios. Supports WAV, MP3; a single file size cannot exceed 15 MB; the duration of a single segment is 2 to 15 seconds, and the total duration of all reference audios cannot exceed 15 seconds. reference_audio cannot be used alone, it must be accompanied by reference_image or reference_video.
|
input.aspect_ratiooptional | string | Video aspect ratio. The default is adaptive, or a specific ratio can be specified. Values: Default: |
input.durationrequired | integer | The duration of the generated video, supporting integer values from 4 to 15 seconds. Values: Default:
|
input.resolutionoptional | string | Video resolution. Values: Default: |
Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "minimax-h3/reference-to-video",
"callBackUrl": "https://example.com/input.png",
"input": {
"prompt": "Generate a continuous cinematic video referencing the characters, actions, and scenes in the input material",
"reference_image_urls": [
"https://example.com/input.png"
],
"reference_video_urls": [
"https://example.com/input.png"
],
"reference_audio_urls": [
"https://example.com/input.png"
],
"aspect_ratio": "adaptive",
"duration": 6
}
}'Responses and errors
HTTP 200
success
| Parameter | Type | Description & constraints |
|---|---|---|
codeoptional | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). Values: |
msgoptional | string | Response message, error description upon failure |
datarequired | object | |
data.taskIdrequired | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
MiniMax H3 Text-to-Video
/api/v1/jobs/createTaskModel IDs: minimax-h3/text-to-video
| Parameter | Type | Description & constraints |
|---|---|---|
modelrequired | string | The name of the model used for the generation task. Used for MiniMax H3 text-to-video. Values: Default: |
callBackUrloptional | string | The callback URL after the task is completed. |
inputrequired | object | |
input.promptrequired | string | Video generation prompt, length is between 1 and 7000 characters.
|
input.aspect_ratiorequired | string | Video aspect ratio. Required for text-to-video, adaptive is not supported. Values: |
input.durationrequired | integer | Generated video duration, supports integer values from 4 to 15 seconds. Values: Default:
|
input.resolutionoptional | string | Video resolution. Values: Default: |
Request example
curl -X POST 'https://api.vezapi.com/api/v1/jobs/createTask' \
-H 'Authorization: Bearer YOUR_VEZAPI_KEY' \
-H 'Idempotency-Key: your-unique-request-id' \
-H 'Content-Type: application/json' \
-d '{
"model": "minimax-h3/text-to-video",
"callBackUrl": "https://example.com/input.png",
"input": {
"prompt": "A cat walking slowly on the beach at sunset, cinematic shot",
"aspect_ratio": "16:9",
"duration": 6
}
}'Responses and errors
HTTP 200
success
| Parameter | Type | Description & constraints |
|---|---|---|
codeoptional | integer | Status code of the request. The HTTP status is 200 even when the request fails, so always check this field: 200 means success; any other value means the request failed and msg describes the reason. Common values: 401 invalid or missing API key; 402 insufficient credits; 429 rate limit exceeded; 422 or 500 the request could not be processed (read msg and check your parameters before retrying). Values: |
msgoptional | string | Response message, error description upon failure |
datarequired | object | |
data.taskIdrequired | string | The task ID can be used with the "Get Task Details" endpoint to query the task status. |
Task status and callbacks
For asynchronous tasks, keep the returned taskId. Query GET /api/v1/jobs/recordInfo?taskId=... or provide callBackUrl when creating the task. Only the account that created a task can access it or derive new resources from it.
A timeout can mean the submission was accepted. Inspect the existing request in your dashboard; do not create another task automatically. Callback delivery is retried and may arrive more than once. Deduplicate with X-VezAPI-Event-Id.
Files, logs and billing
Generated media normally follows a 14-day provider lifetime; uploaded files expire after 24 hours. Save the files you need before expiration. VezAPI streams registered files without keeping a permanent media library. Request logs are retained for two calendar months.
Credits are reserved before submission. Final deductions match actual discounted consumption one for one. Unknown usage pauses new paid requests. If available funds cannot cover final usage while protecting other reservations, settlement stays pending until funded; model usage cannot make the wallet negative. Time-based inputs require server-side metadata reads; a failed read prevents submission.
Send a request using your VezAPI key. Successful generations use your account credits.
/api/v1/jobs/createTaskYour response will appear here.
MiniMax H3 (Hailuo-03) API pricing
Rates below are reference estimates; final deductions equal actual discounted consumption, one for one. At the standard pack rate, 1,000 credits ≈ $10. Larger packs reduce the effective credit price.
| Specification | Credits | Unit | USD reference |
|---|---|---|---|
| MiniMax H3, video input, 768p | 8 | per second | $0.08 |
| MiniMax H3, reference to video, 768p | 8 | per second | $0.08 |
| MiniMax H3, image to video, 768p | 8 | per second | $0.08 |
| MiniMax H3, text to video, 768p | 8 | per second | $0.08 |
| MiniMax H3, text to video, 2K | 13 | per second | $0.13 |
| MiniMax H3, image to video, 2K | 13 | per second | $0.13 |
| MiniMax H3, reference to video, 2K | 13 | per second | $0.13 |
| MiniMax H3, video input, 2k | 13 | per second | $0.13 |
| MiniMax H3, image input, 768p, 2k | 4 | per image | $0.04 |