Skip to content
中文
Hailuo · Model API

Hailuo 03 API

MiniMax H3 (Hailuo-03) API with VezAPI. Explore model capabilities, credit pricing, request parameters, and integration examples.

Text to VideoImage to VideoVideo to VideoVideo Editing

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.

Base URL: https://api.vezapi.com
Send 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

POST/api/v1/jobs/createTask

Model IDs: minimax-h3/image-to-video

ParameterTypeDescription & constraints
model
required
string

The name of the model used for the generation task. Used for MiniMax H3 image-to-video.

Values: "minimax-h3/image-to-video"

Default: "minimax-h3/image-to-video"

callBackUrl
optional
string

The callback URL after the task is completed.

input
required
object
input.prompt
required
string

Video generation prompt, length is between 1 and 7000 characters.

minLength: 1

maxLength: 7000

input.first_frame_url
optional
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_url
optional
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.duration
required
integer

Generated video duration, supporting integer values from 4 to 15 seconds.

Values: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Default: 6

minimum: 4

maximum: 15

input.resolution
optional
string

Video resolution.

Values: "768P", "2K"

Default: "2K"

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

ParameterTypeDescription & constraints
code
optional
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: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

MiniMax H3 Reference-to-Video

POST/api/v1/jobs/createTask

Model IDs: minimax-h3/reference-to-video

ParameterTypeDescription & constraints
model
required
string

The name of the model used for the generation task. Used for MiniMax H3 reference-to-video.

Values: "minimax-h3/reference-to-video"

Default: "minimax-h3/reference-to-video"

callBackUrl
optional
string

The callback URL after the task is completed.

input
required
object
input.prompt
required
string

Video generation prompt, length is between 1 and 7000 characters.

minLength: 1

maxLength: 7000

input.reference_image_urls
optional
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.

maxItems: 9

input.reference_video_urls
optional
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.

maxItems: 3

input.reference_audio_urls
optional
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.

maxItems: 3

input.aspect_ratio
optional
string

Video aspect ratio. The default is adaptive, or a specific ratio can be specified.

Values: "adaptive", "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"

Default: "adaptive"

input.duration
required
integer

The duration of the generated video, supporting integer values from 4 to 15 seconds.

Values: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Default: 6

minimum: 4

maximum: 15

input.resolution
optional
string

Video resolution.

Values: "768P", "2K"

Default: "2K"

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

ParameterTypeDescription & constraints
code
optional
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: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
string

The task ID can be used with the "Get Task Details" endpoint to query the task status.

MiniMax H3 Text-to-Video

POST/api/v1/jobs/createTask

Model IDs: minimax-h3/text-to-video

ParameterTypeDescription & constraints
model
required
string

The name of the model used for the generation task. Used for MiniMax H3 text-to-video.

Values: "minimax-h3/text-to-video"

Default: "minimax-h3/text-to-video"

callBackUrl
optional
string

The callback URL after the task is completed.

input
required
object
input.prompt
required
string

Video generation prompt, length is between 1 and 7000 characters.

minLength: 1

maxLength: 7000

input.aspect_ratio
required
string

Video aspect ratio. Required for text-to-video, adaptive is not supported.

Values: "21:9", "16:9", "4:3", "1:1", "3:4", "9:16"

input.duration
required
integer

Generated video duration, supports integer values from 4 to 15 seconds.

Values: 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15

Default: 6

minimum: 4

maximum: 15

input.resolution
optional
string

Video resolution.

Values: "768P", "2K"

Default: "2K"

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

ParameterTypeDescription & constraints
code
optional
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: 200, 401, 402, 404, 422, 429, 433, 455, 500, 501, 505

msg
optional
string

Response message, error description upon failure

data
required
object
data.taskId
required
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.

Open full documentation →

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.

SpecificationCreditsUnitUSD reference
MiniMax H3, video input, 768p8per second$0.08
MiniMax H3, reference to video, 768p8per second$0.08
MiniMax H3, image to video, 768p8per second$0.08
MiniMax H3, text to video, 768p8per second$0.08
MiniMax H3, text to video, 2K13per second$0.13
MiniMax H3, image to video, 2K13per second$0.13
MiniMax H3, reference to video, 2K13per second$0.13
MiniMax H3, video input, 2k13per second$0.13
MiniMax H3, image input, 768p, 2k4per image$0.04