APIMart
MiniMax Hailuo 02 model icon
Video

MiniMax Hailuo 02 API

MiniMax Hailuo 02 (Hailuo 2) is MiniMax's video model released on June 18, 2025, built for strong instruction following and realistic physics. On APIMart it runs as the Hailuo API with model ID MiniMax-Hailuo-02, supporting text to video and first-and-last-frame image to video.

Text to VideoImage to VideoFirst & Last Frame

Service Highlights

  • Official Discounts
  • Pay-as-you-go
  • Fast & Low Latency
Input
31 characters
Output

Video link valid for 72 hours

MiniMax Hailuo 02 API Pricing

Transparent pricing with no hidden fees. Pay only for what you use.

VariantTierGoldCurrent pricePlatinumDiamondOfficialYour savings
MiniMax-Hailuo-02512P0.104Credits(~$0.0104)/sec0.0988Credits(~$0.0099)/sec0.0936Credits(~$0.0094)/sec0.13Credits(~$0.013)/sec20%
768P0.4Credits(~$0.04)/sec0.38Credits(~$0.038)/sec0.36Credits(~$0.036)/sec0.5Credits(~$0.05)/sec20%
1080P0.8Credits(~$0.08)/sec0.76Credits(~$0.076)/sec0.72Credits(~$0.072)/sec1Credits(~$0.1)/sec20%

* Actual costs are subject to final output.

MiniMax Hailuo 02 API: Text to Video and First-and-Last-Frame Video

Call MiniMax Hailuo 02 through the Hailuo API on APIMart. Turn a prompt into a 5 or 10 second clip, or guide the motion with a first frame and an optional last frame, at 512p, 768p or 1080p. One API key, pay per second.

50K+

Active Users

99.9%

Uptime

2x

Faster

—

Cost Savings

MiniMax Hailuo 02 API Example: Text to Video and Image to Video

Call the Hailuo API on APIMart with one POST request. Generation is asynchronous: submit a task, then poll the task endpoint to get the video URL.

  1. 1

    Authenticate Hailuo API requests

    Save your APIMart key in the APIMART_API_KEY environment variable and send it as Authorization: Bearer <key> on every request.

  2. 2

    Submit a Hailuo 02 task

    POST /v1/videos/generations with model MiniMax-Hailuo-02, your prompt, duration and resolution. Add first_frame_image and last_frame_image for image to video. The task ID is in data[0].task_id.

  3. 3

    Get the Hailuo 02 video

    Poll GET /v1/tasks/{task_id} until status is completed, then read the video URL from data.result.videos[0].url[0]. Results are kept for 72 hours, so download them in time.

    See the MiniMax Hailuo 02 API reference for every parameter and response field.

POST /v1/videos/generations
curl -X POST https://api.apimart.ai/v1/videos/generations \
  -H "Authorization: Bearer $APIMART_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "model": "MiniMax-Hailuo-02",
    "prompt": "A gymnast performs a backflip on a balance beam in an empty arena, slow motion, dramatic side lighting",
    "duration": 10,
    "resolution": "768p",
    "prompt_optimizer": true
  }'

MiniMax Hailuo 02 API Parameters

ParameterTypeRequiredDefaultDescription
modelstringRequiredDefault: MiniMax-Hailuo-02Use MiniMax-Hailuo-02.
promptstringRequiredDefault: —Describe the scene, action and style in detail.
durationintegerOptionalDefault: 55 or 10 seconds. 1080p supports 5 seconds only. Send a number.
resolutionstringOptionalDefault: 768p512p, 768p or 1080p.
first_frame_imagestringOptionalDefault: —First frame as a public URL or a Base64 data URI.
last_frame_imagestringOptionalDefault: —Last frame as a public URL or a Base64 data URI.
prompt_optimizerbooleanOptionalDefault: trueAutomatically optimize the prompt.
fast_pretreatmentbooleanOptionalDefault: falseShorten the prompt optimization step for faster processing.
watermarkbooleanOptionalDefault: falseAdd a watermark to the output.
nsfw_checkbooleanOptionalDefault: falseReview the prompt and input images with omni-moderation-latest before submission.

Guides, comparisons and pricing analysis from the APIMart blog.