- 无界AI企业服务
- 无界AI企业智能客服
- 更新日志
- 公告
- API接入指南
- 作画指南
- AI专业版作画
- AI普通版作画
- AI视频生视频
- AI咒语解析
- 付费开通API
- AI化身&个性相机
- 提升作画效率
- 自定义镜像
- 用户账户
- LLM对话聊天
- 实验室
图片换脸
POST
https://gate.wujieai.net/wj-open/v1/ai/simple_reactor/create
AI普通版作画定制API
付费开通:该接口为付费开通接口,调用前需要联系商务,协助您开通使用
x-apifox-folder:AI普通版作画/定制API
请求参数
Body 参数application/json
image_url
string <string>
必需
示例值:
www.lynnette-reichert.info
template_url
string <string>
可选
示例值:
www.lynnette-reichert.info
payment_type
integer <int32>
可选
示例值:
269
init_width
integer <int32>
底图宽
示例值:
536
init_height
integer <int32>
底图高
示例值:
226
queue_time_limit
integer <int32>
可选
CONTROL模式下生效
错误码:20110026
单位:second
示例值:
10
width
integer <int32>
可选
示例值:
505
height
integer <int32>
可选
示例值:
123
super_size_multiple
number <float>
可选
图片超分倍数。默认不超分,可传小数。宽高超分倍数一致,向下取整。超分的额外耗时较短,效果仅是单纯提高图片分辨率。
注:ControlNet模式下该参数不需要指定,其超分由底图宽高决定(长边<=2048时,默认超分到2048,大于时,底图会被缩放到1024,再超分两倍)
示例值:
81.92
notify_url
string <string>
可选
回调重试规则:
1.
2.
回调报文:
{
"artwork_url": "https://cdn.wujiebantu.com/ai/530FFE6722D2A2B4A9504166221AAB40-01.jpg",
"audit_info": {
"result": {
"code": 200,
"data_id": "123932",
"msg": "OK",
"results": [{
"label": "normal",
"rate": 99.9,
"scene": "porn",
"suggestion": "pass"
}, {
"label": "normal",
"rate": 99.88,
"scene": "terrorism",
"suggestion": "pass"
}],
"task_id": "imgSG0g6fu4Yx41jNegAZzGz-1xSDKF",
"url": "http://aligreen-misc-shanghai.oss-cn-shanghai.aliyuncs.com/outer_upload/1802862059950331/images/0d692f9a-d76c-11ed-800a-0242ac110006.jpg?Expires=1681113060&OSSAccessKeyId=LTAIFoHlytmLmBNF&Signature=KnpylPperU5D%2BCGyPIL3uRWczBE%3D"* },
"vendor": 1
},
"code": 0,
"complete_time": 1681109462,
"involve_yellow": 0,
"key": "EF8DF2DCF18D0D69F7F836A100C857AF",
"success": true
}
success - 作画是否成功
audit_info - 审核信息
code - 作画是否成功code,0=成功 1=失败
key - 对应作画任务的key
artwork_url - 作画生成结果图url
involve_yellow - 是否涉黄
complete_time - 作画完成时间
示例值:
www.lynnette-reichert.info
示例
{
"image_url": "www.lynnette-reichert.info",
"template_url": "www.lynnette-reichert.info",
"payment_type": 584,
"init_width": 556,
"init_height": 50,
"queue_time_limit": 10,
"width": 323,
"height": 691,
"super_size_multiple": 50.93,
"notify_url": "www.lynnette-reichert.info"
}
示例代码
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://gate.wujieai.net/wj-open/v1/ai/simple_reactor/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"image_url": "www.lynnette-reichert.info",
"template_url": "www.lynnette-reichert.info",
"payment_type": 584,
"init_width": 556,
"init_height": 50,
"queue_time_limit": 10,
"width": 323,
"height": 691,
"super_size_multiple": 50.93,
"notify_url": "www.lynnette-reichert.info"
}'
返回响应
🟢200成功
*/*
Body
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (AiArtworkKeysVo_response)
可选
keys
array[string]
作画结果Key列表
示例值:
C5B5FE8DBF3679D9049342C130341BD9
results
array[object (CrAiArtworkCreateResult_response) {3}]
可选
expected_integral_cost
integer <int32>
预计总消耗积分数
示例值:
2
示例
{
"code": "200",
"message": "success",
"data": {
"keys": "C5B5FE8DBF3679D9049342C130341BD9",
"results": [
{
"key": "C5B5FE8DBF3679D9049342C130341BD9",
"expected_second": 12,
"batch_task_key": "14DBBD0743C8715D92183756E3FB398C"
}
],
"expected_integral_cost": 2
}
}
修改于 2025-04-15 03:20:46