Hailuo 02 API
by MiniMax
Hailuo 02 with end-frame support.
- 1080P
- Max resolution
- 10s
- Max clip length
- ~95s
- Avg. generation
- 34 credits
- From
Playground
Try Hailuo 02 right here.
Pricing
Simple per-generation pricing.
34–60 credits per generation ≈ $0.34–$0.60
The rate depends on the resolution and options you pick.
- You only pay for successful generations. Failed jobs are refunded automatically.
- One credit balance across every model on Apiframe, no per-model plans.
- Start with free credits. No subscription required.
- Volume discounts on larger plans.
Specs
At a glance.
Quickstart
How to call the Hailuo 02 API.
Send one POST /v2/videos/generate request with your API key. The call returns a jobId you can poll, or pass a webhook_url and the result is pushed to you the moment it's ready.
Swap hailuo-02 for any other model and nothing else changes.
const response = await fetch("https://api.apiframe.ai/v2/videos/generate", {
method: "POST",
headers: {
"X-API-Key": "afk_your_api_key_here",
"Content-Type": "application/json",
},
body: JSON.stringify({
"prompt": "a cinematic sunrise over a futuristic cityscape, smooth camera push-in",
"model": "hailuo-02",
"hailuoParams": {
"image": "https://example.com/input.jpg",
"resolution": "768p",
"end_image": "https://example.com/input.jpg",
"prompt_optimizer": true
}
}),
});
const { jobId } = await response.json();
console.log(jobId); Input schema
Every field Hailuo 02 accepts, with types and defaults. The full reference lives in the docs.
| Field | Type | Description |
|---|---|---|
| prompt required | string | Text description of what to generate. |
| model required | string | The model identifier for this endpoint. Default:"hailuo-02" · "hailuo-02" |
| hailuoParams.image | string (URL) | Use a still as the first frame. |
| hailuoParams.resolution | string | Resolution Default:"768p" · "768p", "1080p" |
| hailuoParams.end_image | string (URL) | Optional last frame to control the ending. |
| hailuoParams.prompt_optimizer | boolean | Let Hailuo rewrite your prompt for better results. Default:true |
The Hailuo flagship
Hailuo 02 is one of 4 Hailuo video models on Apiframe. The full editorial page (showcase, comparison, and use cases) lives on the flagship.
768p / 2K video with stereo sound.
Explore Hailuo 03 (MiniMax H3) All video modelsHailuo 02 questions
What teams ask before shipping with Hailuo 02. Everything else lives in the docs.
Is there an API for Hailuo 02?
Yes. Apiframe exposes Hailuo 02 through a single REST endpoint (POST /v2/videos/generate with model: "hailuo-02"). You get one unified API, key, and billing across every supported model, with no separate MiniMax account required.
How much does the Hailuo 02 API cost?
Hailuo 02 uses simple pay-as-you-go pricing on Apiframe. You only pay for successful generations. See the pricing page for plans and volume discounts.
How do I call the Hailuo 02 API?
Send a POST request to /v2/videos/generate with your X-API-Key and a JSON body containing model: "hailuo-02". The call returns a jobId; poll GET /v2/jobs/{id} or use a webhook to receive the result.
What parameters does Hailuo 02 support?
Hailuo 02 accepts 4 model-specific parameters (nested under hailuoParams) plus the common prompt and webhook_url fields. See the input schema above for the full list with types and defaults.
Related models
All video modelsFlux 3
by Black Forest Labs
Black Forest Labs' multimodal model — up to 20s of video with synchronized audio from text, images, or a clip.
View modelVeo 3.1
by Google
Google's flagship cinematic video model with audio.
View modelSora 2 Pro
by OpenAI
Highest-quality Sora 2 tier with HD option.
View modelKling 3.0
by Kuaishou
Latest Kling — per-second pricing, optional audio.
View model9,800+
developers & companies
Official partner of
Power your next AI product with Apiframe.
Instant access to 70+ media models through a single API. Start free and scale when you're ready.