Sygil-Dev / stable-diffusion

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Expose API

Yonben opened this issue · comments

Hi,
I wonder if there's a way to expose the API. Looking at the network it's all in websockets, and running directly the scripts from the CLI seems undocumented. Once I ran 'webui.py' headlessly, how to communicate with its API?

My goal is to create a small project communicating directly with my local SD, maybe there's a better way to achieve that?

Thanks!

lstein might be a better fit for something like this they have a python script that you can import into you project and use for generation https://github.com/lstein/stable-diffusion

Thanks!