Sygil-Dev / sygil-webui

Stable Diffusion web UI
GNU Affero General Public License v3.0
7.85k stars 889 forks source link

Are there plans to implement an API to call image generation from outside of the browser? #1800

Open eagleEggs opened 11 months ago

eagleEggs commented 11 months ago

I'd like to generate from another tool via some API endpoint that may already exist. If there already is, apologies, I looked around and haven't seen it yet. Thanks.

ZeroCool940711 commented 11 months ago

There are plans for it, an API is something I've wanted to add for a while but I have not been able to do it because of the way our backend was done and because most of it is tied to the frontend library we use which is Streamlit and it is limiting what we can do with it. I plan to rewrite the whole UI and use FastAPI on the backend which not only will give us access to an API for most stuff but will let us run the backend independently of the frontend/UI which I plan to rewrite as well but this time using Flet instead of Streamlit, that should let us do a lot more stuff, the rewrite of the UI will take some time tho.

eagleEggs commented 11 months ago

Sweet, thanks for the info!