This guide explains how to configure the Stable Diffusion WebUI API using SP-MangaEditer.
Edit the webui-user.bat
file within the Stable Diffusion WebUI folder to set environment variables in COMMANDLINE_ARGS.
The configuration file is as follows
COMMANDLINE_ARGS=--cors-allow-origins "*" --api
When using SP-MangaEditer on the Stable diffusion WebUI tab, the following settings alone will suffice.
COMMANDLINE_ARGS=--api
The same options allow access even from a Stability Matrix launch.
If you are using SP-MangaEditer standalone (SP-MangaEditer/index.html), please set the following environment variables.
COMMANDLINE_ARGS=--cors-allow-origins "*" --api
Note: It is not possible to set --cors-allow-origins
when launching from Stability Matrix, hence access is not available. You must execute webui-user.bat.