查看原始 JSON
{
"type": "object",
"required": [
"body"
],
"properties": {
"body": {
"type": "object",
"$schema": "https://json-schema.org/draft/2020-12/schema",
"required": [
"prompt"
],
"~standard": {
"vendor": "zod",
"version": 1,
"jsonSchema": {}
},
"properties": {
"n": {
"type": "integer",
"maximum": 12,
"minimum": 1,
"description": "可选整数。普通模式支持 1 至 4 张,默认 1;开启图组时为 1 至 12 张的上限,默认上限 12,实际数量由模型决定,不会超过此上限。"
},
"seed": {
"type": "integer",
"maximum": 2147483647,
"minimum": 0,
"description": "可选,填写 0 至 2147483647 的整数。固定种子可帮助复现,但不保证生成完全一致的图片。"
},
"size": {
"anyOf": [
{
"enum": [
"1K",
"2K",
"4K"
],
"type": "string"
},
{
"type": "string",
"pattern": "^\\d+\\*\\d+$"
}
],
"default": "2K",
"description": "可选 1K、2K(默认)、4K 或“宽*高”。4K 仅限纯文字且关闭图组。自定义总像素范围:纯文字普通生成为 768×768 至 4096×4096,编辑或图组为 768×768 至 2048×2048;宽高比为 1:8 至 8:1。这是总像素范围,不是每条边的范围。预设尺寸在无输入图时为方图,有输入图时跟随最后一张图的比例;实际尺寸可能略有差别。"
},
"images": {
"type": "array",
"items": {
"type": "string",
"minLength": 1,
"description": "每项为非空、公开可访问的 HTTPS 文件链接。支持 JPG、JPEG、无透明通道的 PNG、BMP、WEBP,每张不超过 20 MB,宽和高均为 240 至 8000 像素,宽高比为 1:8 至 8:1。此 Tool 不接受本地路径、HTTP、Base64 或素材 ID。"
},
"maxItems": 9,
"description": "可选数组,最多九个公开 HTTPS 图片链接。纯文字生成时省略;输入图用于引导编辑或构图。加入输入图后输出最高为 2K,预设输出比例跟随最后一张图。"
},
"prompt": {
"type": "string",
"maxLength": 5000,
"minLength": 1,
"description": "必填非空文字,长度为 1 至 5000 个字符,描述新画面、修改内容或图组故事线。没有独立的 negative_prompt;排除要求写入同一段文字,但不保证始终遵循。"
},
"bbox_list": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "array",
"items": {
"type": "integer",
"maximum": 9007199254740991,
"minimum": -9007199254740991
},
"maxItems": 4,
"minItems": 4
}
},
"description": "可选列表,外层每项对应一张输入图,顺序与图片一致。每项可含 0 至 2 个框 [x1,y1,x2,y2],使用各原图的绝对像素坐标,左上角为 (0,0);没有框的图片用 [] 占位。坐标应在原图范围内。"
},
"watermark": {
"type": "boolean",
"default": false,
"description": "可选布尔值,默认 false。true 表示请求在生成图片中添加 AI Generated 水印。"
},
"color_palette": {
"type": "array",
"items": {
"type": "object",
"required": [
"hex",
"ratio"
],
"properties": {
"hex": {
"type": "string",
"pattern": "^#[0-9A-Fa-f]{6}$",
"description": "每项配色必填,格式为 # 加六位十六进制字符,例如 #C2D1E6。"
},
"ratio": {
"type": "string",
"pattern": "^\\d+(\\.\\d{1,2})?%$",
"description": "每项配色必填百分比字符串。建议使用两位小数,例如 33.33%;所有配色项合计必须为 100.00%。"
}
},
"additionalProperties": false
},
"maxItems": 10,
"minItems": 3,
"description": "可选数组,含 3 至 10 种颜色,各项提供十六进制色值和百分比,合计必须为 100.00%。图组模式不可用;比例用于引导生成,不保证精确像素占比。"
},
"thinking_mode": {
"type": "boolean",
"description": "可选布尔值,默认 true。只在纯文字普通生成中生效,编辑和图组不适用。可能增加处理时间,不保证质量更好。"
},
"enable_sequential": {
"type": "boolean",
"default": false,
"description": "可选布尔值,默认 false。true 请求相关图组,实际数量由模型在 n 上限内决定。图组最高为 2K,推理模式和自定义配色不可用;不保证形象或连贯性完全一致。"
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}