Models / Text to video

MiniMax Hailuo 02 - API, Playground & Pricing

MiniMax Hailuo 02 makes a 6 or 10 second clip from a prompt or from your first frame, with lively motion and close prompt following, up to 1080P. Run it in the playground, call its API, or let Claude Code, Codex or Cursor run it through one FlyMy.AI MCP. No MiniMax API key: runs are billed to your FlyMy.AI balance.

Provider
MiniMax
Category
Text to video / Text and image to video
Price
from $0.10 / run ($0.28 at the defaults)
Resolution
512P, 768P, 1080P
Length
6 or 10 seconds
Returns
output
Commercial use
Allowed
Model ID
flymyai/minimax-hailuo-02
MiniMax Hailuo 02 by MiniMax: text and image to video sample, lively 1080p video
MiniMax Hailuo 02 sample from the FlyMy.AI catalog

$ YOUR NEXT RUN

Claude CodeCodexCursorAny agent

Use MiniMax Hailuo 02 in your assistant

Paste this prompt into Claude Code, Codex, Cursor or any agent. It reads the guide and helps you connect.

Read https://flymy.ai/skill.md and https://flymy.ai/models/minimax-hailuo-02.md. Help me connect the FlyMy.AI MCP to this assistant, then run MiniMax Hailuo 02 (flymyai/minimax-hailuo-02) for this task: Make a 6-second video of a fox running through fresh snow at sunrise with MiniMax Hailuo 02 at 1080P.
Open FlyMy.AIDownload brief

What MiniMax Hailuo 02 does

Hailuo 02 is MiniMax's video model with strong instruction following, lively physics and native 1080p. Describe the scene in prompt, up to 2,000 characters, and get a 6 or 10 second clip, or send a first frame in first_frame_image, a link or an upload, and the clip starts from your picture. prompt_optimizer, on by default, lets the model rewrite a short prompt before it draws. resolution is 768P by default: 1080P is the sharpest but takes 6 seconds only, and 512P is the cheapest but needs a first_frame_image. duration is 6 or 10 seconds. Output: output, one MP4 clip.

It is billed per clip, by resolution and length. It does not edit a video or follow a last frame; for newer MiniMax video use Hailuo 2.3 or MiniMax H3.

MiniMax Hailuo 02 inputs

Every input of flymyai/minimax-hailuo-02 as its live schema lists them. Returns output (array).

InputType, values and default
# prompt
string required Describe the video: the scene, the action and the camera (up to 2,000 characters)
# prompt_optimizer
boolean optional Default: true Let the model rewrite the prompt for a better result (on by default)
# duration
string optional Allowed: 6, 10 Default: 6 Length of the clip in seconds: 6 or 10 (1080P takes 6 only)
# resolution
string optional Allowed: 512P, 768P, 1080P Default: 768P 512P (needs first_frame_image), 768P or 1080P (6 seconds only)
# first_frame_image
file optional Allowed: image file, as a URL or upload Optional first frame: a link or an upload; the clip starts from it. Without it the clip is made from the prompt alone

Ask your agent

Requests to paste as they are, once the FlyMy.AI MCP is connected.

“Make a 6-second video of a fox running through fresh snow at sunrise with MiniMax Hailuo 02 at 1080P.”runs flymyai/minimax-hailuo-02
“Write and render a short ad for a reusable water bottle with MiniMax Hailuo 02: three quick shots ending on the product.”runs flymyai/minimax-hailuo-02
“Animate the photo I attach with MiniMax Hailuo 02: the camera slowly pushes in while the hair moves in the wind.”runs flymyai/minimax-hailuo-02

MiniMax Hailuo 02 price

From $0.10 per run, depending on resolution and duration. A run at the default settings costs $0.28. A run costs $0.10 to $0.56, depending on resolution and duration. Billed to your FlyMy.AI balance; no seats, no subscription and no minimum.

MiniMax Hailuo 02 vs similar models

Popular text to video models beside it, with prices from billing and settings from each live schema.

