Skip to main content
POST
/
v3
/
async
/
minimax-hailuo-02
Minimax Hailuo-02
curl --request POST \
  --url https://api.highwayapi.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 that supports text-to-video and image-to-video generation. It can generate 6-second videos at 768P or 1080P resolution, as well as 10-second videos at 768P resolution.
This is an asynchronous API and only returns the task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to retrieve the video generation result.

Request Headers

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

Request Body

prompt
string
required
The prompt text that guides the desired generation.Range: 1 <= x <= 2000.
image
string
The first-frame image for video generation. Supports public URLs or Base64 encoding (such as data:image/jpeg;base64,...).
end_image
string
The ending-frame image for video generation. Supports public URLs or Base64 encoding (such as data:image/jpeg;base64,...).
duration
integer
The duration of the generated video (in seconds). Default value: 6
Available values: 6, 10
resolution
string
The resolution of the generated video. Default value: 768P
  • 6-second videos support: 768P, 1080P
  • 10-second videos only support: 768P
enable_prompt_expansion
boolean
Whether to enable prompt optimization.Default value: true.
fast_pretreatment
boolean
default:false
Whether to reduce the time spent on prompt optimization.Default value: false.

Response

task_id
string
required
The task_id of the asynchronous task. You should use this task_id to request the Get Task Result API to obtain the generation result.