Generate a template video
minimax_create_template_videoGenerate a video from a hailuoai.video agent template (templateId from minimax_list_agent_templates), with the prompt and / or image the template requires (check it with minimax_list_agent_templates and templateId). Uses the account's MiniMax credits (the template's credits). Waits up to ~50 s, then returns the videoId for minimax_get_video; free-form generation is minimax_create_video. POST /videos/agent-create.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"templateId": "<templateId>"
},
"name": "minimax_create_template_video"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait up to ~50 s for the job to finish (default true); false returns the id at once. | |
| fileID | No | The image for a template that requires one (with ossPath): a fileID from minimax_upload_file, minimax_list_files, minimax_list_characters or a completed image (minimax_get_image), on the same account. | |
| prompt | No | Text for a template that requires it; refused by one that does not. Up to 2,000 characters. | |
| account | No | The account to use; with a fileID it must be the file's account: the account id from minimax_list_accounts. Omit to let the API pick one of your accounts. | |
| maxJobs | No | Override the account's maxJobs (generations at once) for this request, 1-10. | |
| ossPath | No | The ossPath of that fileID (minimax_upload_file's ossPath, minimax_list_files' oss_path). Required with fileID, only with it. | |
| replyRef | No | Optional reference of yours, stored and returned with the result and webhook. Up to 1,024 characters. | |
| replyUrl | No | Optional webhook: the API POSTs the finished result (same shape as the get tool's record) to this URL. Up to 1,024 characters. | |
| templateId | Yes | The template id. |