Upload a reference file
minimax_upload_fileUpload your own image (PNG, JPEG, WebP), audio (MP3, WAV) or MP4 video to one account, for use as a reference in minimax_create_video (fileID, end_frame_fileID, omni slots), minimax_create_image (characterFileId, referenceFileIdN) or minimax_create_template_video. Send a public https url or contentBase64 (small files), up to 50 MB here; larger files (the REST takes up to 5 GB) go to POST /files directly. Returns a fileID that works on that account only, and its ossPath. POST /files.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "minimax_upload_file"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| url | No | A public https URL of the file. | |
| account | No | The account id from minimax_list_accounts. Optional when you have one account, required with more. | |
| mimeType | No | The file's type. Default: from the url's answer. image/webp is sent as image/jpeg, as POST /files expects. | |
| contentBase64 | No | The file content, base64-encoded (instead of url). |