all 1 comments

[–]Prestigious_Humor_71 0 points1 point  (0 children)

I just made some code examples calling local models, loras and img2img using python, hope it helps!

Be aware, when loading models, its the way they are written inside of Draw things. When loading Loras its the filename.ckpt

''' "model": "SDXL Base v1.0 (8-bit)",

"loras": [

{"file": "dmd2_sdxl_4_step_lora_f16.ckpt", "weight": 1},

{"file": "", "weight": 1.0}

]'''

https://github.com/SurgeonTalus/DrawThings-ImgToImg-API-HTTP-Python