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.
This is an asynchronous API; only the task_id will be returned. You should use the task_id to request the Task Result API to retrieve the video generation results.
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:
Copy
Ask AI
curl \-X POST https://api.novita.ai/v3/async/minimax-hailuo-02 \-H "Authorization: Bearer $your_api_key" \-H "Content-Type: application/json" \-d '{ "image_url": "https://doc-assets.novitai.com/minimax-hailuo-video-02-input-image.jpg", "prompt": "A gentleman leans on a retro-futuristic car under a streetlight, zooming out revealing classic design elements in a timeless, nostalgic style.", "duration": 6, "resolution": "768P", "enable_prompt_expansion": true}'
Response:
Copy
Ask AI
{ "task_id": "{Returned Task ID}"}
Use task_id to get output videos.
HTTP status codes in the 2xx range indicate that the request has been successfully accepted, while status codes in the 5xx range indicate internal server errors.You can get videos url in videos of response.Request: