查看原始 JSON
{
"type": "object",
"required": [],
"properties": {
"body": {
"allOf": [
{
"type": "object",
"properties": {
"model": {
"type": "string",
"const": "MiniMax-Hailuo-2.3",
"default": "MiniMax-Hailuo-2.3",
"description": "模型固定为 MiniMax-Hailuo-2.3。"
},
"prompt_optimizer": {
"type": "boolean",
"default": true,
"description": "是否自动优化提示词,默认 true。"
},
"fast_pretreatment": {
"type": "boolean",
"default": false,
"description": "提示词优化开启时,缩短优化时间。"
}
}
},
{
"anyOf": [
{
"type": "object",
"required": [
"prompt"
],
"properties": {
"prompt": {
"type": "string",
"maxLength": 2000,
"minLength": 1,
"description": "视频文字描述,最多 2000 个字符,支持 [Push in]、[Pan left]、[Zoom out] 等镜头指令。"
}
}
},
{
"type": "object",
"required": [
"first_frame_image"
],
"properties": {
"prompt": {
"type": "string",
"maxLength": 2000,
"description": "图生视频的可选文字描述,支持镜头指令。"
},
"first_frame_image": {
"type": "string",
"minLength": 1,
"description": "图生视频首帧,支持公开链接或 base64 data URL。格式 JPG/PNG/WebP,小于 20MB,短边大于 300 像素,比例在 2:5 至 5:2 之间。"
}
}
}
]
},
{
"anyOf": [
{
"type": "object",
"properties": {
"duration": {
"anyOf": [
{
"type": "number",
"const": 6
},
{
"type": "number",
"const": 10
}
],
"default": 6,
"description": "768P 支持 6 秒或 10 秒。"
},
"resolution": {
"type": "string",
"const": "768P",
"default": "768P"
}
}
},
{
"type": "object",
"required": [
"resolution"
],
"properties": {
"duration": {
"type": "number",
"const": 6,
"default": 6,
"description": "1080P 仅支持 6 秒。"
},
"resolution": {
"type": "string",
"const": "1080P"
}
}
}
]
}
],
"$schema": "https://json-schema.org/draft/2020-12/schema",
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
}
}
},
"additionalProperties": false
}