minimax/hailuo/02/pro/text-to-video
Hailuo 02 Pro is MiniMax's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition.
Example output — click Run to generate your own
Send your first request
OpenAI-compatible endpoint with unified authentication and usage tracking.
https://api.sandbase.ai/v1/runminimax/hailuo/02/pro/text-to-videoInput Schema
2 parameters · 1 required · 1 optional
| Parameter | Type | Required | Description |
|---|---|---|---|
prompt | string | Required | Min length: 1 · Max length: 2000 |
prompt_optimizer | boolean | Optional | Whether to use the model's prompt optimizer · Default: true |
Output Schema
| Field | Type | Description |
|---|---|---|
id | string | Unique identifier for the generation task |
status | string | Task status: pending, running, completed, failed, timeout |
model | string | Model used for the generation |
outputs | array | Array of output items |
outputs[].url | string | URL of the generated artifact |
outputs[].content_type | string | MIME type (e.g. image/png, video/mp4) |
error | object | null | Error details if failed, null on success |
error.type | string | Machine-readable error type code |
error.message | string | Human-readable error description |
Async Workflow
This model uses asynchronous execution. Submit a request and poll for the result.
- Submit — POST to /v1/run, receive an
id - Poll — GET /v1/run/{id} until status is
completed,failed, ortimeout - Retrieve — Read
outputsfrom the completed response
Code Examples
Ready-to-run snippets
# Step 1: Submit
curl -X POST https://api.sandbase.ai/v1/run \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '{
"model": "minimax/hailuo/02/pro/text-to-video",
"prompt": "A Galactic Smuggler is a rogue figure with a cybernetic arm and a well-worn coat that hints at many dangerous escapades across the galaxy. Their ship is filled with rare and exotic treasures from distant planets, concealed in hidden compartments, showing their expertise in illicit trade. Their belt is adorned with energy-based weapons, ready to be drawn at any moment to protect themselves or escape from tight situations. This character thrives in the shadows of space, navigating between the law and chaos with stealth and wit, always seeking the next big score while evading bounty hunters and law enforcement. The rogue's ship, rugged yet efficient, serves as both a home and a tool for their dangerous lifestyle. The treasures they collect reflect the diverse and intriguing worlds they've encountered—alien artifacts, rare minerals, and artifacts of unknown origin. Their reputation precedes them, with whispers of their dealings and the deadly encounters that often follow. A master of negotiation and deception, the Galactic Smuggler navigates the cosmos with an eye on the horizon, always one step ahead of those who pursue them.",
"prompt_optimizer": true
}'
# Step 2: Poll result (replace <id>)
curl https://api.sandbase.ai/v1/run/<id> \
-H "Authorization: Bearer YOUR_API_KEY"API README
Hailuo 02 Pro Text To Video
Hailuo 02 Pro Text To Video is built for cinematic text-to-video generation, with this exact route focused on prompt-directed subject and camera motion. Hailuo 02 Pro is MiniMax's text-to-video AI model. Turn written scripts and prompts into professional-quality video clips with realistic motion, lighting, and scene composition. It is designed for production workflows that need a clearly scoped media operation instead of a generic assistant response, preserving the supplied direction while returning an artifact ready for review, iteration, or downstream assembly.
The request surface keeps creative direction and delivery choices explicit through prompt, duration, resolution, prompt_optimizer, sync_mode, safety_tolerance. Teams can lock source material, describe the intended result, choose supported output controls, and rerun the same request structure across variations. This makes experiments easier to compare and larger pipelines easier to operate without hiding important decisions inside an opaque preset.
Highlights
- Prompt-Directed Subject And Camera Motion. The
minimax/hailuo/02/pro/text-to-videoroute is dedicated to prompt-directed subject and camera motion, keeping inputs and outputs matched to this operation. - Coherent Scene Development. Within
minimax/hailuo/02/pro/text-to-video, documented prompt and media controls direct coherent scene development while keeping the brief close to the result. - Production-Ready Short-Form Video. The
minimax/hailuo/02/pro/text-to-videoresult provides production-ready short-form video in a machine-consumable form for review and downstream production. - Route-specific control. For
minimax/hailuo/02/pro/text-to-video, documented controls includeprompt,duration,resolution,prompt_optimizer,sync_mode,safety_tolerance, defining the supported variation space for this exact route.
Pricing
| Configuration | Price |
|---|---|
| Per request | $0.480000 |
When to Use
| Scenario | Why it fits |
|---|---|
| Choose this route | When the deliverable is specifically prompt-directed subject and camera motion, not a neighboring generation or editing task. |
| Production iteration | When creative teams need repeatable coherent scene development with an explicit request payload. |
| Automated pipelines | When production-ready short-form video must flow into review, storage, compositing, or publishing. |
| Controlled variations | When a stable brief should be rerun while changing only documented inputs. |
| Prototype to scale | When the same minimax/hailuo/02/pro/text-to-video contract should serve a single experiment and a larger batch later. |
Prompt Guide
Lead with the subject or source, then state the transformation, important spatial or temporal details, style, and finish. Supply only documented fields, keep media URLs reachable, and vary one control at a time when comparing outputs.
{
"prompt": "A directed creative request with subject, setting, style, motion, and finish."
}
Technical Specs
| Property | Value |
|---|---|
| Model ID | minimax/hailuo/02/pro/text-to-video |
| Required inputs | prompt |
prompt | string |
duration | integer |
resolution | string |
prompt_optimizer | boolean; default: true |
sync_mode | boolean; default: false |
safety_tolerance | string; default: 6 |
Related Models
minimax/hailuo/02/pro/image-to-videominimax/hailuo/02/standard/image-to-videominimax/hailuo/02/standard/text-to-videominimax/hailuo/2.3-fast/pro/image-to-video

