发起作画任务
POST
/mirror/create
无界魔镜魔镜作画
请求参数
Body 参数application/json
template_id
integer <int32>
必需
示例值:
460
num
integer <int32>
必需
示例值:
1
init_image
string <string>
必需
建议分辨率在1k左右,图片过大会导致生成失败,过小会导致人脸元素采集不足,相似度降低
示例值:
https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png
init_image_check_key
string <string>
必需
示例值:
C5B5FE8DBF3679D9049342C130341BD9
notify_url
string <string>
可选
回调重试规则:
1.
2.
3.
示例值:
https://gate.wujieai.com/ai/callback
width
integer <int32>
可选
示例值:
800
height
integer <int32>
作画图片高度
示例值:
1200
示例
{
"template_id": 460,
"num": 1,
"init_image": "https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png",
"init_image_check_key": "C5B5FE8DBF3679D9049342C130341BD9",
"notify_url": "https://gate.wujieai.com/ai/callback",
"width": 800,
"height": 1200
}
示例代码
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/mirror/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"template_id": 460,
"num": 1,
"init_image": "https://cdn.wujiebantu.com/ai/C837D53F842A48AEDFA7DA2976D834FE-01.png",
"init_image_check_key": "C5B5FE8DBF3679D9049342C130341BD9",
"notify_url": "https://gate.wujieai.com/ai/callback",
"width": 800,
"height": 1200
}'
返回响应
🟢200OK
application/json
Body
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (AiTaskKeysVo_response)
可选
keys
array[string]
作画结果Key列表
示例值:
C5B5FE8DBF3679D9049342C130341BD9
results
array[object (AiTaskCreateResultVo_response) {3}]
可选
示例
{
"code": "200",
"message": "success",
"data": {
"keys": "C5B5FE8DBF3679D9049342C130341BD9",
"results": [
{
"key": "C5B5FE8DBF3679D9049342C130341BD9",
"expected_generate_second": 12,
"expected_queue_second": 12
}
]
}
}
修改于 2024-09-19 08:39:24