BIGPPWONG / handydiffu

A third party iOS client for AUTOMATIC111 stable diffusion webui
Apache License 2.0
50 stars 5 forks source link

Connect with Replicate API? #2

Open alelordelo opened 1 year ago

alelordelo commented 1 year ago

Thanks for sharing this great repo!

I am trying to give it a test drive and connect with replicate stable diffusion API: https://replicate.com/stability-ai/stable-diffusion/api

But I am a bit lost, and they don’t seem to have an IP.

Is it possible to connect to replicate? If not, what would be another option?

Thanks Alex

alelordelo commented 1 year ago

Update...

I deployed SD WEBUI now to banana.dev (as recommended by the SD WEBUI community, but neither Banana nor Replicate give me a http API address... https://github.com/patienceai/stable-diffusion-automatic1111-banana

Does it work to host on those servers, or I would need some other setup?

BIGPPWONG commented 1 year ago

Hi Alex, this app is for the original webui server, and you have to deploy it to your own server to use it. replicate use a different api from automatic111, and banana seems like a modified version of the original, so I don’t think it’s compatible.

alelordelo commented 1 year ago

Thanks a lot for the help!

What server do you recommend? One that only charges when you run inference (ex, don’t need to have the machine on and pay by the hour whether you are using or not).

If you could put some very basic tutorial here in how to deploy alto a server and get the IP address to use in the app, I think would help a lot to promote and use your app. 🙂👍

Cheers from Stockholm! Alex

alelordelo commented 1 year ago

Also tried now using the local URL generated in google colab, but doesn’t work…

A2CE1C87-228B-4142-9BCE-745350D7C55D

BIGPPWONG commented 1 year ago

to use handydiffu, you should do the followings

  1. follow the instructions of the official automatic111 webui to install webui server on your device
  2. enable api access, reference
    First, of course, is to run web ui with --api commandline argument
    example in your "webui-user.bat": set COMMANDLINE_ARGS=--api
  3. install Tailscale and login both on your pc and your iPhone.
  4. on your iPhone , open tailscale and copy the address of your pc, use it as your api ip address.
alelordelo commented 1 year ago

thanks for the instructions @BIGPPWONG!

If I want to use without Tailscale on a server, I guess I need to :

APIUrl: the Api generated by WEBUI Username: login via SSH password: pw via SSH

is that correct?