Skip to main content
POST
/
v3
/
async
/
minimax-hailuo-02
Minimax Hailuo-02
curl --request POST \
  --url https://api.myrouter.ai/v3/async/minimax-hailuo-02 \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: <content-type>' \
  --data '
{
  "prompt": "<string>",
  "image": "<string>",
  "end_image": "<string>",
  "duration": 123,
  "resolution": "<string>",
  "enable_prompt_expansion": true,
  "fast_pretreatment": true
}
'
{
  "task_id": "<string>"
}
Minimax Hailuo-02 is an AI video generation model supporting both text-to-video and image-to-video. It can generate 6-second videos at 768P or 1080P resolution, and 10-second videos at 768P resolution.
This is an async API that only returns the task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.

Request Headers

Content-Type
string
required
Enum: application/json
Authorization
string
required
Bearer authentication format: Bearer {{API Key}}.

Request Body

prompt
string
required
Text prompt to guide the generation.Range: 1 <= x <= 2000.
image
string
First frame image for video generation. Supports public URLs or Base64 encoding (e.g., data:image/jpeg;base64,...).
end_image
string
End frame image for video generation. Supports public URLs or Base64 encoding (e.g., data:image/jpeg;base64,...).
duration
integer
Duration of the generated video (in seconds). Default: 6
Possible values: 6, 10
resolution
string
Resolution of the generated video. Default: 768P
  • 6-second videos support: 768P, 1080P
  • 10-second videos only support: 768P
enable_prompt_expansion
boolean
Whether to enable prompt optimization.Default: true.
fast_pretreatment
boolean
default:false
Whether to reduce the time spent on prompt optimization.Default: false.

Response

task_id
string
required
The task_id of the async task. Use the task_id to call the Get Async Task Result API to retrieve the generated result.