图像擦除补全
图像擦除补全 — 创建任务
异步提交图像擦除补全任务
curl
复制
curl --location --request POST 'https://dashscope.aliyuncs.com/api/v1/services/aigc/image2image/image-synthesis' \
--header 'X-DashScope-Async: enable' \
--header "Authorization: Bearer $DASHSCOPE_API_KEY" \
--header 'Content-Type: application/json' \
--data-raw '{
"model": "image-erase-completion",
"input": {
"image_url": "http://xxx/input.png",
"mask_url": "http://xxx/mask.png",
"foreground_url": "http://xxx/foreground.png"
},
"parameters":{
"dilate_flag":true
}
}'复制
{
"output": {
"task_status": "PENDING",
"task_id": "53950fb7-281a-4e60-b543-xxxxxxxxxxxx"
},
"request_id": "7574ee8f-38a3-4b1e-9280-11c33ab46e51"
}