Download: Video Address
Overview
- API: Download video address (
GET /task/minimax/v1/files/retrieve) - Description: Retrieve the video download address and file information using the
file_idreturned by the task query response.
Authentication
- Use Bearer Token in the request header:
Authorization: Bearer <token>.
Request Parameters
- Query parameter:
file_id(string, required)- The
file_idobtained from the task query response, used to retrieve file metadata and the download URL.
- The
Response Details
Response
Content-Type:application/jsonImportant fields:
file(object): file informationfile_id(integer): file ID.bytes(integer): file size in bytes.created_at(integer): creation timestamp.filename(string): file name, e.g.output.mp4.purpose(string): purpose, e.g.video_generation.download_url(string): URL for direct download or playback.
base_resp(object): basic response metadata, includesstatus_codeandstatus_msg.
Success Response Example
json
{
"file": {
"file_id": 313992866418884,
"bytes": 0,
"created_at": 1758211235,
"filename": "output.mp4",
"purpose": "video_generation",
"download_url": "https://video-product.cdn.minimax.io/inference_output/video/2025-09-19/5c06f899-c689-4dfb-93f6-e4468a2743fc/output.mp4"
},
"base_resp": {
"status_code": 0,
"status_msg": "success"
}
}Notes
- If a
download_urlis returned, you can download or play the video directly. If no direct URL is provided, use the platform's download API as required. - The
file_idcomes from the task query response. Make sure the task is complete and thefile_idis valid before calling this endpoint.