Minimax Hailuo-02
Video Generator
Minimax Hailuo-02
POST
Minimax Hailuo-02
Minimax Hailuo-02 (also known as Hailuo) is an AI video generation model that supports both text-to-video and image-to-video generation. It can generate 6-second videos at 768p or 1080p resolution, and 10-second videos at 768p resolution.Documentation Index
Fetch the complete documentation index at: https://novita.ai/docs/llms.txt
Use this file to discover all available pages before exploring further.
Request Headers
Supports:
application/jsonBearer authentication format, for example: Bearer {{API Key}}.
Request Body
Prompt text required to guide the generation.Range:
1 <= x <= 2000.The first frame image to be used for video generation. Supports public URL or Base64 encoding(
data:image/jpeg;base64,...).The end frame image to be used for video generation. Supports public URL or Base64 encoding(
data:image/jpeg;base64,...).The length of the generated video in seconds. Default:
Optional values:
6Optional values:
6, 10The resolution of the generated video. Default:
768P- For 6-second videos: supports
768P,1080P - For 10-second videos: supports
768Ponly
Whether to enable prompt optimization.Default:
true.Whether to shorten the prompt optimization time.Default:
false.Response
Use the task_id to request the Task Result API to retrieve the generated outputs.
Example
Here is an example of how to use the Minimax Hailuo-02 API.- Generate a task_id by sending a POST request to the Minimax Hailuo-02 API.
Request:
Response:
- Use
task_idto get output videos.
videos of response.
Request:
Response:
Video files: