{
"contentType": "application/json",
"properties": {
"image": {
"description": "待编辑的原图 base64(带前缀:data:image/png;base64,...)。透传给上游,后端结构体未声明",
"examples": [
"data:image/png;base64,IMG..."
],
"type": "string"
},
"maskBase64": {
"description": "遮罩图 base64(标记编辑区域;黑底、白色为待修改区域)",
"examples": [
"data:image/png;base64,MASK..."
],
"type": "string"
},
"notifyHook": {
"description": "回调地址, 为空时使用全局notifyHook",
"type": "string",
"x-i18n": {
"en-US": {
"description": "Callback URL; falls back to the global notifyHook when empty"
}
}
},
"prompt": {
"description": "编辑指令(描述要把图改成什么)",
"examples": [
"add a red hat"
],
"type": "string"
},
"state": {
"description": "自定义参数",
"type": "string",
"x-i18n": {
"en-US": {
"description": "The quality of the image that will be generated. `hd` creates images with finer detail and greater consistency. This parameter only supports `dall-e-3`."
}
}
}
},
"required": [
"prompt",
"image"
]
}