Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: the webui server is live, but you did not enable API. Please check the official API guide on the webui wiki #59

Open
davidcovo opened this issue Mar 31, 2023 · 4 comments

Comments

@davidcovo
Copy link

image

@davidcovo
Copy link
Author

Is anyone experiencing this issue?

@katlandreth
Copy link

Hi, I'm just a user of this plugin, not a contributor. But I do want to point out that if you see this error, you should follow the directions in the error message. Go to the webui wiki, look for instructions on enabling the API, and follow those instructions.

Here's a link to those instructions https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API .

You essentially need to look for a file in your local Stable Art project folder called "webui-user.bat" and then add a line that says
set COMMANDLINE_ARGS=--api

Don't forget to save this file. Also worth double checking that you are updating the correct file (webui-user.bat) and not another similarly named file.

After that, when you run your server again you'll need to run it with the flag --api. So instead of running just "./webui.sh" in your terminal, you'll run

./webui.sh --api

@1lmgc1
Copy link

1lmgc1 commented Dec 8, 2023

Hi, I'm just a user of this plugin, not a contributor. But I do want to point out that if you see this error, you should follow the directions in the error message. Go to the webui wiki, look for instructions on enabling the API, and follow those instructions.

Here's a link to those instructions https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API .

You essentially need to look for a file in your local Stable Art project folder called "webui-user.bat" and then add a line that says set COMMANDLINE_ARGS=--api

Don't forget to save this file. Also worth double checking that you are updating the correct file (webui-user.bat) and not another similarly named file.

After that, when you run your server again you'll need to run it with the flag --api. So instead of running just "./webui.sh" in your terminal, you'll run

./webui.sh --api

I have this problem when accessing from a virtual machine, not sure what needs to be changed. (https://github.com/ResidentChief/simple_a1111_paperspace)

@dulikvit
Copy link

Привет, я всего лишь пользователь этого плагина, а не участник. Но я хочу отметить, что если вы видите эту ошибку, вам следует следовать указаниям в сообщении об ошибке. Перейдите на webui wiki, найдите инструкции по включению API и следуйте этим инструкциям.

Вот ссылка на эти инструкции https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/API .

По сути, вам нужно найти файл в вашей локальной стабильной папке Art project под названием "webui-user.bat", а затем добавить строку с надписью set COMMANDLINE_ARGS=--api

Не забудьте сохранить этот файл. Также стоит дважды проверить, что вы обновляете правильный файл (webui-user.bat), а не другой файл с аналогичным именем.

После этого, когда вы снова запустите свой сервер, вам нужно будет запустить его с флагом --api. Таким образом, вместо запуска просто ". /webui.sh" в вашем терминале вы запустите

./webui.sh --api

Thank you, katlandreth. Now my Photoshop has become smarter)
With a key ./webui.sh --api

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants