Skip to main content

Controlnet

Supported Controlnet List

Upload Image Resource and Get Resource ID

The controlnet-related structure is as follows:

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

Put fields into the request Example:

{
"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": {}
}
]
},
}
}
]
}