how to use API in webui?

#9
by haowu11 - opened

txt2img_data = {
"prompt": "(masterpiece), (high quality), best quality, super detailed, (full detail), (4k), 8k, 1girl,model,clean background,real background,UHD,detailed face",
"sampler_name": "DDIM",
"batch_size": 1,
"steps": 20,
"cfg_scale": 7,
"width": 640,
"height": 960,
"negative prompt": "nsfw, ng_deepnegative_v1_75t,badhandv4, (worst quality:2), (low quality:2), (normal quality:2), lowres,watermark, monochrome",
"alwayson_scripts":{
"controlnet" :{
"args":[
{
"input_image" : controlnet_image_data,
"mask_image" : anno_image_data,
"module" : "inpaint",
"model" : "control_v11p_sd15_inpaint [ebff9138]"
}
]
}
}
}
seems it dont work

mask_image -》mask

haowu11 changed discussion status to closed

Sign up or log in to comment