stable.art icon indicating copy to clipboard operation
stable.art copied to clipboard

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

Open davidcovo opened this issue 2 years ago • 5 comments
trafficstars

image

davidcovo avatar Mar 31 '23 04:03 davidcovo

Is anyone experiencing this issue?

davidcovo avatar Apr 01 '23 05:04 davidcovo

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

katlandreth avatar Apr 03 '23 18:04 katlandreth

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)

1lmgc1 avatar Dec 08 '23 03:12 1lmgc1

Привет, я всего лишь пользователь этого плагина, а не участник. Но я хочу отметить, что если вы видите эту ошибку, вам следует следовать указаниям в сообщении об ошибке. Перейдите на 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

dulikvit avatar Feb 22 '24 09:02 dulikvit