查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"content"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"ratio": {
"enum": [
"16:9",
"4:3",
"1:1",
"3:4",
"9:16",
"21:9",
"adaptive"
],
"type": "string",
"description": "画面宽高比。省略时使用上游默认的自适应比例。"
},
"content": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"required": [
"type",
"text"
],
"properties": {
"text": {
"type": "string",
"maxLength": 6000,
"minLength": 1,
"description": "描述视频内容的文字提示,建议少于 1000 个单词。按数组中各类型的顺序用 @Image1、@Video1、@Audio1 等序号引用其他内容,并说明每项提供及不应提供的内容;用 () 标记音乐、<> 标记音效、{} 标记对白、【】标记字幕,非英语对白前注明语言。"
},
"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(仅可与 first_frame 同时使用)固定结尾画面;reference_image(最多 9 张)用于辅助主体或风格,不作为固定帧。"
},
"type": {
"type": "string",
"const": "image_url"
},
"image_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"type",
"video_url"
],
"properties": {
"role": {
"type": "string",
"const": "reference_video",
"description": "参考视频,最多 3 个,每个 2–15 秒,总时长不超过 15 秒;用于多模态生成、视频编辑或延展。"
},
"type": {
"type": "string",
"const": "video_url"
},
"video_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
"additionalProperties": false
},
{
"type": "object",
"required": [
"type",
"audio_url"
],
"properties": {
"role": {
"type": "string",
"const": "reference_audio",
"description": "参考音频,最多 3 个,每个 2–15 秒,总时长不超过 15 秒。不能单独使用,至少还需提供一张图像或一段视频。"
},
"type": {
"type": "string",
"const": "audio_url"
},
"audio_url": {
"type": "object",
"required": [
"url"
],
"properties": {
"url": {
"type": "string",
"minLength": 1
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
]
},
"minItems": 1,
"description": "内容项:text(文生视频)、image_url(图生视频、首尾帧或参考图)、video_url 和 audio_url(多模态参考)。"
},
"duration": {
"type": "integer",
"default": 5,
"maximum": 15,
"minimum": 4,
"description": "视频时长,单位为秒(4–15)。"
},
"priority": {
"type": "integer",
"maximum": 9,
"minimum": 0,
"description": "队列优先级 0–9,数值越高越靠前;默认值为 0。"
},
"watermark": {
"type": "boolean",
"default": false,
"description": "是否添加“AI Generated”水印;默认 false。"
},
"resolution": {
"enum": [
"480p",
"720p",
"1080p",
"4k"
],
"type": "string",
"default": "720p",
"description": "输出分辨率,也用于选择价格。"
},
"generate_audio": {
"type": "boolean",
"default": true,
"description": "是否生成同步音频(人声、音效和音乐);默认 true,不影响价格。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}