mix1009 / sdwebuiapi

Python API client for AUTOMATIC1111/stable-diffusion-webui
MIT License
1.38k stars 187 forks source link

How to I access the API on Postman along with Auth Creds #63

Open tushar-31093 opened 1 year ago

tushar-31093 commented 1 year ago

So, here is something I would like to understand.

I made the whole setup. Works like a charm after using it as is. Now the thing is I need to use the API service and provide it to my other app development team. They are using Node to build the app. I was keen to expose the API to them along with a specific username and password but unfortunately not of the guides/references point me in the right direction.

Is it possible for you to share the API endpoint URL which contains username and password that I could use as a reference and build on it?

Last resort is to use python inside node.js and call this library. No doubt it will work but it just makes things complicated. I want to use this library on a parallel web application that connects to the same endpoint whereas the mobile app that has a backend on node needs to access the same but I do not know the endpoint for that.

mix1009 commented 1 year ago

webui uses http basic authentication. You won't have problem using it from node directly. BTW If you are transmitting through internet without encryption it's not safe.

tushar-31093 commented 1 year ago

webui uses http basic authentication. You won't have problem using it from node directly. BTW If you are transmitting through internet without encryption it's not safe.

For some reason didn't get an alert. Anyhow, any way in which we can secure the API access though? The automatic1111 interface is already up and running on a cloud server and we're building an application that may require APIs to generate results through it.

Any viable suggestions?