MiniMax and Hailuo video models
Access MiniMax and Hailuo video models according to the actual model and channel configuration of this site.
MiniMax and Hailuo videos contain different native versions. First determine whether the model corresponds to new formats such as v1 or H3, and then create a task.
Entrance comparison
| Process | Create | Query |
|---|---|---|
| v1 | /hailuo/v1/video_generation |
/hailuo/v1/query/video_generation?task_id={id} |
| v2 | /hailuo/v2/video_generation |
/hailuo/v2/query/video_generation/{id} |
The existence of the path requires the plug-in to be enabled. The model version determines which entry is used. v1 requests cannot be sent directly to v2.
Step 1: Verify the minimum unified task
Models that already support the unified protocol can execute:
curl --fail-with-body https://dunduntoken.com/v1/videos -H "Authorization: Bearer $DUNDUN_API_KEY" -H "Content-Type: application/json" -d '{"model":"HAILUO_MODEL_ID","prompt":"固定镜头,一片树叶随风轻摆"}'
Verify with plain text first, then add pictures, video references and sounds to confirm each input requirement.
Step 2: Save and query
Unified mode saves the id and uses unified video query. In native mode, the gateway task ID is extracted according to the corresponding response and the native query is used. File ID and task ID should not be interchanged without confirming the agreement; v1 file acquisition needs to be handled according to its return process.
Step 3: Download and Acceptance
After reaching the successful status, download and check the duration, resolution, frame, and audio and video results. The signature result link may expire and should be transferred as soon as possible. If the download fails, there is no need to regenerate it. First check the validity period of the result and the content endpoint.
Troubleshooting
If there is a field error, first confirm the model version. Do not default to processing for unknown status; check the Key for 401; check the URL for unreadable material. Create a timeout and check the record first. For the polling strategy, see Task Reliability.