查看原始 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-Fast",
"description": "模型固定为 MiniMax-H3-Fast,必填。"
},
"ratio": {
"enum": [
"adaptive",
"21:9",
"16:9",
"4:3",
"1:1",
"3:4",
"9:16"
],
"type": "string",
"description": "画面比例。文生视频必填且不能为 adaptive;图生视频固定按输入图像确定比例。参考生成默认 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",
"reference_image"
],
"type": "string",
"description": "图像用途为 first_frame、与首帧配对的 last_frame,或最多 9 张 reference_image。单张未指定用途时默认为首帧。支持 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
},
{
"type": "object",
"required": [
"type",
"video_url",
"role"
],
"properties": {
"role": {
"type": "string",
"const": "reference_video",
"description": "参考视频,仅用于参考生成,最多 3 个。支持 MP4/MOV、H.264/H.265;每段 2 至 15 秒,合计不超过 15 秒。"
},
"type": {
"type": "string",
"const": "video_url"
},
"video_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
},
{
"type": "object",
"required": [
"type",
"audio_url",
"role"
],
"properties": {
"role": {
"type": "string",
"const": "reference_audio",
"description": "参考音频,仅用于参考生成,最多 3 个,且不能作为唯一参考。支持 WAV/MP3;每段 2 至 15 秒,合计不超过 15 秒。"
},
"type": {
"type": "string",
"const": "audio_url"
},
"audio_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,参考生成使用 reference_image/reference_video/reference_audio,两组不可混用。"
},
"duration": {
"type": "integer",
"maximum": 15,
"minimum": 5,
"description": "视频长度,单位秒,范围 5 至 15。"
},
"resolution": {
"enum": [
"480P"
],
"type": "string",
"description": "输出分辨率,供应商 480P 报价为每秒 0.046 美元;Toolmu 以当前目录的 credits 计费。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}