{
"contentType": "application/json",
"properties": {
"aspect_ratio": {
"description": "生成图片的画面纵横比(宽:高)\n枚举值:16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, auto\n其中:auto为根据传入内容智能生成视频\n参考原图横纵比生成新图时,当前参数无效",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Aspect ratio (W:H)\nenum: 16:9, 9:16, 1:1, 4:3, 3:4, 3:2, 2:3, 21:9, auto\nauto: smart from input\nignored when matching source aspect ratio"
}
}
},
"callback_url": {
"type": "string"
},
"external_task_id": {
"type": "string"
},
"image_list": {
"description": "参考图列表",
"items": {
"properties": {
"image": {
"type": "string"
}
},
"type": "object"
},
"type": "array",
"x-i18n": {
"en-US": {
"description": "reference image list"
}
}
},
"model_name": {
"description": "模型名称 枚举值:kling-image-o1,kling-v3-omni",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Model name enum: kling-image-o1,kling-v3-omni"
}
}
},
"n": {
"description": "生成图片数量\n\n取值范围:[1,9]",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Number of images to generate range: [1,9]"
}
}
},
"prompt": {
"description": "文本提示词,可包含正向描述和负向描述\n可将提示词模板化来满足不同的图像生成需求\n不能超过2500个字符",
"type": "string",
"x-i18n": {
"en-US": {
"description": "text prompt, may include positive and negative descriptions\ntemplates can be used for different image needs\nmax 2500 characters"
}
}
},
"resolution": {
"description": "生成图片的清晰度\n\n枚举值:1k, 2k\n1k:1K标清\n2k:2K高清",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Output clarity enum: 1k, 2k\n1k: 1K SD\n2k: 2K HD"
}
}
},
"result_type": {
"description": "生成结果单图/组图切换开关\n枚举值:single,series",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Single / series switch\nenum: single, series"
}
}
},
"series_amount": {
"description": "生成组图的图片数量\n● 取值范围:[2, 9]\n当result_type值为single时,当前参数无效",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Images in series\n● range: [2, 9]\nignored when result_type is single"
}
}
},
"watermark_info": {
"description": "是否同时生成含水印的结果\n● 通过enabled参数定义,用key:value承载,如下::\n\"watermark_info\": {\n \t\"enabled\": boolean // true 为生成,false 为不生成\n}\n● 暂不支持自定义水印",
"properties": {
"enabled": {
"type": "boolean"
}
},
"required": [
"enabled"
],
"type": "object",
"x-i18n": {
"en-US": {
"description": "whether to also generate a watermarked result\n● defined by enabled, as key:value, as follows: : \"watermark_info\": { \"enabled\": boolean // true=generate, false=do not generate\n}\n● custom watermarks are not supported yet"
}
}
}
},
"required": [
"model_name",
"prompt"
]
}