跳到主要内容

Controlnet

支持的Controlnet列表

将图片资源上传获取Resource ID

controlnet相关结构如下:

{
"controlnet": {
"args": [
{
"inputImageResourceId": "579f0681-7137-45cf-9dc3-1fe6a07c2df9",
"preprocessor": "openpose",
"model": "control_v11p_sd15_openpose",
"weight": 0.8,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
}
}

将字段放入请求 示例:

{
"requestId": "unique_key",
"stages": [
{
"type": "INPUT_INITIALIZE",
"inputInitialize": {
"seed": "-1",
"count": 1
}
},
{
"type": "DIFFUSION",
"diffusion": {
"width": 512,
"height": 768,
"prompts": [
{
"text": "1girl"
}
],
"negativePrompts": [
{
"text": "EasyNegative"
}
],
"sdModel": "613045163490732233",
"sdVae": "vae-ft-mse-840000-ema-pruned.ckpt",
"sampler": "Euler a",
"steps": 25,
"cfgScale": 7,
"clipSkip": 2,
"denoisingStrength": 0.5,
"etaNoiseSeedDelta": 31337,
"controlnet": {
"args": [
{
"inputImageResourceId": "579f0681-7137-45cf-9dc3-1fe6a07c2df9",
"preprocessor": "openpose",
"model": "control_v11p_sd15_openpose",
"weight": 0.8,
"guidanceEnd": 1,
"preprocessorParams": {}
}
]
},
}
}
]
}