Can I run AUTOMATIC1111 SD webui version from command prompt, with no webui? #2877
Replies: 3 comments 1 reply
-
Another way to go is to look at the Ajax calls that the web UI makes and then write a CLI library that can send the same format, just as imag data, etc. |
Beta Was this translation helpful? Give feedback.
-
I used postman, I made a POST to with this data in the Body and send it as JSON { the response will contain data with the name value pointing to the location on your HDD here's how to do it with cURL curl --location --request POST 'http://127.0.0.1:7860/api/predict' |
Beta Was this translation helpful? Give feedback.
-
While it is possible to mimic gradio api calls, the format is going to constantly break (fn_index tends to change whenever features do) a better way would be to use the new API thingie. (needs the --api flag) Check here for an example and some gotchas. The example is for jupyter notebook but if you put that python code in a .py and run it, and change the display(img) to uhh... img.Save("crap.png") I think that should work too. (untested...) Only works for txt2img for now. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
If yes, explain me like I'm 5 years old, how to do this.
Thanks!
Beta Was this translation helpful? Give feedback.
All reactions