查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"media"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"seed": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "可选,填写 0 至 2147483647 的整数。固定种子可帮助复现,但相同种子不保证结果完全一致。"
},
"media": {
"type": "array",
"items": {
"type": "object",
"required": [
"type",
"url"
],
"properties": {
"url": {
"type": "string",
"minLength": 1,
"description": "每项媒体必填,使用非空、可公开访问的 HTTPS 文件链接。此 Tool 不接受本地路径、HTTP 链接、Base64 或素材中心 ID。"
},
"type": {
"enum": [
"video",
"reference_image"
],
"type": "string",
"description": "必填。video 表示唯一的 MP4/MOV 视频,时长 2 至 10 秒、不超过 100 MB,宽和高均为 240 至 4096 像素。reference_image 表示可选参考图,支持 JPG、JPEG、无透明通道的 PNG、BMP、WEBP,每张不超过 20 MB,宽和高均为 240 至 8000 像素,最多四张。两类媒体的宽高比均须在 1:8 至 8:1 之间。"
}
},
"additionalProperties": false
},
"minItems": 1,
"description": "必填数组,必须且只能包含一个视频,可另加最多四张参考图。每项均需填写媒体类型和公开 HTTPS 链接。"
},
"ratio": {
"enum": [
"16:9",
"9:16",
"1:1",
"4:3",
"3:4"
],
"type": "string",
"description": "可选 16:9、9:16、1:1、4:3 或 3:4。不填写时跟随原视频的比例,不强制采用某个预设比例。"
},
"prompt": {
"type": "string",
"maxLength": 5000,
"minLength": 1,
"description": "可选;填写时须为非空文字,最多 5000 个字符。描述希望修改的风格、人物、服装或物体,例如把整个场景改成黏土动画风格。"
},
"duration": {
"type": "integer",
"maximum": 10,
"minimum": 2,
"description": "可选,填写 2 至 10 的整数,用于从开头截短输出。省略时保留原片长度;它不是视频延长选项,也不接受 0。"
},
"watermark": {
"type": "boolean",
"default": false,
"description": "可选布尔值,默认 false。true 表示请求在视频右下角添加 AI Generated 水印。"
},
"resolution": {
"enum": [
"720P",
"1080P"
],
"type": "string",
"default": "720P",
"description": "可选 720P 或 1080P,此 Tool 默认 720P。选择输出分辨率档位,不保证改善原视频细节。"
},
"audio_setting": {
"enum": [
"auto",
"origin"
],
"type": "string",
"default": "auto",
"description": "可选 auto 或 origin,默认 auto。auto 让模型按描述保留或生成音频;origin 保留原视频音频,不重新生成。"
},
"prompt_extend": {
"type": "boolean",
"default": true,
"description": "可选布尔值,默认 true。启用模型辅助改写描述,可能增加处理时间,不保证修改效果更好或完全准确。"
},
"negative_prompt": {
"type": "string",
"maxLength": 500,
"description": "可选文字,最多 500 个字符,描述希望从画面中排除的内容。它用于引导修改,不保证这些元素完全消失。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}