查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"model",
"content",
"resolution",
"duration"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"model": {
"type": "string",
"const": "MiniMax-H3-Max-Turbo",
"description": "模型固定为 MiniMax-H3-Max-Turbo,必填。"
},
"ratio": {
"enum": [
"adaptive",
"21:9",
"16:9",
"4:3",
"1:1",
"3:4",
"9:16"
],
"type": "string",
"description": "画面比例。文生视频必填且不能为 adaptive;图生视频按输入图像确定比例。"
},
"content": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"type",
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 7000,
"minLength": 1,
"description": "视频提示词,最多 7000 个字符;所有生成模式均必填。"
},
"type": {
"type": "string",
"const": "text"
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"type",
"image_url"
],
"properties": {
"role": {
"enum": [
"first_frame",
"last_frame"
],
"type": "string",
"description": "图像用途为 first_frame 或与首帧配对的 last_frame。单张未指定用途时默认为首帧。支持 JPG、JPEG、PNG、WEBP、HEIC、HEIF;每边 256 至 5760 像素,比例 0.4 至 2.5。"
},
"type": {
"type": "string",
"const": "image_url"
},
"image_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"minLength": 1,
"description": "公开 HTTPS 链接或 data URI,不支持 mm_file://。图像不超过 30MB,参考视频不超过 50MB,参考音频不超过 15MB,整个请求不超过 64MB;视频优先使用链接。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"minItems": 1,
"description": "每个请求必须包含且仅包含一项非空文本;图生视频可加入 first_frame/last_frame。此模型不支持参考图像、视频或音频。"
},
"duration": {
"type": "integer",
"maximum": 15,
"minimum": 5,
"description": "视频长度,单位秒,范围 5 至 15。"
},
"resolution": {
"enum": [
"480P",
"768P"
],
"type": "string",
"description": "输出分辨率,供应商报价为 480P 每秒 0.025 美元、768P 每秒 0.04 美元;Toolmu 以当前目录的 credits 计费。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}