- 无界AI企业服务
- 无界AI企业智能客服
- 更新日志
- 公告
- API接入指南
- 作画指南
- AI专业版作画
- AI普通版作画
- AI视频生视频
- AI咒语解析
- 付费开通API
- AI化身&个性相机
- 提升作画效率
- 自定义镜像
- 用户账户
- LLM对话聊天
- 实验室
发起作画
POST
https://gate.wujieai.net/wj-open/v1/avatar/camera/create
AI化身&个性相机个性相机高阶版
请求参数
Body 参数application/json
avatar_key
string <string>
化身key
示例值:
C5B5FE8DBF3679D9049342C130341BD9
camera_artwork_advanced
object (CameraArtworkAdvancedRequest_request)
可选
first_diffusion_steps
integer <int32>
可选
取值范围[15,50]
示例值:
50
first_denoising_strength
number <float>
可选
取值范围[0.3,0.5]
示例值:
0.45
second_diffusion_steps
integer <int32>
可选
取值范围[15,50]
示例值:
20
second_denoising_strength
number <float>
可选
取值范围[0.3,0.4]
示例值:
0.3
crop_face_preprocess
boolean
可选
true:是
false: 否
示例值:
true
before_face_fusion_ratio
number <float>
可选
取值范围[0.2,0.8]
示例值:
0.5
after_face_fusion_ratio
number <float>
可选
取值范围[0.2,0.8]
示例值:
0.5
apply_face_fusion_before
boolean
可选
true:启用
false:不启用
示例值:
true
apply_face_fusion_after
boolean
可选
true:启用
false:不启用
示例值:
true
color_shift_middle
boolean
可选
true:是
false:否
示例值:
true
color_shift_last
boolean
可选
true:是
false:否
示例值:
true
super_resolution
boolean
可选
true:启用
false:不启用
示例值:
true
background_restore
boolean
可选
true:保存
false:不保存
示例值:
true
template_create_param
object (CameraTemplateCreateVO_request)
可选
template_key
string <string>
可选
示例值:
C5B5FE8DBF3679D9049342C130341BD9
template_url
string <string>
可选
模版key(templateKey)和自定义模版url(templateUrl)二选一
示例值:
www.bertha-gottlieb.io
count
integer <int32>
可选
示例值:
2
示例
{
"avatar_key": "C5B5FE8DBF3679D9049342C130341BD9",
"camera_artwork_advanced": {
"first_diffusion_steps": 50,
"first_denoising_strength": 0.45,
"second_diffusion_steps": 20,
"second_denoising_strength": 0.3,
"crop_face_preprocess": true,
"before_face_fusion_ratio": 0.5,
"after_face_fusion_ratio": 0.5,
"apply_face_fusion_before": true,
"apply_face_fusion_after": true,
"color_shift_middle": true,
"color_shift_last": true,
"super_resolution": true,
"background_restore": true
},
"template_create_param": {
"template_key": "C5B5FE8DBF3679D9049342C130341BD9",
"template_url": "www.bertha-gottlieb.io",
"count": 2
}
}
示例代码
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/avatar/camera/create' \
--header 'Content-Type: application/json' \
--data-raw '{
"avatar_key": "C5B5FE8DBF3679D9049342C130341BD9",
"camera_artwork_advanced": {
"first_diffusion_steps": 50,
"first_denoising_strength": 0.45,
"second_diffusion_steps": 20,
"second_denoising_strength": 0.3,
"crop_face_preprocess": true,
"before_face_fusion_ratio": 0.5,
"after_face_fusion_ratio": 0.5,
"apply_face_fusion_before": true,
"apply_face_fusion_after": true,
"color_shift_middle": true,
"color_shift_last": true,
"super_resolution": true,
"background_restore": true
},
"template_create_param": {
"template_key": "C5B5FE8DBF3679D9049342C130341BD9",
"template_url": "www.bertha-gottlieb.io",
"count": 2
}
}'
返回响应
🟢200OK
application/json
Body
code
string <string>
响应code
示例值:
200
message
string <string>
失败信息
示例值:
success
data
object (CameraArtworkKeysVo_response)
可选
keys
array[string]
作画结果Key列表
示例值:
[3E46BF62A51256A96EEFB73079BD55E2, 66FB4071D5647F5F8CD702AC1910AA5D]
expected_duration_cost
integer <int32>
可选
示例值:
20
expected_point_cost
integer <int32>
可选
示例值:
20
示例
{
"code": "200",
"message": "success",
"data": {
"keys": [
"3E46BF62A51256A96EEFB73079BD55E2",
"66FB4071D5647F5F8CD702AC1910AA5D"
],
"expected_duration_cost": 20,
"expected_point_cost": 20
}
}
修改于 2024-08-07 07:50:02