- CV任务状态码信息附录
- 绘图信息
- 绘图任务
- 模型训练
- 绘图工具
- 图片检测
- 视频工具
- 音频工具
- 翻译
高级换脸
POST
/AIGCImgOpenServ/saas/tool/v2/roop
传入两张带人物面部的图片分别记为source_image和target_image,算法将source_image中的面部复制到target_image中生成新的图片。反参为异步接口响应~
请求参数
Header 参数
X-Request-req-accessKeyId
string
可选
X-Request-req-accessKeySecret
string
可选
Body 参数application/json
sourceUrl
string
源图片
targetUrl
string
目标图片
businessTaskId
string
任务ID
fidelityWeight
string
权重
callbackUrl
string
回调地址
示例
{
"sourceUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png",
"targetUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/DALL%C2%B7E%202023-11-20%2010.06.53%20-%20Photo-realistic%20illustration%20of%20Liming%20from%20image%20x1%2C%20leaving%20his%20hometown%20and%20embarking%20on%20a%20journey%20to%20the%20Xinjiang%20Production%20and%20Construction%20Corp.png",
"businessTaskId": "111612"
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.zhiqite.com/AIGCImgOpenServ/saas/tool/v2/roop' \
--header 'X-Request-req-accessKeyId;' \
--header 'X-Request-req-accessKeySecret;' \
--header 'Content-Type: application/json' \
--data-raw '{
"sourceUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/dalle_face.png",
"targetUrl": "https://dbt-aigc.oss-cn-hangzhou.aliyuncs.com/Output-Img2/DALL%C2%B7E%202023-11-20%2010.06.53%20-%20Photo-realistic%20illustration%20of%20Liming%20from%20image%20x1%2C%20leaving%20his%20hometown%20and%20embarking%20on%20a%20journey%20to%20the%20Xinjiang%20Production%20and%20Construction%20Corp.png",
"businessTaskId": "111612"
}'
返回响应
🟢200成功
application/json
Body
code
string
必需
msg
string
必需
data
object
必需
taskId
string
任务ID
businessTaskId
string
业务方任务ID
status
integer
任务状态
outputImageUrl
string
图片地址
errCode
integer
错误状态码
示例
{
"code": "200",
"data": {
"businessTaskId": "555299995",
"outputImageUrl": "https://aigcoss.zhiqiteai.cn/Output-Img2/tool/roopV2/pro1707112101440360871154.png",
"status": 2,
"taskId": "pro1707112101440360871154"
},
"msg": "success"
}
修改于 2024-11-27 02:42:41