{
"contentType": "application/json",
"properties": {
"callback_url": {
"type": "string"
},
"down_expansion_ratio": {
"description": "向下扩充范围;基于原图高度的倍数而计算\n取值范围:[0,2],新图片整体面积不得超过原图片3倍\n如原图高20,当前参数值为0.2,则:\n原图底边距离新图底边为20 x 0.2 = 4,区域内均为扩图范围",
"type": "number",
"x-i18n": {
"en-US": {
"description": "Expand downward; multiplier of original height\nrange: [0,2], new image area must not exceed 3× original\ne.g. if original height is20, and this parameter is0.2, then:\ndistance from original bottom to new bottom =20 x 0.2 = 4, that region is the expansion area"
}
}
},
"external_task_id": {
"type": "string"
},
"image": {
"description": "参考图片\n支持传入图片Base64编码或图片URL(确保可访问)",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Reference image\naccepts image Base64 or a reachable image URL"
}
}
},
"left_expansion_ratio": {
"description": "向左扩充范围;基于原图宽度的倍数而计算\n取值范围:[0,2],新图片整体面积不得超过原图片3倍\n如原图宽30,当前参数值为0.3,则:\n原图左边距离新图左边为30 x 0.3 = 9,区域内均为扩图范围",
"type": "number",
"x-i18n": {
"en-US": {
"description": "Expand left; multiplier of original width\nrange: [0,2], new image area must not exceed 3× original\ne.g. if original width is30, and this parameter is0.3, then:\ndistance from original left to new left =30 x 0.3 = 9, that region is the expansion area"
}
}
},
"n": {
"description": "生成图片数量\n取值范围:[1,9]",
"type": "integer",
"x-i18n": {
"en-US": {
"description": "Number of images to generate\nrange: [1,9]"
}
}
},
"prompt": {
"description": "正向文本提示词\n不能超过2500个字符",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Positive text prompt\nmax 2500 characters"
}
}
},
"right_expansion_ratio": {
"description": "向右扩充范围;基于原图宽度的倍数而计算\n取值范围:[0,2],新图片整体面积不得超过原图片3倍\n如原图宽30,当前参数值为0.4,则:\n原图右边距离新图右边为30 x 0.4 = 12,区域内均为扩图范围",
"type": "number",
"x-i18n": {
"en-US": {
"description": "Expand right; multiplier of original width\nrange: [0,2], new image area must not exceed 3× original\ne.g. if original width is30, and this parameter is0.4, then:\ndistance from original right to new right =30 x 0.4 = 12, that region is the expansion area"
}
}
},
"up_expansion_ratio": {
"description": "向上扩充范围;基于原图高度的倍数而计算\n取值范围:[0,2],新图片整体面积不得超过原图片3倍\n如原图高20,当前参数值为0.1,则:\n原图顶边距离新图顶边为20 x 0.1 = 2,区域内均为扩图范围",
"type": "number",
"x-i18n": {
"en-US": {
"description": "Expand upward; multiplier of original height\nrange: [0,2], new image area must not exceed 3× original\ne.g. if original height is20, and this parameter is0.1, then:\ndistance from original top to new top =20 x 0.1 = 2, that region is the expansion area"
}
}
}
},
"required": [
"image",
"up_expansion_ratio",
"down_expansion_ratio",
"left_expansion_ratio",
"n",
"right_expansion_ratio"
]
}