ModelProviderKindPriceDefault runResolutionLength
MiniMax Hailuo 02MiniMaxText and image to videofrom $0.10 / run$0.28512P, 768P, 1080P6 or 10 seconds
Grok Imagine Video 1.5xAIText and image to videofrom $0.08 / s$0.70480p, 720p, 1080p1 to 15 seconds
Veo 3.1GoogleText and image to videofrom $0.80 / run$3.20720p, 1080p, 4k4, 6 or 8 seconds
MiniMax H3 Max Text to VideoMiniMaxText to videofrom $0.05 / s$0.40480P, 768P, 1080P1 to 15 seconds

MiniMax Hailuo 02 API

The same model from your own code or from an agent. Send your FlyMy.AI API key in the X-API-KEY header; get a key in your account.

cURL

Form fields, not JSON; files go as uploads or public URLs. The answer is a prediction_id; read the result at https://api.flymy.ai/api/v1/flymyai/minimax-hailuo-02/predict/async/result/?request_id=<prediction_id>.

curl -X POST https://api.flymy.ai/api/v1/flymyai/minimax-hailuo-02/predict/async/ \
  -H "X-API-KEY: $FLYMYAI_API_KEY" \
  -F 'prompt=Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in'

Python

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

# pip install flymyai
import os

from flymyai import client

fma = client(apikey=os.environ["FLYMYAI_API_KEY"])
task = fma.predict_async_task(
    model="flymyai/minimax-hailuo-02",
    payload={
        "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
    },
)
# a long run: wait for its result (up to 15 minutes here)
result = task.result(timeout=900)
print(result.inference_responses[0].output_data)

JavaScript / TypeScript

The FlyMy.AI SDK sends the same fields; a file input also takes a public URL.

// npm install flymyai-js-client
import { FlyMyAI } from "flymyai-js-client";

const client = new FlyMyAI({ apiKey: process.env.FLYMYAI_API_KEY });
const response = await client.predict(
  {
    "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
  },
  "flymyai/minimax-hailuo-02",
);
console.log(response.output_data);

MCP

Your agent calls get_model_schema, then run_model with:

{
  "endpoint_id": "flymyai/minimax-hailuo-02",
  "input": {
    "prompt": "Steam rises from a ceramic mug on a sunlit kitchen counter, slow camera push-in"
  }
}

Questions about MiniMax Hailuo 02

Do I need a MiniMax API key for MiniMax Hailuo 02?

No. MiniMax Hailuo 02 runs on FlyMy.AI's account, so you need no MiniMax key or plan: sign in to FlyMy.AI once and each run is billed to your FlyMy.AI balance.

How much does MiniMax Hailuo 02 cost?

From $0.10 per run, depending on resolution and duration. There is no subscription or minimum; the price comes from FlyMy.AI billing and was checked on 2026-11-18.

Can I try MiniMax Hailuo 02 before I write code?

Yes. Open MiniMax Hailuo 02 in the FlyMy.AI playground at https://app.flymy.ai/models/flymyai/minimax-hailuo-02, fill in its inputs and run it; the same run is one API call later, billed the same way.

How do I use MiniMax Hailuo 02 in Claude Code, Codex or Cursor?

Add the FlyMy.AI MCP with one command and sign in, then ask in plain words, for example: "Make a 6-second video of a fox running through fresh snow at sunrise with MiniMax Hailuo 02 at 1080P." Your agent reads the inputs with get_model_schema and runs flymyai/minimax-hailuo-02 with run_model.

What does MiniMax Hailuo 02 need as input?

MiniMax Hailuo 02 requires prompt; it also takes 4 optional inputs, each listed on this page with its allowed values and default.

Can I call MiniMax Hailuo 02 from my own code?

Yes. Send form fields to https://api.flymy.ai/api/v1/flymyai/minimax-hailuo-02/predict/async/ with your FlyMy.AI API key in the X-API-KEY header.

Go to the source

From the FlyMy.AI model catalog of 2026-11-18: inputs from each model's live schema, prices from FlyMy.AI billing. Requests are examples to paste, not recorded runs.