stable-diffusion-webui-docker icon indicating copy to clipboard operation
stable-diffusion-webui-docker copied to clipboard

Question: does this version also expose the REST api on port 5000?

Open StefH opened this issue 1 year ago • 9 comments

Does this version also expose the REST api on port 5000? (Just like the normal https://replicate.com/docs/reference/http ?)

StefH avatar Sep 14 '22 20:09 StefH

I am not sure since this depends on the underlying UI, you can add the port to the docker compose file and try it

    ports:
      - "7860:7860"
      - "5000:5000"

AbdBarho avatar Sep 14 '22 20:09 AbdBarho

I think that the api is not running on port 5000.

When clicking the api-link in the bottom page, I get redirected to this: image

StefH avatar Sep 17 '22 14:09 StefH

well, I guess the api is running on the same port as the ui

AbdBarho avatar Sep 17 '22 14:09 AbdBarho

Which UI are you using @StefH ? did you add something somewhere to enable api?

When I use auto1111, clicking in the api link shows a page informing me it is off, and I would like to have it on.

rgriffogoes avatar Sep 25 '22 12:09 rgriffogoes

I cloned this project, followed the readme, and started:

docker compose --profile auto-cpu up --build

Then the UI is running at : http://localhost:7860/

StefH avatar Sep 25 '22 13:09 StefH

Getting the UI to work is fine on my side, I'm curious about the API. Regardless if I run auto-cpu or auto clicking on the api-link at the bottom gives me:

image

With my superficial understanding of the code, I would need to either use a parameter (if auto1111 code is prepared for it) or change the code in auto1111 to start gradio with API server.

rgriffogoes avatar Sep 25 '22 16:09 rgriffogoes

maybe the discussion in #92 could be of some use

AbdBarho avatar Sep 25 '22 16:09 AbdBarho

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Sep 29 '22 04:09 github-actions[bot]

This issue is stale because it has been open 14 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] avatar Oct 14 '22 04:10 github-actions[bot]

This issue was closed because it has been stalled for 7 days with no activity.

github-actions[bot] avatar Oct 22 '22 03:10 github-actions[bot]